/* =====================================================================
   The Quadathlon Cup · registration service · shared stylesheet
   Direction D, "chosen" (Sam, 23 Oct 2026): C's layout and information
   architecture, B's type, paper and rules.

   Used by the style sample (design_directions/d_chosen) and the
   clickable prototype (prototype/), and meant for the build. Sections
   1-4 are the agreed screens; section 5 holds every other product
   screen. Prototype chrome stays in the prototype.
   Audit round 1 (23 Oct 2026): spacing tokens, one page-title size,
   one error pattern, status words at the end of their row, numerals in
   Libre Baskerville, full-bleed paper on public pages.
   Audit round 2 (23 Oct 2026): one type scale (14/15/16/17 px), every
   margin, padding and gap on the 4 px scale (shoot.py lists any that is
   not), one measure rule, one stepper, amounts in Libre Baskerville on
   every page, status words and counts in one vocabulary, Arabic errors
   in Amiri.
   Audit round 3 (23 Oct 2026): four heading sizes, one prose measure on
   leader pages, one amount rule, one date rule, one rule for secondary
   actions, one checkbox and radio family, custom disclosure markers.
   Craft pass (23 Oct 2026, merged from sandboxes craft/a and craft/b):
   leading in whole pixels on a 2 px rhythm; a 35em measure and
   text-wrap: pretty for serif reading text; a thick-thin rule (2 px, a
   2 px gap, 1 px) closing every head, so the rules run head, list rule
   (1.5 px), hairline; numerals flush right in figure-wide columns (steps,
   checklist, table rows, seats); the dashboard's one figure (days left);
   Who pays as a register under team headings; a ruled paste box with a
   count under it; the payment slip and the receipt framed as a
   certificate (a navy rule with a gold hairline inside); 1 px in-row
   decisions; one set of quiet motion cues (press, radio dot, toast,
   "Saved.", one cream wash on what just changed), all 1 ms under reduced
   motion; the phone dock for an end block with something still to fix.
   Cinzel stays in the wordmark: its figures are old-style and its 1 is a
   serifed I, so "15 days" reads "I5".
   Final pass (24 Oct 2026): counts and line numbers that can reach 11
   (days left, student row numbers, a heading's count) are Libre Franklin
   500 lining figures, because Libre Baskerville's "11" reads as "ll" or a
   Roman II at every size; the short ordinal columns (steps, checklist,
   seats, 1 to 5) and amounts keep Baskerville. Team sheets stop at the
   measure; Who pays switches to its register by the width of its own
   column (a container query), not the window's; the dock parks while a
   form is open in a row; Amiri headings are set about 1.15 times the
   Latin size, since Amiri's small x-height makes the same size look weaker;
   one footer link size per script per breakpoint.

   Type
     Cinzel             the wordmark only
     Libre Baskerville  page titles, headings (sentence case), reading text
                        (.read, .lede: prose of two lines or more), and the
                        numerals of steps and amounts (lining figures; Cinzel's
                        "1" reads as a capital I beside "Round II")
     Libre Franklin     interface text: labels, inputs, buttons, navigation,
                        tables, status words, meta, hints, one-line help
     Amiri              Arabic (18 px or more for body text), with Western
                        digits in the Arabic face; Franklin only for Latin
                        codes and addresses
   Headings, four sizes (no others): page title 32 px (27 px on phones);
   stage line 26 px (22); section heading 21 px (20), which the error
   summary, the modal, a batch question's legend and the Review verdict
   share; minor heading 18 px (the dashboard rail and the help aside).
   Text tokens (no half pixels): --t-lede 17 px (serif lede and family
   reading text); --t-body 16 px; --t-hint 15 px; --t-small 14 px (meta,
   descriptions, status words, sidebar counts). Arabic keeps its own
   larger sizes.
   Reading text: prose of two lines or more is Libre Baskerville (.read);
   help beside a control stays Franklin and is written to one line.
   Amounts: a stand-alone value (a total, a row value, the slip's amount)
   is .money or .amt: "QAR" in Franklin, the figure in Libre Baskerville
   lining figures. An amount inside a sentence, a meta line or a unit
   price ("QAR 380 a place") is plain text, in the face and weight around it.
   Dates: the full month in sentences and descriptions ("4 February");
   the three-letter month only in table cells, sidebar counts and
   right-hand status words ("Paid 2 Mar"); never both forms in one row.
   Deadlines and opening dates carry the weekday ("Thursday 18 March");
   dates that have passed (sent, signed, paid) never do ("Paid 18 May").

   The measure (40rem): on leader pages every paragraph, hint, list and
   the error summary stops at --measure. A ruled list or table with a
   status or an action at the end of its rows runs the full content
   width, so the status sits at the end of its rule; the sentence inside
   such a row still keeps the measure. A short form or a page that is all
   one short form (Places, the add forms) sits in a .measure container as
   a whole, and its head rule stops at the same edge (.pagehead.capped).
   Family pages are the documented exception: their larger serif text
   keeps 36rem (reading text) and 26em (step sentences).

   Secondary actions. Leader pages: a secondary action next to a primary
   button is a text link; an outlined button only when it is the screen's
   single action. Inside a row, commits and suggested answers (Move,
   Done, "Yes, change to Year 7") are outlined small buttons; small navy
   is kept for confirming a step that cannot simply be undone (Remove,
   Empty the teams, Stop it and make a new link). Family pages: secondary
   actions are outlined buttons, full width on phones, for the larger
   target.

   Public pages (sign-in, invitation) have no head rule: a kicker, the
   title, the task, and the help aside beside it. Leader and family pages
   close their head with the thick-thin head rule across the sheet.
   Prototype font link (the build self-hosts the same files):
     https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cinzel:wght@500;600&family=Libre+Baskerville:wght@400;700&family=Libre+Franklin:wght@400;500;600;700&display=swap

   Colour
     Navy #060B31, gold #C9A24A, cream #F6F1E6. Gold is a mark on navy
     (the masthead hairline, the current language) and never text on a
     light ground. Links use a lighter navy.

   Status words: one fixed list, always a word, always at the end of its
   row (on the name or heading line, phones too):
     Must fix · Details missing · "n to fix"   red        blocks submitting. Must fix is a
                                                          question to answer; Details missing
                                                          an empty or unreadable field; "n to
                                                          fix" the only red count
     Please check                              amber      warns; the only other amber is the rounds pages' light
     To do · Not sent                          ink, semibold   your turn
     Waiting · Waiting for families ·          ink-2, semibold someone else's turn
       Being checked · Being prepared · Link on its way ·
       Not paid yet (with "Link sent [date]" or "Message sent" under it)
     Later · From [date] · Optional            ink-2, regular  not yet, or not needed
     Done · Ready                              ink-3     finished: the only quiet grey words
     Paid [date]                               green      money that has arrived: news
     Not added                                 red        always (a pasted row that is not added)
     Invited                                   ink, semibold   your turn (a championship place to accept)
     Accepted · Declined · Entered ·           ink-3     finished (the progression layer, 24 Oct 2026)
       Not qualified
     Lapsed                                    ink-2, regular  an invitation not taken up (with Later)
     The rounds pages' traffic light (Sam, 25 Oct 2026), a 10 px dot in the word's colour before the word:
     Open                                      green      registration open, places left
     Few places left · Closing soon ·          amber      act soon: 10% or 2 teams left; closes within 14 days;
       Opening soon                                       registration not yet open (Register your interest)
     Full · Closed                             red        no places, or the close date passed
     Held                                      ink-3      a round that has taken place (inside "Earlier this season")
     By qualification                          ink-2, regular  a championship round or the Global Final: nothing to do
   Counts (sidebar, phone menu, checklist): "To do" before anything is
   started, "n of N" while it goes well, "n to fix" in red for blockers
   shown on that screen. A bare fraction is never red; unnamed places and
   unplaced students are progress, not "to fix". "Can you help?" is only
   a group heading. Recorded, Full, Sent, Requested, In progress and Thank
   you are not statuses.

   Not used, on purpose: rounded grey panels, bordered rounded list
   groups, check-circle icons, progress bars, pills, segmented toggles,
   letter-spaced capital labels, greyed-out buttons. Radius is 2 px at
   most. Buttons stay enabled: pressing one with something missing shows
   an error summary that links to each blocker (the GOV.UK pattern),
   titled by its count ("Fix 2 things to save this student"). A stepper's
   lower bound is a hairline outline, never a grey fill or a fade.

   Arabic: an Arabic sentence never ends on an isolated Latin run (the
   full stop would sit against the Latin's first letter); Latin inside
   Arabic is set at 0.85em; error messages are Amiri at 18 px or more.

   The page supplies the crest image:  .crest{background-image:url("...")}
   ===================================================================== */

:root{
  /* brand */
  --navy:#060B31;
  --navy-hover:#18205A;
  --gold:#C9A24A;
  --cream:#F6F1E6;
  --cream-2:rgba(246,241,230,.86);   /* secondary text on navy */

  /* paper and ink */
  --page:#FFFFFF;
  --paper:#FBF9F4;     /* the sheet: every page is full-bleed paper */
  --slip:#FFFFFF;      /* the payment slip */
  --ink:#060B31;       /* headings and body */
  --ink-2:#3F4460;     /* secondary text, 9.6:1 on paper */
  --ink-3:#5C6078;     /* meta and numerals, 5.9:1 on paper */
  --link:#26357F;      /* lighter navy for links, 10:1 on paper */
  --field:#565A72;     /* input border, 6.6:1 on white */

  /* rules */
  --rule:#060B31;      /* section and table-head rules */
  --hair:#D9D8DE;      /* row hairlines */
  --hair-soft:#ECEAE5;

  /* status (all 5.9:1 or more on paper) */
  --bad:#A3191E;       /* Must fix, Details missing */
  --check:#835000;     /* Please check, and the rounds pages' amber light */
  --ok:#1D6438;        /* Paid: money that has arrived */

  /* type */
  --serif:"Libre Baskerville",Georgia,"Times New Roman",serif;
  --sans:"Libre Franklin","Helvetica Neue",Arial,sans-serif;
  --display:"Cinzel",Georgia,serif;
  --ar:"Amiri","Traditional Arabic","Times New Roman",serif;

  /* type: four steps under the headings */
  --t-small:14px; --t-hint:15px; --t-body:16px; --t-lede:17px;
  /* leading, set in whole pixels on a 2 px rhythm (craft pass): each step keeps one line height wherever it is
     used, so neighbouring blocks share a beat. Serif reading text is a little looser than interface text. */
  --lh-small:20px; --lh-hint:22px; --lh-body:24px; --lh-read:26px; --lh-lede:28px;
  /* the measure for serif reading text, in its own ems, so a line holds about 65 characters at any size */
  --measure-read:35em;
  /* the head rule: a thick-thin rule (2 px, a 2 px gap, 1 px), as under the title of a certificate or an exam
     paper. It closes every page head; drawn as a border and two shadows, so it takes no extra layout space */
  --head-rule:0 2px 0 var(--paper),0 3px 0 var(--rule);
  /* quiet motion: one duration and one curve for every state change */
  --ease:cubic-bezier(.2,.7,.2,1); --quick:140ms;

  /* space: a 4 px scale */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px;
  --end:var(--s8);     /* the space between a page's last element and the footer rule */

  /* frame */
  --radius:2px;
  --sheet:1120px;      /* public pages */
  --gutter:64px;       /* public pages; 32 px tablet, 16 px phone */
  --side:272px;        /* leader sidebar: wide enough for "Before you add students" and its 14 px count */
  --measure:40rem;     /* prose, hints and the error summary; short forms as a whole (.measure) */
  --box:22px;          /* a checkbox or a radio */
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* a ratio here (24 px at 16 px), so smaller text that sets no leading of its own keeps proportionate leading */
body{margin:0;background:var(--paper);color:var(--ink);font:400 16px/1.5 var(--sans);-webkit-font-smoothing:antialiased;font-kerning:normal}
h1,h2,h3,p,ul,ol,dl,dd,figure,fieldset{margin:0}
ul,ol{padding:0;list-style:none}
fieldset{border:0;padding:0;min-width:0}
legend{padding:0}
h1,h2,h3{font-family:var(--serif);font-weight:400;color:var(--navy);letter-spacing:0;text-wrap:balance}
/* display sizes of Libre Baskerville set a touch tighter, as a title is set by hand */
h1{letter-spacing:-.01em}
b,strong{font-weight:600}
.read{font-family:var(--serif);line-height:var(--lh-read);color:var(--ink);max-width:var(--measure-read);text-wrap:pretty}
/* reading text hangs its opening quotes and closing stops where the browser can (Safari), so the text edge stays true */
.read,.lede,.steps p,.covers ul{hanging-punctuation:first allow-end last}
.read b,.read strong{font-weight:700}
a{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;transition:text-decoration-thickness var(--quick) var(--ease),color var(--quick) var(--ease)}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tnum{font-variant-numeric:tabular-nums}
.muted{color:var(--ink-2)}
.small{font-size:var(--t-small);line-height:var(--lh-small);color:var(--ink-2)}
.measure{max-width:var(--measure)}
.nw{white-space:nowrap}
.ph-only{display:none}
.nr-only{display:none}
/* Latin isolated inside Arabic. .ltr is for references, codes and
   addresses (Franklin, never wraps); .lp is for names inside Arabic prose
   (Baskerville at 0.9em); .school is a school's name, which may be long
   and so may wrap. Times and amounts are not isolated: Amiri sets their
   Western digits. */
bdi.ltr{font-family:var(--sans);white-space:nowrap}
bdi.ltr.wrap,bdi.school{white-space:normal;overflow-wrap:anywhere}
/* Arabic script inside a Latin page, for example a name typed in Arabic:
   Amiri, a little larger so it matches the Latin x-height */
bdi.ar{font-family:var(--ar);font-size:1.1em;line-height:1;font-weight:700}
[lang=ar]:not(.screen){font-family:var(--ar)}
.foot a[lang=ar]{font-size:var(--t-body);line-height:1.3}
/* one reference style everywhere (payment, invoice and booking references): quiet, so a row's status outweighs it */
.ref{font-family:var(--sans);font-weight:500;letter-spacing:.02em;font-variant-numeric:tabular-nums;color:var(--ink-2);white-space:nowrap}
/* an amount: "QAR" in Franklin, the figure in Libre Baskerville lining figures */
.money{white-space:nowrap;color:var(--navy)}
.money .cur{font:600 var(--t-small)/1 var(--sans);letter-spacing:.02em}
.money .fig{font-family:var(--serif);font-weight:400;font-variant-numeric:lining-nums tabular-nums}

/* small bold sentence-case label (never letter-spaced capitals). Used only
   where it adds context the heading does not give (the school, a date). */
.kicker{font:600 var(--t-hint)/var(--lh-hint) var(--sans);color:var(--ink-2);margin-bottom:var(--s2)}
/* each part of a kicker stays whole when it fits a line, so a long line breaks at its dot */
.kp{display:inline-block}

/* numerals of steps and checklists: Libre Baskerville lining figures. Its figures are proportional, so a column of
   them is set flush right, as a typesetter sets folios: 9 and 10 share their last digit's edge */
.num{font-family:var(--serif);font-weight:400;color:var(--ink-3);line-height:1;font-variant-numeric:lining-nums tabular-nums;text-align:end}
/* a count or a line number that can reach 11: Libre Franklin 500 lining figures (Baskerville's "11" reads as "ll") */
.fig-n{font-family:var(--sans);font-weight:500;font-variant-numeric:lining-nums tabular-nums}

/* a meta line of short items with dot separators: each item stays whole,
   and the dot that would start a wrapped line is clipped, so no line
   starts or ends with a separator */
.ml{display:block;overflow:hidden;padding-block:3px;margin-block:-3px}
.ml>span{display:flex;flex-wrap:wrap;margin-inline-start:-1.1em}
/* an item longer than the whole line wraps inside itself rather than being clipped; any other item stays whole,
   because a flex line breaks before an item that does not fit */
.ml>span>span{position:relative;white-space:normal;flex:0 0 auto;max-width:100%;padding-inline-start:1.1em}
.ml>span>span.wr{white-space:normal}
.ml>span>span::before{content:"\00B7";position:absolute;inset-inline-start:0;width:1.1em;text-align:center;color:var(--ink-3);font-weight:400}

/* ---------- screens ---------- */
.screen{min-height:100vh;display:flex;flex-direction:column}
.screen[hidden]{display:none}
.screen.public{background:var(--paper)}

/* ---------- masthead: navy, the crest once, a gold hairline ---------- */
.mast{background:var(--navy);color:var(--cream);border-bottom:1px solid var(--gold);position:relative;z-index:5}
.mast :focus-visible{outline-color:var(--gold)}
.mast-in{height:60px;display:flex;align-items:center;gap:var(--s4);padding:0 var(--s5)}
.mast-in.wrap{max-width:var(--sheet);margin:0 auto;padding:0 var(--gutter)}
.brand{display:flex;align-items:center;gap:var(--s3);color:var(--cream);text-decoration:none;min-width:0}
a.brand:hover .wordmark{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.crest{width:42px;height:33px;flex:none;background-position:center;background-size:contain;background-repeat:no-repeat}
.wordmark{font:600 18px/1 var(--display);letter-spacing:.04em;white-space:nowrap}
.wordmark-ar{font:700 22px/1 var(--ar);white-space:nowrap}
.svc{font-size:var(--t-hint);color:var(--cream-2);padding-inline-start:var(--s4);border-inline-start:1px solid rgba(201,162,74,.6);line-height:22px;white-space:nowrap}
.mast-end{margin-inline-start:auto;display:flex;align-items:center;gap:var(--s5);font-size:var(--t-small);white-space:nowrap}
.mast-end a{color:var(--cream);text-decoration-color:rgba(246,241,230,.5)}
.mast-end .who{color:var(--cream-2)}

/* language: two plain links, the current one underlined in gold */
.lang{display:flex;align-items:center;gap:var(--s4);font-size:var(--t-hint)}
.lang a{color:var(--cream);text-decoration:none;padding:4px 0;border-bottom:2px solid transparent;line-height:1.3}
.lang a:hover{border-bottom-color:rgba(246,241,230,.6)}
.lang a[aria-current=true]{border-bottom-color:var(--gold);font-weight:600}
.lang a:lang(ar){font-family:var(--ar);font-size:18px;line-height:1.15}

/* phone menu (leader pages): fixed under the masthead, scrolling on its
   own; the page behind it is made inert while it is open. The button
   says Close when the menu is open, and keeps its outline. */
.m-menu{display:none;margin-inline-start:auto}
.m-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;min-height:44px;padding:0 var(--s3);font:600 var(--t-hint)/1 var(--sans);color:var(--cream);border:1px solid rgba(246,241,230,.55);border-radius:var(--radius)}
.m-menu summary::-webkit-details-marker{display:none}
.m-menu summary .m-x{display:none}
.m-menu[open] summary{border-color:var(--cream)}
.m-menu[open] summary .m-o{display:none}
.m-menu[open] summary .m-x{display:inline}
.m-menu nav{position:fixed;top:var(--menu-top,57px);inset-inline:0;bottom:0;z-index:6;overflow-y:auto;overscroll-behavior:contain;background:var(--paper);padding:var(--s2) var(--s4) var(--s6)}
.m-menu .grp{font:600 var(--t-small)/1.3 var(--sans);color:var(--ink-3);padding:var(--s4) 0 var(--s1)}
.m-menu nav a{display:flex;justify-content:space-between;align-items:center;gap:var(--s3);min-height:44px;padding:var(--s1) 0;border-bottom:1px solid var(--hair);color:var(--ink);text-decoration:none;font-size:var(--t-body)}
/* the current item's bar sits at the screen edge, as on the sidebar, so its text stays on the 16 px line */
.m-menu nav a[aria-current=page]{font-weight:600;color:var(--navy);box-shadow:inset 3px 0 0 var(--navy);margin-inline-start:calc(-1 * var(--s4));padding-inline-start:var(--s4)}
.m-menu nav .n{font-size:var(--t-small);color:var(--ink-3);font-weight:400}
/* the help rows are nav rows; only the address, which leaves the site, is underlined */
.m-menu nav .m-help a{justify-content:flex-start}
.m-menu nav .m-help a[href^="mailto"]{color:var(--link);text-decoration:underline}
.m-menu nav .m-help p{font-size:var(--t-small);color:var(--ink-2);padding:var(--s2) 0}
.m-menu .m-foot{margin-top:var(--s5);border-top:1.5px solid var(--rule);padding-top:var(--s3)}
.m-menu .m-foot p{font-size:var(--t-small);color:var(--ink-2)}
.m-menu nav .m-foot a{border-bottom:0;color:var(--link);text-decoration:underline;justify-content:flex-start}
/* the context bar on phones: the school on one line, the round under it */
.ctxbar{display:none;border-bottom:1px solid var(--hair);padding:var(--s2) var(--s4);font-size:var(--t-small);line-height:1.4;color:var(--ink-2);background:var(--paper)}
.ctxbar>b,.ctxbar>span{display:block}
.ctxbar b{color:var(--navy)}
/* two schools on one account (D84, 25 Oct 2026): the school line is a select, one 44 px target, in the phone's context
   bar and the sidebar's context alike */
.swsch{height:44px;margin:4px 0;font-size:var(--t-hint)}
.ctx .swsch{font-size:13px;padding-inline-start:8px;padding-inline-end:24px;background-position:right 8px center}

/* ---------- buttons and fields ---------- */
/* Button text stays on one line. Buttons are never greyed out. One
   size for page actions; .btn-sm only for decisions inside a row. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--s2);min-height:46px;padding:var(--s3) var(--s5);border:0;border-radius:var(--radius);font:600 var(--t-body)/1.25 var(--sans);text-decoration:none;cursor:pointer;white-space:nowrap;text-align:center;
  transition:background-color var(--quick) var(--ease),box-shadow var(--quick) var(--ease),transform 80ms var(--ease)}
.btn-primary{background:var(--navy);color:var(--paper)}
.btn-primary:hover{background:var(--navy-hover);text-decoration:none}
.btn-secondary{background:transparent;color:var(--navy);box-shadow:inset 0 0 0 1.5px var(--navy)}
.btn-secondary:hover{background:rgba(6,11,49,.05);text-decoration:none}
/* a press is felt: the button settles 1 px, the way a key does */
.btn:active,.tbtn:not(.full):active,.ctl button:not([aria-disabled=true]):active{transform:translateY(1px)}
.btn-sm{min-height:38px;padding:var(--s2) var(--s3);font-size:var(--t-hint)}
/* a decision inside a row is drawn with a 1 px rule, as thin as the rules around it, so the page's one filled button
   stays the strongest mark; the page-level outlined button keeps its 1.5 px */
.btn-secondary.btn-sm{box-shadow:inset 0 0 0 1px var(--navy)}
.btn-secondary.btn-sm:hover{box-shadow:inset 0 0 0 1.5px var(--navy)}
.btn-block{display:flex;width:100%}
/* a long label that may wrap on a phone, balanced over its lines */
.btn-wrap{white-space:normal;text-wrap:balance}
.linkbtn{background:none;border:0;padding:0;font:inherit;color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;cursor:pointer;text-align:start}
.linkbtn:hover{text-decoration-thickness:2px}
.lbl{display:block;font:600 var(--t-body)/1.4 var(--sans);color:var(--navy);margin-bottom:var(--s1)}
/* a field inside a named group: lighter than the group's label, so the group reads as one */
.lbl.sub{font-size:var(--t-hint);font-weight:500}
.hint{font-size:var(--t-hint);line-height:var(--lh-hint);color:var(--ink-2);margin-bottom:var(--s2);max-width:var(--measure)}
.input{display:block;width:100%;height:48px;padding:0 var(--s3);border:1.5px solid var(--field);border-radius:var(--radius);font:400 17px/1.3 var(--sans);color:var(--ink);background:#fff}
.input:focus{outline:3px solid var(--navy);outline-offset:0;border-color:var(--navy)}
.input.err{border:2px solid var(--bad)}
.radios{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s6)}
.radio{display:flex;align-items:center;gap:var(--s3);min-height:44px;cursor:pointer;font-size:var(--t-body)}
.radio input{appearance:none;-webkit-appearance:none;width:var(--box);height:var(--box);margin:0;flex:none;border:2px solid var(--navy);border-radius:50%;background:#fff;display:grid;place-content:center}
.radio input::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--navy);transform:scale(0)}
/* the dot arrives rather than appears: a short ease from the centre */
.radio input:checked::before{transform:scale(1)}
/* only the radio just chosen (it keeps focus through the re-render), so the other dots never replay */
.radio input:checked:focus::before{animation:dot-in var(--quick) var(--ease)}
@keyframes dot-in{from{transform:scale(.3)}to{transform:scale(1)}}
.radio input:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
/* an unavailable choice: a quiet circle; the reason is written beside the
   group, never left to the colour */
.radio input:disabled{border-color:var(--ink-3);border-width:1.5px;background:transparent;cursor:not-allowed}
.radio.dis{color:var(--ink-3);cursor:not-allowed}

/* error summary and field errors: one pattern on every page. The summary
   is the first thing in <main>, above the page title; each field error
   is a red rule beside the field, with its message between the label and
   the control. */
.errsum{max-width:var(--measure);border:2px solid var(--bad);border-radius:var(--radius);background:#fff;padding:var(--s4) var(--s5);margin:0 0 var(--s6)}
.errsum:focus{outline:3px solid var(--navy);outline-offset:2px}
.errsum h2{font-size:21px;line-height:1.3;margin-bottom:var(--s2)}
.errsum ul{display:grid;gap:var(--s1)}
.errsum a{color:var(--bad);font-weight:500}
.errsum a b{font-weight:700}
.err-msg{display:block;color:var(--bad);font:600 var(--t-hint)/1.45 var(--sans);margin:2px 0 var(--s2)}
.field.has-err,.cbx-wrap.has-err{border-inline-start:3px solid var(--bad);padding-inline-start:var(--s3)}

/* ---------- status words ---------- */
.st{font:600 var(--t-small)/1.35 var(--sans);white-space:nowrap}
.st-bad{color:var(--bad)}
.st-check{color:var(--check)}
.st-todo{color:var(--ink);font-weight:600}
.st-wait,.st-prog{color:var(--ink-2);font-weight:600}
.st-ok{color:var(--ok)}
.st-note{display:block;font:400 var(--t-small)/var(--lh-small) var(--sans);color:var(--ink-2);white-space:nowrap}
.st-done{color:var(--ink-3);font-weight:500}
.st-later{color:var(--ink-2);font-weight:400}
.st-ask{color:var(--ink-2);font-weight:600}
.bad-t{color:var(--bad);font-weight:600}

/* ---------- colophon ---------- */
.foot{border-top:1px solid var(--rule);padding:var(--s4) 0 var(--s6);font-size:var(--t-small);line-height:1.6;color:var(--ink-2);margin-top:auto}
.foot .links{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s5);margin-bottom:var(--s2)}
/* the bilingual landing's footer: each link with its Arabic pair; the company line in both languages */
.foot .pair{display:inline-flex;flex-wrap:wrap;gap:0 var(--s3)}
.foot .addr{display:block}
.foot .links a{color:var(--ink-2)}
.foot .links span[aria-current]{color:var(--ink-3)}
.foot .addr{overflow-wrap:anywhere}
/* in the leader's preview the report link is a button, styled as its footer neighbours */
.foot .links .linkbtn{color:var(--ink-2);font:inherit;text-decoration:underline;text-underline-offset:.2em}
/* the bilingual landing's footer is laid out by language, like the blocks above it: Arabic first on phones, then a
   hairline and English; from 768 px two columns, each language under its own block; the address in each column's links */
.foot.bi .fcol[lang=ar]{font-size:var(--t-body);line-height:1.8}
.foot.bi .fcol+.fcol{margin-top:var(--s4);padding-top:var(--s3);border-top:1px solid var(--hair)}
.foot.bi .legal{margin:0}
@media (min-width:768px){
  .foot.bi{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--s8)}
  .foot.bi .fcol+.fcol{margin-top:0;padding-top:0;border-top:0}
  .foot.bi .fcol[dir=rtl]{grid-column:2;grid-row:1}
  .foot.bi .fcol[dir=ltr]{grid-column:1;grid-row:1}
  [dir=rtl] .foot.bi .fcol[dir=rtl]{grid-column:1}
  [dir=rtl] .foot.bi .fcol[dir=ltr]{grid-column:2}
}

/* =====================================================================
   PUBLIC PAGES: full-bleed paper, content in a centred column. The footer
   follows the content (it does not float at the bottom of a tall window).
   ===================================================================== */
.sheet{display:flex;flex-direction:column;width:100%;max-width:var(--sheet);margin:0 auto;padding:0 var(--gutter)}
.sheet>main,.sheet>.fp1-wrap{padding-bottom:var(--end)}

/* ---------- 1. sign in, and every public page: a 440 px column, the help beside it ----------
   Every public page starts with a kicker, so the aside starts on the kicker's line; an error
   summary takes a row of its own above both. */
.signin{display:grid;grid-template-columns:minmax(0,440px) minmax(0,280px);column-gap:calc(var(--s8) + var(--s6));justify-content:start;padding-top:var(--s7)}
.signin>.errsum,.signin>.pubmain{grid-column:1}
.signin>.aside{grid-column:2}
.signin h1{font-size:32px;line-height:1.2;margin-bottom:var(--s5)}
.signin .read{margin-bottom:var(--s4)}
.signin form{margin-top:var(--s5)}
.signin form .input{margin-bottom:var(--s5)}
.signin .small{margin-top:var(--s4)}
.signin :is(.read,.hint,.small,.err-msg){text-wrap:pretty}
/* the last thing in the column ends on the --end space, whatever it is */
.signin .pubmain>:last-child{margin-bottom:0}
.signin .resent{font-weight:600;color:var(--navy)}
/* the privacy notice link on a line of its own, then the tick */
.pn-link{margin-bottom:var(--s4)}
.aside{align-self:start;border-inline-start:1px solid var(--hair);padding-inline-start:var(--s6)}
.aside h2{font-size:18px;line-height:1.35;margin-bottom:var(--s2)}
.aside p{color:var(--ink-2);font-size:var(--t-hint)}
.aside-blk+.aside-blk{margin-top:var(--s5);padding-top:var(--s5);border-top:1px solid var(--hair)}

/* =====================================================================
   LEADER APP SHELL: sidebar grouped by stage, counts beside each screen
   ===================================================================== */
.app{flex:1;display:grid;grid-template-columns:var(--side) minmax(0,1fr)}
/* the sidebar stays in view as the page scrolls */
.side{position:sticky;top:0;align-self:start;max-height:100vh;overflow-y:auto;padding:var(--s6) 0 var(--s5);display:flex;flex-direction:column}
.ctx{padding:0 var(--s5) var(--s4);border-bottom:1px solid var(--hair)}
.ctx b{display:block;font-size:var(--t-hint);line-height:1.35;color:var(--navy)}
.ctx span{display:block;font-size:var(--t-small);color:var(--ink-2)}
.snav{padding-top:var(--s2)}
.snav .grp{font:600 var(--t-small)/1.3 var(--sans);color:var(--ink-3);padding:var(--s4) var(--s5) var(--s1)}
.snav a{display:flex;align-items:baseline;justify-content:space-between;gap:0 var(--s2);padding:var(--s2) var(--s5);color:var(--ink);text-decoration:none;font-size:var(--t-hint);line-height:1.4}
.snav a:hover{text-decoration:underline}
.snav a[aria-current=page]{font-weight:600;color:var(--navy);box-shadow:inset 3px 0 0 var(--navy)}
.snav .n,.m-menu nav .n{margin-inline-start:auto;font-size:var(--t-small);color:var(--ink-3);font-variant-numeric:tabular-nums;font-weight:400;white-space:nowrap}
.snav .n.todo,.m-menu nav .n.todo{color:var(--ink);font-weight:600}
.snav .n.bad,.m-menu nav .n.bad{color:var(--bad);font-weight:600}
.snav .n.wait,.m-menu nav .n.wait{color:var(--ink-2);font-weight:600}
.snav .n.later,.m-menu nav .n.later{color:var(--ink-2)}
.side-foot{margin-top:var(--s6);padding:var(--s5) var(--s5) 0;border-top:1px solid var(--hair);font-size:var(--t-small);line-height:1.5;color:var(--ink-2);display:grid;gap:var(--s1)}
.side-foot b{color:var(--navy)}
/* help links: a 30 px pitch, comfortably over the 24 px minimum */
.side-foot a{justify-self:start;padding-block:var(--s1)}
.main{min-width:0;display:flex;flex-direction:column;padding:var(--s6) var(--s7) 0;border-inline-start:1px solid var(--hair)}
.content{width:100%;max-width:1000px}
.main>.content{padding-bottom:var(--end)}
/* the footer follows the content (the sidebar is sticky, so the main column need not push it down) */
.main>.foot{margin-top:0}
/* one page-header pattern everywhere: the title, its meta under it */
.pagehead{padding-bottom:var(--s4);margin-bottom:var(--s6);border-bottom:2px solid var(--rule);box-shadow:var(--head-rule)}
/* a page that is one short form: the head rule stops where the form, its total and its button stop */
.pagehead.capped{max-width:var(--measure)}
.pagehead h1{font-size:32px;line-height:1.2}
.pagehead .meta{font-size:var(--t-hint);line-height:var(--lh-hint);color:var(--ink-2);margin-top:var(--s1)}
.pagehead .meta b{color:var(--navy)}
.sec{margin-bottom:var(--s7)}
.sec:last-child{margin-bottom:0}
.sec-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px var(--s3);margin-bottom:var(--s3)}
.sec-h h2{font-size:21px;line-height:1.3}
.sec-h .aux{font-size:var(--t-small);color:var(--ink-2);white-space:nowrap;margin-inline-start:auto}
/* a status group inside a section (dashboard and Review alike): the word and its count carry the status colour */
.sub-h{font:600 var(--t-hint)/1.4 var(--sans);color:var(--navy);margin:var(--s5) 0 var(--s2)}
.sec-h+.sub-h,.sub-h:first-child{margin-top:0}
.sub-h.bad{color:var(--bad)}
.sub-h.check{color:var(--check)}
.sub-h.ask{color:var(--ink-2)}
.sub-h .why{font-weight:400;color:var(--ink-2);font-size:var(--t-small)}
.grp-hint{margin:calc(-1 * var(--s1)) 0 var(--s2)}
/* "Changes save as you go", and a quiet "Saved." after each change */
.savenote{margin:calc(-1 * var(--s3)) 0 var(--s5)}
.saved-flag{font-weight:600}
/* the end of a stage-2 screen: one primary button to the next screen */
.endnext{margin-top:var(--s7);padding-top:var(--s5);border-top:1px solid var(--hair);display:flex;flex-wrap:wrap;align-items:center;gap:var(--s3) var(--s5)}
.endnext>p{flex:1 1 100%;font-size:var(--t-hint);color:var(--ink-2)}
/* straight after a ruled list, its last hairline is the only rule before the next step */
:is(.payl,#saved,.paygs)+.endnext,:is(.paygs,#saved)+.endpre{border-top:0;padding-top:0;margin-top:var(--s6)}
#saved+.endpre+.endnext{border-top:0;padding-top:0}

/* a ruled list: navy rule on top, hairline under each row; its width is its container's */
.rows{border-top:1.5px solid var(--rule)}
.rows>li{padding:var(--s3) 0;border-bottom:1px solid var(--hair)}
/* a ruled list of label and value, right-aligned values */
.kv>li{display:flex;justify-content:space-between;align-items:baseline;gap:var(--s4);padding:var(--s3) 0}
.kv .k{color:var(--ink-2)}
.kv .v{font-weight:600;color:var(--navy);text-align:end;font-variant-numeric:tabular-nums}
.kv .v .money .fig{font-size:var(--t-lede)}
/* a unit price or a count is a value, not news: regular weight */
.kv .v.reg{font-weight:400}
/* what a value is made of, under its label */
.kv .k .kn{display:block;font-size:var(--t-small);line-height:1.4}
/* a list that follows the page head directly: the double rule above it is enough */
.kv.first{border-top:0}
.kv.first>li:first-child{padding-top:0}
/* a row of quiet text links (secondary actions next to one boxed primary) */
.linkrow{display:flex;flex-wrap:wrap;gap:var(--s2) var(--s5);margin-top:var(--s4)}

/* ---------- 2. dashboard ---------- */
.dash{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:0 var(--s7);align-items:start}
.stage{margin-bottom:var(--s7)}
.stage h2{font-size:26px;line-height:1.3;margin-bottom:var(--s3)}
.stage .read{max-width:min(var(--measure),var(--measure-read));text-wrap:pretty}
.stage .read+.read{margin-top:var(--s3)}
.stage .acts{display:flex;align-items:center;gap:var(--s3) var(--s5);flex-wrap:wrap;margin-top:var(--s5)}

/* attention rows: what to do, then its link at the end of the row. Rows
   are grouped under Must fix, Please check and Can you help?, so a row
   carries no status word of its own. A must-fix row has a red rule. */
.attn>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--s1) var(--s4);align-items:baseline;font-size:var(--t-body)}
.attn.must>li{border-inline-start:3px solid var(--bad);padding-inline-start:var(--s3)}
.attn .act{white-space:nowrap;font-size:var(--t-hint)}
.attn p b{color:var(--navy)}
.attn li.ans{grid-template-columns:minmax(0,1fr)}
.attn li.ans>p{max-width:var(--measure)}
.attn li.ans .acts{margin-top:2px;gap:var(--s2) var(--s4)}
.attn li.ans .confirm{margin-top:var(--s2)}
.attn .rsn{margin-top:var(--s1)}
/* the one-line result of an answer given in place, with Undo */
.attn li.done-row{grid-template-columns:minmax(0,1fr);color:var(--ink-2)}
.attn.must>li.done-row{border-inline-start-color:var(--hair)}

/* the numeral column is as wide as a figure, so the numerals stand on the margin and the titles start one gap after
   them; open rows (To do, n to fix) keep their numeral in navy, finished and later rows go quiet, as on the family page */
.check>li{display:grid;grid-template-columns:16px minmax(0,1fr) auto 96px;gap:2px var(--s4);align-items:baseline}
.check>li:has(.st-todo,.st-bad) .num{color:var(--navy)}
.check.nonum>li{grid-template-columns:minmax(0,1fr) auto 110px}
.check .num{font-size:18px}
.check .t{font-weight:600;color:var(--navy);line-height:1.4}
.check .d{font-size:var(--t-small);color:var(--ink-2)}
.check .v{font-size:var(--t-small);color:var(--ink-2);text-align:end;white-space:nowrap}
.check .st{text-align:end}
/* a row the leader cannot act on yet reads quieter than the one they can */
.check>li.later .t{font-weight:500;color:var(--ink-2)}
/* a requirement that blocks submitting, on the page that fixes it: the must-fix rule */
.check>li.must-row{border-inline-start:3px solid var(--bad);padding-inline-start:var(--s3)}
/* finished stage-1 rows, folded into one quiet row at the end of the checklist */
.check>li.fold{grid-template-columns:16px minmax(0,1fr) 96px}
.check>li.fold .t{color:var(--ink-2);font-weight:500;font-size:var(--t-hint)}
.s1d>summary{list-style:none;cursor:pointer;color:var(--link);text-decoration:underline;text-underline-offset:.2em;font-size:var(--t-small);width:max-content}
.s1d>summary::-webkit-details-marker{display:none}
.s1d .when-open,.s1d[open] .when-shut{display:none}
.s1d[open] .when-open{display:inline}
.s1d[open]>summary{margin-bottom:var(--s2)}
.s1d .rows{border-top:1px solid var(--hair)}
.s1d .rows>li:last-child{border-bottom:0}

/* the rail: the 48 px gap separates it from the main column; no rule that would stop halfway down */
.rail .sec{margin-bottom:var(--s6)}
.rail .sec:last-child{margin-bottom:0}
.rail .sec-h h2{font-size:18px}
/* deadlines, in date order: the event, its countdown on the right; then the date */
.dl>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px var(--s3);align-items:baseline}
.dl .what{font:600 var(--t-hint)/1.4 var(--sans);color:var(--navy)}
.dl .left{font-size:var(--t-small);color:var(--ink-2);text-align:end;white-space:nowrap}
.dl .when{grid-column:1/-1;font-size:var(--t-small);color:var(--ink-2)}
.track>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px var(--s3);align-items:baseline}
.track .t{font-weight:600;color:var(--navy);font-size:var(--t-hint)}
.track .d{grid-column:1/-1;font-size:var(--t-small);color:var(--ink-2)}
.track .d+.d{margin-top:0}
.track .ref{font-size:var(--t-small);text-align:end}
.plink{margin-top:var(--s4)}
.plink h3{font:600 var(--t-hint)/1.4 var(--sans);color:var(--navy);display:flex;justify-content:space-between;gap:var(--s3)}
.plink h3 span{font-weight:500;color:var(--ink-2);font-size:var(--t-small)}
.plink .note{font-size:var(--t-small);color:var(--ink-2);margin:2px 0 var(--s2)}
.plink table{width:100%;border-collapse:collapse;font-size:var(--t-small);line-height:1.4;border-top:1.5px solid var(--rule)}
.plink td{padding:var(--s2) 0;border-bottom:1px solid var(--hair);vertical-align:top}
/* final pass: the name, its reference and when the link went on the left; only the status word on the right, on one line */
.plink td:last-child{text-align:end;padding-inline-start:var(--s3);white-space:nowrap}
.plink .who{font-weight:600;display:block;overflow-wrap:anywhere}
.plink .ref{display:block}
.plink .pl-note{display:block;color:var(--ink-2)}
.plink-more{margin-top:var(--s2);font-size:var(--t-small)}

/* ---------- 3. students ---------- */
.tabs{display:flex;gap:var(--s6);border-bottom:1px solid var(--hair);margin-bottom:var(--s5);font-size:var(--t-hint)}
.tabs a{padding:0 0 var(--s3);margin-bottom:-1px;color:var(--ink-2);text-decoration:none;border-bottom:3px solid transparent}
.tabs a:hover{color:var(--navy)}
.tabs a[aria-current=page]{color:var(--navy);font-weight:600;border-bottom-color:var(--navy)}
.cols{font-size:var(--t-small);color:var(--ink-2);margin-bottom:var(--s3)}
.cols b{color:var(--navy)}
/* the paste preview: what it is, then the tally as the summary, then how the paste was read */
.pv-note{font-size:var(--t-hint);color:var(--ink);margin:calc(-1 * var(--s1)) 0 var(--s4)}
.preview>.tally{margin-bottom:var(--s1)}
.pv-log{margin-bottom:var(--s5)}
.discl{display:flex;flex-wrap:wrap;gap:0 var(--s5);margin:calc(-1 * var(--s1)) 0 var(--s2)}
.discl details.info{margin-top:0}
.saved-help{margin:var(--s1) 0 var(--s4)}

/* a question about the whole batch: a red rule, the heading with its status at the end of the full width */
.q{border-inline-start:3px solid var(--bad);padding-block:2px var(--s1);padding-inline:var(--s5) 0;margin-bottom:var(--s6)}
.q legend{float:left;width:100%;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px var(--s3);font-family:var(--serif);font-size:21px;line-height:1.35;color:var(--navy);margin-bottom:var(--s2)}
.q legend>span:first-child{flex:1 1 0;min-width:0}
.q legend .st{font-family:var(--sans)}
.q legend+*{clear:both}
.q .read{max-width:var(--measure)}
.q .read b{color:var(--navy)}
.q .why{font-size:var(--t-small);color:var(--ink-2);margin-top:var(--s1);max-width:var(--measure)}
.q .acts{margin-top:var(--s3)}

.batchbar{display:flex;align-items:center;justify-content:space-between;gap:var(--s3) var(--s4);flex-wrap:wrap;margin-bottom:var(--s3)}
.tally{font-size:var(--t-hint);line-height:var(--lh-hint);color:var(--ink-2)}
.tally b{font-weight:700;color:var(--navy)}
.tally .t-bad,.tally .t-bad b{color:var(--bad)}
.tally .t-check,.tally .t-check b{color:var(--check)}
/* the tally, then the filter as a control of its own, after a wider gap */
.tally.withf{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--s5)}
.tally+.cols,.tally+.filter{margin-top:var(--s1)}
.filter{font-size:var(--t-hint);margin-bottom:var(--s3)}

.tbl{width:100%;table-layout:fixed;border-collapse:collapse;font-size:var(--t-hint);line-height:1.45;font-variant-numeric:tabular-nums}
.tbl th{font:600 var(--t-small)/1.3 var(--sans);color:var(--navy);text-align:start;padding:0 var(--s3) var(--s2) 0;border-bottom:1.5px solid var(--rule);white-space:nowrap}
.tbl td{padding:var(--s3) var(--s3) var(--s3) 0;vertical-align:top;border-bottom:1px solid var(--hair)}
.tbl th:last-child,.tbl td:last-child{padding-inline-end:0}
.tbl tbody.flag tr:first-child td{border-bottom:0;padding-bottom:var(--s2)}
.tbl tr.more td{padding:0 0 var(--s3)}
/* row numbers are line numbers, flush right, so 9 and 13 end on one edge; in Libre Franklin 500 (final pass), because
   a list of 12 or more students always has an 11, and Baskerville's reads as "ll" */
.tbl .c-n{color:var(--ink-3);font-family:var(--sans);font-weight:500;font-variant-numeric:lining-nums tabular-nums;text-align:end}
.tbl .c-name{font-weight:600;color:var(--navy);overflow-wrap:break-word}
.tbl .c-dob,.tbl .c-yr{white-space:nowrap}
/* the status hangs on the right edge, with the Edit links and the row decisions */
.tbl .c-st{white-space:nowrap;text-align:end}
/* the status ends flush with its head and its rule in both tables (the phone line after it is hidden here) */
.tbl .c-st{padding-inline-end:0}
.tbl .blank{color:var(--ink-2)}
.tbl .sub{display:block;font-size:var(--t-small);color:var(--ink-3);font-weight:400}
.tbl .c-m{display:none}          /* the phone's second line: Born · Year · Division · Photo (and Edit) */
.tbl .c-name .m{display:none}    /* the style sample's older one-line form; unused by the prototype */
.tbl tbody.removed td{color:var(--ink-2);font-size:var(--t-hint)}
.ar-name{font-family:var(--ar);font-size:18px;font-weight:700}
/* the division "Explorers · Young Explorers" never splits after its dot:
   one line where the column is wide enough, else the sub-division on its
   own line under the division, without the dot */
.dv{white-space:nowrap}

/* an issue under a row: a coloured rule, no fill, a topic word that carries the subject, a sentence that
   carries only what is new, the suggested answer as a small button and the other answer as a link */
.issue{display:flex;align-items:center;flex-wrap:wrap;gap:var(--s2) var(--s4);padding-block:2px;padding-inline:var(--s3) 0;border-inline-start:3px solid var(--hair);font-size:var(--t-hint)}
.issue p{flex:1 1 300px;max-width:var(--measure)}
.issue .k{font-weight:700}
/* a hold strip standing between two sections keeps a section's space under it */
.issue.hold{margin-bottom:var(--s7)}
.issue .also{color:var(--ink-2)}
.issue.info .k{color:var(--ink-2);font-weight:600}
.issue.warn{border-color:var(--check)}
.issue.warn .k{color:var(--check)}
.issue.bad{border-color:var(--bad)}
.issue.bad .k{color:var(--bad)}
/* a plain caution that is not a check: navy, so amber stays with "Please check" */
.issue.note{border-color:var(--navy)}
.issue.note .k{color:var(--navy)}
.issue .acts{display:flex;gap:var(--s2) var(--s4);flex-wrap:wrap;align-items:center;margin-inline-start:auto}
.issue.stack{display:block}
.issue.stack .acts{margin-inline-start:0;margin-top:var(--s2)}
.issue .fix{display:flex;flex-direction:column;gap:var(--s1);max-width:320px;margin-top:var(--s2)}
.issue .fix label{font-size:var(--t-hint);font-weight:600;color:var(--navy)}
/* the saved list's one-field fix: the field and its Save side by side */
.issue .fix.fix-row{max-width:440px}
.fix-in{display:flex;gap:var(--s2);align-items:stretch}
.fix-in .btn{min-height:48px}
.fix-in .input{flex:1 1 auto;min-width:0}
.commit{display:flex;align-items:center;gap:var(--s3) var(--s4);flex-wrap:wrap;margin-top:var(--s3)}
.commit-note{margin-top:var(--s6);font-size:var(--t-hint);color:var(--ink-2);max-width:var(--measure)}

/* =====================================================================
   4. FAMILY PAGE (no "Private beta" here)
   ===================================================================== */
.fam{display:grid;grid-template-columns:minmax(0,1fr) 344px;grid-template-areas:"head head" "steps pay" "covers pay";gap:0 var(--s8);padding-top:var(--s6);align-items:start}
/* one head on every family page: the school, the title, a meta line, a double rule across the sheet */
.fam-head{grid-area:head;padding-bottom:var(--s4);margin-bottom:var(--s6);border-bottom:2px solid var(--rule);box-shadow:var(--head-rule)}
.fam-head h1{font-size:32px;line-height:1.2;margin-bottom:var(--s3)}
/* a head with no meta line ends as close to its rule as one with a meta line */
.fam-head>:last-child{margin-bottom:0}
/* a payment that has arrived: the status word on its own line above the title */
.fam-head .paid-lead{display:block;margin-bottom:var(--s1);font-size:var(--t-hint)}
/* the meta line uses the .ml pattern: each item whole, a dot between items, no dot starting a line */
.refline{font-size:var(--t-hint);line-height:var(--lh-hint);color:var(--ink-2)}
.steps-wrap{grid-area:steps}
.steps-wrap h2,.covers h2{font-size:21px;margin-bottom:var(--s3)}
.steps{border-top:1.5px solid var(--rule)}
/* every row ends in a status word, flush with the end of its rule; the sentence keeps its measure */
/* one hanging column for the family page: the step numerals and the dashes of "What your fee covers" share it, so
   both lists' sentences start on one vertical line and the headings stand on the margin (craft pass) */
.fam{--ncol:16px;--ngap:var(--s4)}
.steps>li{display:grid;grid-template-columns:var(--ncol) minmax(0,1fr) auto;gap:0 var(--ngap);padding:var(--s4) 0;border-bottom:1px solid var(--hair);align-items:baseline}
.steps .num{font-size:20px;color:var(--ink-2)}
/* final pass: a step's sentence fills its column up to the status (about 28em beside the slip), so "Results: through
   your school and at the ceremony." keeps one line instead of a short second one */
.steps p{font-family:var(--serif);font-size:var(--t-lede);line-height:var(--lh-lede);text-wrap:pretty}
.steps p b{font-weight:700}
/* only the row that needs the family keeps full ink */
.steps li.done p,.steps li.later p{color:var(--ink-2)}
.steps li.now .num{color:var(--navy)}
.steps .st{text-align:end}
.covers{grid-area:covers;margin-top:var(--s7)}
.covers ul{display:grid;gap:var(--s1);margin-bottom:var(--s3);font-family:var(--serif);font-size:var(--t-body);line-height:var(--lh-read)}
/* a typographic dash in the text face, not a drawn square */
.covers li,.bul li,.causes li{position:relative;padding-inline-start:var(--s5);text-wrap:pretty}
.covers li::before,.bul li::before,.causes li::before{content:"\2013";position:absolute;inset-inline-start:0;top:0;color:var(--ink-3)}
.covers li{padding-inline-start:calc(var(--ncol) + var(--ngap))}
.covers li::before{width:var(--ncol);text-align:end}
.covers>.small{padding-inline-start:calc(var(--ncol) + var(--ngap))}

/* the payment slip: white paper, a thin navy frame. What decides whether a
   payment works sits above the button; what comes next sits under it.
   Craft pass: the slip is framed as the Cup frames a certificate, a navy rule with a gold hairline just inside it
   (the masthead's gold, used as a rule and never as text), so the one place money is asked for looks issued, not
   generated. The payment result's receipt (.rcpt) wears the same frame. An outline takes no space, so nothing
   inside the slip moves. */
.pay,.rcpt{background:var(--slip);border:1px solid var(--navy);border-radius:var(--radius);outline:1px solid rgba(201,162,74,.75);outline-offset:-5px}
.pay{grid-area:pay;padding:var(--s5)}
.pay h2{font:600 var(--t-hint)/1.4 var(--sans);color:var(--ink-2);margin-bottom:var(--s1)}
.amt{display:flex;align-items:baseline;gap:var(--s2);line-height:1;color:var(--navy)}
.amt .cur{font:600 18px/1 var(--sans);letter-spacing:.04em}
.amt .val{font:400 46px/1.05 var(--serif);font-variant-numeric:lining-nums}
/* the slip in two parts at every width: what is owed (the amount and its date), then, under a hairline, how to pay
   (the cards, the in-app tip, the button). On phones the hairline replaces the gap, so Pay does not move down;
   beside the steps (laptops) it has more air */
.pay .due{margin:var(--s3) 0 0;font-size:var(--t-hint);color:var(--ink-2)}
.pay .due b{color:var(--navy)}
.pay .due+.pre{margin-top:var(--s3);padding-top:var(--s3);border-top:1px solid var(--hair)}
@media (min-width:861px){
  .pay .due+.pre{margin-top:var(--s4);padding-top:var(--s4)}
  .pay .btn{margin-top:var(--s1)}
}
.pay .pre{font-size:var(--t-hint);line-height:1.5;color:var(--ink);margin-bottom:var(--s2);text-wrap:pretty}
.pay .pre:last-of-type{margin-bottom:var(--s4)}
.pay .btn{min-height:52px;font-size:var(--t-lede)}
/* under Pay, two short lines a parent can scan: where the button goes, then what the price includes */
.pay .next{margin-top:var(--s3);font-size:var(--t-small);line-height:var(--lh-small);color:var(--ink-2);text-wrap:pretty}
.pay .next+.next{margin-top:var(--s1)}
.pay .pv-off,.foot .pv-off{margin-top:var(--s3);font-size:var(--t-hint);font-weight:600;color:var(--navy)}
/* paid: the status leads, in the colour of money that has arrived; then what happened (the amount and where the
   receipt went), a hairline, and what the family can do */
.pay h2.paid-h{font:400 26px/1.2 var(--serif);color:var(--ok);margin-bottom:var(--s2)}
/* a refund agreed but not yet back: the same lead in navy; green is kept for money that has arrived */
.pay h2.paid-h.rf-h{color:var(--navy)}
/* the amount paid (or refunded) stands alone as a figure under the lead (final pass), never inside a sentence */
.pay .paid-amt{font-size:var(--t-lede);color:var(--navy);margin-bottom:var(--s2)}
.pay .paid-amt .money .fig{font-size:28px;line-height:1.1}
.pay .paid-amt .money .cur{font-size:var(--t-hint)}
.pay .due+.plain{margin-top:0}
.pay .paid-amt+.due{margin:0 0 var(--s4);padding-bottom:var(--s4);border-bottom:1px solid var(--hair)}
.pay .refund{margin-top:var(--s3);font-size:var(--t-hint)}
.pay .refund a{display:inline-flex;align-items:center;min-height:44px}
.pay .refund span{display:block;font-size:var(--t-small);color:var(--ink-2)}
.pay .plain{font:400 var(--t-body)/1.6 var(--serif);color:var(--ink);margin:var(--s1) 0 2px}
/* payment received: the round and its amount, then the reference, as a receipt a parent can check (and screenshot)
   at a glance, in the slip's frame */
/* one width in both languages (final pass: the narrow column's 640 px rule had widened the English box only) */
.rcpt,.famn>.rcpt{max-width:30rem;margin-bottom:var(--s5);padding:var(--s2) var(--s5)}
.rcpt>li{padding:var(--s3) 0}
.rcpt>li+li{border-top:1px solid var(--hair)}
.rcpt .k{color:var(--ink)}
.rcpt .v .money .cur{font-size:var(--t-hint)}
.rcpt .v .money .fig{font-size:24px;line-height:1.1}
.rcpt .v .ref{font-size:var(--t-body);color:var(--navy);font-weight:600}
[dir=rtl] .rcpt{font-size:19px}
[dir=rtl] .rcpt .k{font-family:var(--ar)}
[dir=rtl] .rcpt .v .ref{font-size:var(--t-body)}
/* an amount on an Arabic page: the same Baskerville figure, the currency in Amiri after it (one money style in both
   languages: slip, receipt, refund) */
[dir=rtl] .money .fig{font-family:var(--serif)}
[dir=rtl] .money .cur{font:700 18px/1 var(--ar);letter-spacing:0}
[dir=rtl] .rcpt .v .money .cur{font-size:18px}

/* ---------- Arabic (family pages only) ---------- */
[dir=rtl]{font-family:var(--ar)}
[dir=rtl] :is(h1,h2,h3,.read,.kicker,.st,.btn,.refline,.small,.foot,.steps p,.covers ul,.causes,.pay h2,.pay .due,.pay .pre,.pay .next,.pay .paid-amt,.pay .refund,.amt .cur,.hint,.lbl,.err-msg,.errsum a,.sub-h,.warnline,.q-line){font-family:var(--ar);letter-spacing:0}
[dir=rtl] :is(bdi.ltr,bdi.school,[lang=en]),[dir=rtl] .ref{font-family:var(--sans)}
/* Latin inside Arabic: 0.85em, the ratio of the reference, so an address never outweighs the Arabic beside it */
[dir=rtl] :is(bdi.ltr,a[lang=en]){font-size:.85em}
/* an Arabic error is as large and as Arabic as the text it is about */
[dir=rtl] .err-msg{font:700 18px/1.6 var(--ar);margin:var(--s1) 0 var(--s2)}
[dir=rtl] .kicker bdi.school{font-size:var(--t-hint);font-weight:600}
.kicker bdi.school{text-wrap:balance}
/* a Latin name inside Arabic prose: Baskerville at 0.9em, never wrapped */
[dir=rtl] bdi.lp,bdi.lp{font-family:var(--serif);font-size:.9em;white-space:nowrap;letter-spacing:0}
[dir=rtl] h1,[dir=rtl] h2{font-weight:700}
/* final pass: Amiri's x-height is small, so at the Latin size "بطولة الدوحة" looked clearly weaker than "Doha
   Championship"; Arabic headings are set about 1.15 times the Latin size (37 against 32, 24 against 21) */
[dir=rtl] .fam-head h1{font-size:37px;line-height:1.4}
[dir=rtl] .steps-wrap h2,[dir=rtl] .covers h2{font-size:24px}
/* Amiri keeps its own, looser leading: the Latin pixel leading would crowd its ascenders */
[dir=rtl] .kicker{font-size:18px;font-weight:400;line-height:1.45}
[dir=rtl] .refline{font-size:19px;line-height:1.55}
[dir=rtl] .ref{font-size:16px}
[dir=rtl] .steps p{font-size:20px;line-height:1.8}
[dir=rtl] :is(.covers ul,.causes){font-size:19px;line-height:1.8}
[dir=rtl] :is(.fp1 .read,.steps p,.pay p,.covers li,.causes li,.famn .read,.hint,.before-btn){text-wrap:pretty}
[dir=rtl] .radio span{text-wrap:balance}
[dir=rtl] .small,[dir=rtl] .pay .next,[dir=rtl] .pay .pre,[dir=rtl] .pay .due,[dir=rtl] .pay .refund span,[dir=rtl] .hint{font-size:18px;line-height:1.75}
[dir=rtl] .pay h2{font-size:18px;font-weight:700}
[dir=rtl] .pay h2.paid-h{font:700 26px/1.4 var(--ar);color:var(--ok)}
[dir=rtl] .pay .paid-amt{font-size:19px;line-height:1.7}
[dir=rtl] .pay .paid-amt .money .cur{font-size:19px}
[dir=rtl] .pay .plain{font:400 18px/1.75 var(--ar)}
[dir=rtl] .amt .cur{font-size:22px;font-weight:700}
[dir=rtl] .btn{font-size:19px;font-weight:700;white-space:nowrap}
[dir=rtl] .foot{font-size:16px;line-height:1.8}
[dir=rtl] .amt .val{font-family:var(--serif)}
/* Arabic status words and links: big enough to read in Amiri, and the
   underline sits below the descenders */
.st:lang(ar){font-size:18px;line-height:1.4}
/* the weights keep the English hierarchy: the family's turn is bold ink, done and later are regular, paid is bold green */
.st-later:lang(ar),.st-done:lang(ar){font-weight:400}
.st-todo:lang(ar){font-weight:700;color:var(--ink)}
.st-ok:lang(ar){font-weight:700}
:is(a,.linkbtn):lang(ar){font-size:max(18px,1em);text-underline-offset:.45em;text-decoration-skip-ink:auto}
/* the company line: in Arabic on Arabic pages, with the Latin parts isolated and the address on its own line */
.foot .legal{font-size:var(--t-small);line-height:1.6}
[dir=rtl] .foot .legal,.foot .legal[lang=ar]{font-family:var(--ar);font-size:var(--t-body);line-height:1.8}
/* the bilingual footer's English company line keeps the Latin face, even on the Arabic route */
.foot .legal[lang=en],[dir=rtl] .foot .legal[lang=en]{font-family:var(--sans);font-size:var(--t-small);line-height:1.6}
.foot .legal bdi{font-family:var(--sans);font-size:var(--t-small);white-space:normal}
.foot .legal[lang=ar]{margin-top:var(--s1)}

/* =====================================================================
   5. OTHER PRODUCT SCREENS
   ===================================================================== */
.acts{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s3) var(--s4)}
.mt{margin-top:var(--s5)}
.mt-s{margin-top:var(--s2)}
/* .lede: at most one sentence of reading text under a title, in ink like all reading text */
.lede{font:400 var(--t-lede)/var(--lh-lede) var(--serif);color:var(--ink);margin-bottom:var(--s5);max-width:min(var(--measure),var(--measure-read));text-wrap:pretty}
.lede b{color:var(--navy);font-weight:700}
/* inside a page that is one short form (capped as a whole), the lede runs to the form's edge, as its head rule does */
.measure .lede,.addone .lede{max-width:var(--measure)}
/* "Set all to" and the covered-place note: one line above the list's head rule */
.bulk{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s4);align-items:baseline;font-size:var(--t-hint);color:var(--ink-2);margin-bottom:var(--s3)}
.bulk .bl{white-space:nowrap}
.bulk .bl .linkbtn{margin-inline-start:var(--s1)}
.rows-empty{border-top:1.5px solid var(--rule);border-bottom:1px solid var(--hair);padding:var(--s3) 0;color:var(--ink-2)}
.srows{border-top:1.5px solid var(--rule)}
.stage .small{margin-top:var(--s3);max-width:var(--measure)}
.reason{font-size:var(--t-hint);color:var(--ink-2);margin-top:var(--s2)}
/* an inline confirmation before something that cannot be undone */
.confirm{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2) var(--s4);padding-block:var(--s1);padding-inline:var(--s3) 0;border-inline-start:3px solid var(--navy);font-size:var(--t-hint);color:var(--ink)}
.confirm p{flex:1 1 auto}

/* public pages other than the landing: the same column as the landing */
.pubmain h1{font-size:32px;line-height:1.2;margin-bottom:var(--s5)}
.input.code{max-width:220px;font-size:24px;letter-spacing:.3em;font-variant-numeric:tabular-nums}
/* a stand-alone link, given a full-height target on phones */
.blk-link{display:inline-block}
.opt-block{margin-top:var(--s5);padding-top:var(--s4);border-top:1px solid var(--hair)}

/* fields */
.field{margin-bottom:var(--s5);min-width:0}
.lbl .opt{font-weight:400;color:var(--ink-2)}
/* paired fields share a bottom edge, whatever sits above either (a hint, an error) */
.fields2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--s5);align-items:end}
.w28{max-width:28rem}
fieldset.field>.fields2>.field{margin-bottom:0}
fieldset.field>.fields2{row-gap:var(--s5)}
/* a single field takes one column of the two-column grid */
.col1{max-width:calc((100% - var(--s5)) / 2)}
select.input{-webkit-appearance:none;appearance:none;padding-inline-end:calc(var(--s6) + var(--s2));cursor:pointer;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23060B31' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center/12px 8px}
[dir=rtl] select.input{background-position:left 14px center}
/* pasted rows: Libre Franklin with tabular figures; the tab size still lines up columns pasted with tabs; the box
   grows with what was pasted (its rows), so no row is cut in half */
textarea.input{height:auto;padding:var(--s3);font:400 var(--t-hint)/1.6 var(--sans);font-variant-numeric:tabular-nums;white-space:pre;overflow:auto;resize:vertical;tab-size:8em}
/* craft pass: the paste box is ruled like a register, one faint line under each 24 px row, so an empty box already
   says "one student a line" and a pasted export reads as rows; the rules scroll with the text */
#pastebox{line-height:24px;background:repeating-linear-gradient(to bottom,transparent 0 23px,var(--hair-soft) 23px 24px) 0 0/100% 24px local content-box content-box,#fff}
.cbx{display:flex;gap:var(--s3);align-items:flex-start;padding:var(--s2) 0;cursor:pointer;font-size:var(--t-body);line-height:1.45}
/* a checkbox: the same family as the radios (a 22 px navy outline on white), square, with a navy tick when chosen */
.cbx input{appearance:none;-webkit-appearance:none;width:var(--box);height:var(--box);margin:1px 0 0;flex:none;border:2px solid var(--navy);border-radius:var(--radius);background:#fff;cursor:pointer;display:grid;place-content:center}
.cbx input:checked{background:var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M1.5 5.5l4 4 7-8' fill='none' stroke='%23FBF9F4' stroke-width='2.2'/%3E%3C/svg%3E") no-repeat center/13px 10px}
.cbx input:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.cbx .hint{display:block;margin:2px 0 0}
/* a hint that belongs to a checkbox sits beside the label, under its text, so it is read once (aria-describedby) */
.cbx-hint{padding-inline-start:calc(var(--box) + var(--s3));margin:calc(-1 * var(--s1)) 0 0}
.radios.col{flex-direction:column;gap:var(--s2)}
.radios.col .radio{align-items:flex-start;padding:var(--s2) 0;min-height:44px}
.radios.col .radio input{margin-top:1px}
/* laptops: three short options read as one tight group, like the ruled rows around them; phones keep 44 px rows */
@media (min-width:760px){.radios.col{gap:0}.radios.col .radio{padding:var(--s1) 0;min-height:36px}}
.radio .in{color:var(--ink-2);font-size:var(--t-hint)}
.dobsel{display:grid;grid-template-columns:4.6em minmax(9.5em,1fr) 6.6em;gap:var(--s2);max-width:460px}
/* a date takes the width it needs: "September" is never cut, in the add form or the edit panel */
.col1:has(.dobsel){max-width:420px}
.echo{font-size:var(--t-small);color:var(--ink-2);margin-top:var(--s1)}
.echo b{color:var(--navy)}
/* a note that belongs to one field, directly under its control: hint-sized, a coloured rule, no topic word */
.fnote{font-size:var(--t-hint);color:var(--ink-2);margin-top:var(--s2);padding-inline-start:var(--s3);border-inline-start:3px solid var(--hair)}
.fnote.warn{border-color:var(--check)}
.fnote.bad{border-color:var(--bad);color:var(--ink)}
.fnote .acts{margin-top:var(--s2);gap:var(--s2) var(--s4)}
.fnote.note{border-color:var(--navy);color:var(--ink)}
.fnote.plain{border:0;padding:0}
details.info{margin-top:var(--s3)}
/* a disclosure opens in place: its own marker in link colour, a chevron that turns when open, at every width */
details.info>summary{list-style:none;cursor:pointer;color:var(--link);text-decoration:underline;text-underline-offset:.2em;font-size:var(--t-hint);width:max-content;max-width:100%;padding-block:var(--s1)}
details.info>summary::-webkit-details-marker{display:none}
details.info>summary::before{content:"";display:inline-block;width:7px;height:7px;margin-inline-end:var(--s2);border-inline-end:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(-45deg);transition:transform .15s}
[dir=rtl] details.info>summary::before{transform:translateY(-2px) rotate(45deg)}
details.info[open]>summary::before{transform:translateY(-4px) rotate(45deg)}
/* right to left the closed chevron already points down-left at 45deg, so the open one turns the other way (final pass) */
[dir=rtl] details.info[open]>summary::before{transform:translateY(-4px) rotate(-45deg)}
.photo-key{display:grid;grid-template-columns:22px minmax(0,1fr);gap:var(--s1) var(--s2);font-size:var(--t-hint);margin:var(--s3) 0 var(--s1)}
.photo-key dt{font-weight:700;color:var(--navy)}
.extbl{border-collapse:collapse;font-size:var(--t-small);margin:var(--s3) 0 var(--s1);font-variant-numeric:tabular-nums}
.extbl th,.extbl td{text-align:start;padding:var(--s1) var(--s4) var(--s1) 0;border-bottom:1px solid var(--hair);white-space:nowrap}
.extbl th{font-weight:600;color:var(--navy);border-bottom:1.5px solid var(--rule)}
.exwrap{overflow-x:auto;max-width:100%}
/* the certificate preview: a thin navy rule above and a hairline below; the Baskerville name alone says
   "certificate". It is as wide as the name fields */
.cert{border-top:1px solid var(--navy);border-bottom:1px solid var(--hair);padding:var(--s2) 0 var(--s3);margin-top:var(--s4)}
.cert .c1{font-size:var(--t-small);color:var(--ink-2)}
.cert .c2{font:400 22px/1.3 var(--serif);color:var(--navy);margin-top:2px;overflow-wrap:break-word}
.cert .c2.empty{font:400 var(--t-hint)/1.5 var(--sans);color:var(--ink-3);padding:var(--s1) 0}
.issue+.issue{margin-top:var(--s3)}
.addone .issue,.edit .issue{margin:calc(-1 * var(--s2)) 0 var(--s5)}
/* the add-one form and the edit panel are short forms: one measure for every field */
.addone{max-width:var(--measure)}
.namegrp>.hint{margin-bottom:var(--s3)}

/* tabs as buttons */
.tabs button{background:none;border:0;border-radius:0;padding:var(--s1) 0 var(--s3);margin-bottom:-1px;font:inherit;color:var(--ink-2);border-bottom:3px solid transparent;cursor:pointer}
.tabs button:hover{color:var(--navy)}
.tabs button[aria-pressed=true]{color:var(--navy);font-weight:600;border-bottom-color:var(--navy)}
.addline{font-size:var(--t-hint);color:var(--ink-2);margin-top:var(--s5)}
.addline .linkbtn{margin-inline:2px}

/* tables: extra cells */
.tbl .c-act{text-align:end;font-size:var(--t-hint)}
.tbl .c-act .linkbtn{font-weight:400}
.tbl tbody.skipped .c-name,.tbl tbody.skipped td{color:var(--ink-3)}
.tbl .wait{cursor:pointer}

/* edit panel under a saved student: a navy rule marks it as one block; a short form, at the measure */
.edit{border-inline-start:2px solid var(--navy);padding-block:var(--s4) var(--s2);padding-inline:var(--s4) 0;margin-top:var(--s1);max-width:calc(var(--measure) + var(--s4) + 2px)}
.edit .saved{font:600 var(--t-small)/1.4 var(--sans);color:var(--ink-2);min-height:20px;margin-bottom:var(--s1)}
.edit .saved:empty{min-height:0;margin:0}
.edit .foot-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--s2) var(--s4);align-items:center;padding-top:var(--s3);border-top:1px solid var(--hair);font-size:var(--t-small);color:var(--ink-2)}
.edit .foot-row b{color:var(--navy)}
.edit .foot-end{display:flex;flex-wrap:wrap;gap:var(--s2) var(--s5);align-items:center}
.edit .sid{color:var(--ink-3)}
.edit .field-text{font-size:var(--t-body);color:var(--ink)}
/* a read-only value and a select side by side: both labels on one line */
.edit .fields2{align-items:start}

/* numbered sections (Before you add students): the rule runs the full width and the status sits at its end,
   on the heading's first line (the heading shrinks first, so a short status never drops) */
.nsec{display:grid;grid-template-columns:36px minmax(0,1fr);gap:0 var(--s3);padding:var(--s5) 0 var(--s6);border-top:1.5px solid var(--rule)}
.nsec:last-child{padding-bottom:0}
/* straight under the page head, the double rule already opens the first section */
.pagehead+.nsec{border-top:0;padding-top:0}
.nsec>.num{font-size:24px;color:var(--navy);padding-top:3px;text-align:start}
.nsec-h{display:flex;align-items:baseline;justify-content:space-between;gap:2px var(--s3);margin-bottom:var(--s2)}
.nsec-h h2{font-size:21px;line-height:1.3;flex:1 1 0;min-width:0}
.nsec-h .st{margin-inline-start:auto}
.nsec .read{margin-bottom:var(--s3);max-width:var(--measure)}
.nsec .read b{color:var(--navy)}
.nsec .read:last-child,.nsec .acts:last-child,.nsec form:last-child{margin-bottom:0}
.nsec .input{max-width:28rem}
.nsec .done-line{font-size:var(--t-body);color:var(--ink-2)}
.nsec .alt-link{margin-top:var(--s3);font-size:var(--t-hint)}
.nsec .opt-block{max-width:28rem}
.nsec .sub-field{margin:var(--s2) 0 0;max-width:28rem}
/* a field revealed by the choice above it (the GOV.UK conditional pattern): a quiet rule ties it to the choice;
   an error turns the same rule red */
.reveal{border-inline-start:3px solid var(--hair);padding-inline-start:var(--s3)}
.reveal.has-err{border-inline-start-color:var(--bad)}
/* what a download is, under its button */
.dl-note{margin-top:var(--s1)}
.nsec .resent{font-size:var(--t-hint);font-weight:600;color:var(--navy)}
/* a line about the whole page, before its first numbered section */
.pre-sec{margin-bottom:var(--s5)}

/* one stepper on every page: −, a number the leader can type, + */
.stepper{display:flex;align-items:center;justify-content:space-between;gap:var(--s4);padding:var(--s3) 0;border-bottom:1px solid var(--hair)}
.stepper .t{display:block;font-weight:600;color:var(--navy)}
.stepper .d{display:block;font-size:var(--t-small);color:var(--ink-2)}
.stepper .d2{display:block}
.ctl{display:flex;align-items:center;gap:var(--s2);flex:none}
.ctl button{width:44px;height:44px;border:1.5px solid var(--navy);border-radius:var(--radius);background:#fff;color:var(--navy);font:500 22px/1 var(--sans);cursor:pointer;display:grid;place-content:center}
/* the lower bound: a hairline outline and a quiet glyph, the same shape as "+", never a fill or a fade */
.ctl button[aria-disabled=true]{border:1px solid var(--hair);background:transparent;color:var(--ink-3);cursor:not-allowed}
.ctl input.input{width:4em;height:44px;text-align:center;padding:0 var(--s1);font-weight:600;-moz-appearance:textfield}
.ctl input.input::-webkit-inner-spin-button,.ctl input.input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.srows .stepper:last-child{border-bottom:0}
/* Places: the unit, said once over the controls, and the places each row makes, under its control */
.scap{display:flex;justify-content:flex-end;padding-top:var(--s2);font:400 var(--t-small)/1.4 var(--sans);color:var(--ink-2)}
.ctlw{flex:none;display:flex;flex-direction:column;align-items:flex-end}
.ctl-pl{font-size:var(--t-small);line-height:1.4;color:var(--ink-2);margin-top:var(--s1)}
.limit{font-size:var(--t-hint);color:var(--ink);margin:0 0 var(--s3);padding-top:var(--s2);border-top:1px solid var(--hair)}
.total{border-top:1.5px solid var(--rule);padding:var(--s3) 0 0;margin-top:0}
.total .trow{display:flex;justify-content:space-between;align-items:baseline;gap:var(--s4);min-height:28px;font:600 var(--t-body)/1.4 var(--sans);color:var(--navy)}
.total .trow>span:first-child{flex:1 1 auto;min-width:0;text-wrap:balance}
.total .tv{white-space:nowrap}
.total .tv .money .cur{font-size:var(--t-hint)}
.total .tv .money .fig{font-size:24px;line-height:1.1}
.total .tsub{font-size:var(--t-small);color:var(--ink-2);margin-top:2px}
.facts{margin-top:var(--s4);display:grid;gap:2px;font-size:var(--t-hint);color:var(--ink-2)}
.pre-act{font-size:var(--t-hint);color:var(--ink);margin-top:var(--s5)}
.pre-act+.acts{margin-top:var(--s3)}
.facts+.acts,.facts+.linkrow{margin-top:var(--s5)}
.need-check{font-size:var(--t-hint);color:var(--ink-2);margin-top:var(--s2)}
.need-check.off{color:var(--check);font-weight:600}

/* teams: one ruled table per team, stacked, so rows line up across teams; the unplaced list below
   (above on phones, so the work comes first) */
.t7{display:flex;flex-direction:column}
.teamgrid{display:grid;grid-template-columns:minmax(0,1fr);margin-bottom:var(--s2)}
.tray{margin-top:var(--s5)}
/* while anyone is unplaced, the work comes first: the list of students not in a team leads */
.t7.split .tray{order:-1;margin:0 0 var(--s6)}
.t7.split .unpl{max-width:var(--measure)}
/* how the numbers fall into teams of 4, said before the leader starts */
.divnote{font-size:var(--t-hint);color:var(--ink);margin:calc(-1 * var(--s1)) 0 var(--s3);max-width:var(--measure)}
.divnote+.divnote{margin-top:0}
.tray.drop,.team.drop{outline:2px dashed var(--navy);outline-offset:var(--s1)}
.tray .hint{margin-bottom:var(--s3)}
/* how full each team is, kept in view while the unplaced list scrolls */
.ttally{position:sticky;top:0;z-index:3;background:var(--paper);display:flex;flex-wrap:wrap;gap:var(--s1) var(--s5);padding:var(--s2) 0;margin-bottom:var(--s2);border-bottom:1px solid var(--hair);font-size:var(--t-small);color:var(--ink-2)}
.ttally b{color:var(--navy);font-weight:600}
.team{margin-bottom:var(--s7);min-width:0}
.team.empty{margin-bottom:var(--s6)}
.team.empty .sec-h{border-bottom:1.5px solid var(--rule);padding-bottom:var(--s3);margin-bottom:0}
/* an empty team is one line on a phone; beside the list on a laptop it shows its four numbered seats to fill */
.team.empty .ghost{display:none}
.team .sec-h h2:focus{outline:none}
/* a seat row: seat, name, year and division, Move; notes and questions span the row under them */
/* a seat row reads as one line of a team sheet: the seat numeral, the name, then the year and division in their own
   column straight after it (not floated to the far edge), and Move at the end */
.seats>li{display:grid;grid-template-columns:var(--s4) minmax(12em,14em) minmax(0,1fr) auto;gap:var(--s1) var(--s3);align-items:baseline}
.seats .x,.seats .mvp{grid-column:2/-1}
.unpl>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--s1) var(--s4);align-items:center}
.seats .seatn{font:400 var(--t-hint)/var(--lh-hint) var(--serif);font-variant-numeric:lining-nums;color:var(--ink-3);text-align:end}
.seats .nm,.unpl .nm{display:block;font-weight:600;color:var(--navy);overflow-wrap:break-word}
.seats .d,.unpl .d{display:block;font-size:var(--t-small);color:var(--ink-2)}
.seats li.empty .nm{font-weight:400;color:var(--ink-3)}
.seats .mvl,.unpl .mvl{font-size:var(--t-hint);white-space:nowrap;padding-block:11px;margin-block:-11px}
/* the open toggle reads as pressed, so it is not mistaken for the Move button in the panel */
.mvl[aria-expanded=true]{text-decoration:none;font-weight:600;color:var(--navy)}
.seats .x .issue{margin-top:var(--s1)}
/* every team keeps its slot, so a letter never moves as teams fill; a full team's slot says so */
.place{display:flex;gap:var(--s2);flex-wrap:nowrap;justify-content:flex-end}
.tbtn{min-width:44px;height:44px;padding:0 var(--s2);border:1px solid var(--navy);transition:background-color var(--quick) var(--ease),transform 80ms var(--ease);border-radius:var(--radius);background:#fff;color:var(--navy);font:600 var(--t-body)/1 var(--sans);cursor:pointer}
/* a team letter is drawn with the in-row 1 px rule, 1.5 px under the pointer, as .btn-sm is */
.tbtn:hover{background:rgba(6,11,49,.05);box-shadow:inset 0 0 0 .5px var(--navy)}
.tbtn.full{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid var(--hair);background:transparent;color:var(--ink-3);cursor:not-allowed;font-size:var(--t-hint)}
.tbtn.full:hover{background:transparent;box-shadow:none}
.tbtn .tf{font:400 var(--t-small)/1 var(--sans)}
.mvp{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--s2) var(--s3);padding:var(--s2) 0 var(--s1)}
.unpl .mvp{grid-column:1/-1}
.mvp .field{margin:0;flex:1 1 220px;max-width:320px}
.mvp label{display:block;font-size:var(--t-hint);font-weight:600;color:var(--navy);margin-bottom:var(--s1)}
.mvp .linkbtn{padding-block:11px;font-size:var(--t-hint)}
.mvp .btn{min-height:48px}
.mvp .field.has-err{padding-inline-start:var(--s3)}
.rsn{margin-top:var(--s2);max-width:28rem}
.rsn label{display:block;font-size:var(--t-hint);font-weight:600;color:var(--navy);margin-bottom:2px}
.rsn .need{display:block;font:600 var(--t-small)/1.45 var(--sans);color:var(--bad);margin-bottom:var(--s1)}
.rsn.has-err{border-inline-start:3px solid var(--bad);padding-inline-start:var(--s3)}
.rsn select.input,.mvp select.input,.issue .fix .input{height:48px;font-size:var(--t-lede)}
.issue .rsn{flex:1 1 100%;margin-top:0}
.team-f{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s1) var(--s3);padding-top:var(--s3);font-size:var(--t-hint);color:var(--ink-2)}
.t7-notes{margin-top:var(--s2);display:grid;gap:var(--s1);font-size:var(--t-small);color:var(--ink-2)}
.t7-notes .confirm,.t7-notes .clear{margin-top:var(--s4)}
[draggable=true]{cursor:grab}
/* laptops, while anyone is unplaced: the students on the left, the teams beside them and kept in view, so each name
   sits next to its letters and can be dragged onto a team without scrolling; the teams are compact, one line a seat */
@media (min-width:1100px){
  .t7.split{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:0 var(--s6);align-items:start}
  .t7.split .tray{grid-column:1;grid-row:1;margin:0}
  .t7.split .teamgrid{grid-column:2;grid-row:1 / span 2;position:sticky;top:var(--s4);max-height:calc(100vh - var(--s6));overflow-y:auto;margin:0}
  .t7.split .t7-notes{grid-column:1;grid-row:2}
  .t7.split .ttally{display:none}
  .t7.split .team,.t7.split .team.empty{margin-bottom:var(--s5)}
  .t7.split .team .sec-h h2{font-size:18px}
  .t7.split .seats>li{grid-template-columns:var(--s4) minmax(0,1fr) auto;padding-block:var(--s2)}
  .t7.split .team.empty .sec-h{border-bottom:0;padding-bottom:0;margin-bottom:var(--s3)}
  .t7.split .team.empty .ghost{display:block}
  .t7.split .seats .d{display:none}
}

/* adults */
.adl>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px var(--s4);align-items:baseline}
.adl .nm{font-weight:600;color:var(--navy)}
.adl .d{grid-column:1/-1;font-size:var(--t-small);color:var(--ink-2)}
.adl .d b{color:var(--navy);font-weight:600}
.adl .ra{display:flex;gap:var(--s4);align-items:baseline}
.adl .ra .linkbtn,.adl .ra .small{padding-block:11px;margin-block:-11px}
.adl .ed{grid-column:1/-1;padding-top:var(--s3)}
.adl .you{font-weight:400;color:var(--ink-2)}
.adl .ed .saved{font:600 var(--t-small)/1.4 var(--sans);color:var(--ink-2);min-height:20px;margin-bottom:var(--s1)}
.adl .confirm,.adl .done-line{grid-column:1/-1;margin-top:var(--s2)}
.adl .done-line{font-size:var(--t-hint);color:var(--ink-2)}
/* one rule per section head: a section whose content is not a ruled list carries the rule under its heading */
.sec-h.ruled{border-bottom:1.5px solid var(--rule);padding-bottom:var(--s3);margin-bottom:var(--s4)}
.needs .srows{border-top:0}
.needs legend.sub-h{margin-top:0}
.sec-h.ruled+.savenote{margin-top:0}

/* who pays: the choice inline and the status on the right at laptop width;
   on phones the status sits under the name and the choices stack */
.payl>li{display:grid;grid-template-columns:minmax(0,1fr) auto 168px;grid-template-areas:"who ch st" "more more more";gap:2px var(--s5);align-items:center}
.payl .who{grid-area:who;min-width:0;display:flex;align-items:baseline;gap:var(--s3)}
.payl .who b{display:block;min-width:0;color:var(--navy);font-weight:600;overflow-wrap:break-word}
.payl .who .ml{font-size:var(--t-small);color:var(--ink-2)}
/* the seat numeral, as on Teams: Libre Baskerville, flush right in a figure-wide column */
.payl .who .seatn{flex:none;width:var(--s4);font:400 var(--t-hint)/1 var(--serif);color:var(--ink-3);text-align:end}
/* what follows the name in the row starts on the name's edge, not under the numeral */
.payl .more{padding-inline-start:calc(var(--s4) + var(--s3))}
/* a team group: its heading, then its ruled list; the column heads of the choice appear only on wide laptops. The
   heading names the team's division: on the right on phones and tablets, "Team A · Explorers" on wide laptops, where
   the right holds the column heads */
.pgrp+.pgrp{margin-top:var(--s5)}
.pgrp-h{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s3)}
.pgrp-h .sub-h{flex:1 1 auto;display:flex;align-items:baseline;justify-content:space-between;gap:var(--s3);margin:0 0 var(--s2);font:400 18px/1.35 var(--serif);color:var(--navy)}
.pgrp-h .pdiv{font:400 var(--t-small)/var(--lh-small) var(--sans);color:var(--ink-2);white-space:nowrap}
.pgrp-h .psep{display:none}
.bulk+.paygs,.confirm+.paygs{margin-top:var(--s5)}
.pcols{display:none}
.payl .ch{grid-area:ch;min-width:0}
.payl fieldset legend{padding:0}
.payl .radios{gap:0 var(--s5)}
.payl .radio{min-height:44px;font-size:var(--t-hint)}
.payl .locked{font-size:var(--t-hint);line-height:1.45;color:var(--ink-2)}
.payl .locked b{color:var(--navy)}
.payl .stt{grid-area:st;text-align:end}
.payl .stt .st{white-space:normal}
.payl .more{grid-area:more;font-size:var(--t-small);color:var(--ink-2);padding-bottom:2px}
.payl .more b{color:var(--navy)}
.payl .more .acts{margin-top:var(--s2);gap:var(--s2) var(--s4)}
.payl .more .topup{display:block;margin-top:2px}
.payl .more .resent{font-weight:600;color:var(--navy)}
/* the question spans the row, under the choices */
.payl .cov-q{grid-column:1/-1;margin:var(--s2) 0 var(--s1)}
/* the question's rule stands on the name's edge, as an issue does under a table row */
.payl .cov-q{margin-inline-start:calc(var(--s4) + var(--s3))}
/* the dates under a one-sentence lede */
.lede-note{margin:calc(-1 * var(--s3)) 0 var(--s5);max-width:var(--measure)}
/* the "Sent" tick: a 44 px row with the box centred */
.payl .more .cbx.sent{padding:0;min-height:44px;align-items:center;font-size:var(--t-hint)}
.payl .more .cbx.sent input{margin:0}
/* phones: a row on the default is one line, "School invoice · Change" */
.ch-sum{display:none;font-size:var(--t-hint);color:var(--ink-2)}
.warnline{font-size:var(--t-hint);font-weight:600;color:var(--navy);margin-bottom:var(--s3)}
.copybox{margin-top:var(--s3);display:grid;gap:var(--s4)}
.msgs{display:grid;gap:var(--s4)}
.msg-h{display:flex;justify-content:space-between;align-items:center;gap:var(--s3);margin-bottom:var(--s1);font:600 var(--t-small)/1.4 var(--sans);color:var(--navy)}
.msg{text-align:start;white-space:pre-wrap;background:#fff;border:1px solid var(--hair);border-radius:var(--radius);padding:var(--s3);font:400 var(--t-small)/1.55 var(--sans);color:var(--ink);overflow-wrap:anywhere}
.msg[lang=ar]{font:400 18px/1.8 var(--ar)}
/* laptops: English and Arabic side by side, headers and Copy buttons on one line */
@media (min-width:1100px){.msgs{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}}
/* the two message boxes end on one line */
.msgbox{display:flex;flex-direction:column}
.msgbox .msg{flex:1}
.panel-acts{display:flex;flex-wrap:wrap;gap:var(--s2) var(--s4);align-items:center}

/* review */
.decl{border-top:1.5px solid var(--rule);padding-top:var(--s5)}
.decl h2{font-size:21px;margin-bottom:var(--s3)}
.decl .read.note{max-width:var(--measure);margin:var(--s2) 0 var(--s3);font-size:var(--t-body)}
.bul{display:grid;gap:var(--s1);margin:var(--s3) 0 var(--s4);font-family:var(--serif);font-size:var(--t-body);line-height:1.6;max-width:var(--measure)}
.causes{display:grid;gap:var(--s1);margin:0 0 var(--s4);font-family:var(--serif);font-size:var(--t-body);line-height:1.6;max-width:34em}
/* nothing blocks: a verdict with the weight of a section heading, under a hairline */
.verdict{border-top:1px solid var(--hair);padding-top:var(--s3);margin-bottom:var(--s7)}
.pagehead+.verdict{border-top:0;padding-top:0}
.verdict-h{font-size:21px;line-height:1.3}
.verdict p{margin-top:var(--s1);font-size:var(--t-hint)}
.next-sec{margin-top:var(--s7)}
.read.sub-line{margin-bottom:var(--s6)}
.nextsteps>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px var(--s4);align-items:baseline}
.nextsteps .t{font-weight:600;color:var(--navy)}
.nextsteps .w{font-size:var(--t-small);color:var(--ink-2);text-align:end}

/* family pages */
/* the leader's preview: a cream strip that stays under the masthead; one line on a phone */
.pvband{position:sticky;top:0;z-index:4;background:var(--cream);border-bottom:1px solid var(--navy);font:400 var(--t-hint)/1.45 var(--sans);color:var(--ink)}
.pvband-in{max-width:var(--sheet);margin:0 auto;padding:var(--s1) var(--gutter);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 var(--s4)}
.pvband a{display:inline-flex;align-items:center;min-height:44px}
.pvband .pv-s{display:none}
.pvband-in>p{min-width:0}
/* narrow family pages: the head (and its double rule) spans the sheet as on the family page; the text keeps 640 px */
.famn{width:100%;padding-top:var(--s6)}
.famn>:not(.fam-head){max-width:640px}
.famn .fam-head{margin-bottom:var(--s5)}
.famn .read{margin-bottom:var(--s4);text-wrap:pretty}
/* one measure for every paragraph, hint and note in the narrow family column */
.famn :is(.read,.hint,.before-btn,.small){max-width:36rem;text-wrap:pretty}
.famn .read.lead-in{margin-bottom:var(--s2)}
.famn .acts{margin-top:var(--s5)}
.famn fieldset{margin-top:var(--s5)}
.famn .before-btn{margin-top:var(--s5);font-size:var(--t-body);color:var(--ink)}
.famn .small{margin-top:var(--s4)}
/* a question line, then the address as a block link with a full-size target and no full stop after it */
.q-line{margin-top:var(--s5);color:var(--ink-2)}
[dir=rtl] .q-line{font-size:18px;line-height:1.7}
/* a stand-alone address is a target, not Latin inside prose: it keeps its size */
[dir=rtl] a[lang=en].blk-mail,[dir=rtl] .foot a[lang=en][href^=mailto]{font-size:var(--t-body)}
/* a key to press, drawn as a key so it is not read as punctuation */
.key{display:inline-block;font:700 1.15em/1 var(--sans);padding:2px var(--s1);border:1px solid var(--hair);border-radius:var(--radius);vertical-align:1px}
.blk-mail{display:flex;align-items:center;min-height:44px;width:max-content;max-width:100%}
/* the bilingual link landing: stacked on phones (Arabic first); from
   768 px two columns under one double rule, Arabic on the right, the
   headings, sentences and buttons of both on shared rows */
.fp1-wrap{width:100%;padding-top:var(--s6)}
.fp1{max-width:560px}
.fp1 .blk{padding:0 0 var(--s6)}
.fp1 .blk+.blk{padding-top:var(--s5);border-top:1px solid var(--hair)}
/* the double rule closes each heading, as it closes the head on every other family page */
.fp1 .blk>h2{padding-bottom:var(--s3);margin-bottom:var(--s3);border-bottom:2px solid var(--rule);box-shadow:var(--head-rule)}
.fp1 .read{margin-bottom:var(--s4);text-wrap:pretty}
/* the last block ends on the --end space; both buttons share one height (Amiri's line box is taller) */
.fp1 .blk:last-child{padding-bottom:0}
.fp1 .btn{min-height:48px}
.fp1 .blk[dir=rtl]{text-align:right}
.fp1 .blk[dir=ltr]{text-align:left}
.fp1 .blk[dir=rtl] h2{font:700 34px/1.45 var(--ar)}
.fp1 .blk[dir=rtl] .read{font-family:var(--ar);font-size:20px;line-height:1.8}
.fp1 .blk[dir=rtl] .btn{font-family:var(--ar);font-size:19px;font-weight:700}
.fp1 .blk[dir=ltr] h2{font:400 26px/1.3 var(--serif)}
.fp1 .blk[dir=ltr] .read{font-family:var(--serif);font-size:var(--t-lede);line-height:1.65}
.fp1 .blk[dir=ltr] .btn{font-family:var(--sans);font-size:var(--t-body);font-weight:600}
@media (min-width:768px){
  .fp1{max-width:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto auto;gap:0 var(--s8)}
  .fp1 .blk,.fp1 .blk+.blk{border-top:0;padding:0;display:grid;grid-row:1/span 3;grid-template-rows:subgrid}
  .fp1 .blk>h2{align-self:end;margin-bottom:0}
  .fp1 .blk>*{margin-bottom:0}
  .fp1 .blk>.read{padding-top:var(--s3);padding-bottom:var(--s4)}
  .fp1 .blk[dir=rtl]{grid-column:2}
  .fp1 .blk[dir=ltr]{grid-column:1}
  [dir=rtl] .fp1 .blk[dir=rtl]{grid-column:1}
  [dir=rtl] .fp1 .blk[dir=ltr]{grid-column:2}
}
[dir=rtl] .radio{font-size:18px}
[dir=rtl] .issue{font-size:18px}
[dir=rtl] .lbl{font-size:19px}
[dir=rtl] .famn .read,[dir=rtl] .famn .before-btn{font-size:19px;line-height:1.8}
[dir=rtl] .famn .fam-head h1{line-height:1.5}

/* modal and toast */
.modal-back{position:fixed;inset:0;background:rgba(6,11,49,.55);z-index:80;display:flex;align-items:flex-start;justify-content:center;padding:var(--s8) var(--s3) var(--s3);overflow:auto}
.modal{background:var(--paper);border:1px solid var(--navy);border-radius:var(--radius);max-width:580px;width:100%;padding:var(--s5);box-shadow:0 16px 40px rgba(6,11,49,.35)}
.modal h2{font-size:21px;line-height:1.3;margin-bottom:var(--s3)}
.modal .read{margin-bottom:var(--s4)}
.doc{background:#fff;border:1px solid var(--hair);padding:var(--s4);font-size:var(--t-small);line-height:1.55;display:grid;gap:var(--s2)}
.doc .dt{font:400 18px/1.35 var(--serif);color:var(--navy);border-bottom:2px solid var(--rule);box-shadow:0 2px 0 #fff,0 3px 0 var(--rule);padding-bottom:var(--s2);margin-bottom:var(--s1)}
.doc table{width:100%;border-collapse:collapse;border-top:1.5px solid var(--rule);table-layout:fixed}
.doc th,.doc td{overflow-wrap:anywhere}
.doc td{padding:var(--s2) 0;border-bottom:1px solid var(--hair);vertical-align:top}
.doc td.r{text-align:end;white-space:nowrap;padding-inline-start:var(--s3)}
.doc .small{font-size:var(--t-small)}
#toast{position:fixed;left:50%;bottom:var(--s4);transform:translateX(-50%);z-index:90;background:var(--navy);color:var(--cream);font:var(--t-hint)/1.45 var(--sans);padding:var(--s3) var(--s4);border-radius:var(--radius);border-bottom:2px solid var(--gold);max-width:calc(100vw - 24px);width:max-content;display:none}
#toast.on{display:block;animation:toast-in 180ms var(--ease)}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}

/* ---------- quiet motion (craft pass) ----------
   One set of cues, each answering a tap, and nothing that moves on its own: a pressed button settles 1 px; hover
   fills ease; the radio dot eases in on the radio just chosen; the toast rises in; "Saved." fades in; and whatever
   just changed takes one cream wash that fades over 1.4 s, so the eye finds where the change went: a row answered,
   placed or re-chosen (.just), and the line focus lands on after an answer (the result with Undo, a "Checked" strip,
   "Removed … Undo"). All of it runs in 1 ms under reduced motion. */
@keyframes settle{from{background-color:var(--cream)}to{background-color:rgba(246,241,230,0)}}
.just{animation:settle 1.4s var(--ease) 1}
:is(li,.issue,span)[tabindex="-1"]:focus{outline:none;animation:settle 1.4s var(--ease)}
:is(li,.issue,span)[tabindex="-1"]:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
@keyframes arrive{from{opacity:0}to{opacity:1}}
.saved-flag:not(:empty),.edit .saved:not(:empty),.lastmove{animation:arrive .4s var(--ease) 1}
.ctl button{transition:background-color var(--quick) var(--ease)}
/* a register row on a laptop shows which row the pointer is on, so a choice is made in the right row */
@media (hover:hover){
  @container paygs (min-width:600px){
    .paygs .payl>li{transition:background-color var(--quick) var(--ease)}
    .paygs .payl>li:hover{background-color:rgba(6,11,49,.03)}
  }
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important}
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
/* Who pays below its register width (phones, see the 759 px block): the name and its status on one line, the choices
   on the next, on the name's edge */
.payl>li,.payl>li.locked-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who st" "ch ch" "more more";gap:0 var(--s3);align-items:start}
.payl .ch{margin-top:var(--s1);padding-inline-start:calc(var(--s4) + var(--s3))}
/* craft pass, final pass: the register. Once the list's own column is 600 px wide (a container query, so a 1100 px
   laptop with the sidebar gets it too, not only a 1280 px one), the choice is one column per choice, headed once per
   team in the team's heading line; each row is three circles, so the families paying by link and the covered place
   stand out down their columns. The labels stay on every radio for screen readers (visually hidden), and each label is
   still the whole 44 px cell to click. The status column holds the status word alone. */
.paygs{container:paygs/inline-size}
@container paygs (min-width:600px){
  .pgrp{--pc:124px;--pst:7.5rem}
  .paygs .payl>li,.paygs .payl>li.locked-row,.paygs .pgrp-h{display:grid;grid-template-columns:minmax(9em,1fr) calc(3 * var(--pc)) var(--pst);grid-template-areas:"who ch st" "more more more";column-gap:var(--s4);align-items:center}
  .paygs .payl .ch{margin-top:0;padding-inline-start:0}
  .paygs .pgrp-h{align-items:end}
  .paygs .pgrp-h .sub-h{grid-column:1;display:block}
  .paygs .pgrp-h .psep{display:inline}
  .paygs .pgrp-h .pdiv{white-space:nowrap}
  .pcols{grid-column:2;display:grid;grid-template-columns:repeat(3,var(--pc));align-items:end;font:600 var(--t-small)/var(--lh-small) var(--sans);color:var(--navy);padding-bottom:var(--s2)}
  .pcols>span{text-align:center;padding-inline:2px;text-wrap:balance}
  .paygs .payl .radios{display:grid;grid-template-columns:repeat(3,var(--pc));gap:0}
  .paygs .payl .radio{justify-content:center;gap:0}
  .paygs .payl .radio>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  /* a register row is one line: the 44 px cell sets its height, with a 4 px margin above and below */
  .paygs .payl>li{padding-block:var(--s1)}
  /* the choices not taken are drawn lighter (still 6.6:1), so the chosen circle reads down each column */
  .paygs .payl .radio input:not(:checked){border-width:1.5px;border-color:var(--field)}
  .paygs .payl .radio:hover input:not(:checked){border-color:var(--navy)}
  /* a paid row: its sentence starts on the first circle's edge (the radio group's left edge) and its first line, the
     name and "Paid 2 Mar" share one baseline */
  .paygs .payl>li.locked-row{align-items:baseline;padding-block:var(--s3)}
  .paygs .payl .locked{padding-inline-start:calc((var(--pc) - var(--box)) / 2)}
  .paygs .payl .stt .st{white-space:nowrap}
}
@container paygs (min-width:820px){
  .pgrp{--pc:136px;--pst:9rem}
  .paygs .payl>li,.paygs .payl>li.locked-row,.paygs .pgrp-h{column-gap:var(--s5)}
}
@media (max-width:1180px){
  .tbl .dv{white-space:normal}
  .tbl .dv .dv2{display:block;font-size:var(--t-small);color:var(--ink-3);font-weight:400}
  .tbl .dv .dvsep{display:none}
}
@media (max-width:1120px){
  .dash{grid-template-columns:minmax(0,1fr)}
  /* the rail starts a new block: space above, so the checklist's last hairline never sits on its double rule */
  /* the thick-thin rule opens the rail as it closes the page head: the thin line under the thick one */
  .rail{border-top:2px solid var(--rule);background:linear-gradient(var(--rule),var(--rule)) 0 2px/100% 1px no-repeat;padding-top:var(--s6);margin-top:var(--s6)}
}
@media (max-width:1023px){
  :root{--gutter:32px}
  .app{grid-template-columns:minmax(0,1fr)}
  .side{display:none}
  .main{border-inline-start:0}
  .m-menu{display:block}
  .ctxbar{display:block}
  .mast .svc,.mast-end.lead{display:none}
  .main{padding:var(--s6) var(--s6) 0}
}
@media (max-width:860px){
  .signin{grid-template-columns:minmax(0,1fr);gap:0;max-width:520px}
  .signin>.aside{grid-column:1}
  /* the help is a light block of its own: a hairline, never the footer's navy rule */
  .aside{margin-top:var(--s7);border-inline-start:0;padding-inline-start:0;border-top:1px solid var(--hair);padding-top:var(--s5)}
  .fam{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "pay" "steps" "covers";padding-top:var(--s6)}
  .pay{margin-bottom:var(--s7)}
}
@media (max-width:759px){
  :root{--gutter:16px;--end:var(--s7)}
  .mast-in,.mast-in.wrap{height:56px;padding:0 var(--s4);gap:var(--s3)}
  .crest{width:36px;height:28px}
  .brand{gap:var(--s3)}
  .wordmark{font-size:15px}
  .wordmark-ar{font-size:20px}
  .main{padding:var(--s5) var(--s4) 0}
  .ph-only{display:revert}
  .lg-only{display:none}
  /* public pages: the masthead is the wordmark alone; the footer carries the link to gaqcup.com */
  .mast-out{display:none}
  /* the wordmark and the two quiet links (Rounds, Honours) cannot share a phone's width, so on the public pages the
     links take a second row under the wordmark, on the text's left edge (found on T0R's 360 px shots, 25 Oct 2026;
     .pubnav marks that masthead alone, so the family pages' masthead, which has no links, keeps one row) */
  .mast-in.pubnav{flex-wrap:wrap;height:auto;padding-block:0}
  .mast-in.pubnav .brand{flex:1 1 100%;min-height:56px}
  .mast-in.pubnav .mnav{padding-block:var(--s2);margin-top:calc(-1 * var(--s3))}

  .signin{padding-top:var(--s6)}
  .signin h1,.pubmain h1{font-size:27px}

  .pagehead{margin-bottom:var(--s5)}
  .pagehead h1{font-size:27px}
  .pagehead .meta{font-size:var(--t-small)}
  .pagehead.t2 .meta{display:none}
  .sec{margin-bottom:var(--s6)}
  .sec-h h2{font-size:20px}
  .stage{margin-bottom:var(--s6)}
  .stage h2{font-size:22px}
  /* phones: the action goes under its text, so the text keeps the full width */
  .attn>li{grid-template-columns:minmax(0,1fr);gap:2px}
  .attn .act{justify-self:start;white-space:normal}
  /* every stand-alone link and link-styled button is a 44 px target on a phone */
  .acts>.linkbtn,.acts>a:not(.btn),.attn .act,.check .v a,.check .v .linkbtn,.nextsteps a,.filter .linkbtn,.addline .linkbtn,.alt-link a,.alt-link .linkbtn,
  .track .linkbtn,.plink a.who,.plink-more a,.pv-log .linkbtn,.pv-note .linkbtn,.tally .linkbtn,.saved-help .linkbtn,.cols .linkbtn,.linkrow .linkbtn,.endnext>a:not(.btn),
  .signin .small>a,.signin .small .linkbtn,.blk-link,.panel-acts .linkbtn,.payl .more .acts>.linkbtn,.ch-sum .linkbtn,.t7-notes .clear .linkbtn,.issue a,.verdict a,
  .errsum a,.s1d>summary,details.info>summary,.payl .locked a,.q-line a:not(.blk-mail){display:inline-block;padding-block:11px;margin-block:-11px}
  /* a link inside a sentence stays in the sentence: its padding enlarges the target without breaking the line */
  .issue p a{display:inline;margin-block:0}
  .errsum li{padding-block:var(--s1)}
  .tabs button{min-height:44px}
  .check>li{grid-template-columns:16px minmax(0,1fr) auto;row-gap:3px}
  .check.nonum>li{grid-template-columns:minmax(0,1fr) auto}
  .check>li.fold{grid-template-columns:16px minmax(0,1fr) auto}
  .check .v{grid-column:2;grid-row:2;text-align:start;white-space:normal}
  .check.nonum .v{grid-column:1}
  .check .v.vt{display:none}
  .check .st{grid-column:3;grid-row:1}
  .check.nonum .st{grid-column:2}

  .tabs{gap:var(--s5)}
  .q{padding-inline-start:var(--s3)}
  .q legend{font-size:20px}
  .errsum h2,.modal h2{font-size:20px}

  /* the table becomes a ruled list. Line 1: number, name, status (every row); line 2: Born · Year · Division ·
     Photo, without the words "Born" and "Photo", and Edit at its end. A ready row in the paste preview is one line */
  .tbl,.tbl tbody,.tbl tr,.tbl td{display:block}
  .tbl thead{display:none}
  .tbl tbody{border-bottom:1px solid var(--hair)}
  .tbl tbody:first-of-type{border-top:1.5px solid var(--rule)}
  .tbl tr:first-child{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--s2);padding:var(--s3) 0}
  .tbl td{border:0!important;padding:0!important;width:auto!important}
  .tbl .c-n{order:1;font-size:var(--t-small);min-width:24px}
  .tbl .c-name{order:2;flex:1 1 0;min-width:0}
  .tbl .c-st{display:block;order:3;margin-inline-start:auto}
  .tbl tbody.prow.ready .c-m{display:none!important}
  .tbl .c-dob,.tbl .c-yr,.tbl .c-div,.tbl .c-ph{display:none}
  .tbl .c-m{display:block;order:5;flex:1 1 calc(100% - 72px);min-width:0;margin-top:3px;padding-inline-start:var(--s6)!important;font-size:var(--t-small);color:var(--ink-2);font-weight:400}
  .tbl.pv .c-m{flex-basis:100%}
  .tbl tr.more{padding:0 0 var(--s3) var(--s6)}
  .tbl tr.more.editing{padding-inline-start:0}
  .tbl tr.more td:first-child{display:none}
  .tbl tbody.removed tr{display:block;padding:var(--s3) 0}
  .issue{padding-inline-start:var(--s3)}
  .issue p{flex-basis:100%}
  .issue .acts{width:100%;margin-inline-start:0}
  .issue .fix{max-width:none}
  .edit{padding-inline-start:var(--s3)}

  /* every family page starts 16 px under the masthead (12 px at 320), which pays for the slip's hairline */
  .fam,.famn,.fp1-wrap{padding-top:var(--s4)}
  .fam-head{margin-bottom:var(--s4);padding-bottom:var(--s4)}
  .fam-head h1{font-size:27px}
  [dir=rtl] .fam-head h1{font-size:31px}
  .pay{padding:var(--s5) var(--s4)}
  .amt .val{font-size:42px}
  .steps>li{grid-template-columns:var(--ncol) minmax(0,1fr) auto;column-gap:var(--ngap)}
  .steps .num{font-size:18px}
  /* Arabic slip: a size that keeps the Pay button on the first screen */
  [dir=rtl] .pay .pre,[dir=rtl] .pay .due,[dir=rtl] .pay .next{font-size:17px;line-height:1.55}
  [dir=rtl] .pay{padding-top:var(--s4)}
  [dir=rtl] .pay .due{margin:var(--s2) 0 0}
  [dir=rtl] .pay .due+.pre{margin-top:var(--s2);padding-top:var(--s2)}
  [dir=rtl] .pay .paid-amt+.due{margin:0 0 var(--s4)}
  [dir=rtl] .amt .val{font-size:40px}
  /* the one language link: the current one is hidden, the other is a 44 px target */
  .lang a[aria-current=true]{display:none}
  .lang a{display:inline-flex;align-items:center;min-height:44px;padding:0 var(--s1);border-bottom:0}
  /* phone footers: every link a 44 px target */
  .foot .links{gap:0 var(--s5);margin-bottom:var(--s2)}
  .foot .links a,.foot .links span[aria-current],.foot .links .linkbtn{display:inline-flex;align-items:center;min-height:44px;font-size:var(--t-hint)}
  [dir=rtl] .foot .links a{font-size:17px}
  [dir=rtl] .foot .links a[lang=en],.foot.bi .fcol[lang=en] .links a{font-size:var(--t-hint)}

  .fields2{grid-template-columns:minmax(0,1fr)}
  .col1{max-width:none}
  .dobsel{grid-template-columns:4.4em minmax(0,1fr) 5.4em;gap:var(--s1)}
  .dobsel select.input{padding:0 var(--s5) 0 var(--s2);background-position:right var(--s2) center}
  .tbl .c-act{order:6;margin-inline-start:auto;align-self:baseline}
  .tbl .c-act .linkbtn{display:inline-flex;align-items:center;min-height:44px;margin-block:-11px}
  .stepper{align-items:flex-start}
  /* teams: name and Move on line 1, year and division under the name */
  .seats>li{grid-template-columns:var(--s4) minmax(0,1fr) auto}
  .seats .nm{grid-column:2;grid-row:1}
  .seats .mvl{grid-column:3;grid-row:1}
  .seats .d{grid-column:2/-1;grid-row:2}
  .t7 .tray{order:-1;margin:0 0 var(--s6)}
  .rsn{max-width:none}
  /* phones: a compact block per student. The name, the status straight under it; the choices on the right */
  /* phones: one shape for every row. The name with its status at the end of the line, then the choice */
  .payl>li,.payl>li.locked-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who st" "ch ch" "more more";gap:0 var(--s3);align-items:start}
  .payl .stt{text-align:end}
  .payl .ch{margin-top:var(--s1);padding-inline-start:calc(var(--s4) + var(--s3))}
  .payl .more{margin-top:var(--s1)}
  .pvband a{min-height:44px}
  .modal{padding:var(--s4)}
  .btn-sm{min-height:44px}
  .seats .mvl,.unpl .mvl{padding-block:11px}
}
/* one rule for button widths on phones: every button in a row of page actions is full width, and a full-width
   button's label may wrap (balanced); a decision inside a row keeps its width. Arabic buttons stay on one line */
@media (max-width:480px){
  .acts .btn,.endnext .btn{width:100%;white-space:normal;text-wrap:balance}
  [dir=rtl] .acts .btn{white-space:nowrap}
  .issue .acts .btn,.fnote .acts .btn,.q .acts .btn,.attn .acts .btn,.confirm .btn,.panel-acts .btn,.payl .more .acts .btn,.mvp .btn,.fix-in .btn{width:auto}
  .edit .foot-row .acts,.batchbar>.acts,.team-f>.acts,.acts>form{flex:1 1 100%;width:100%}
  .wd-only{display:none}
  .nr-only{display:inline}
  .tbl .c-act .linkbtn{min-height:44px}
  /* the meals and needs rows stack: the label full width, the stepper on its own line under it */
  .stepper{flex-direction:column;align-items:stretch;gap:var(--s2)}
  .stepper .ctl{align-self:flex-start}
  /* Places keeps its control beside a short label, so the total and the button stay near the numbers */
  .srows.t4s .stepper{flex-direction:row;align-items:flex-start;justify-content:space-between}
  .srows.t4s .stepper .ctl{align-self:auto}
  /* "Set all to:" with its two choices on one line where they fit (final pass), each a 44 px target */
  .bulk .bl{white-space:normal;display:flex;flex-wrap:wrap;column-gap:var(--s3);align-items:center}
  .bulk .bl .linkbtn{margin-inline-start:0;min-height:44px}
  .bulk .bsep{display:none}
  /* who pays: every row that can change is one line, "School invoice · Change", until Change opens its choices */
  .payrow:not(.open):not(.locked-row) .ch fieldset{display:none}
  .payrow:not(.open):not(.locked-row) .ch-sum{display:block}
  .payrow.open .radios{flex-direction:column;gap:0}
  /* what happens next: the "when" under each title */
  .nextsteps>li{grid-template-columns:minmax(0,1fr)}
  .nextsteps .w{text-align:start;color:var(--ink-3)}
  /* the preview band: one line, the full sentence for screen readers */
  .pvband .pv-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .pvband .pv-s{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .pvband-in{flex-wrap:nowrap}
  .pvband-in>p{flex:1 1 auto}
  /* the slip's label and its amount share a line, so the Pay button stays on the first screen */
  .pay-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;column-gap:var(--s3)}
  .pay-top h2{margin:0}
  /* Arabic: every status in one column with a fixed gutter, so a short word ("تم") never touches its sentence */
  [dir=rtl] .steps>li{grid-template-columns:var(--ncol) minmax(0,1fr) minmax(5.5em,auto)}
  /* family footers: one link a row, each a 44 px target; only a real pair (the terms in both languages) shares a line */
  .foot.fam:not(.bi) .links{flex-direction:column;align-items:flex-start;gap:0}
  /* numbered sections: only the number sits beside the heading; the body takes the full width */
  .nsec{display:block}
  /* a long key-value row stacks: the label, then the value under it */
  .kv>li.long{flex-wrap:wrap;gap:0}
  .kv>li.long .v{flex-basis:100%;text-align:start}
  .nsec>.num{float:left;width:28px;padding-top:2px;font-size:22px}
}
@media (max-width:400px){
  .tabs{gap:var(--s4);font-size:var(--t-small)}
  .fam{--ncol:14px;--ngap:var(--s3)}
  .steps>li{grid-template-columns:var(--ncol) minmax(0,1fr) auto;column-gap:var(--ngap)}
  [dir=rtl] .steps>li{grid-template-columns:var(--ncol) minmax(0,1fr) minmax(4.5em,auto)}
  .steps p{font-size:var(--t-body);line-height:var(--lh-read)}
  [dir=rtl] .steps p{font-size:18px;line-height:1.75}
  .pay{padding:var(--s5) var(--s4)}
  .pay .btn{padding-inline:var(--s3)}
}
/* the narrowest phones: the wordmark and the menu button must not touch; the Pay button stays on the first screen */
@media (max-width:359px){
  .wordmark{font-size:13px;letter-spacing:.02em}
  .crest{width:30px;height:24px}
  .brand{gap:var(--s2)}
  .m-menu summary{padding:0 var(--s2)}
  .amt .val{font-size:36px}
  .pay .due{margin:var(--s1) 0 0}
  .pay .due+.pre,[dir=rtl] .pay .due+.pre{margin-top:var(--s1);padding-top:var(--s2)}
  .pay{padding:var(--s4) var(--s3)}
  .pay .pre{font-size:var(--t-small);line-height:1.45}
  .fam-head h1{font-size:24px}
  .fam-head{padding-bottom:var(--s3)}
  /* the meta line fits one line, so the slip starts higher */
  .refline{font-size:var(--t-small)}
  /* the Arabic slip too (these must outrank the [dir=rtl] sizes above) */
  [dir=rtl] .fam-head h1{font-size:28px}
  [dir=rtl] .refline{font-size:16px}
  [dir=rtl] .pay .pre,[dir=rtl] .pay .due{font-size:16px;line-height:1.55}
  [dir=rtl] .pay h2{font-size:16px}
  [dir=rtl] .amt .val{font-size:36px}
  /* a long school name takes two lines here: the head and the slip give the space back */
  .fam,.famn,.fp1-wrap{padding-top:var(--s3)}
  .fam-head{margin-bottom:var(--s3)}
  .fam-head .kicker{margin-bottom:var(--s1);line-height:1.3}
  .pay,[dir=rtl] .pay{padding-top:var(--s3)}
  .fam-head h1,[dir=rtl] .fam-head h1{margin-bottom:var(--s2)}
  .pay .pre:last-of-type{margin-bottom:var(--s3)}
}

/* =====================================================================
   CRAFT PASS: interaction (merged from sandbox craft/b). Nothing here adds
   a colour, a font, a radius or a panel: it keeps the next action within
   thumb reach, says what a tap did, and sets the one number that matters
   on the dashboard as a figure.
   ===================================================================== */
/* an in-page jump (Fix 2 things, a dashboard row, an error link) lands with air above it */
[id]{scroll-margin-top:var(--s5)}
/* a sentence in a row never ends on a lone word where the browser can help */
.attn p,.issue p,.payl .more,.lastmove,.pv-note,.commit-note{text-wrap:pretty}
.pv-note,.commit-note{hanging-punctuation:first allow-end last}

/* ---------- the stage's figure (dashboard): days left, in the slip's numeral style ----------
   One number per stage, counted from the same day as the deadline rail; the numeral in Libre Baskerville lining
   figures, what it counts in interface type beside it, after a hairline. */
.cd{display:flex;align-items:center;gap:var(--s4);margin:var(--s4) 0}
/* final pass: the figure in Libre Franklin 500 lining figures, set a touch tight as display figures are; "11 days" and
   "111" read as numbers at 44 px and at phone size, where Baskerville's 11 read as "ll" */
.cd-n{flex:none;min-width:1.1em;font:500 44px/1 var(--sans);letter-spacing:-.01em;font-variant-numeric:lining-nums tabular-nums;color:var(--navy);margin-inline-start:-2px}
.cd-t{display:flex;flex-direction:column;gap:2px;min-width:0;padding-inline-start:var(--s4);border-inline-start:1px solid var(--hair)}
.cd-w{font:600 var(--t-body)/var(--lh-body) var(--sans);color:var(--navy)}
.cd-s{font-size:var(--t-small);line-height:var(--lh-small);color:var(--ink-2)}
.stage .cd+.read{margin-top:0}
.stage .read b{color:var(--navy)}

/* ---------- whole-row targets: Needs your attention and Review ----------
   The action link stretches over its row (a tap anywhere on the sentence works); on a pointer the row warms to cream
   under the cursor and its link thickens, so it reads as one control. Rows with their own buttons keep them on top. */
.attn>li{position:relative}
.attn>li>a.act::after{content:"";position:absolute;inset:0}
.attn>li :is(button,select,input,a:not(.act),.acts,.confirm,.rsn){position:relative;z-index:1}
@media (hover:hover){
  .attn>li:has(>a.act){transition:background-color var(--quick) var(--ease)}
  .attn>li:has(>a.act):hover{background:rgba(246,241,230,.75)}
  .attn>li:has(>a.act):hover>a.act{text-decoration-thickness:2px}
}

/* ---------- the end block, which is the phone's dock ----------
   Only while a screen still has something to fix (Students, Teams, Adults when blocked; never Who pays or a plain
   "Next"). On a phone it stays at the foot of the screen while the list scrolls and lands in place at the end: the
   link on the left, the button on the right, nearest the thumb. A navy rule shows only while it floats (no shadow:
   the rule is the system's language). When either label would wrap, the bar stacks: the button full width, the link
   under it (the page sets .stack after measuring). */
.endpre{margin-top:var(--s7);font-size:var(--t-hint);color:var(--ink-2);max-width:var(--measure)}
.endpre+.endnext{margin-top:var(--s3)}
.dock-end{display:block;height:0}
.dock-st{font-size:var(--t-hint);line-height:var(--lh-hint);color:var(--ink-2)}
@media (min-width:760px){.commit .dock-st{display:none}}
@media (max-width:759px){
  .dock{position:sticky;bottom:0;z-index:4;background:var(--paper);margin-inline:calc(-1 * var(--s4));padding:var(--s3) var(--s4);padding-bottom:max(var(--s3),env(safe-area-inset-bottom));border-top:1px solid var(--hair);display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2) var(--s4)}
  .dock.float{border-top-color:var(--rule)}
  .endnext.dock{margin-top:var(--s6)}
  .commit.dock{margin-top:var(--s4)}
  .dock.two{flex-direction:row-reverse;flex-wrap:nowrap;justify-content:space-between}
  .dock.two .btn{width:auto;flex:0 0 auto;max-width:62%;white-space:normal;text-wrap:balance}
  .dock.two>:not(.btn){flex:1 1 auto;min-width:0}
  .dock.two>a:not(.btn){display:inline-flex;align-items:center;min-height:44px;padding-block:0;margin-block:0}
  .dock .reason{margin:0}
  .dock:not(.two) .btn{width:100%}
  /* a label that would wrap: one column, the button first and full width, the link or the note under it */
  .dock.two.stack{flex-direction:column;align-items:stretch;gap:var(--s1)}
  .dock.two.stack .btn{width:100%;max-width:none}
  .dock.two.stack>:not(.btn){align-self:flex-start}
  /* a field focused near the foot of the screen is never hidden behind the dock (WCAG 2.2 Focus Not Obscured) */
  html:has(.dock){scroll-padding-bottom:96px}
  html:has(.dock.stack){scroll-padding-bottom:144px}
}

/* ---------- students: the paste box says what it holds; the phone's laptop line ---------- */
.pcount{margin-top:var(--s2)}
.ph-laptop .linkbtn{display:inline-block}

/* ---------- teams: the last placement with Undo, beside the tally ---------- */
.traybar{position:sticky;top:0;z-index:3;background:var(--paper);margin-bottom:var(--s2)}
.traybar .ttally{position:static;margin-bottom:0}
.ttally .tt-l{color:var(--ink-2)}
.ttally b{font-weight:700}
.lastmove{font-size:var(--t-hint);line-height:var(--lh-hint);color:var(--ink);padding:var(--s2) 0;border-bottom:1px solid var(--hair)}
.lastmove .linkbtn{margin-inline-start:var(--s1);padding-block:11px;margin-block:-11px}
.lastmove.solo{max-width:var(--measure);margin:calc(-1 * var(--s3)) 0 var(--s5);padding:0;border-bottom:0}
@media (min-width:1100px){
  .t7.split .traybar{position:static}
  .t7.split .lastmove{margin-bottom:var(--s3)}
}
/* while the tally bar sticks to the top (phones and tablets), focus and in-page jumps land below it */
@media (max-width:1099px){html:has(.t7.split){scroll-padding-top:128px}}
/* the name and its year group share one wrapper: at laptop width it dissolves into the seat row's columns (name, then
   year and division straight after it); on a phone the year sits beside the name when it fits ("Adam Clarke  Year 5") */
.seats .sw{display:contents}
@media (max-width:759px){
  .seats .sw{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--s2);grid-column:2;grid-row:1;min-width:0}
  .seats .sw .nm,.seats .sw .d{grid-column:auto;grid-row:auto}
  .seats .sw .nm{flex:0 1 auto;min-width:0}
  .seats .sw .d{flex:1 1 auto;min-width:0}
}
@media (max-width:759px){
  /* under the paste preview's dock: Start again, then the laptop line, each a 44 px target of its own */
  .ph-only>.linkbtn,.ph-laptop .linkbtn{display:inline-flex;align-items:center;min-height:44px}
  .ph-only.small+.ph-only.small{margin-top:0}
}

/* =====================================================================
   FINAL PASS (24 Oct 2026): the last craft findings. Nothing here adds a
   colour, a font, a radius or a panel.
   ===================================================================== */
/* a team sheet is four short rows: at laptop width it stops at the measure, so Move sits near the name and the year
   instead of 600 px away across an empty middle (the split view, with students waiting, keeps its own compact form) */
.t7:not(.split) .team,.t7:not(.split) .t7-notes{max-width:var(--measure)}
/* "What happens next": a short bold label and its when, the detail under the label in regular text */
.nextsteps .d{grid-column:1/-1;font-size:var(--t-hint);line-height:var(--lh-hint);color:var(--ink-2);max-width:var(--measure)}
/* the F0 message: a long link breaks where its line is full, never at its "?" as if that were a word break */
.msg .url{word-break:break-all}
/* a hint of one sentence never strands its last word ("records.") */
.hint,.saved-help,.lede-note{text-wrap:pretty}
/* footers: one link size per script per breakpoint, whatever the page's own language. Latin links are 14 px (15 on
   phones), Arabic links 18 px (17 on phones), the terms in the other language and the address included */
.foot .links :is(a,.linkbtn,span[aria-current]):lang(en){font-size:var(--t-small)}
.foot .links :is(a,.linkbtn,span[aria-current]):lang(ar){font-size:18px}
/* the refund agreed lead stays navy in Arabic too (the Arabic paid lead sets its own colour) */
[dir=rtl] .pay h2.paid-h.rf-h{color:var(--navy)}
/* a step's sentence of two lines breaks into two even lines, so no line ends on a lone "at" (final pass) */
.steps p{text-wrap:balance}
@media (min-width:861px){.fam{column-gap:var(--s7)}}
/* the end block on a phone */
@media (max-width:759px){
  /* the dock's short label: the button's last words leave the view (never the accessible name) before the dock stacks */
  .dock.short .btn .dl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .dock.two>a.dock-alt{font-size:var(--t-hint);line-height:var(--lh-hint);text-wrap:balance}
  /* parked: while a form is open in a row, the dock waits at the end of the page instead of covering the form */
  .dock.parked{position:relative;border-top-color:var(--hair)}
  html:has(.dock.parked){scroll-padding-bottom:var(--s4)}
  /* the dashboard on a phone: the stage's kicker and headline are the page's visible head (the sidebar's "Dashboard"
     stays the page title for screen readers and the browser tab), so the news starts on the first screen */
  .pagehead.t2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0;padding:0;border:0;box-shadow:none}
  .pagehead.t2+.dash .stage .kicker{margin-top:0}
  /* leader ledes on phones at body size, so the work (the paste box, the register) reaches the first screen */
  .main .lede{font-size:var(--t-body);line-height:var(--lh-body);margin-bottom:var(--s4)}
  .main .lede+.lede-note{margin-top:calc(-1 * var(--s1))}
  .foot .links :is(a,.linkbtn,span[aria-current]):lang(en){font-size:var(--t-hint)}
  .foot .links :is(a,.linkbtn,span[aria-current]):lang(ar){font-size:17px}
}
@media (max-width:480px){
  /* a suggested answer inside a row that still has to wrap reads from its start, like the text above it */
  :is(.issue,.fnote,.attn,.q) .acts .btn{text-align:start;justify-content:flex-start}
  /* Arabic steps on a phone: the status under its sentence, so the sentence takes the whole width (it had 218 px
     beside a 100 px status column and ran to three lines) */
  [dir=rtl] .steps>li{grid-template-columns:var(--ncol) minmax(0,1fr)}
  [dir=rtl] .steps .st{grid-column:2;text-align:start;margin-top:var(--s1)}
}

/* =====================================================================
   6. The progression layer (24 Oct 2026): results, laureates, the next
   stage. Leader Laureates tab (T14), the championship entry (T15), the
   staff results upload (S4) and qualified list (S6), the help page, the
   invitation email mock (L16), the laureate card (ceremony handout) and
   the certificate check (Gate 4 lookup). Everything reuses the ruled
   list, the table, the checklist grid, the confirm strip and the slip's
   certificate frame; the few new rules are below.
   Status words added to the fixed list: Invited (your turn: ink,
   semibold); Accepted, Declined, Entered, Not qualified (finished: the
   quiet grey family); Lapsed (not taken up: ink-2, regular, with Later).
   A medal word (Trophy, Gold, Silver) is not a status: it is the row's
   result, set in navy at the end of the row.
   ===================================================================== */
/* the season line and other secondary reading text */
.read.sec{color:var(--ink-2)}
/* the three stages as words: a ruled list, the current stage in full ink; under a family page's heading it drops the
   dash bullets that the covers list gives its items */
.covers .road li{padding-inline-start:0}
.covers .road li::before{content:none}
.covers .road{margin-top:var(--s2)}
.road>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px var(--s3);align-items:baseline}
.road .t{font-weight:600;color:var(--ink-2);font-size:var(--t-hint)}
.road li.here .t{color:var(--navy)}
.road .d{grid-column:1/-1;font-size:var(--t-small);color:var(--ink-2)}
.road .w{font-size:var(--t-small);color:var(--ink-2);white-space:nowrap}
.road li.here .w{color:var(--navy);font-weight:600}
/* the dashboard rail after the round: two quiet lines, no day counts */
.after>li{font-size:var(--t-small);line-height:var(--lh-small);color:var(--ink-2)}
.after b{color:var(--navy);font-weight:600}
/* the result at the end of a laureate's row: the medal word */
.medal{font:600 var(--t-small)/1.35 var(--sans);color:var(--navy);white-space:nowrap}
.medal.none{color:var(--ink-3);font-weight:400}
.tbl .c-rank,.tbl .c-ev,.tbl .c-sch,.tbl .c-div2,.tbl .c-basis{overflow-wrap:break-word}
.tbl .c-rank{white-space:nowrap}
.tbl tfoot td{border-bottom:0;border-top:1.5px solid var(--rule);font-weight:600;color:var(--navy);font-size:var(--t-small)}
/* a team's result line on Laureates: the team, its basis in words, and a card to accept or decline */
.qual .acts{margin-top:var(--s2)}
.qual .confirm{margin-top:var(--s2);grid-column:1/-1}
.qual li.done-row p{color:var(--ink-2);font-size:var(--t-hint)}
.qual .d .pts{white-space:nowrap}
/* The rounds pages (T16 and the public page; Sam's review, 25 Oct 2026): one ruled row per round; the status column is
   wide enough for its longest word with its dot ("Few places left", "By qualification") on a laptop; on a phone the row
   stacks as every ruled row does. The ask-to-join form sits in the row as the accept card does on Laureates, its one
   line full width */
.check.nonum.season>li{grid-template-columns:minmax(0,1fr) auto 152px}
.season .confirm{margin-top:var(--s2)}
.season .confirm .field{flex:1 1 100%;margin:0}
.season .issue{margin-top:var(--s2)}
/* the traffic light: a 10 px dot before the status word, in the word's colour (green, amber, red, grey). It is the one
   round shape on the product besides a radio button. The legend is one line above the list, in the same words */
.st .dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:currentColor;margin-inline-end:var(--s2);vertical-align:1px}
.legend{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s4);margin:0 0 var(--s3);font-size:var(--t-small)}
.legend .st{font-weight:500;white-space:normal;line-height:var(--lh-small)}
.season .d.reg{color:var(--ink)}
/* "Where the season leads": the destination reads largest, the two stages under it at the list's size */
.season.path li.dest .t{font-size:19px;line-height:var(--lh-read)}
.season.path .d{text-wrap:pretty}
/* the rounds already held fold away under the list: the summary is the disclosure's, the inner list a hairline rule */
details.past{margin-top:var(--s4)}
details.past[open]>summary{margin-bottom:var(--s3)}
details.past .rows{border-top:1px solid var(--hair)}
.regional .read{margin-bottom:var(--s4)}
/* a phone: the name and its details take the whole width, and the action line under them carries the link at the start
   and the status with its dot at the end of the rule */
@media (max-width:759px){
  .check.nonum.season>li{grid-template-columns:minmax(0,1fr) auto}
  .check.nonum.season>li>div{grid-column:1/-1}
  .check.nonum.season .v{grid-column:1;grid-row:2}
  .check.nonum.season .st{grid-column:2;grid-row:2}
  .season.path li.dest .t{font-size:var(--t-body);line-height:var(--lh-body)}
}
/* staff: the embargo band is the preview band's cousin (cream, a navy rule, one line) */
.pvband.emb .pv-s{display:none}
/* staff: the results pack upload, a dashed navy rule and nothing inside it but the two facts */
.upl{border:1px dashed var(--navy);border-radius:var(--radius);padding:var(--s5);display:grid;gap:var(--s2);max-width:var(--measure);margin-bottom:var(--s5)}
.upl p{font-size:var(--t-hint);color:var(--ink-2)}
.upl .acts{margin-top:var(--s2)}
/* staff: filters above the qualified list, one row of selects */
.filters{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s3) var(--s4);margin:var(--s3) 0 var(--s4);max-width:1000px}
@media (min-width:760px){.filters{grid-template-columns:minmax(230px,1.5fr) repeat(4,minmax(0,1fr))}}
.filters .sub .linkbtn{font-size:var(--t-small)}
.tbl .c-basis .sub .linkbtn{font-size:var(--t-small)}
/* staff: the phone reply recorded from under the team cell (never in a column the phone hides), and the school's
   route and address in the Contact column */
.tbl .c-name .acts.reply{display:block;font-weight:400;font-size:var(--t-small);color:var(--ink-2);margin-top:2px}
.tbl .c-name .acts.reply .linkbtn{font-size:var(--t-small)}
.tbl .c-con{font-size:var(--t-small);color:var(--ink-2)}
.tbl .c-con .sub{color:var(--ink-2)}
/* a laureate's medals: the count opens to each medal with its source (the same disclosure as details.info, smaller) */
.meds{margin:0}
.meds>summary{list-style:none;cursor:pointer;color:var(--link);text-decoration:underline;text-underline-offset:.2em;font-size:var(--t-small);width:max-content;max-width:100%;padding-block:var(--s1)}
.meds>summary::-webkit-details-marker{display:none}
.meds>ul{list-style:none;margin:var(--s1) 0 0;padding:0;font-size:var(--t-small);line-height:var(--lh-small);color:var(--ink-2)}
.meds>ul b{font-weight:600;color:var(--navy)}
.tbl .c-m .meds{margin-top:2px}
/* the medals column sits a step away from the right-aligned highest award */
.tbl.laur .c-med,.tbl.laur th.c-med{padding-inline-start:var(--s4)}
/* S7: the feeder rounds, one row each, with their counts per status */
.feeders .counts .tnum{font-weight:600;color:var(--navy)}
.feeders .d+.d{margin-top:2px}
.dl .what .sub{display:block;font-size:var(--t-small);color:var(--ink-2);font-weight:400}
.filters .lbl{font-size:var(--t-small);margin-bottom:2px}
.filters .input{height:44px;font-size:var(--t-hint)}
/* the email mock: a plain white sheet with its header rows, in the interface face as a mail client shows it */
.email{background:#fff;border:1px solid var(--hair);border-radius:var(--radius);padding:var(--s4) var(--s5);max-width:var(--measure);margin-bottom:var(--s5)}
.email .eh{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px var(--s3);font-size:var(--t-small);line-height:var(--lh-small);color:var(--ink-2);border-bottom:1px solid var(--hair);padding-bottom:var(--s3);margin-bottom:var(--s3)}
.email .eh b{color:var(--navy);font-weight:600}
.email .eb p{font-size:var(--t-hint);line-height:var(--lh-hint);margin-bottom:var(--s3);text-wrap:pretty}
.email .eb p:last-child{margin-bottom:0}
.email .eb ul{margin:0 0 var(--s3) var(--s5);font-size:var(--t-hint);line-height:var(--lh-hint)}
/* the laureate card handed out at the ceremony: the slip's certificate frame, centred, no names */
.lcard{background:var(--slip);border:1px solid var(--navy);border-radius:var(--radius);outline:1px solid rgba(201,162,74,.75);outline-offset:-5px;padding:var(--s6) var(--s5);max-width:30rem;text-align:center;margin:0 auto var(--s5)}
.lcard .crest{width:48px;height:48px;margin:0 auto var(--s3)}
.lcard .k{font:600 var(--t-small)/1.4 var(--sans);color:var(--ink-2)}
.lcard h2{font-size:26px;line-height:1.2;margin:var(--s2) 0 var(--s1)}
.lcard .basis{font:600 var(--t-hint)/1.4 var(--sans);color:var(--navy);margin-bottom:var(--s4)}
.lcard .read{margin:0 auto var(--s3);text-wrap:balance}
.lcard .road{text-align:start;margin:var(--s4) 0}
.lcard .small{margin-top:var(--s3)}
.lcard-wrap{display:grid;gap:var(--s5)}
/* the certificate check (Gate 4 lookup): a short form, then the award as a ruled list */
.verify .kv{max-width:var(--measure)}
.verify .kv .v{font-weight:400;color:var(--ink);text-align:start}
.verify .kv>li{display:grid;grid-template-columns:minmax(120px,160px) minmax(0,1fr);gap:var(--s3)}
/* the staff shell: the context block names the team, not a school */
.ctx.staff b,.ctxbar.staff b{color:var(--ink-2);font-weight:600}
/* =====================================================================
   7. Build step 2 (24 Oct 2026): user-friendliness. A one-line notice
   (an unknown leader address, the practice run); the paste preview's
   tally as links and "Next to fix" in the dock; the approval-slip tick in
   a student's editor; the family's final details under the steps; the
   calendar link on the slip. Nothing here adds a colour, a font, a
   radius or a panel.
   ===================================================================== */
/* a one-line notice about the page itself: a navy rule, hint size, above the page's content */
.notice{font-size:var(--t-hint);line-height:var(--lh-hint);color:var(--ink);border-inline-start:3px solid var(--navy);padding:2px 0 2px var(--s3);margin-bottom:var(--s5);max-width:var(--measure);text-wrap:pretty}
.notice b{color:var(--navy)}
/* the tally's counts are links to the first row of their kind: the count keeps its colour (red, amber) and gains the underline */
.tally a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.tally a:hover{text-decoration-thickness:2px}
/* a link in a section head's auxiliary slot */
.sec-h a.aux{color:var(--link)}
/* the approval-slip tick, under the photo permission in a student's editor */
.cbx.slip{margin-top:var(--s2)}
/* the family's final details: under the steps, in the covers list's shape (a dash in the numeral column) */
.onday{margin-top:var(--s6)}
.onday h2{font-size:21px;margin-bottom:var(--s3)}
.onday ul{display:grid;gap:var(--s1);margin-bottom:var(--s3);font-family:var(--serif);font-size:var(--t-body);line-height:var(--lh-read)}
.onday li{position:relative;padding-inline-start:calc(var(--ncol) + var(--ngap));text-wrap:pretty}
.onday li::before{content:"\2013";position:absolute;inset-inline-start:0;top:0;width:var(--ncol);text-align:end;color:var(--ink-3)}
.onday>.small{padding-inline-start:calc(var(--ncol) + var(--ngap));margin-top:0}
[dir=rtl] .onday h2{font-size:24px}
[dir=rtl] .onday ul{font-size:19px;line-height:1.8}
[dir=rtl] .onday li{text-wrap:pretty}
/* "Next to fix" beside the paste commit at laptop width (on a phone it is the dock's left half) */
.commit>a.dock-alt{font-size:var(--t-hint)}
/* the calendar link on the paid slip shares the refund line's shape */
.pay .refund.cal{margin-top:var(--s1)}
@media (max-width:759px){
  .notice a,.tally a,.commit>a.dock-alt{display:inline-block;padding-block:11px;margin-block:-11px}
  .dock.two>a.dock-alt{display:inline-flex;padding-block:0;margin-block:0}
  .pagehead.t2+.notice{margin-top:0}
}
@media (max-width:759px){
  /* laureate rows: line 1 the seat, the name and the medal; line 2 the rank and the events */
  .tbl.laur .c-rank,.tbl.laur .c-med{display:none}
  .tbl.laur tfoot,.tbl.laur tfoot tr,.tbl.laur tfoot td{display:block}
  .tbl.laur tfoot td{border-top:1.5px solid var(--rule)!important;padding:var(--s3) 0!important}
  .tbl.laur tfoot td:empty{display:none}
  /* staff lists: line 1 the team and its status; line 2 the school, division and basis */
  .tbl.stf .c-sch,.tbl.stf .c-div2,.tbl.stf .c-basis,.tbl.stf .c-con,.tbl.stf .c-rank{display:none}
  .feeders>li{grid-template-columns:minmax(0,1fr) auto}
  .feeders .v{display:none}
  .dl .what .sub{display:none}
  .road>li{grid-template-columns:minmax(0,1fr)}
  .road .w{white-space:normal}
  .verify .kv>li{grid-template-columns:minmax(0,1fr)}
  .lcard{padding:var(--s5) var(--s4)}
  .lcard h2{font-size:24px}
}

/* ---------- open registration (Sam, 25 Oct 2026: D76 open registration with approval, D77 the rounds page public) ---------- */
/* the public masthead's one quiet link beside the service name: cream, a half-strength underline, gold on its own page */
.mnav{font-size:var(--t-hint);line-height:22px;color:var(--cream);text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:rgba(246,241,230,.5);text-underline-offset:4px;white-space:nowrap;padding-block:11px}
.mnav:hover{text-decoration-color:var(--cream)}
.mnav[aria-current=page]{text-decoration-color:var(--gold);font-weight:600}
/* the landing page's second path sits in the aside: a small outlined button, then the rounds link on its own line */
.aside .acts{margin-top:var(--s3)}
.aside .aside-more{margin-top:var(--s3)}
/* T0R: the free-mail hint follows the address field, so it sits below the box rather than above it */
.hint.free{margin:calc(-1 * var(--s3)) 0 var(--s5)}
/* T0R's three small sub-headings (Sam, 25 Oct 2026: Your school, You, Your head or principal): interface type, navy,
   a hairline above all but the first, so the one screen reads as three short groups */
.form-h{font:600 var(--t-body)/1.4 var(--sans);color:var(--navy);margin:var(--s7) 0 var(--s4);padding-top:var(--s5);border-top:1px solid var(--hair);max-width:var(--measure)}
.form-h.first{margin-top:0;padding-top:0;border-top:0}
#rg-coord-f{margin-top:var(--s2)}
/* a hint that introduces a whole group sits a little clear of the first label */
.form-hint{margin-bottom:var(--s4)}
/* the public rounds page: the landing's column rules, but as wide as the ruled list needs */
.pubwide{padding-top:var(--s7);max-width:960px}
.pubwide .pubhead{margin-bottom:var(--s5)}
.pubwide h1{font-size:32px;line-height:1.2}
.pubwide .meta{font-size:var(--t-hint);line-height:var(--lh-hint);color:var(--ink-2);margin-top:var(--s1)}
.pubwide .read{margin-bottom:var(--s6)}
.pubwide .endline{margin:var(--s6) 0 0;padding-top:var(--s5);border-top:1px solid var(--hair);max-width:none}
@media (max-width:759px){
  .pubwide{padding-top:var(--s6)}
  .pubwide h1{font-size:27px}
  .pubwide .meta{font-size:var(--t-small)}
}

/* ---------- recognition (Sam, 25 Oct 2026): the Laureate Honours Board, the only pages allowed an oak-grain panel with gold Cinzel lettering ---------- */
/* flat (no rounded top); the grain is two gradients over a dark-oak base; gold #C9A24A on the base reads 6.9:1 and the
   cream 13:1, so AA holds at every size. shoot.py exempts .board from the Cinzel and gold-text tells for this reason. */
.board{background-color:#2C190D;background-image:repeating-linear-gradient(97deg,rgba(255,232,190,.05) 0 1px,transparent 1px 6px,rgba(0,0,0,.14) 6px 7px,transparent 7px 13px),linear-gradient(180deg,#3B2415 0%,#2C190D 55%,#261309 100%);color:#EFE7D6;border:5px solid #1B0F08;box-shadow:inset 0 0 0 1px rgba(201,162,74,.55);padding:var(--s6) var(--s5);margin:0 0 var(--s5)}
.board .bt{font:500 24px/1.25 var(--display);color:var(--gold);text-align:center;letter-spacing:.04em;text-wrap:balance}
.board .bs{font:500 14px/1.4 var(--display);color:var(--gold);text-align:center;letter-spacing:.04em;margin-top:var(--s1)}
.board .bhr{border:0;border-top:1px solid rgba(201,162,74,.6);margin:var(--s4) auto 0;width:40%}
.board h3{font:500 18px/1.3 var(--display);color:var(--gold);letter-spacing:.04em;margin:var(--s5) 0 var(--s2);padding-bottom:var(--s1);border-bottom:1px solid rgba(201,162,74,.6);text-wrap:balance}
.board .bk{font:600 var(--t-small)/1.3 var(--sans);color:#EFE7D6;margin:var(--s4) 0 var(--s1)}
.board ul{list-style:none;margin:0;padding:0}
.board li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px var(--s4);align-items:baseline;padding:var(--s2) 0;border-bottom:1px solid rgba(239,231,214,.16)}
.board li:last-child{border-bottom:0}
.board .nm{font:500 17px/1.3 var(--display);color:var(--gold);overflow-wrap:break-word}
.board .mk{font:500 var(--t-small)/1.3 var(--display);color:var(--gold);white-space:nowrap;text-align:end}
.board .mk:empty{display:none}
.board .d{grid-column:1/-1;font:400 var(--t-small)/var(--lh-small) var(--sans);color:#EFE7D6}
.board .br{font:500 15px/1.3 var(--display);color:var(--gold);letter-spacing:.04em;margin:var(--s4) 0 0}
/* by stage (Sam, 25 Oct 2026): the stage heading (.bh), the quiet in-page index under the season (.bidx) and the
   city-and-country line of a group of regional rounds (.bc); a jumped-to heading takes a gold focus ring on the oak */
.board .bh{font:500 16px/1.3 var(--display);color:var(--gold);letter-spacing:.04em;margin:var(--s6) 0 0;padding-bottom:var(--s1);border-bottom:1px solid rgba(201,162,74,.4);text-wrap:balance}
.board .bidx{font:400 var(--t-small)/var(--lh-small) var(--sans);color:#EFE7D6;margin:var(--s3) 0 0;text-wrap:pretty}
.board .bidx a{color:#FFF8EA;text-decoration:underline;text-decoration-color:rgba(201,162,74,.7);text-underline-offset:2px}
.board .bidx a:hover,.board .bidx a:focus-visible{color:var(--gold);text-decoration-color:var(--gold)}
.board .bc{font:600 var(--t-small)/1.3 var(--sans);color:#EFE7D6;margin:var(--s5) 0 0;padding-top:var(--s2);border-top:1px solid rgba(239,231,214,.25)}
.board .bh+.bd,.board .br+.bd{margin-top:var(--s1)}
.board .bh+.bc{border-top:0;padding-top:0;margin-top:var(--s4)}
.board .bh:focus-visible,.board .br:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.board .bd{font:400 var(--t-small)/var(--lh-small) var(--sans);color:#EFE7D6;margin:0 0 var(--s2);text-wrap:pretty}
.board .bd.c{text-align:center;margin:0 0 var(--s2)}
.board .who{font-weight:600;color:#FFF8EA}
.board .bf{font:400 var(--t-small)/var(--lh-small) var(--sans);color:#EFE7D6;margin-top:var(--s5);text-align:center;text-wrap:pretty}
.board .empty{font:400 17px/1.5 var(--serif);color:#EFE7D6;text-align:center;margin:var(--s5) 0 var(--s2);text-wrap:pretty}
.doc .board{margin:var(--s3) 0}
/* the ladder and the due lists: ruled rows with the mark or the award at the end of the row */
.ladder .v,.due .v{white-space:normal;max-width:220px}
.pubwide .board{margin-bottom:var(--s6)}
.pubwide .lede{margin-bottom:var(--s5)}
@media (max-width:759px){
  .board{padding:var(--s5) var(--s4)}
  .board .bt{font-size:21px}
  .board .nm{font-size:16px}
  .board .mk{white-space:normal}
  .ladder .v,.due .v{max-width:none}
  /* laureate rows: the Laureate record moves to the second line with the rank */
  .tbl.laur .c-name .rec{display:none}
}
/* Happening now (Sam, 25 Oct 2026; never "LIVE"): a round in progress on the rounds pages, the family page's status line
   and its round step. The dot is GOLD and the words are navy, because gold on paper is too light for text (navy 17:1,
   the dot is not text). No pill, no animation. */
.st-now{color:var(--navy);font-weight:600}
.st-now .dot{background:var(--gold)}
.st-now:lang(ar){font-weight:700}
.fam-head .fam-now{display:block;margin-bottom:var(--s1);font-size:var(--t-hint)}
/* S9 Today's round (Sam, 25 Oct 2026; D82): one column per round in progress, side by side from 1100 px when there are two */
.s9cols{display:grid;gap:var(--s6);margin-bottom:var(--s7)}
.s9col .meta{margin-bottom:var(--s4)}
/* the programme: the time in a figure-wide column, the activity and its place, then Now or Next flush with the end of
   the row; the row happening now carries a gold rule, the one place the gold stands beside text on a staff page (the dot
   and the rule are not text, the words stay navy); rows gone by read quieter */
.prog>li{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:2px var(--s4);align-items:baseline}
.prog .pt{font-family:var(--serif);font-variant-numeric:tabular-nums;color:var(--navy)}
.prog .t{font-weight:600;color:var(--navy);line-height:1.4}
.prog .d{font-size:var(--t-small);color:var(--ink-2)}
.prog .st{text-align:end;white-space:nowrap}
.prog>li.past .pt,.prog>li.past .t{color:var(--ink-2);font-weight:500}
.prog>li.now{border-inline-start:3px solid var(--gold);padding-inline-start:var(--s3)}
/* the note box: reading text that wraps, unlike the paste box */
textarea.input.note{white-space:pre-wrap;font:400 17px/1.45 var(--sans);min-height:96px;tab-size:4}
.notes .t{font-weight:400;color:var(--ink)}
/* a photo with a note (Sam, 25 Oct 2026): the simulated picker's two files, the chosen photo's preview beside its file
   name, and the thumbnail at the start of a posted note; square corners and a hairline frame, no fill, the caption small */
.s9pick{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--s3) var(--s4);margin-top:var(--s2)}
.s9pick .pk{width:144px;background:none;border:0;padding:0;font:inherit;color:var(--link);cursor:pointer;text-align:start}
.s9pick .pk:hover .fn{text-decoration-thickness:2px}
.s9pick .pk:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.s9pick img,.s9prev img,.notes .pimg{display:block;border:1px solid var(--rule);background:#fff;object-fit:cover}
.s9pick img{width:144px;height:96px}
.s9pick .fn{display:block;overflow-wrap:anywhere;font-size:var(--t-small);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;margin-top:var(--s1)}
.s9pick .linkbtn{flex-basis:100%;width:max-content}
.s9prev{display:flex;flex-wrap:wrap;gap:var(--s2) var(--s4);align-items:flex-start;margin:var(--s2) 0 var(--s4)}
.s9prev img{width:192px;height:128px;max-width:100%}
.s9prev .fn{color:var(--ink);margin-bottom:var(--s1)}
.s9ph>.field{margin-bottom:var(--s4)}
.s9ph fieldset.field{margin-bottom:0}
.s9-limit{font-size:var(--t-hint);line-height:var(--lh-hint);color:var(--ink-2)}
.notes .pn{display:flex;gap:var(--s3);align-items:flex-start}
.notes .pimg{width:96px;height:64px;flex:none}
.notes .cap{font-size:var(--t-small);color:var(--ink-2);margin-top:2px}
@media (min-width:1100px){.s9cols.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s7)}}
/* T18 the Host tab (Sam, 25 Oct 2026; D83). The hosting checklist's rows carry a checkbox before the title (the same
   22 px box as the approval-slip tick), the guideline link in the value column and the status at the end; a ticked row
   reads quieter. The venue plan's add form is one row of small fields on a laptop and a stack on a phone. The two
   programmes sit side by side from 1100 px. */
.hchk .cbx{padding:0;align-items:flex-start;font-size:inherit;line-height:inherit}
.hchk .cbx input{margin-top:2px}
.hchk .cbx .hc{min-width:0;flex:1 1 auto}
.hchk .hc.noc{padding-inline-start:calc(var(--box) + var(--s3))}
.hchk>li.done .t{color:var(--ink-2);font-weight:500}
.hchk .d a,.hneed .d a{white-space:nowrap}
.hder .v .st{margin-inline-start:var(--s2)}
.hadd{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s3) var(--s4);align-items:end;margin-top:var(--s4)}
.hadd .field{margin:0;min-width:0}
.hadd .lbl{font-size:var(--t-small);margin-bottom:2px}
.hadd .input{height:44px;font-size:var(--t-hint)}
.hadd .btn{justify-self:start}
@media (min-width:760px){.hadd{grid-template-columns:minmax(0,2fr) minmax(0,1.6fr) 88px 104px auto}.hadd.three{grid-template-columns:repeat(3,minmax(0,1fr)) auto auto}}
.hcols{display:grid;gap:var(--s5)}
@media (min-width:1100px){.hcols{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s7)}}
.hprog .sub-h+.rows{margin-bottom:var(--s2)}
.hsch .v .tnum{color:var(--navy);font-weight:600}
/* phone first (25 Oct 2026): the tab's text links keep a 44 px tap area without changing the row's height (11 px is half of
   a 44 px target, the one off-scale step the spacing lint allows) */
.hsch .v .linkbtn,.hsch .v a,.hchk .v .linkbtn,.hder .v .linkbtn,.hsp .v .linkbtn,.hneed .v .linkbtn{display:inline-flex;align-items:center;min-height:44px;margin-block:-11px}
.linkbtn.tap{display:inline-flex;align-items:center;min-height:44px;margin-block:-11px}
.hdone{font-size:var(--t-hint);line-height:var(--lh-hint);color:var(--ink-2);margin-top:var(--s3)}
