/* =====================================================================
   National Rectors Conference — registration portal
   Split app layout · Confirmed Brand: NAC emblem, Georgia + Arial,
   NAC Blue #2886D0 anchored in Ink Navy, a sliver of gold.
   ===================================================================== */

/* ------------------------------ tokens ------------------------------ */
:root {
  --h-navy-ink: #16143C;
  --h-navy-deep: #100E30;
  --h-indigo: #0E4C8A;      /* Deep Blue — links, small text, structure */
  --h-sky: #2886D0;         /* NAC Blue — signature; large text & fills */
  --h-sky-light: #DCEBF7;   /* Sky Tint — washes, fills */
  --h-gold: #F5A623;
  --h-gold-deep: #E08600;
  --h-gold-ink: #C76A12;
  --h-paper: #F6F3EE;
  --h-white: #FFFFFF;
  --h-field: #FBFAF7;
  --h-text: #16143C;
  --h-muted: #4A4A57;
  --h-subtle: #6B6B7A;
  --h-coral: #EF4D5B;
  --hairline: rgba(22, 20, 60, .10);
  --hairline-strong: rgba(22, 20, 60, .16);
  --hairline-light: rgba(255, 255, 255, .14);
  --focus-ring: 0 0 0 3px rgba(245, 166, 35, .24);
  --e-sheet: 0 1px 2px rgba(22, 20, 60, .04), 0 16px 40px -24px rgba(22, 20, 60, .22);
  --panel-w: 380px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-text: Arial, Helvetica, sans-serif;
}

/* ------------------------------- base ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--h-text);
  background: var(--h-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, dt, ol, ul, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ol, ul { list-style: none; }
a { color: var(--h-indigo); }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 60;
  background: var(--h-navy-ink); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 500; font-size: 14px; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--h-gold); outline-offset: 2px; }

/* ------------------------------ layout ------------------------------ */
.app { display: grid; grid-template-columns: var(--panel-w) minmax(0, 1fr); min-height: 100svh; }

/* =========================== BRAND PANEL =========================== */
.panel {
  background: linear-gradient(180deg, var(--h-navy-ink) 0%, var(--h-navy-deep) 100%);
  color: #fff;
}
.panel-inner {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column;
  padding: 40px 36px 0;
}

.panel-brand { display: flex; align-items: center; gap: 16px; }
.panel-emblem { width: 58px; height: 58px; flex: 0 0 auto; }
.panel-brand-divider { width: 1px; align-self: stretch; background: var(--hairline-light); }
.panel-word {
  font-family: var(--font-display); font-weight: 400;
  font-size: 16.5px; line-height: 1.3; letter-spacing: .07em;
  text-transform: uppercase; color: #fff;
}
.panel-descriptor {
  margin-top: 4px;
  font-family: var(--font-display); font-style: italic;
  font-size: 12.5px; letter-spacing: .01em;
  color: var(--h-sky-light);
}

.panel-meta { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hairline-light); }
.panel-dates {
  font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: #fff;
}
.panel-theme {
  display: inline-block;
  margin-top: 8px; font-style: italic; font-size: 14px;
  color: rgba(245, 166, 35, .85);
  text-decoration: none;
}
a.panel-theme:hover, a.panel-theme:focus-visible {
  color: var(--h-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* step navigation */
.steps { margin-top: 34px; }
.steps ol { display: flex; flex-direction: column; gap: 2px; }
.step-item a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; margin: 0 -12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color .15s ease;
}
.step-item a:hover { background: rgba(255, 255, 255, .05); }
.step-num {
  font-weight: 600; font-size: 11px; letter-spacing: .08em;
  color: rgba(255, 255, 255, .38);
  width: 18px; flex: 0 0 auto;
  transition: color .15s ease;
}
.step-label {
  font-weight: 500; font-size: 13px; letter-spacing: .01em;
  color: rgba(255, 255, 255, .55);
  transition: color .15s ease;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.step-check { width: 12px; height: 12px; color: var(--h-gold); margin-left: auto; opacity: 0; transition: opacity .15s ease; flex: 0 0 auto; }
.step-item.is-active a { background: rgba(255, 255, 255, .07); }
.step-item.is-active .step-num { color: var(--h-gold); }
.step-item.is-active .step-label { color: #fff; }
.step-item.is-done .step-label { color: rgba(255, 255, 255, .75); }
.step-item.is-done .step-check { opacity: 1; }

.panel-foot { margin-top: auto; padding-bottom: 0; }
.panel-rule {
  display: block; width: 56px; height: 3px; border-radius: 2px;
  background: var(--h-gold);
  margin: 0 auto;
}
.panel-org {
  font-weight: 700; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  padding: 14px 0 18px;
  text-align: center;
}

/* ============================= CONTENT ============================= */
.content { min-width: 0; }

.content-top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 820px;
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 48px) 0;
}
.content-note { font-size: 13.5px; color: var(--h-subtle); }

.lang-toggle {
  display: flex; gap: 2px; padding: 3px;
  background: var(--h-white);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  flex: 0 0 auto;
}
.lang-btn {
  font-family: var(--font-text); font-weight: 600; font-size: 11.5px; letter-spacing: .08em;
  color: var(--h-subtle);
  background: transparent; border: 0; border-radius: 999px;
  padding: 5px 13px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.lang-btn:hover { color: var(--h-text); }
.lang-btn[aria-pressed="true"] { background: var(--h-navy-ink); color: #fff; }

/* ------------------------------- sheet ------------------------------ */
main { display: block; }
.sheet {
  max-width: 820px;
  margin: 18px auto 0;
  background: var(--h-white);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--e-sheet);
  padding: clamp(28px, 4.5vw, 56px);
}

.sheet-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 26px;
}
.sheet-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4vw, 42px); line-height: 1.06;
  letter-spacing: -.005em;
  color: var(--h-navy-ink);
}
.sheet-title::after {
  content: ""; display: block;
  width: 52px; height: 3px; background: var(--h-gold);
  margin-top: 10px;
}
.required-note {
  font-weight: 600; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--h-subtle); white-space: nowrap;
}

/* sections */
.sheet-section { padding: 34px 0; border-top: 1px solid var(--hairline); }
.sec-head { margin-bottom: 22px; }
.sec-step {
  font-weight: 700; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--h-indigo);
  margin-bottom: 6px;
}
.sec-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 2.4vw, 26px); line-height: 1.15;
  letter-spacing: -.005em;
  color: var(--h-navy-ink);
}
.sec-lead { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--h-muted); }

/* ------------------------------ fields ------------------------------ */
.field { margin-top: 18px; }
.field:first-child, .field-pair:first-child { margin-top: 0; }
.field-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px;
}
.field-pair .field { margin-top: 0; }

.field label, .consent-question {
  display: block;
  font-weight: 500; font-size: 13px;
  color: var(--h-text);
  margin-bottom: 6px;
}
.req { color: var(--h-gold-ink); font-weight: 600; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], textarea {
  width: 100%;
  font-family: var(--font-text); font-weight: 300; font-size: 15px;
  color: var(--h-text);
  background: var(--h-field);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
textarea { resize: vertical; min-height: 80px; }
input::placeholder, textarea::placeholder { color: rgba(24, 22, 34, .34); }
input:hover, textarea:hover { border-color: rgba(24, 22, 34, .28); }
input:focus, textarea:focus {
  outline: none;
  background: var(--h-white);
  border-color: var(--h-gold);
  box-shadow: var(--focus-ring);
}
.field-hint { margin-top: 6px; font-size: 12.5px; color: var(--h-subtle); }

/* --------------- workshop ranking — drag rows into order --------------- */
.rank-hint { font-size: 13.5px; line-height: 1.5; color: var(--h-muted); margin-bottom: 14px; }

.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--h-white);
  border: 1px solid var(--hairline-strong);
  border-left: 4px solid var(--h-sky);
  border-radius: 12px;
  padding: 10px 12px 10px 14px;
  box-shadow: 0 2px 10px -6px rgba(22, 20, 60, .22);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease, transform .16s ease;
}
.rank-item:hover {
  border-color: var(--h-sky); border-left-color: var(--h-indigo);
  box-shadow: 0 8px 20px -10px rgba(22, 20, 60, .3);
  transform: translateY(-1px);
}
.rank-item:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--h-gold); }
.rank-item.is-dragging {
  border-color: var(--h-sky);
  box-shadow: 0 14px 30px -12px rgba(22, 20, 60, .45);
  background: linear-gradient(0deg, rgba(220, 235, 247, .4), rgba(220, 235, 247, .4)), var(--h-white);
  position: relative; z-index: 5;
  transform: scale(1.005);
}
.rank-item.just-moved { background: var(--h-sky-light); }

.rank-num {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--h-sky-light);
  color: var(--h-navy-ink);
  font-family: var(--font-display); font-size: 17px;
  display: grid; place-content: center;
}

/* compact flowing body: "Title · Facilitated by …" headline, description under */
.rank-body { min-width: 0; flex: 1; line-height: 1.35; }
.rank-title {
  display: inline;
  font-weight: 700; font-size: 14px; color: var(--h-navy-ink);
}
.rank-fac {
  display: inline;
  font-size: 12.5px; font-style: italic; color: var(--h-indigo);
}
.rank-fac::before { content: " · "; font-style: normal; color: var(--h-subtle); }
.rank-about {
  display: block;
  margin-top: 3px;
  font-size: 12.5px; line-height: 1.45; color: var(--h-subtle);
}

/* mobile-only ⓘ button (injected by ui.js); desktop shows the text inline */
.rank-info {
  display: none;
  flex: 0 0 auto;
  place-content: center;
  width: 40px; height: 44px;
  padding: 0;
  color: var(--h-indigo);
  background: none; border: 0; border-radius: 9px;
  cursor: pointer;
}
.rank-info svg { width: 19px; height: 19px; }
.rank-info:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* workshop info dialog (opened from the ⓘ button) */
.rank-dialog {
  border: 0; border-radius: 16px;
  padding: 24px 22px 20px;
  width: min(420px, calc(100vw - 32px));
  box-shadow: 0 24px 60px -20px rgba(22, 20, 60, .5);
  color: var(--h-text);
}
.rank-dialog::backdrop { background: rgba(22, 20, 60, .55); }
.rank-dialog h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px; line-height: 1.25; color: var(--h-navy-ink);
}
.rank-dialog-fac { margin-top: 6px; font-size: 13px; font-style: italic; color: var(--h-indigo); }
.rank-dialog-about { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--h-muted); }
.rank-dialog-close { margin-top: 20px; width: 100%; min-height: 48px; }

.rank-grip {
  flex: 0 0 auto;
  display: grid; place-content: center;
  width: 38px; height: 44px;
  color: rgba(22, 20, 60, .4);
  cursor: grab;
  touch-action: none;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--h-field);
}
.rank-grip:hover { color: var(--h-indigo); background: var(--h-sky-light); border-color: var(--h-sky); }
.rank-item.is-dragging .rank-grip { cursor: grabbing; }
.rank-grip svg { width: 13px; height: 20px; }
.field-error { margin-top: 6px; font-size: 12.5px; font-weight: 500; color: #D63340; }
.is-invalid input, .is-invalid textarea { border-color: var(--h-coral); background: #FFF9F9; }
.is-invalid .chip-face { border-color: rgba(239, 77, 91, .5); }

/* ------------------------------- chips ------------------------------ */
.chip-group { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { cursor: pointer; }
.chip-face {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 9px 17px;
  font-weight: 500; font-size: 13.5px; color: var(--h-text);
  background: var(--h-white);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.chip:hover .chip-face { border-color: var(--h-indigo); }
.chip-check { width: 12px; height: 12px; display: none; }
.chip input:checked + .chip-face {
  background: var(--h-navy-ink); border-color: var(--h-navy-ink); color: #fff;
}
.chip input:checked + .chip-face .chip-check { display: block; color: var(--h-gold); }
.chip input:focus-visible + .chip-face { box-shadow: var(--focus-ring); border-color: var(--h-gold); }

/* ----------------------------- workshops ---------------------------- */
/* ----------------------------- consents ----------------------------- */
.consent-block { margin-top: 30px; }
.consent-block:first-child { margin-top: 0; }
.consent-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 16.5px; letter-spacing: .03em;
  color: var(--h-navy-ink);
  margin-bottom: 8px;
}
.consent-summary { font-size: 14px; color: var(--h-muted); margin-bottom: 12px; }
.consent-question { margin-bottom: 10px; }

.waiver-details {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--h-field);
  margin-bottom: 14px;
}
.waiver-details summary {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 15px;
  font-weight: 500; font-size: 13.5px; color: var(--h-indigo);
  cursor: pointer; list-style: none;
}
.waiver-details summary::-webkit-details-marker { display: none; }
.waiver-caret { width: 12px; height: 12px; transition: transform .16s ease; }
.waiver-details[open] .waiver-caret { transform: rotate(90deg); }
.waiver-body {
  padding: 12px 16px 16px;
  font-size: 13.5px; line-height: 1.6; color: var(--h-muted);
  border-top: 1px solid var(--hairline);
}
.waiver-body p { margin: 0 0 12px; }
.waiver-body p:last-child { margin-bottom: 0; }
.waiver-body strong { color: var(--h-navy-ink); font-weight: 700; }

.check-row {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 14.5px; cursor: pointer;
}
.check-row input {
  appearance: none; -webkit-appearance: none;
  width: 21px; height: 21px; flex: 0 0 auto;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 6px; background: #fff;
  display: grid; place-content: center;
  cursor: pointer; margin-top: 1px;
  transition: background-color .14s ease, border-color .14s ease;
}
.check-row input::after {
  content: ""; width: 10px; height: 10px;
  background: no-repeat center / contain
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M4 10.5 8 14.5 16 5.5" fill="none" stroke="%2316143C" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  transform: scale(0); transition: transform .12s ease;
}
.check-row input:checked { background: var(--h-gold); border-color: var(--h-gold); }
.check-row input:checked::after { transform: scale(1); }
.check-row input:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--h-gold); }

/* media consent — default opt-in, quiet opt-out */
.media-optout {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px; cursor: pointer;
}
.optout-text {
  font-size: 13px; color: var(--h-subtle);
  text-decoration: underline; text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.media-optout:hover .optout-text { color: var(--h-text); }
.optout-check { width: 13px; height: 13px; color: var(--h-indigo); display: none; }
.media-optout:has(input:checked) .optout-check { display: block; }
.media-optout:has(input:checked) .optout-text {
  color: var(--h-text); font-weight: 500; text-decoration-style: solid;
}
.media-optout:has(input:focus-visible) .optout-text {
  outline: 2px solid var(--h-gold); outline-offset: 2px; border-radius: 3px;
}

/* ------------------------------ submit ------------------------------ */
.sheet-submit {
  margin-top: 34px; padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.submit-rule {
  display: block; width: 56px; height: 3px; border-radius: 2px;
  background: var(--h-gold);
}
.sheet-submit .error-summary { align-self: stretch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-text); font-weight: 600; font-size: 15px;
  border-radius: 999px; border: 0; cursor: pointer;
  padding: 15px 28px; text-decoration: none;
  transition: background-color .16s ease, box-shadow .16s ease;
}
.btn-primary { background: var(--h-gold); color: var(--h-navy-ink); width: 100%; max-width: 400px; }
.btn-primary:hover { background: var(--h-gold-deep); box-shadow: 0 6px 18px -8px rgba(240, 130, 0, .6); }
.btn-primary:disabled { opacity: .55; cursor: default; box-shadow: none; }

.error-summary {
  display: flex; align-items: center; gap: 10px;
  background: rgba(239, 77, 91, .07);
  border: 1px solid rgba(239, 77, 91, .3);
  color: #B3313C;
  font-weight: 500; font-size: 13.5px;
  border-radius: 10px;
  padding: 11px 16px;
}

/* honeypot — off-screen, not display:none */
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------ success ------------------------------ */
.success-panel {
  max-width: 820px;
  margin: 18px auto 0;
  background: radial-gradient(120% 130% at 50% 8%, #23214e, #16143c 60%);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--e-sheet);
  padding: clamp(48px, 7vw, 80px) clamp(28px, 4.5vw, 56px);
  text-align: center;
  color: #fff;
}
.success-inner { max-width: 520px; margin: 0 auto; }
.success-emblem {
  height: clamp(84px, 12vw, 110px); width: auto;
  margin: 0 auto 24px;
  opacity: 0; transform: translateY(14px);
  animation: emblem-rise .9s ease-out .1s forwards;
}
.success-rule {
  display: block; width: 56px; height: 3px; border-radius: 2px;
  background: var(--h-gold);
  margin: 0 auto 24px;
}
@keyframes emblem-rise { to { opacity: 1; transform: none; } }

.success-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 4vw, 38px); line-height: 1.12;
  letter-spacing: -.005em;
  color: #fff;
}
.success-title:focus { outline: none; }
.success-body { margin: 18px auto 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.success-next { margin: 10px auto 0; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .6); }

/* ------------------------------- footer ------------------------------ */
/* the admin entrance reads as plain text on purpose */
.admin-link { color: inherit; text-decoration: none; }
.admin-link:hover { color: inherit; }
.foot-sep { color: var(--h-subtle); }
.content-foot a[href^="mailto"] { color: var(--h-indigo); text-decoration: none; }
.content-foot a[href^="mailto"]:hover { text-decoration: underline; }
.content-foot {
  max-width: 820px;
  margin: 0 auto;
  padding: 26px clamp(20px, 4vw, 48px) 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--h-subtle);
}

/* ----------------------- mobile step bar (fixed) ---------------------- */
.stepbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  height: 44px; padding: 0 16px;
  background: rgba(16, 14, 48, .93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  transform: translateY(-100%);
  transition: transform .22s ease;
}
.stepbar.is-visible { transform: none; }
.stepbar-label {
  font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stepbar-count {
  font-family: var(--font-display);
  font-size: 17px; letter-spacing: .06em; color: var(--h-gold);
  flex: 0 0 auto;
}
.stepbar-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px;
}
.stepbar-progress span {
  display: block; height: 100%; width: 0;
  background: var(--h-gold);
  transition: width .1s linear;
}

/* ------------------------------ responsive --------------------------- */
@media (max-width: 1080px) {
  .app { display: block; position: relative; }
  .stepbar { display: flex; }

  /* navy banner */
  .panel-inner {
    position: static; height: auto;
    padding: 18px 20px 0;
  }
  .steps, .panel-horizon { display: none; }
  .panel-brand { gap: 12px; padding-right: 104px; }
  .panel-emblem { width: 42px; height: 42px; }
  .panel-word { font-size: 23px; }
  .panel-descriptor { font-size: 11.5px; margin-top: 2px; }
  .panel-meta {
    margin-top: 14px; padding: 12px 0 16px;
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 6px 16px; flex-wrap: wrap;
  }
  .panel-dates { font-size: 11px; }
  .panel-theme { margin-top: 0; font-size: 12.5px; }
  .panel-foot { display: none; }

  /* language toggle floats on the banner */
  .content-top {
    position: absolute; top: 16px; right: 16px;
    margin: 0; padding: 0; max-width: none;
  }
  .content-note { display: none; }
  .lang-toggle { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
  .lang-btn { color: rgba(255, 255, 255, .75); }
  .lang-btn:hover { color: #fff; }
  .lang-btn[aria-pressed="true"] { background: var(--h-gold); color: var(--h-navy-ink); }

  .sheet, .success-panel { margin: clamp(16px, 3vw, 32px) clamp(16px, 3.5vw, 44px) 0; }
}

@media (max-width: 680px) {
  /* the sheet becomes the page — native app feel */
  .content { background: var(--h-white); }
  .sheet, .success-panel {
    margin: 0; border: 0; border-radius: 0; box-shadow: none;
    padding: 24px 20px 32px;
  }
  .sheet-head { padding-bottom: 20px; }
  .sheet-title { font-size: 32px; }
  .sheet-title::after { width: 44px; height: 2.5px; margin-top: 8px; }
  .sheet-section { padding: 26px 0; }
  .sec-title { font-size: 22px; }
  .sec-lead { font-size: 13.5px; }

  /* 16px inputs prevent iOS focus-zoom; taller touch targets */
  input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], textarea {
    font-size: 16px; padding: 13px 14px;
  }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .field-pair .field { margin-top: 18px; }
  .field-pair .field:first-child { margin-top: 0; }
  .chip-face { padding: 11px 18px; font-size: 14.5px; min-height: 44px; }
  .rank-item { padding: 11px 10px 11px 12px; gap: 8px; }
  .rank-num { width: 32px; height: 32px; font-size: 16px; }
  .rank-grip { width: 42px; height: 46px; } /* bigger touch target */
  /* descriptions collapse behind the ⓘ button — rows stay scannable */
  .rank-about { display: none; }
  .rank-item.show-about .rank-about { display: block; } /* no-<dialog> fallback */
  .rank-info { display: grid; }
  /* 44px minimum touch targets for the floating language toggle */
  .lang-btn { min-height: 40px; min-width: 48px; }
  .btn { padding: 15px 24px; min-height: 50px; }
  .btn-primary { max-width: none; }
  .check-row input { width: 24px; height: 24px; }
  .check-row input::after { width: 12px; height: 12px; }
  .media-optout { padding: 6px 0; }
  .content-foot {
    flex-direction: column; gap: 4px;
    padding: 22px 20px 34px;
    background: var(--h-paper);
    margin: 0; max-width: none;
    border-top: 1px solid var(--hairline);
  }
}

/* --------------------------- reduced motion -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .success-emblem { animation: none; opacity: 1; transform: none; }
  .btn, .rank-item, .chip-face, .step-item a { transition: none; }
  .stepbar { transition: none; }
  .stepbar-progress span { transition: none; }
}
