/* The family page (Amendment 12; redesigned in Amendment 29 to the Amendment 26 standard, for parents).
   Warm, calm, premium Vita et Pax: the school's green and gold, the crest, EB Garamond headings, Open Sans text, on the
   cream paper of the staff portal. Mobile first: 390px is the design size, then iPad, then desktop. Large tap targets
   (48px), one clear next step at the top, the journey as six steps, forms and documents as tiles that tick. No
   external assets (the fonts are the portal's own files). Every colour pair is AA (measured in
   tests/test_amendment29.py). Works without JavaScript: family.js only adds the signature pad, autosave, the
   show-if questions and inline checks. */
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-Regular.woff2?v=73ea7b3ca0") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-SemiBold.woff2?v=b3253924d7") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-Bold.woff2?v=6e5ff9a88c") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-VF.woff2?v=8a24f85efd") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --g: #025920; --deep: #02461a; --forest: #013d17; --gold: #F2B84B; --goldInk: #7a5a0c; --goldWash: #fdf3dc;
  --ink: #253840; --navy: #1b2a5e; --cream: #faf7ef; --sheet: #fffdf8; --line: #e4dfd0; --stone: #d9d1bf;
  --well: #f6f2e8; --muted: #56626a; --red: #b3261e; --redBg: #fbe9e7; --tint: #eef5ef; --greenBg: #dfeee2;
  --amberBg: #fff4d6; --amberInk: #5c4200;
  --tap: 48px; --r-card: 16px; --r-control: 12px;
  --lift-1: 0 1px 1px rgba(37, 56, 64, .05), 0 2px 8px -2px rgba(37, 56, 64, .10);
  --lift-2: 0 1px 2px rgba(37, 56, 64, .06), 0 12px 30px -14px rgba(37, 56, 64, .30);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.55 "Open Sans", Arial, sans-serif; }
a { color: var(--g); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 2px #fff, 0 0 0 8px #fff; }
h1, h2, h3 { font-family: "EB Garamond", Georgia, serif; color: var(--g); line-height: 1.12; margin: 0 0 .35em; font-weight: 600; }
h1 { font-size: 2.15rem; font-weight: 700; letter-spacing: -.005em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.25rem; }
p { margin: .45rem 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--ink); padding: .7rem 1rem; z-index: 50; font-weight: 700; }
.skip:focus { left: .5rem; top: .5rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.i { width: 1em; height: 1em; vertical-align: -.12em; flex: none; }

/* ---- the room: header, ribbon, footer --------------------------------------------------------------------- */
.test-ribbon { margin: 0; background: var(--red); color: #fff; text-align: center; font-size: .82rem; padding: .35rem .8rem; letter-spacing: .02em; }
.top { background: var(--g); color: #fff; border-bottom: 4px solid var(--gold); }
.top-in { max-width: 44rem; margin: 0 auto; display: flex; align-items: center; gap: .8rem; padding: .75rem 1.1rem; }
.crest { width: 40px; height: 46px; }
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.school { font-family: "EB Garamond", Georgia, serif; font-size: 1.45rem; font-weight: 600; letter-spacing: .02em; }
.strap { color: var(--gold); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
main { display: block; max-width: 44rem; margin: 0 auto; padding: 1.2rem 1.1rem 2rem; }
main:focus { outline: none; }
.foot { background: var(--forest); color: #eef5ef; margin-top: 1.5rem; }
.foot-in { max-width: 44rem; margin: 0 auto; padding: 1.4rem 1.1rem 2rem; font-size: .95rem; }
.foot a { color: #fff; font-weight: 600; }
.foot .help-title { font-family: "EB Garamond", Georgia, serif; font-size: 1.35rem; color: var(--gold); margin: 0 0 .2rem; }
.foot .small { color: #d5e3d8; }

/* ---- the hero and the one next step ------------------------------------------------------------------------ */
.eyebrow { margin: 0 0 .25rem; color: var(--goldInk); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero { margin: .2rem 0 1.1rem; }
.hero h1 { font-size: 2.35rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .9rem; }
.hero-facts span { background: var(--sheet); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .75rem; font-size: .9rem; font-weight: 600; }
.lede { color: var(--muted); font-size: 1.02rem; max-width: 60ch; }
.lede.small { font-size: .95rem; margin-top: -.1rem; }
.next-card { background: var(--sheet); border-radius: var(--r-card); box-shadow: var(--lift-2); padding: 1.1rem 1.15rem 1.2rem;
  border-top: 5px solid var(--gold); margin: .8rem 0 0; }
.next-card.done { border-top-color: var(--g); }
.next-k { margin: 0; color: var(--goldInk); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.next-card.done .next-k { color: var(--g); }
.next-v { font-family: "EB Garamond", Georgia, serif; font-size: 1.6rem; line-height: 1.2; color: var(--ink); margin: .2rem 0 .8rem; }

/* ---- the journey: six steps ------------------------------------------------------------------------------------ */
.journey-wrap { margin: 0 0 1.6rem; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.journey li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; position: relative; font-size: .78rem; font-weight: 600; color: var(--muted); padding: 0 .1rem; }
.journey li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--stone); z-index: 0; }
.journey li:first-child::before { display: none; }
.journey li.done::before, .journey li.current::before { background: var(--g); }
.journey .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sheet); border: 2px solid var(--stone); font-size: .8rem; color: var(--muted); }
.journey li.done .dot { background: var(--g); border-color: var(--g); color: #fff; }
.journey li.current { color: var(--ink); }
.journey li.current .dot { background: var(--gold); border-color: var(--deep); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 4px var(--goldWash); }
.journey .lbl { line-height: 1.2; overflow-wrap: anywhere; }

/* ---- blocks and tiles -------------------------------------------------------------------------------------------- */
.block { margin: 1.8rem 0 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; border-bottom: 1px solid var(--stone); margin-bottom: .6rem; }
.block-head h2 { margin: 0 0 .25rem; }
.count { margin: 0; font-size: .85rem; font-weight: 700; color: var(--goldInk); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.tile { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--lift-1);
  padding: .95rem 1rem; display: grid; grid-template-columns: 1fr auto; gap: .5rem .8rem; align-items: center; }
.tile h3 { margin: 0; font-size: 1.28rem; }
.tile-sub { margin: .1rem 0 0; color: var(--muted); font-size: .92rem; }
.tile-files { margin: .25rem 0 0; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.tile .upload { grid-column: 1 / -1; }
.tile.sent, .tile.have_it, .tile.verified { background: var(--tint); border-color: #c9dccd; }
.tile.not_started, .tile.missing { border-left: 5px solid var(--gold); }
.tile.in_progress { border-left: 5px solid var(--g); }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--lift-1); padding: 1rem 1.05rem; margin: 0 0 .8rem; }
.card.ok { border-left: 5px solid var(--g); }
.big { font-size: 1.1rem; }
.empty { background: var(--well); border: 1px dashed var(--stone); border-radius: var(--r-card); padding: .9rem 1rem; color: var(--muted); }

/* ---- chips and messages ------------------------------------------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; font-weight: 700;
  background: #eef0f1; color: var(--ink); white-space: nowrap; }
.chip.ok { background: var(--greenBg); color: var(--deep); }
.chip.need { background: var(--amberBg); color: var(--amberInk); }
.chip.ntk { background: var(--well); color: var(--muted); font-weight: 600; font-size: .78rem; white-space: normal; }
.msg { display: flex; gap: .5rem; align-items: flex-start; background: var(--tint); border-left: 5px solid var(--g); padding: .75rem .95rem; border-radius: var(--r-control); margin: .7rem 0; }
.msg.error { display: block; background: var(--redBg); border-left-color: var(--red); color: #5f1511; }
.msg.error a { color: #5f1511; }
.msg.prefill { background: var(--goldWash); border-left-color: var(--gold); color: var(--ink); }
.msg .i { margin-top: .25rem; color: var(--g); }
.err-list { margin: .4rem 0 0; padding-left: 1.2rem; }

/* ---- buttons ---------------------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: var(--tap); padding: .6rem 1.2rem;
  border: 2px solid var(--g); border-radius: var(--r-control); background: var(--sheet); color: var(--g); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; margin: .25rem .4rem .25rem 0; transition: transform .12s var(--ease), background-color .12s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--g); color: #fff; }
.btn.primary:hover { background: var(--deep); border-color: var(--deep); }
.btn.big { width: 100%; font-size: 1.05rem; min-height: 54px; margin: 0; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.quiet { border-color: var(--stone); color: var(--ink); background: transparent; }
.btn.small { min-height: 44px; padding: .35rem .8rem; font-size: .92rem; }
.btn.link { border-color: transparent; background: transparent; text-decoration: underline; padding-left: .4rem; padding-right: .4rem; font-weight: 600; }
.btn.slot { width: 100%; justify-content: flex-start; }
.btn[aria-disabled="true"] { opacity: .55; }
.row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.row form { margin: 0; }

/* ---- uploads ------------------------------------------------------------------------------------------------------ */
.upload { margin: .3rem 0 0; }
.upload-pick { display: grid; gap: .5rem; }
.pick label, .pick-label { font-size: .9rem; margin: 0 0 .2rem; }
input[type=file] { width: 100%; min-height: var(--tap); font: inherit; font-size: .95rem; color: var(--ink); background: var(--well);
  border: 1.5px dashed var(--stone); border-radius: var(--r-control); padding: .45rem; }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; color: var(--g); background: var(--sheet); border: 2px solid var(--g);
  border-radius: 10px; min-height: 40px; padding: .3rem .9rem; margin-right: .7rem; cursor: pointer; }
@media (pointer: fine) { .upload-pick .pick.camera { display: none; } }
@media (pointer: coarse) { .upload-pick .camera input::file-selector-button { background: var(--g); color: #fff; } }

/* ---- visits --------------------------------------------------------------------------------------------------------- */
.visit-when { margin: 0 0 .3rem; font-size: 1.08rem; }
.visit-kind { display: block; font-family: "EB Garamond", Georgia, serif; color: var(--g); font-size: 1.3rem; font-weight: 600; }
.bring { background: var(--goldWash); border-radius: var(--r-control); padding: .55rem .8rem; margin: .5rem 0; }
.bring-k { margin: 0; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--goldInk); }
.bring p:last-child { margin: .15rem 0 0; }
.letter { max-height: 22rem; overflow: auto; }
.day { font-size: 1.15rem; margin-top: 1rem; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .4rem; }
.slots form { margin: 0; }

/* ---- the gate --------------------------------------------------------------------------------------------------------- */
.gate-card { padding: 1.2rem 1.15rem 1.3rem; }
.gate-step { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--goldInk); }
input.code { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-weight: 700; }
.hint { color: var(--muted); font-size: .92rem; margin: .1rem 0 .4rem; }

/* ---- forms --------------------------------------------------------------------------------------------------------- */
.crumbs { margin: 0 0 .6rem; font-size: .95rem; }
.crumbs a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.form-head h1 { font-size: 2rem; }
.progress { margin: .4rem 0 .6rem; }
progress.bar { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--line); overflow: hidden; display: block; }
progress.bar::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
progress.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--g), #0a7a33); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: var(--g); border-radius: 99px; }
.progress-text { margin: .35rem 0 0; font-size: .88rem; color: var(--muted); font-weight: 600; }
[data-save-status] { color: var(--g); }
.form-step { margin: .6rem 0 0; }
.q { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card); padding: .95rem 1rem 1rem; margin: 0 0 .75rem; box-shadow: var(--lift-1); }
.q-info { background: transparent; border: 0; box-shadow: none; padding: 0 .1rem; }
.q.has-err { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.q[hidden] { display: none; }
.info p { margin: .3rem 0 .55rem; white-space: pre-line; }
.info.note { background: var(--tint); border-left: 5px solid var(--g); border-radius: var(--r-control); padding: .6rem .9rem; }
.info.legal { font-size: .9rem; color: #3d4a50; }
.info.legal p { margin: .25rem 0 .45rem; }
label, legend { display: block; font-weight: 700; margin: 0 0 .3rem; font-size: 1.02rem; color: var(--ink); }
legend { padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.req { font-weight: 600; color: var(--muted); font-size: .85rem; }
.only-if { font-size: .85rem; color: var(--goldInk); font-weight: 600; margin: 0 0 .3rem; }
.js .only-if.nojs { display: none; }
.from-us { display: inline-flex; gap: .35rem; align-items: center; margin: 0 0 .35rem; font-size: .82rem; font-weight: 700; color: var(--goldInk);
  background: var(--goldWash); border-radius: 999px; padding: .1rem .6rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], input:not([type]), select, textarea {
  width: 100%; min-height: var(--tap); font: inherit; font-size: 1.02rem; color: var(--ink); padding: .6rem .8rem; background: #fff;
  border: 1.5px solid #6b7478; border-radius: var(--r-control); }
textarea { min-height: 7rem; resize: vertical; line-height: 1.45; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-weight: 700; font-size: .92rem; margin: .35rem 0 0; }
.err[hidden] { display: none; }
.choices { display: grid; gap: .45rem; }
.choices.yesno { grid-template-columns: 1fr 1fr; }
.grid-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { display: flex; align-items: center; gap: .6rem; min-height: var(--tap); margin: 0; padding: .5rem .8rem; font-weight: 600;
  border: 1.5px solid var(--stone); border-radius: var(--r-control); background: #fff; cursor: pointer; }
.choice.small { font-size: .92rem; }
.choice input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--g); }
.choice:has(input:checked) { border-color: var(--g); background: var(--tint); box-shadow: inset 0 0 0 1px var(--g); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; margin: .2rem 0; }
.consent input { width: 24px; height: 24px; flex: none; margin: .15rem 0 0; accent-color: var(--g); }
.grid-row { border-top: 1px solid var(--line); padding: .55rem 0 .2rem; }
.grid-row:first-of-type { border-top: 0; }
.grid-day { font-weight: 700; margin: 0 0 .35rem; }
.grid-row .choices { grid-template-columns: 1fr; }
.signature .pad-wrap { margin: .7rem 0 .4rem; }
.pad-label { margin: 0 0 .3rem; font-weight: 700; font-size: .95rem; }
canvas.pad { display: block; width: 100%; height: 150px; background: #fff; border: 1.5px dashed var(--g); border-radius: var(--r-control); touch-action: none; cursor: crosshair; }
.pad-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 44px; }
.pad-state { font-size: .88rem; color: var(--g); font-weight: 700; }
.q-photo .pick label, .pick-label { font-size: .9rem; margin: 0 0 .2rem; }
.form-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 1rem 0 0; }
.form-bar .btn.primary { flex: 1 1 12rem; }
.form-bar.stacked { flex-direction: column; align-items: stretch; }
.form-bar.stacked .btn { width: 100%; margin: 0 0 .5rem; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.review-head h2 { margin: .1rem 0 .3rem; font-size: 1.3rem; }
.answers { margin: 0; }
.answers div { padding: .45rem 0; border-bottom: 1px solid var(--line-soft, #efeadc); }
.answers div:last-child { border-bottom: 0; }
.answers div.bad dd { color: var(--red); }
.answers dt { font-size: .88rem; color: var(--muted); font-weight: 600; }
.answers dd { margin: .1rem 0 0; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.send-card { border-top: 5px solid var(--gold); }
.sent-hero { text-align: center; margin: 1rem 0 1.2rem; }
.seal { width: 76px; height: 76px; margin: 0 auto .6rem; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 6px var(--goldWash), 0 0 0 8px var(--gold); }
.seal .i { width: 38px; height: 38px; }
.next-list { margin: .3rem 0 0; padding-left: 1.3rem; }
.next-list li { margin: .3rem 0; }

/* ---- larger screens ------------------------------------------------------------------------------------------------- */
@media (min-width: 40rem) {
  body { font-size: 17.5px; }
  main { padding: 1.8rem 1.5rem 2.5rem; }
  .hero h1 { font-size: 3rem; }
  .journey li { font-size: .88rem; }
  .next-card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 1.2rem; padding: 1.3rem 1.4rem; }
  .next-card .next-k { grid-column: 1 / -1; }
  .next-card .next-v { margin-bottom: 0; }
  .btn.big { width: auto; padding: .6rem 1.6rem; }
  .grid-row { display: grid; grid-template-columns: 8rem 1fr; align-items: center; gap: .6rem; }
  .grid-row .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { gap: .8rem; }
}
@media (min-width: 64rem) {
  .top-in, main, .foot-in { max-width: 52rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .upload { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .foot, .form-bar, .crumbs, .test-ribbon { display: none; }
  body { background: #fff; }
}

/* Fixes from the screenshot review. */
.form-bar.stacked .btn { flex: none; }
[data-focus]:focus { outline: none; box-shadow: none; }
@media (max-width: 26rem) {
  .journey li { font-size: .7rem; letter-spacing: -.01em; }
  .journey .lbl { overflow-wrap: normal; word-break: normal; }
}

/* review29 (UX review, 28 Sep 2026) ---------------------------------------------------------------------------------
   The step's buttons: Continue first and full width (Enter / "Go" on a phone keyboard presses it), then Back and "Save
   and finish later" beneath. Not sticky: a sticky bar covered the question being answered and the signature pad, and
   took taps meant for them. */
.form-page .form-step .form-bar { display: block; margin: 1.1rem 0 0; padding-bottom: env(safe-area-inset-bottom); }
.form-page .form-step .form-bar > .btn.primary { display: flex; width: 100%; margin: 0; }
.form-bar-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem; margin: .5rem 0 0; }
.form-bar-more .btn { margin: 0; }
.form-bar-more .btn.link:only-child { margin-left: auto; }
/* the error summary: the question, then what to do */
.err-list li { margin: .3rem 0; }
.err-list .err-q { display: block; }
.err-list .err-m { display: block; font-weight: 700; }
/* the signature: the box says when a signature is already saved; the typed-name tick is a full tap target */
.pad-box { position: relative; }
.pad-saved { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: .8rem 1rem; text-align: center;
  font-size: .95rem; font-weight: 600; color: var(--g); pointer-events: none; }
.pad-saved[hidden] { display: none; }
label.consent { min-height: var(--tap); padding: .5rem 0; margin: 0; align-items: flex-start; }
label.consent input { margin-top: .2rem; }
.js-only { display: none; }
.js .js-only { display: inline; }
.js .nojs-only { display: none; }
/* a private review section says so once */
.section-ntk { display: inline-flex; margin: .1rem 0 .3rem; }
/* the gate: a gap between the box and its button */
.gate-card input + .btn.big { margin-top: .9rem; }
.chip.ntk { font-size: .85rem; }

/* Audit Batch 4 (UX-15): what signing means, above the box; Draw and Type as two equal halves of one control ------ */
.sig-legal { background: var(--tint); border-left: 5px solid var(--g); border-radius: var(--r-control); padding: .55rem .85rem;
  margin: .3rem 0 .8rem; font-size: .92rem; }
.sig-how { margin: .9rem 0 .1rem; }
.sig-how legend { font-size: .95rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--g); border-radius: var(--r-control); overflow: hidden; background: #fff; }
.seg-opt { position: relative; display: flex; align-items: center; justify-content: center; min-height: var(--tap); margin: 0;
  font-weight: 700; font-size: 1rem; color: var(--g); cursor: pointer; }
.seg-opt + .seg-opt { border-left: 1.5px solid var(--g); }
.seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-opt:has(input:checked) { background: var(--g); color: #fff; }
.seg-opt:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: -6px; box-shadow: inset 0 0 0 3px #fff; }
.sig-typed { margin: .7rem 0 .4rem; }
.sig-typed-k { margin: 0; font-weight: 700; font-size: .95rem; }
.sig-typed-v { font-family: "EB Garamond", Georgia, serif; font-size: 1.9rem; line-height: 1.2; color: var(--navy); min-height: 2.6rem;
  margin: .2rem 0 .3rem; padding: .2rem .4rem 0; border-bottom: 1.5px solid var(--ink); overflow-wrap: anywhere; }
.js .nojs-block { display: none; }

/* Audit Batch 4 (UX-17): a date of birth in three boxes; the time a form takes ------------------------------------ */
.dmy-row { display: grid; grid-template-columns: 4.5rem 4.5rem 6.5rem; gap: .6rem; }
.dmy-part label { font-weight: 600; font-size: .92rem; margin: 0 0 .2rem; }
.dmy-part input { text-align: center; }
.form-time { margin: .1rem 0 .4rem; font-size: .95rem; font-weight: 600; color: var(--muted); }

/* Audit Batch 4 (UX-16): the parent's documents first, the office's folded away; a document goes up when chosen ---- */
.group-h { font-size: 1.15rem; margin: .8rem 0 .5rem; }
details.office { margin: 1rem 0 0; border-top: 1px solid var(--line); padding-top: .4rem; }
details.office summary { display: flex; align-items: center; gap: .4rem; min-height: var(--tap); cursor: pointer; font-weight: 700; color: var(--g); }
details.office summary .office-n { color: var(--muted); font-weight: 600; }
details.office summary::-webkit-details-marker { display: none; }
details.office summary::before { content: ""; width: .55rem; height: .55rem; border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); margin: 0 .35rem 0 .1rem; flex: none; }
details.office[open] summary::before { transform: rotate(45deg); }
details.office .tiles { margin-top: .4rem; }
details.office .tile.missing { border-left: 1px solid var(--line); box-shadow: none; background: var(--well); }  /* nothing for the parent to do */
.upload-status { margin: .3rem 0 0; font-weight: 700; color: var(--g); }
.upload-status:empty { display: none; }
.js .upload .send { display: none; }
.upload.sending input[type=file] { opacity: .6; }
.upload:not(:has(input[type=file]:valid)) .send { opacity: .5; pointer-events: none; cursor: not-allowed; }

/* ---- Enfield funding declaration: hours for each day, with the week's total --------------------------------------- */
.hours-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .45rem; align-items: end; }
.hours-day label, .hours-total-k { display: block; font-weight: 600; font-size: .88rem; margin: 0 0 .2rem; text-align: center; }
.hours-day input { text-align: center; padding-left: .2rem; padding-right: .2rem; min-width: 0; width: 100%; }
.hours-total-v { display: flex; align-items: center; justify-content: center; min-height: var(--tap); border-radius: var(--r-control);
  background: var(--tint); border: 1.5px solid var(--g); color: var(--g); font-weight: 700; font-size: 1.1rem; }
.hours.over .hours-total-v { background: #fdecea; border-color: #b3261e; color: #b3261e; }
@media (max-width: 420px) {
  .hours-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hours-total { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .6rem; margin-top: .15rem; }
  .hours-total-k { text-align: left; margin: 0; font-size: .95rem; }
  .hours-total-v { min-width: 5rem; }
}
.choices.grid-choices.long-choices { grid-template-columns: 1fr; }

/* ---- Acceptance forms, follow-up 3: six choices a day (breakfast club, morning, afternoon, wraparound, long day,
   lunch). Each says its times under its name; two across on a phone, three from a tablet up. "Long day" switches off
   the ticks it stands for; a gentle hint sits under the day. Follow-up 4: lunch on a long day is ticked and locked
   (solid, still green, "Included with Long day" under its name), not greyed like a tick that is switched off. ---- */
.choice .when { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); line-height: 1.25; }
.grid-many .grid-row .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-many .choice.small { font-size: .88rem; padding: .45rem .5rem; gap: .45rem; align-items: flex-start; line-height: 1.25; }
.grid-many .choice.small input { margin-top: .1rem; }
.choice:has(input:disabled) { background: var(--well); border-style: dashed; color: var(--muted); cursor: not-allowed; }
.choice:has(input:disabled) input { cursor: not-allowed; }
.choice:has(input:disabled:checked) { background: var(--tint); border-style: solid; color: var(--ink); }
.choice .held-note[hidden] { display: none; }
.grid-note { font-weight: 600; }
.grid > .err { margin: .1rem 0 .5rem; }
.row-hint { margin: .4rem 0 .2rem; padding: .4rem .65rem; border-left: 3px solid var(--gold); background: var(--goldWash);
  color: var(--ink); border-radius: 0 var(--r-control) var(--r-control) 0; }
.row-hint[hidden] { display: none; }
.review-hint { display: block; font-weight: 400; margin: .3rem 0 0; }
@media (min-width: 40rem) {
  .grid-many .grid-row { grid-template-columns: 6.5rem 1fr; align-items: start; }
  .grid-many .grid-day { padding-top: .6rem; }
  .grid-many .grid-row .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-row .row-hint { grid-column: 2; margin-top: 0; }
}
/* Amendment 40: the privacy notice, its link before sign-in, and the front door */
.privacy-before { font-size: .95rem; margin: 0 0 .8rem; }
.foot .privacy-link { margin-top: .4rem; }
.draft-note { display: inline-block; background: var(--goldWash); border-left: 5px solid var(--gold); padding: .35rem .75rem; border-radius: var(--r-control); font-size: .92rem; margin: .2rem 0 .6rem; }
.privacy-section h2 { font-size: 1.3rem; margin: 0 0 .4rem; }
.privacy-section ul { margin: .2rem 0 .4rem; padding-left: 1.2rem; }
.privacy-full { margin: .4rem 0 1rem; }
