/* /congfit, /es/congfit, /it/congfit — builds on the site.css variables and components. */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.nav-links a[aria-current="page"] { color: var(--navy); }

/* The demo button is wider than the landing's, and the Spanish and Italian labels are
   longer: drop the two links that lead back to the landing until the row has room,
   and keep the long societies label for wide screens. */
@media (max-width: 780px) {
  .nav-secondary { display: none; }
}
@media (max-width: 1060px) {
  :lang(es) .nav-long,
  :lang(it) .nav-long { display: none; }
}
@media (max-width: 980px) {
  :lang(es) .nav-secondary,
  :lang(it) .nav-secondary { display: none; }
}

/* Language selector: a strip under the nav and a copy in the footer. */
.cf-lang { border-bottom: 1px solid var(--line); }
.cf-lang .container { display: flex; justify-content: flex-end; }
.cf-lang-list {
  list-style: none;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.cf-lang .cf-lang-list { padding: 6px 0; }
.cf-lang-list li + li::before {
  content: "·";
  content: "·" / "";
  margin: 0 6px;
  color: var(--muted);
}
.cf-lang-list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 6px;
  color: var(--ink-soft);
}
.cf-lang-list a:hover { color: var(--navy); }
.cf-lang-list a[aria-current="page"] {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}
footer .cf-lang-list li + li::before { color: rgba(255, 255, 255, 0.45); }
footer .cf-lang-list a { color: rgba(255, 255, 255, 0.75); }
footer .cf-lang-list a:hover { color: var(--teal-soft); }
footer .cf-lang-list a[aria-current="page"] { color: white; }
/* The © line on the navy footer needs more contrast than the shared style gives it. */
.footer-bottom { color: rgba(255, 255, 255, 0.68); }
/* Footer column titles are h2 on these pages, so the outline has no gap from the
   last section heading; they keep the look of the shared h4. */
.footer-col h2 {
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variation-settings: normal;
  margin-bottom: 16px;
}

/* --muted on the cream background is 4.45:1; this shade clears 4.5:1 (AA). */
.step-content p,
.faq-list details p { color: #5B6577; }

/* In-page anchors land below the sticky nav. */
main section[id] { scroll-margin-top: 88px; }

/* Hero: a longer headline than the landing, so a smaller type scale. */
.cf-hero .hero-head { max-width: 900px; }
.cf-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.cf-hero .eyebrow { flex-wrap: wrap; justify-content: center; text-align: center; }

/* What the committee receives: 2 × 2 on the dark band. */
.cf-deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cf-deliverables .tool-card h3 { font-size: 1.3rem; }

/* Benefits by role: four columns. */
.cf-roles {
  padding: clamp(60px, 8vw, 110px) 0;
  background: var(--cream-warm);
  border-top: 1px solid var(--line);
}
.cf-roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cf-role {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.cf-role h3 { font-size: 1.15rem; margin-bottom: 10px; }
.cf-role p { color: var(--muted); font-size: 0.97rem; }

/* Confidentiality and data. */
.cf-confidential {
  padding: clamp(60px, 8vw, 110px) 0;
  border-top: 1px solid var(--line);
}
.cf-commitments {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
  max-width: 980px;
}
.cf-commitments li {
  position: relative;
  padding: 18px 20px 18px 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.cf-commitments li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 25px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* PubFit Ready for societies + congress organizers. */
.cf-next {
  padding: clamp(60px, 8vw, 110px) 0;
  background: var(--cream-warm);
  border-top: 1px solid var(--line);
}
.cf-next .society-card h3 { font-size: 1.35rem; }

/* Closing. */
.cf-demo-note { margin-top: 18px; color: #5B6577; font-size: 0.95rem; }

@media (max-width: 980px) {
  .cf-roles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .cf-deliverables,
  .cf-commitments { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cf-roles-grid { grid-template-columns: 1fr; }
  /* Longer Spanish and Italian button labels wrap instead of widening their card. */
  main .btn { white-space: normal; text-align: center; justify-content: center; }
}
