/* Yajur Public School — Careers application
   Premium layout: fixed navy brand panel (left) + calm white form canvas (right). */
:root {
  --navy: #123a8c;
  --navy-deep: #0a1f4d;
  --navy-ink: #071634;
  --navy-soft: #eef2fa;
  --royal: #1a4fbf;
  --gold: #c9a227;
  --gold-light: #e2c35a;
  --gold-deep: #a8861c;
  --gold-soft: #f7efd6;
  --ink: #141c33;
  --muted: #5f6a86;
  --faint: #9aa4bd;
  --line: #e6eaf2;
  --field: #d9e0ec;
  --tint: #f7f9fc;
  --red: #c0392b;
  --green: #1f8a5b;
  --r: 14px;
  --r-sm: 10px;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scroll-padding-bottom: 120px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--navy-deep); }
em { font-style: italic; color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 559px) { .hide-sm { display: none; } }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--dark { color: var(--gold-deep); }

/* ================= App shell ================= */
.app { min-height: 100vh; }
@media (min-width: 1024px) { .app { display: grid; grid-template-columns: minmax(380px, 34%) 1fr; } }

/* ================= Brand panel ================= */
.panel { position: relative; overflow: hidden; background: var(--navy-ink); color: rgb(255 255 255 / 0.72); isolation: isolate; }
.panel__media { position: absolute; inset: 0; z-index: -2; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.panel__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(7 22 52 / 0.55) 0%, rgb(7 22 52 / 0.82) 45%, var(--navy-ink) 100%); }
.panel__rings { position: absolute; z-index: -1; right: -220px; bottom: -220px; width: 560px; height: 560px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 26px, rgb(201 162 39 / 0.10) 26px 27px); pointer-events: none; }
.panel__inner { display: flex; flex-direction: column; gap: 28px; padding: 18px 20px 30px; }
.panel__top { display: flex; align-items: center; justify-content: space-between; }
.panel__logo img { height: 46px; width: auto; }
.panel__call { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.25); color: #fff; transition: background 0.2s, border-color 0.2s; }
.panel__call:hover { background: rgb(255 255 255 / 0.1); border-color: var(--gold); }
.panel__intro h1 { margin-top: 14px; color: #fff; font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1.12; letter-spacing: -0.01em; }
.panel__lead { margin: 12px 0 0; max-width: 34ch; font-size: 15.5px; color: rgb(255 255 255 / 0.75); }
.panel__progress, .panel__foot { display: none; }

@media (min-width: 1024px) {
  .panel { position: sticky; top: 0; height: 100vh; }
  .panel__media { bottom: 45%; }
  .panel__media::after { background: linear-gradient(180deg, rgb(7 22 52 / 0.35) 0%, rgb(7 22 52 / 0.75) 55%, var(--navy-ink) 100%); }
  .panel__inner { height: 100%; gap: 0; padding: 32px 44px 28px; overflow-y: auto; scrollbar-width: none; }
  .panel__inner::-webkit-scrollbar { display: none; }
  .panel__call { display: none; }
  .panel__intro { margin-top: auto; padding-top: 40px; }
  .panel__intro h1 { font-size: clamp(2.2rem, 3vw, 2.9rem); }
  .panel__progress { display: block; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgb(255 255 255 / 0.12); }
  .panel__foot { display: block; margin-top: 30px; font-size: 13px; line-height: 1.6; }
  .panel__foot p { margin: 0 0 10px; color: rgb(255 255 255 / 0.5); }
  .panel__foot a { text-decoration: none; color: rgb(255 255 255 / 0.7); }
  .panel__foot a b { color: var(--gold-light); font-weight: 600; }
  .panel__foot a:hover b { text-decoration: underline; }
}

.meter { height: 3px; border-radius: 999px; background: rgb(255 255 255 / 0.12); overflow: hidden; }
.meter span, .actionbar__bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width 0.6s var(--ease); }
.meter__txt { margin: 10px 0 18px; font-size: 13px; color: rgb(255 255 255 / 0.55); }
.meter__txt b { font-family: var(--serif); font-size: 15px; font-weight: 400; color: #fff; }

/* Steps (desktop panel) */
.steps { display: grid; gap: 6px; }
.stp__head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 0; border: 0; background: none; text-align: left; color: rgb(255 255 255 / 0.55); cursor: pointer; }
.stp__num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.25); font-family: var(--serif); font-size: 13px; transition: all 0.3s; }
.stp__head b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 400; color: rgb(255 255 255 / 0.7); }
.stp__head small { font-size: 12px; color: rgb(255 255 255 / 0.4); }
.stp.is-current .stp__num { border-color: var(--gold); background: var(--gold); color: var(--navy-ink); }
.stp.is-current .stp__head b { color: #fff; }
.stp.is-complete .stp__num { border-color: var(--gold); color: var(--gold); }
.stp__list { display: none; margin: 4px 0 10px 16px; padding-left: 30px; border-left: 1px solid rgb(255 255 255 / 0.12); }
.stp.is-current .stp__list { display: grid; gap: 1px; }
.sub-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 0; border: 0; background: none; text-align: left; font-size: 14px; color: rgb(255 255 255 / 0.55); cursor: pointer; transition: color 0.2s; }
.sub-item:hover { color: #fff; }
.sub-item.is-active { color: #fff; }
.sub-item__dot { flex: none; position: relative; width: 14px; height: 14px; margin-left: -37px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.3); background: var(--navy-ink); transition: all 0.25s; }
.sub-item.is-active .sub-item__dot { border-color: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.12); }
.sub-item.is-done .sub-item__dot { border-color: var(--gold); background: var(--gold); }
.sub-item.is-done .sub-item__dot::after { content: ""; position: absolute; left: 3.5px; top: 3px; width: 5px; height: 3px; border: 1.5px solid var(--navy-ink); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.sub-item__opt { margin-left: auto; font-size: 11px; letter-spacing: 0.06em; color: rgb(255 255 255 / 0.3); }

/* ================= Content canvas ================= */
.content { min-width: 0; padding: 32px 18px 0; }
#form, .done, .life { max-width: 800px; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .content { padding: 44px 32px 0; } }
@media (min-width: 1024px) { .content { padding: 64px 56px 0; } }
@media (min-width: 1400px) { .content { padding: 72px 80px 0; } }

.page-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-head h2 { margin-top: 12px; font-size: clamp(2rem, 4.5vw, 2.7rem); letter-spacing: -0.01em; }
.page-head p:last-child { margin: 8px 0 0; color: var(--muted); }
@media (min-width: 1024px) { #page-kicker { display: none; } .page-head h2 { margin-top: 0; } }
.page { animation: rise 0.5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Sections: separated by hairlines, no boxes */
.sec { padding: 36px 0 38px; border-bottom: 1px solid var(--line); }
.sec__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 22px; }
.num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold-deep); transition: color 0.3s; }
.sec.is-done .num { color: var(--gold); }
.sec.is-done .num::after { content: " ✓"; font-style: normal; font-size: 13px; }
.sec__head h3 { font-size: 1.45rem; letter-spacing: -0.005em; }
.sec__head p { margin: 0; font-size: 13px; letter-spacing: 0.04em; color: var(--faint); }
@media (min-width: 640px) { .sec__head p { margin-left: auto; } }
.sec__body { display: grid; gap: 20px; }

/* Grids */
.grid { display: grid; gap: 18px 20px; }
.stack { display: grid; gap: 18px; padding-top: 6px; animation: rise 0.4s var(--ease) both; }
.span-all { grid-column: 1 / -1; }
.g2, .g-spouse, .g-declare { grid-template-columns: 1fr; }
.g-birth { grid-template-columns: 1fr 1fr; }
.g-birth .f-nat { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .g2 { grid-template-columns: 1fr 1fr; }
  .g-spouse { grid-template-columns: 2fr 2fr 1fr; }
  .g-declare { grid-template-columns: 2fr 1fr 1.4fr; }
  .g-birth { grid-template-columns: 1.4fr 0.7fr 1fr; }
  .g-birth .f-nat { grid-column: span 2; }
}
#post-grid:has(> [data-field="postOther"][hidden]) { grid-template-columns: 1fr; }

/* Fields */
.field { min-width: 0; }
.field > label:not(.drop), .label, .label-row > label:first-child { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.field i, .photo-row i { font-style: normal; color: var(--gold-deep); }
.label-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.label-row > label:first-child { margin: 0; }
input:not([type="checkbox"]):not([type="file"]), select, textarea {
  display: block; width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--field); border-radius: var(--r-sm); background: #fff; font-size: 16px; color: var(--ink); outline: none; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
input:hover:not(:focus):not(:disabled), select:hover:not(:focus), textarea:hover:not(:focus):not(:disabled) { border-color: #bcc7db; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgb(18 58 140 / 0.1); }
select { padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230A1F4D' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 18px center; }
textarea { height: auto; min-height: 84px; padding: 14px 16px; resize: vertical; }
input[type="date"], input[type="month"] { line-height: 50px; }
input::placeholder, textarea::placeholder { color: #a9b2c7; }
input:disabled, textarea:disabled { background: var(--tint); color: var(--muted); }
.upper { text-transform: uppercase; }
.sig { font-family: var(--serif) !important; font-style: italic; font-size: 19px !important; color: var(--navy-deep) !important; }
.readout { display: flex; align-items: center; height: 52px; padding: 0 16px; border-radius: var(--r-sm); background: var(--tint); font-weight: 600; color: var(--navy-deep); }
.rs { position: relative; }
.rs span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.rs input { padding-left: 36px !important; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--field); transition: background 0.25s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); transition: transform 0.25s var(--ease); }
.switch input:checked + .switch__ui { background: var(--navy-deep); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); background: var(--gold-light); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Errors */
.err { margin: 7px 0 0; font-size: 13px; font-weight: 500; color: var(--red); }
.is-invalid input:not([type="checkbox"]), .is-invalid select, .is-invalid textarea { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgb(192 57 43 / 0.08); }
.sec-err { margin: 0; padding: 12px 16px; border-left: 3px solid var(--red); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: #fdf1ef; color: var(--red); font-size: 14px; font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease), box-shadow 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary, .btn--gold { background: var(--gold); color: var(--navy-ink); box-shadow: 0 8px 20px -10px rgb(201 162 39 / 0.9); }
.btn--primary:hover, .btn--gold:hover { background: var(--gold-light); }
.done .btn--primary { background: var(--navy-deep); color: #fff; box-shadow: none; }
.done .btn--primary:hover { background: var(--navy); }
.btn--ghost { background: transparent; border-color: rgb(255 255 255 / 0.25); color: rgb(255 255 255 / 0.85); padding: 0 18px; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn[disabled] { opacity: 0.65; cursor: wait; transform: none; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--royal); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(26 79 191 / 0.3); }
.link-btn:hover { text-decoration-color: currentColor; }
.add { justify-self: start; display: inline-flex; align-items: center; height: 40px; padding: 0 4px; border: 0; background: none; color: var(--navy); font-size: 14.5px; font-weight: 700; cursor: pointer; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.add:hover { color: var(--royal); border-bottom-color: currentColor; }

/* Resume drop zone */
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px 28px; border: 1.5px dashed #c9d2e3; border-radius: var(--r); background: var(--tint); text-align: center; cursor: pointer; transition: border-color 0.25s, background 0.25s; }
.drop:hover, .drop.is-drag { border-color: var(--navy); background: var(--navy-soft); }
.drop__art svg { transition: transform 0.4s var(--ease); }
.drop:hover .drop__art svg, .drop.is-drag .drop__art svg { transform: translateY(-4px) rotate(-2deg); }
.drop__title { margin-top: 8px; font-family: var(--serif); font-size: 17px; color: var(--navy-deep); }
.drop__title u { color: var(--royal); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.drop__sub { font-size: 13px; color: var(--muted); }
.is-invalid .drop { border-color: var(--red); background: #fdf6f5; }

.file { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--r); background: var(--tint); animation: rise 0.35s var(--ease) both; }
.file__thumb { flex: none; display: grid; place-items: center; width: 52px; height: 62px; overflow: hidden; border-radius: 8px; background: var(--navy-deep); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; box-shadow: 0 4px 10px -4px rgb(10 31 77 / 0.4); }
.file__thumb img { width: 100%; height: 100%; object-fit: cover; }
.file__thumb.t-pdf { background: #c8463d; }
.file__thumb.t-doc { background: #2f5fbf; }
.file__meta { flex: 1; min-width: 0; }
.file__meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file__meta small { font-size: 13px; font-weight: 600; color: var(--green); }
.file__btn { flex: none; font-size: 14px; font-weight: 700; color: var(--royal); cursor: pointer; }
.file__btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.file__x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--faint); cursor: pointer; }
.file__x:hover { background: #fdecea; color: var(--red); }

/* Photo */
.photo-row { display: flex; align-items: center; gap: 20px; }
.avatar { position: relative; flex: none; display: grid; place-items: center; width: 92px; height: 110px; overflow: hidden; border: 1.5px dashed #c9d2e3; border-radius: 12px; background: var(--tint); color: var(--faint); cursor: pointer; transition: border-color 0.2s; }
.avatar:hover { border-color: var(--navy); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.has-img { border: 2px solid var(--gold); box-shadow: 0 8px 20px -10px rgb(10 31 77 / 0.5); }
.photo-row__txt { display: grid; gap: 2px; justify-items: start; }
.photo-row__txt b { font-weight: 600; }
.photo-row__txt small { font-size: 13px; color: var(--muted); }
.is-invalid .avatar { border-color: var(--red); background: #fdf6f5; }

/* Languages */
.langs { display: grid; }
.langs__head { display: none; }
.lr { display: grid; grid-template-columns: 1fr 40px; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--tint); }
.lr + .lr { margin-top: 10px; }
.lr__name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lr__n { flex: none; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--gold-deep); width: 16px; }
.lr__name input { height: 44px !important; }
.lr__ticks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 2px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.tick__box { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--field); background: #fff; transition: all 0.2s var(--ease); }
.tick:hover .tick__box { border-color: var(--navy); }
.tick[aria-pressed="true"] { border-color: rgb(10 31 77 / 0.2); color: var(--navy-deep); }
.tick[aria-pressed="true"] .tick__box { border-color: var(--navy-deep); background: var(--navy-deep); transform: scale(1.06); }
.tick[aria-pressed="true"] .tick__box::after { content: ""; width: 9px; height: 5px; margin-top: -3px; border: 2px solid var(--gold-light); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.lr__x { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 40px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--faint); cursor: pointer; }
.lr__x:hover { background: #fdecea; color: var(--red); }
@media (min-width: 640px) {
  .langs { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
  .langs__head, .lr { display: grid; grid-template-columns: minmax(160px, 1.7fr) repeat(4, minmax(64px, 1fr)) 48px; align-items: center; gap: 0; }
  .langs__head { padding: 12px 18px; background: var(--tint); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
  .langs__head span:not(:first-child) { text-align: center; }
  .lr { padding: 10px 18px; border-radius: 0; background: #fff; }
  .lr + .lr { margin-top: 0; border-top: 1px solid var(--line); }
  .lr__ticks { display: contents; }
  .tick { justify-self: center; padding: 0; border: 0; background: none; }
  .tick__label { display: none; }
  .tick__box { width: 28px; height: 28px; }
  .lr__name { padding-right: 18px; }
  .lr__x { grid-column: 6; justify-self: end; }
}

/* Chips & segmented */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--field); border-radius: 999px; background: #fff; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.chip:hover { border-color: var(--navy); color: var(--navy-deep); }
.chip[aria-pressed="true"] { border-color: var(--navy-deep); background: var(--navy-deep); color: #fff; }
.chip[aria-pressed="true"]::before { content: "✓"; color: var(--gold-light); font-weight: 800; }

.seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; padding: 5px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
@media (min-width: 640px) { .seg { width: 380px; } }
.seg button { height: 44px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.25s var(--ease); }
.seg button:hover { color: var(--navy-deep); }
.seg button[aria-checked="true"] { background: var(--navy-deep); color: #fff; box-shadow: 0 6px 14px -8px rgb(10 31 77 / 0.8); }
.has-err .seg { border-color: var(--red); }

/* Repeater rows */
.list { display: grid; gap: 12px; }
.row { padding: 18px; border-radius: var(--r); background: var(--tint); }
.row__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.row__label { min-width: 0; overflow: hidden; font-family: var(--serif); font-size: 15px; color: var(--navy-deep); white-space: nowrap; text-overflow: ellipsis; }
.remove { border: 0; background: none; padding: 6px 10px; border-radius: 999px; color: var(--faint); font-size: 13px; font-weight: 600; cursor: pointer; }
.remove:hover { background: #fdecea; color: var(--red); }
.row .grid { gap: 14px 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--navy-deep); }

.g-child { grid-template-columns: 1fr 1fr; } .g-child .w { grid-column: 1 / -1; }
.g-acad { grid-template-columns: 1fr 1fr; } .g-acad .w, .g-acad .w2 { grid-column: 1 / -1; }
.g-act { grid-template-columns: 1fr 96px; } .g-act .w { grid-column: 1 / -1; }
.g-job { grid-template-columns: 1fr 1fr; } .g-job .w, .g-job .wa { grid-column: 1 / -1; }
.g-ref { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .g-child { grid-template-columns: 2fr 0.7fr 1fr 2fr; } .g-child .w { grid-column: span 1; }
  .g-acad { grid-template-columns: 3fr 1fr 2fr; } .g-acad .w2 { grid-column: span 2; }
  .g-act { grid-template-columns: 2fr 3fr 110px; } .g-act .w { grid-column: span 1; }
  .g-job { grid-template-columns: repeat(4, 1fr); } .g-job .w { grid-column: span 2; }
  .g-ref { grid-template-columns: 1fr 1fr; }
}

/* Declaration */
.declare { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--tint); cursor: pointer; transition: background 0.25s; }
.declare input { position: absolute; opacity: 0; pointer-events: none; }
.declare__box { flex: none; position: relative; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 3px; border: 1.5px solid #bcc7db; border-radius: 6px; background: #fff; transition: all 0.2s var(--ease); }
.declare input:checked + .declare__box { border-color: var(--navy-deep); background: var(--navy-deep); }
.declare input:checked + .declare__box::after { content: ""; width: 10px; height: 5px; margin-top: -3px; border: 2px solid var(--gold-light); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.declare input:focus-visible + .declare__box { outline: 2px solid var(--gold); outline-offset: 3px; }
.declare span:last-child { font-family: var(--serif); font-style: italic; font-size: 16.5px; line-height: 1.7; color: var(--navy-deep); }
.declare:has(input:checked) { background: var(--gold-soft); }
.has-err .declare { box-shadow: inset 0 0 0 1.5px var(--red); }

/* Floating action bar */
.form-error { margin: 22px 0 0; padding: 12px 16px; border-left: 3px solid var(--red); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: #fdf1ef; color: var(--red); font-weight: 500; }
.actionbar { position: sticky; bottom: 12px; z-index: 40; margin: 28px -6px 0; border-radius: 18px; background: rgb(7 22 52 / 0.96); backdrop-filter: blur(12px); box-shadow: 0 20px 40px -18px rgb(7 22 52 / 0.7); overflow: hidden; }
.actionbar__bar { height: 3px; background: rgb(255 255 255 / 0.1); }
.actionbar__bar span { border-radius: 0; }
.actionbar__row { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; }
.actionbar__note { font-size: 13.5px; color: rgb(255 255 255 / 0.6); white-space: nowrap; }
.actionbar__note b { font-family: var(--serif); font-weight: 400; color: #fff; }
.actionbar .btn--primary, .actionbar .btn--gold { margin-left: auto; }
.actionbar .btn--ghost + .actionbar__note { margin-left: 4px; }
@media (min-width: 640px) { .actionbar { margin: 32px 0 0; } }
@media (max-width: 380px) { .actionbar__note { display: none; } }

/* Success */
.done { display: grid; justify-items: center; gap: 14px; padding: 72px 20px 64px; text-align: center; animation: rise 0.6s var(--ease) both; }
.done__seal { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 8px; border-radius: 50%; background: var(--navy-deep); color: var(--gold-light); box-shadow: 0 0 0 8px var(--gold-soft), 0 0 0 9px rgb(201 162 39 / 0.4); }
.done .eyebrow { justify-content: center; }
.done .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.done h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.done p { margin: 0; max-width: 470px; color: var(--muted); }
.done b { color: var(--ink); }
.done code { padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--navy-deep); font-weight: 700; }
.done .btn { margin-top: 10px; }

/* Life at Yajur (secondary) */
.life { margin-top: 64px; padding: 36px 0 32px; border-top: 1px solid var(--line); }
.life__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-top: 20px; }
@media (min-width: 900px) { .life__grid { grid-template-columns: repeat(4, 1fr); } }
.life__grid span { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--gold-deep); }
.life__grid b { display: block; margin-top: 4px; font-family: var(--serif); font-weight: 400; font-size: 16px; color: var(--navy-deep); }
.life__grid p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.life__addr { margin: 32px 0 0; font-size: 12px; color: var(--faint); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
.panel__logo img { height: 52px; }
@media (min-width: 1024px) { .panel__logo img { height: 64px; } }

.panel__photo { display: none; }

/* Refined editorial application theme */
:root { --navy-deep: #142b42; --navy-ink: #102639; --navy: #254b67; --royal: #254b67; --gold: #bea474; --gold-light: #e0c99f; --gold-deep: #8b7046; --gold-soft: #f5efe3; --ink: #243544; --muted: #687783; --faint: #74818c; --line: #e7e8e5; --field: #dce1e3; --tint: #f7f8f7; --r: 16px; --r-sm: 8px; }
body { background: #f6f5f1; }
.content { padding-top: 28px; }
.application-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 800px; margin: 0 auto 44px; font-size: 12px; }
.application-topline a { text-decoration: none; font-weight: 600; }
.application-topline a span { margin-left: 8px; font-weight: 400; color: var(--muted); }
.draft-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.draft-status > span { width: 6px; height: 6px; border-radius: 50%; background: #658675; }
.application-label { margin-bottom: 22px; font-size: 10px; font-weight: 700; letter-spacing: .19em; color: var(--gold-deep); }
.page-head { position: relative; padding-bottom: 28px; border-bottom: 0; }
.page-head h2 { font-size: clamp(2.5rem, 4.5vw, 3.5rem); letter-spacing: -.055em; }
.page-head #page-kicker { display: inline-flex; position: absolute; right: 0; top: 0; padding: 5px 12px; border: 1px solid #e0d9cb; border-radius: 30px; font-size: 10px; letter-spacing: .08em; }
#page-kicker::before { display: none; }
.page-head p:last-of-type { margin-top: 14px; font-size: 16px; }
.application-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 12px; color: var(--muted); }
.application-meta span + span::before { content: ''; display: inline-block; height: 4px; width: 4px; border-radius: 50%; background: var(--gold); margin: 0 12px 3px 0; }
.form-guidance { display: flex; align-items: center; gap: 14px; padding: 18px 0 24px; margin-bottom: 8px; border-top: 1px solid #dfdfd7; }
.guidance-icon { display: grid; place-items: center; width: 27px; height: 27px; flex-shrink: 0; border: 1px solid #c7b58f; border-radius: 50%; font: italic 16px Georgia, serif; color: var(--gold-deep); }
.form-guidance p { margin: 0; font-size: 14px; font-weight: 600; }
.form-guidance small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--muted); }
.guidance-tag { margin-left: auto; font-size: 9px; letter-spacing: .13em; color: var(--muted); white-space: nowrap; }
.page { display: grid; gap: 20px; }
.sec { padding: 28px; border: 1px solid #e5e7e3; border-radius: var(--r); background: #fff; box-shadow: 0 3px 9px rgb(25 43 51 / .025); }
.sec__head { align-items: center; gap: 12px; margin-bottom: 24px; }
.num { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border: 1px solid #e7e0d3; border-radius: 8px; background: #faf7f1; font: 12px var(--sans); color: var(--gold-deep); }
.sec.is-done .num::after { display: none; }
.sec.is-done .num { background: var(--gold-soft); border-color: var(--gold); }
.sec__head h3 { font-size: 20px; letter-spacing: -.025em; }
.sec__head p { font-size: 12px; letter-spacing: 0; color: var(--muted); }
input:not([type='checkbox']):not([type='file']), select, textarea { background-color: #fcfcfb; font-size: 15px; }
input:focus, select:focus, textarea:focus { background-color: #fff; box-shadow: 0 0 0 3px rgb(37 75 103 / .08); }
input::placeholder, textarea::placeholder { color: #89949d; }
.drop { position: relative; padding: 23px; background: #f9faf9; border-color: #cfd8dc; }
.drop__art svg { width: 72px; height: 60px; }
.drop__title { margin-top: 5px; font-family: var(--sans); font-size: 15px; font-weight: 600; }
.drop__sub { max-width: 42ch; font-size: 12px; }
.photo-row { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.avatar { width: 72px; height: 84px; }
.btn { border-radius: 9px; font-size: 14px; }
.actionbar { border: 1px solid #dedfd9; background: rgb(255 255 255 / .96); border-radius: 12px; box-shadow: 0 8px 32px rgb(16 38 57 / .12); bottom: max(16px, env(safe-area-inset-bottom)); }
.actionbar__bar { background: #e9e9e3; height: 2px; }
.actionbar__note, .actionbar__note b { color: var(--muted); }
.actionbar .btn--primary, .actionbar .btn--gold { background: var(--navy-deep); color: #fff; box-shadow: none; }
.actionbar .btn--primary:hover, .actionbar .btn--gold:hover { background: #254b67; }
.btn--ghost { color: var(--navy-deep); border-color: var(--field); }
.btn--ghost:hover { color: var(--navy-deep); border-color: var(--navy); }
.panel__rings { opacity: .3; }
.life { margin-top: 44px; padding-bottom: 100px; }
@media (min-width: 1024px) {
  .app { grid-template-columns: minmax(330px, 32%) 1fr; }
  .panel { background: #102639; }
  .panel__inner { padding: 28px 36px; }
  .panel__logo img { height: 54px; }
  .panel__intro { margin-top: 30px; }
  .panel__photo { height: clamp(160px, 23vh, 240px); margin-bottom: 28px; padding: 0; border-radius: 10px; background: none; box-shadow: none; overflow: hidden; }
  .panel__photo img { border-radius: 10px; object-position: 55% 25%; }
  .panel__photo::after { inset: 0; border-radius: 10px; background: linear-gradient(0deg, rgb(16 38 57 / .25), transparent 65%); }
  .panel__intro h1 { font-size: clamp(2rem, 2.7vw, 2.8rem); line-height: 1.2; letter-spacing: -.035em; }
  .panel__lead { font-size: 14px; line-height: 1.7; color: #bac7cf; }
  .panel__intro .eyebrow { font-size: 10px; letter-spacing: .17em; }
  .panel__progress { margin-top: 28px; padding-top: 22px; }
  .stp__head b { font-family: var(--sans); font-size: 14px; font-weight: 600; }
  .stp__num { width: 30px; height: 30px; font-family: var(--sans); font-size: 12px; }
  .sub-item { font-size: 12px; padding: 5px 0; }
  .panel__foot { margin-top: auto; padding-top: 26px; font-size: 12px; }
  .panel__foot p { color: #a7b7c2; }
  .content { padding: 28px 44px 0; }
}
@media (min-width: 1400px) { .content { padding-left: 72px; padding-right: 72px; } .panel__inner { padding-left: 44px; padding-right: 44px; } }
@media (max-width: 1023px) { .panel__inner { padding: 24px 28px 32px; gap: 30px; } .panel__intro h1 { max-width: 12ch; } .panel__lead { max-width: 42ch; } .panel__media img { object-position: 65% 30%; } .application-topline { margin-bottom: 30px; } }
@media (max-width: 639px) { .content { padding: 24px 16px 0; } .sec { padding: 22px 18px; } .application-topline { font-size: 11px; } .draft-status { max-width: 105px; font-size: 10px; } .application-label { max-width: 19ch; font-size: 9px; } .guidance-tag { display: none; } .application-meta { gap: 6px; font-size: 11px; } .application-meta span { width: 100%; } .application-meta span + span::before { display: none; } .sec__head p { width: 100%; padding-left: 42px; } .drop { padding: 20px 12px; } .drop__title { font-size: 14px; } .photo-row { gap: 14px; } .photo-row__txt small { font-size: 11px; } .page { gap: 16px; } .life__grid { gap: 24px 16px; } }

/* ---- Position: tappable role buttons (no dropdown) ---- */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .roles { display: flex; flex-wrap: wrap; gap: 8px; } }
.role { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--field); border-radius: 999px; background: #fcfcfb; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s; }
.role:hover { border-color: var(--navy); }
.role[aria-checked="true"] { border-color: var(--navy-deep); background: var(--navy-deep); color: #fff; box-shadow: 0 6px 14px -8px rgb(16 38 57 / 0.7); }
.role[aria-checked="true"]::before { content: "✓"; color: var(--gold-light); font-weight: 800; }
.role--other { border-style: dashed; color: var(--muted); }
.is-invalid .role { border-color: rgb(192 57 43 / 0.5); }
@media (max-width: 380px) { .role { font-size: 13px; padding: 8px 10px; } }

/* Single page: only Submit in the action bar */
.actionbar .btn--gold { margin-left: auto; }
@media (max-width: 559px) { .actionbar .btn--gold { flex: 1; } .actionbar__row { gap: 14px; } }
/* Phones: even tiles instead of tall pills */
@media (max-width: 639px) {
  .role { justify-content: flex-start; min-height: 48px; padding: 8px 12px; border-radius: var(--r-sm); font-size: 13.5px; text-align: left; }
  .role--other { justify-content: center; }
}

/* ================= Typography: Fraunces (headings) + Inter (UI & body) ================= */
:root {
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body { font-family: var(--sans); font-size: 15.5px; line-height: 1.6; letter-spacing: -0.006em; font-feature-settings: "cv11", "ss03"; text-rendering: optimizeLegibility; }
h1, h2, h3, .drop__title, .row__label, .declare span:last-child, .sig, .life__grid b, .stp__head b { font-optical-sizing: auto; }
h1, h2 { font-weight: 400; }
h3 { font-weight: 500; }
em { font-weight: 400; }

/* Headings */
.panel__intro h1 { font-size: clamp(2.1rem, 6.5vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; }
@media (min-width: 1024px) { .panel__intro h1 { font-size: clamp(2.1rem, 2.6vw, 2.75rem); } }
.page-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; }
.sec__head h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; }
.done h2 { letter-spacing: -0.025em; }

/* Body copy & UI */
.panel__lead, .page-head p:last-of-type { font-size: 15px; line-height: 1.65; letter-spacing: -0.005em; }
.field > label:not(.drop), .label, .label-row > label:first-child { font-size: 13px; font-weight: 600; letter-spacing: -0.003em; }
input:not([type='checkbox']):not([type='file']), select, textarea { font-family: var(--sans); font-size: 15px; letter-spacing: -0.006em; }
.btn { font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }
.eyebrow, .application-label, .guidance-tag, .langs__head { font-family: var(--sans); font-weight: 600; }
.sec__head p, .drop__sub, .photo-row__txt small, .err, .sec-err { letter-spacing: -0.003em; }
.drop__title { font-family: var(--sans); font-weight: 600; }
.row__label { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.declare span:last-child { font-family: var(--serif); font-size: 16px; }
.sig { font-family: var(--serif) !important; font-style: italic; font-weight: 400; }
.guidance-icon { font: italic 500 15px var(--serif); }

/* Numbers line up neatly */
.num, .meter__txt b, .actionbar__note b, .readout, .lr__n, .life__grid span, .done code { font-variant-numeric: tabular-nums lining-nums; }
.num { font-family: var(--sans); font-weight: 600; font-size: 11.5px; font-style: normal; }
.meter__txt b, .actionbar__note b { font-family: var(--sans); font-weight: 600; }
.lr__n, .life__grid span { font-family: var(--serif); font-style: italic; }

/* ================= Mobile polish ================= */
/* Inputs in a row line up at the bottom even when one label wraps */
.grid { align-items: end; }
.g-job .check { align-self: center; }
@media (max-width: 639px) {
  /* 16px text stops iOS Safari zooming into fields on tap */
  input:not([type='checkbox']):not([type='file']), select, textarea { font-size: 16px; height: 50px; }
  textarea { height: auto; min-height: 88px; }
  .application-label { max-width: none; font-size: 10px; letter-spacing: 0.16em; margin-bottom: 14px; }
  .page-head h2 { font-size: 2.15rem; }
  .page-head p:last-of-type { font-size: 15px; }
  .application-topline { margin-bottom: 26px; }
  .form-guidance { align-items: flex-start; }
  .sec { padding: 20px 16px 22px; border-radius: 14px; }
  .sec__head { margin-bottom: 18px; }
  .sec__head h3 { font-size: 1.15rem; }
  .sec__body { gap: 16px; }
  .row { padding: 14px; }
  .row .grid { gap: 12px; }
  .g-birth { grid-template-columns: 1.55fr 1fr; }
  .photo-row { align-items: center; }
  .photo-row__txt b { font-size: 15px; }
  .drop { padding: 22px 14px; }
  .drop__art svg { width: 64px; height: 54px; }
  .file { gap: 12px; padding: 12px; }
  .lr { padding: 12px; }
  .tick { font-size: 12px; padding: 8px 0; }
  .seg button { font-size: 14.5px; }
  .actionbar { margin-left: -4px; margin-right: -4px; }
  .actionbar__row { padding: 10px; }
  .life__grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .life__grid p { font-size: 13px; }
}
@media (max-width: 374px) {
  .content { padding-left: 12px; padding-right: 12px; }
  .sec { padding: 18px 14px 20px; }
  .tick { font-size: 11px; }
  .tick__box { width: 22px; height: 22px; }
  .panel__intro h1 { font-size: 1.95rem; }
}
/* Header trimmed: give the title room at the top */
.content > #form { padding-top: 8px; }
@media (min-width: 1024px) { .content { padding-top: 56px; } }

/* ================= One consistent text font =================
   Fraunces only for the big headings and section titles;
   everything you read or type is Inter, upright. */
.declare span:last-child { font-family: var(--sans); font-style: normal; font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--ink); }
.sig, input.sig { font-family: var(--sans) !important; font-style: normal !important; font-size: 16px !important; font-weight: 500; color: var(--ink) !important; letter-spacing: -0.006em; }
.row__label { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: -0.006em; }
.lr__n { font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 600; color: var(--gold-deep); }
.guidance-icon { font: 600 13px var(--sans); font-style: normal; }
.drop__title, .stp__head b, .meter__txt b { font-family: var(--sans); font-style: normal; }
/* Life at Yajur removed: keep space under the form for the floating bar */
#form { padding-bottom: 40px; }

/* =====================================================================
   SIDE PANEL — final design
   Desktop: photo header → headline → progress card → help card.
   Phones: photo banner with the headline (progress/help hidden).
   ===================================================================== */
.panel__hero { display: none; }
.pp__top { display: flex; align-items: baseline; justify-content: space-between; }
.toc__list { list-style: none; margin: 0; padding: 0; }

@media (min-width: 1024px) {
  .app { grid-template-columns: clamp(360px, 30vw, 440px) 1fr; }
  .panel { position: sticky; top: 0; height: 100vh; background: #0f2438; overflow: hidden; }
  .panel__media, .panel__photo, .panel__rings { display: none !important; }

  .panel__inner { position: relative; display: flex; flex-direction: column; gap: 0; height: 100%; padding: 0 32px 24px; overflow-y: auto; scrollbar-width: none; }
  .panel__inner::-webkit-scrollbar { display: none; }

  /* Photo header, full-bleed, fading into navy */
  .panel__hero { display: block; position: relative; flex: none; margin: 0 -32px; height: clamp(170px, 26vh, 250px); overflow: hidden; }
  .panel__hero img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 22%; }
  .panel__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(15 36 56 / 0.55) 0%, rgb(15 36 56 / 0.05) 35%, rgb(15 36 56 / 0.35) 70%, #0f2438 100%); }
  .panel__top { position: absolute; top: 20px; left: 32px; right: 32px; z-index: 2; }
  .panel__logo img { height: 46px; width: auto; filter: drop-shadow(0 2px 8px rgb(0 0 0 / 0.35)); }

  /* Headline */
  .panel__intro { margin: 6px 0 0; padding: 0; }
  .panel__intro .eyebrow { color: var(--gold-light); font-size: 10.5px; letter-spacing: 0.2em; }
  .panel__intro .eyebrow::before { width: 22px; }
  .panel__intro h1 { margin-top: 10px; color: #fff; font-size: clamp(1.95rem, 2.4vw, 2.45rem); line-height: 1.1; letter-spacing: -0.025em; text-shadow: none; }
  .panel__intro h1 em { color: var(--gold-light); }
  .panel__lead { margin-top: 10px; max-width: 34ch; font-size: 14px; line-height: 1.6; color: rgb(255 255 255 / 0.68); text-shadow: none; }

  /* Progress card */
  .panel__progress { display: block; margin-top: 22px; padding: 18px 18px 10px; border: 1px solid rgb(255 255 255 / 0.09); border-top: 1px solid rgb(255 255 255 / 0.09); border-radius: 16px; background: rgb(255 255 255 / 0.04); }
  .pp__top span { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(255 255 255 / 0.55); }
  .pp__top b { font-family: var(--sans); font-size: 20px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
  .panel__progress .meter { height: 4px; margin: 10px 0 12px; background: rgb(255 255 255 / 0.1); }

  .toc__list { display: grid; gap: 2px; }
  .toc .sub-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 7px 10px; border: 0; border-radius: 10px; background: none; color: rgb(255 255 255 / 0.62); font-size: 13.5px; text-align: left; cursor: pointer; transition: background 0.2s, color 0.2s; }
  .toc .sub-item:hover { background: rgb(255 255 255 / 0.05); color: #fff; }
  .toc__n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.18); font-size: 10.5px; font-weight: 600; color: rgb(255 255 255 / 0.55); font-variant-numeric: tabular-nums; transition: all 0.25s; }
  .toc__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .toc__tag { flex: none; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(255 255 255 / 0.3); }
  .toc .sub-item.is-active { background: rgb(255 255 255 / 0.08); color: #fff; }
  .toc .sub-item.is-active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--gold-light); }
  .toc .sub-item.is-active .toc__n { border-color: rgb(255 255 255 / 0.6); color: #fff; }
  .toc .sub-item.is-done .toc__n { border-color: var(--gold); background: var(--gold); color: transparent; position: relative; }
  .toc .sub-item.is-done .toc__n::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 5px; margin: -4px 0 0 -5px; border: 2px solid #0f2438; border-top: 0; border-right: 0; transform: rotate(-45deg); }
  .toc .sub-item.is-done { color: rgb(255 255 255 / 0.85); }
  .sub-item__dot { display: none; }

  /* Help card */
  .panel__foot { display: block; margin-top: auto; padding-top: 18px; }
  .help { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgb(255 255 255 / 0.09); border-radius: 14px; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
  .help:hover { background: rgb(255 255 255 / 0.05); border-color: rgb(224 201 159 / 0.4); }
  .help__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #0f2438; }
  .help__txt { display: grid; line-height: 1.3; }
  .help__txt small { font-size: 12px; color: rgb(255 255 255 / 0.55); }
  .help__txt b { font-size: 15px; font-weight: 600; color: #fff; letter-spacing: 0.01em; }
  .privacy { display: flex; align-items: center; gap: 8px; margin: 12px 2px 0; font-size: 11.5px; color: rgb(255 255 255 / 0.42); }
  .privacy svg { flex: none; color: var(--gold-light); }
}
/* Short laptop screens: tighten so the whole panel fits */
@media (min-width: 1024px) and (max-height: 820px) {
  .panel__hero { height: 150px; }
  .panel__intro h1 { font-size: 1.85rem; }
  .panel__lead { display: none; }
  .toc .sub-item { padding: 5px 10px; }
}
/* Phones/tablets: banner only */
@media (max-width: 1023px) {
  .panel__media { display: block; }
  .panel__progress, .panel__foot { display: none !important; }
}
/* Fit the whole panel on common laptop heights */
@media (min-width: 1024px) {
  .panel__hero { height: clamp(150px, 21vh, 230px); }
  .panel__logo img { height: 52px; }
  .panel__progress { margin-top: 18px; padding: 16px 14px 8px; }
  .toc .sub-item { padding: 5px 10px; }
  .panel__foot { padding-top: 14px; }
  .privacy { margin-top: 10px; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .panel__hero { height: 130px; }
  .panel__intro { margin-top: 2px; }
  .panel__intro h1 { margin-top: 6px; font-size: 1.75rem; }
  .panel__progress { margin-top: 14px; padding: 12px 12px 6px; }
  .panel__progress .meter { margin: 8px 0 8px; }
  .toc .sub-item { padding: 3px 10px; font-size: 13px; }
  .toc__n { width: 22px; height: 22px; }
  .help { padding: 9px 12px; }
  .help__icon { width: 32px; height: 32px; }
  .privacy { display: none; }
}
@media (min-width: 1024px) and (min-height: 821px) { .panel__hero { height: clamp(150px, 20vh, 230px); } }

/* =====================================================================
   Alignment & responsive pass
   ===================================================================== */
/* Wide desktops: a slightly wider panel and form so nothing floats */
@media (min-width: 1600px) {
  .app { grid-template-columns: 470px 1fr; }
  #form, .done { max-width: 880px; }
  .content { padding-left: 72px; padding-right: 72px; }
}
@media (min-width: 1024px) {
  .panel__logo img { height: 60px; }
  .panel__top { top: 18px; }
}

/* Phones & tablets: banner text lines up exactly with the form below */
@media (max-width: 1023px) {
  .panel__inner { padding: 20px 16px 26px; gap: 22px; }
  .panel__logo img { height: 50px; }
  .panel__call { width: 42px; height: 42px; }
  .panel__intro h1 { max-width: none; font-size: 2rem; line-height: 1.1; }
  .panel__lead { max-width: 40ch; font-size: 14.5px; line-height: 1.6; }
  .panel__intro .eyebrow { font-size: 10.5px; letter-spacing: 0.2em; }
  .panel__media::after { background: linear-gradient(180deg, rgb(15 36 56 / 0.35) 0%, rgb(15 36 56 / 0.6) 45%, rgb(15 36 56 / 0.94) 100%); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .panel__inner { padding: 26px 32px 34px; }
  .panel__logo img { height: 58px; }
  .panel__intro h1 { font-size: 2.6rem; }
  .panel__lead { font-size: 15.5px; }
  #form, .done { max-width: 720px; }
}
@media (max-width: 374px) {
  .panel__inner { padding-left: 12px; padding-right: 12px; }
  .panel__intro h1 { font-size: 1.8rem; }
}

/* Education row (Division removed):
   desktop  → Exam | Year  /  Institution  /  Subjects | % marks
   phones   → Exam / Institution / Subjects / Year + % marks side by side */
@media (max-width: 639px) {
  .g-acad > .w2, .g-acad > .w { grid-column: 1 / -1; }
  .g-acad > .field:nth-child(1) { order: 1; }
  .g-acad > .field:nth-child(3) { order: 2; }
  .g-acad > .field:nth-child(4) { order: 3; }
  .g-acad > .a-year { order: 4; grid-column: auto; }
  .g-acad > .a-pct { order: 5; grid-column: auto; }
}
/* Class X row (no subjects): Exam | Year | % on one line, Institution below */
@media (min-width: 640px) {
  .g-acad.no-subj { grid-template-columns: 3fr 1fr 1fr; }
  .g-acad.no-subj > .w2 { grid-column: span 1; }
  .g-acad.no-subj > .a-year { order: 2; }
  .g-acad.no-subj > .a-pct { order: 3; }
  .g-acad.no-subj > .w { order: 4; }
}
