/* A good deed doesn't make a good person. Site by hershal.io */
.form-page{padding-bottom:0}.form-page #main{margin:0 var(--gutter)}.form-intro{padding:36px 0 32px;border-bottom:1px solid var(--ink)}.back-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:14px;text-decoration:none;margin-bottom:25px}.form-intro h1{font-size:clamp(37px,4vw,58px);line-height:1.1;max-width:22ch;margin:0 0 20px}.form-intro>.lead{max-width:68ch;font-size:17px;line-height:1.65;margin-bottom:0}.form-layout{display:grid;grid-template-columns:260px minmax(0,720px);gap:clamp(35px,6vw,90px);padding:38px 0 58px}.form-sidebar{align-self:start;position:sticky;top:28px}.sidebar-note{font-size:14px;line-height:1.65;color:var(--muted);padding-top:24px;border-top:1px solid var(--line)}.sidebar-note strong{color:var(--ink);font-weight:500;display:block;margin-bottom:8px}.form-sidebar .principles{margin-top:24px}.form-sidebar summary{font-size:14px;display:flex;gap:10px;justify-content:space-between;min-height:44px;padding:12px 0;line-height:1.5}.form-sidebar summary:after{content:'+'}.form-sidebar details[open] summary:after{content:'−'}.principles h3{font-size:16px;line-height:1.5;margin:18px 0 6px}.principles p{font-size:14px;line-height:1.6;color:var(--muted);margin-bottom:12px}#request-form{min-width:0}.panel-heading{margin-bottom:30px}.panel-heading .eyebrow{margin:0 0 11px}.panel-heading h2{font-size:31px;margin:0 0 12px}.panel-heading p{font-size:16px;line-height:1.6;color:var(--muted);margin:0;max-width:57ch}.required-key{display:block;font-size:14px;color:var(--muted);margin-top:16px}.fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px 24px}.field{min-width:0;margin:0;padding:0;border:0}.field.wide{grid-column:1/-1}.field-label,legend.field-label{display:block;font-size:16px;font-weight:500;line-height:1.5;padding:0;margin:0 0 9px}.optional{font-size:12px;font-weight:400;color:var(--muted);margin-left:7px}.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{appearance:none;display:block;width:100%;min-height:50px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:0;padding:12px 13px;font:inherit;font-size:16px;line-height:1.5;transition:border-color .2s,box-shadow .2s}.field textarea{min-height:120px;resize:vertical}.field select{padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23737b8c' stroke-width='1.3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:16px}.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:2px solid var(--ink);outline-offset:2px}.field input::placeholder,.field textarea::placeholder{color:var(--muted);opacity:1}.hint{font-size:14px;line-height:1.5;color:var(--muted);margin:8px 0 0}.field-error{display:flex;align-items:flex-start;gap:8px;font-size:14px;font-weight:600;line-height:1.5;margin:8px 0 0;color:var(--danger)}.field-error:empty{display:none}.choices{display:grid;gap:10px}.choices.tiles{grid-template-columns:1fr 1fr;gap:10px}.choice{display:flex;align-items:flex-start;gap:11px;cursor:pointer;font-size:16px;line-height:1.5;padding:13px 14px;border:1px solid var(--line);min-height:50px;transition:border-color .2s,background-color .2s}.choice:hover{border-color:var(--muted)}.choice:has(input:checked){border-color:var(--ink);background:var(--faint)}.choice input{width:18px;height:18px;flex-shrink:0;margin:2px 0 0;accent-color:var(--ink)}.choice input:focus-visible{outline:2px solid var(--ink);outline-offset:4px}.other-detail{margin-top:12px}.other-detail[hidden]{display:none}.privacy-callout{border-left:2px solid var(--ink);padding:0 0 0 17px;margin:0 0 28px;font-size:16px;line-height:1.6}.privacy-callout strong{font-weight:600}.form-actions{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-top:32px;padding-top:26px;border-top:1px solid var(--line)}.form-actions .request{border:0;cursor:pointer;min-width:165px}.previous{border:0;background:transparent;font-size:14px;min-height:48px;padding:10px 0;text-decoration:underline;text-underline-offset:5px}.form-actions .next{margin-left:auto}.submission-note{font-size:14px;line-height:1.5;color:var(--muted);margin:16px 0 0;max-width:64ch}.error-summary{border:1px solid var(--ink);padding:18px 20px;margin-bottom:25px}.error-summary[hidden]{display:none}.error-summary:focus{outline:2px solid var(--ink);outline-offset:4px}.error-summary h2,.error-summary h3{font-size:16px;font-weight:600;line-height:1.4;letter-spacing:0;margin:0 0 4px}.error-summary ul{padding-left:18px;margin:0;font-size:14px;line-height:1.45}.error-summary a{display:block;padding:7px 0;text-underline-offset:3px}@keyframes form-step-in{from{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:1050px){.form-layout{grid-template-columns:210px minmax(0,1fr);gap:35px}.choices.tiles{grid-template-columns:1fr}.fields-grid{gap:22px 18px}}@media(max-width:700px){.form-intro{padding:15px 0 25px}.back-link{margin-bottom:16px}.form-intro h1{font-size:36px;line-height:1.1;max-width:17ch}.form-intro>.lead{font-size:16px}.form-layout{display:block;padding:0 0 36px}.form-sidebar{position:static}.sidebar-note,.form-sidebar .principles{display:none}.panel-heading{margin-bottom:25px}.panel-heading h2{font-size:29px}.fields-grid{grid-template-columns:1fr;gap:24px}.field.wide{grid-column:1}.choices.tiles{grid-template-columns:1fr 1fr}.choice{padding:12px 11px}.form-actions{gap:18px;margin-top:27px;padding-top:22px}.form-actions .request{min-width:140px;gap:24px}}@media(max-width:370px){.choices.tiles{grid-template-columns:1fr}.form-intro h1{font-size:33px}.form-actions .request{min-width:130px;padding-left:16px;padding-right:16px}}
.who-details{max-width:75ch;border:0;margin-top:8px}.who-details summary{display:inline-flex;align-items:center;gap:18px;min-height:44px;padding:8px 0;font-size:14px;line-height:1.5;color:var(--muted);text-decoration:underline;text-underline-offset:4px}.who-details summary:after{content:'+';text-decoration:none}.who-details[open] summary:after{content:'−'}.who-details p{font-size:16px;line-height:1.6;color:var(--muted);margin:8px 0 0}.form-intro{padding-bottom:22px}.form-intro h1{margin-bottom:14px}@media(max-width:1050px) and (min-width:701px){.fields-grid{grid-template-columns:1fr}}@media(max-width:700px){.form-intro{padding-bottom:17px}.form-intro .who-details{margin-top:3px}}
.mobile-principles{display:none}@media(max-width:700px){.mobile-principles{display:block;margin-top:30px}.mobile-principles summary{display:flex;justify-content:space-between;font-size:16px;min-height:52px;padding:15px 0}.mobile-principles summary:after{content:'+'}.mobile-principles[open] summary:after{content:'−'}.mobile-principles p{font-size:14px}.mobile-principles h3{font-size:16px}}
.form-done{padding:34px 0 60px}.form-done .form-actions{margin-top:26px}.form-done .request{min-width:0}
/* Sidebar clears the sticky nav; pill buttons carry no trailing gap while the icon is collapsed. */
.form-sidebar{top:96px}
.form-actions .request{gap:0}
/* Single-page form: the three groups stack as always-visible sections instead of paginated steps; one Send button at the end. */
.form-section+.form-section{margin-top:44px;padding-top:40px;border-top:1px solid var(--line)}
.form-section .panel-heading{margin-bottom:28px}
.form-sidebar .sidebar-note:first-child{padding-top:0;border-top:0}
.form-actions{justify-content:flex-end}
@media(max-width:700px){.form-section+.form-section{margin-top:34px;padding-top:30px}.form-layout{padding-top:8px}.form-sidebar{display:none}}
/* District chooser. The form stays hidden until a district is picked (or ?district= picks it); the pressed tile is the current one. */
.district-pick{padding:34px 0 6px}
.district-pick.chosen{padding-bottom:36px;border-bottom:1px solid var(--line)}
.district-pick .panel-heading{margin-bottom:22px}
/* Tuned to the number of districts (five): one row across, 3 + 2 at tablet widths, two columns on phones (all five on the
   first screen of a 390px phone; narrower padding from 375 to 384px keeps "Edinburg CISD" on one line), one column below
   375px, where two would wrap the names. */
.district-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.district-tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:74px;padding:16px 18px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:18px;text-align:left;font:inherit;cursor:pointer;transition:border-color .2s,background-color .2s,color .2s}
.district-tile:hover{border-color:var(--ink)}
.district-tile:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.district-tile .district-name{font-size:16px;font-weight:600;line-height:1.3}
.district-tile .district-domain{font-size:14px;line-height:1.4;color:var(--muted)}
.district-tile[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.district-tile[aria-pressed=true] .district-domain{color:inherit;opacity:.72}
.form-layout.entering{animation:form-step-in .4s ease both}
.paused .form-layout.entering{animation:none}
@media(max-width:1000px) and (min-width:701px){.district-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.district-tiles{grid-template-columns:1fr 1fr}.district-tile{min-height:60px;padding:13px 12px}}
@media(max-width:384px){.district-tile{padding:13px 10px}}
@media(max-width:374px){.district-tiles{grid-template-columns:1fr}.district-tile{padding:13px 16px}}
/* Once a district is chosen the tiles give way to one line inside the intro tile; "Select another district" re-opens them with the current one pressed. */
.district-current{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:var(--stack) 0 0;font-size:14px;line-height:1.5;color:var(--muted)}
.district-current-label{text-transform:uppercase;font-size:12px;font-weight:500;letter-spacing:.06em}
.district-current strong{color:var(--ink);font-weight:600;font-size:16px}
.link-button{position:relative;border:0;background:none;padding:0;margin:0;font:inherit;font-size:14px;line-height:inherit;color:var(--muted);text-decoration:underline;text-underline-offset:4px;cursor:pointer;min-height:0}
.link-button::before{content:'';position:absolute;left:-8px;right:-8px;top:50%;height:44px;transform:translateY(-50%)}
.link-button:hover,.link-button:focus-visible{color:var(--ink)}
.link-button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
@media(max-width:700px){.district-current-sep{display:none}}
/* The request and join pages sit in a container that matches the landing page: the viewport minus the gutter, capped at 1440px of content (the same cap the landing page reaches at 1500px and up). Width-based, so the intro rule and the footer rule line up with the content; the gutter still applies on narrow screens, and the nav bar narrows to the same container. */
.form-page #main,.form-page #footer{width:calc(100% - 2*var(--gutter));max-width:1440px;margin-left:auto;margin-right:auto}
.form-page #main{margin:0 auto}
.form-page #footer{margin:0 auto;padding-left:0!important;padding-right:0!important}
.form-page .nav__bar{max-width:var(--wrap)}
/* Contact page: the sidebar's cross-links repeat below the form on mobile, where the sidebar is hidden. */
.sidebar-note a{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin-top:0;color:var(--ink);text-underline-offset:4px}
.mobile-links{display:none}
@media(max-width:700px){.mobile-links{display:block;margin-top:30px}.mobile-links .sidebar-note{display:block;padding-top:20px;border-top:1px solid var(--line)}}

/* Clay + bento for the request, join and contact forms (shared tokens in ../styles.css).
   Intro, district chooser, sidebar and each form section are clay tiles with the same gap,
   padding and radius as the rest of the site. Fields are pressed into their tile, with a
   hairline (listed first in the shadow, so the shading cannot paint over it) that gives an
   empty field an edge; options are small clay pills that press in (and turn gold) when chosen.
   Two tokens the shared palette does not have: --field-line, the field's edge (3.4:1 or better
   against the tile in every colour mode), and --danger, the error colour (about 6:1 on the
   light tiles, 9:1 on the dark ones). They are set on :root; everything else inherits them. */
:root{--field-line:#7f8799;--danger:#b3261e}
:root.warm{--field-line:#8a806e}
:root.inverse{--field-line:#737b8c;--danger:#ffb4a8}
:root.warm.inverse{--field-line:#8a806d}
.form-page #main{width:min(var(--wrap),calc(100% - 2*var(--gutter)));max-width:none;margin:var(--gap) auto 0;display:flex;flex-direction:column;gap:var(--gap)}
.form-intro,.district-pick,.form-section,.form-section+.form-section,.form-done{background:var(--tile);border:0;border-radius:var(--radius);box-shadow:var(--shadow-clay);padding:var(--pad);margin:0}
.form-intro .back-link{min-height:44px;margin:-14px 0 calc(var(--stack) - 14px)}
.form-intro h1{font-size:clamp(32px,4.4vw,56px);font-weight:500;line-height:1.06;letter-spacing:-.05em;word-spacing:.04em;max-width:22ch;margin:0 0 var(--stack)}
.form-intro>.lead{font-size:18px;margin:0;text-wrap:pretty}
.panel-heading,.form-section .panel-heading,.district-pick .panel-heading{margin-bottom:24px}
.panel-heading h2{font-size:clamp(26px,2.4vw,34px);font-weight:500;line-height:1.15;letter-spacing:-.045em;word-spacing:.03em;text-wrap:balance}
.panel-heading p{color:var(--text);text-wrap:pretty}
.district-tiles{gap:var(--stack)}
.district-tile{background:var(--tile);border:0;border-radius:20px;box-shadow:6px 8px 16px var(--lift-soft),inset -3px -3px 6px var(--clay-lo),inset 3px 3px 6px var(--clay-hi);transition:transform .2s ease}
.district-tile:hover{border-color:transparent;transform:translateY(-2px)}
.district-tile:active{transform:translateY(1px)}
.district-tile[aria-pressed=true]{background:var(--ink);color:var(--paper);box-shadow:inset 0 -3px 6px rgba(0,0,0,.28),inset 0 2px 4px rgba(255,255,255,.16)}
.form-layout{grid-template-columns:300px minmax(0,1fr);gap:var(--gap);padding:0}
.form-sidebar{top:96px;background:var(--tile-sky);border-radius:var(--radius);box-shadow:var(--shadow-clay);padding:var(--pad);display:flex;flex-direction:column;gap:var(--stack)}
.sidebar-note,.form-sidebar .sidebar-note:first-child{padding-top:0;border-top:0;color:var(--text)}
.form-sidebar .principles{margin-top:0}
#request-form,#join-form,#contact-form{display:flex;flex-direction:column;gap:var(--gap);min-width:0}
.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{background-color:var(--tile);border:0;border-radius:16px;padding:13px 16px;
  box-shadow:inset 0 0 0 1px var(--field-line),inset 4px 4px 8px var(--press-lo),inset -4px -4px 8px var(--press-hi)}
/* The clay rule above resets padding on every field; give selects back room for their arrow, so a long option never runs under it. */
.field select{padding-right:40px}
/* A long unbroken entry (an "Other" item, an email address) in a thank-you recap wraps instead of widening the page. */
.done-recap{overflow-wrap:anywhere}
/* Keyboard focus on an option rings the whole tile, the thing that looks pressable. */
.choice:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}
.choice:has(input:focus-visible) input:focus-visible{outline:none}
.field.has-error input:not([type=radio]):not([type=checkbox]),.field.has-error select,.field.has-error textarea{
  box-shadow:inset 0 0 0 2px var(--danger),inset 4px 4px 8px var(--press-lo),inset -4px -4px 8px var(--press-hi)}
.choices,.choices.tiles{gap:12px}
.choice{border:0;border-radius:16px;background:var(--tile);box-shadow:3px 4px 8px var(--lift-soft),inset -2px -2px 4px var(--clay-lo),inset 2px 2px 4px var(--clay-hi);transition:background-color .2s,box-shadow .2s}
.choice:hover{border-color:transparent}
@media(hover:hover){.choice:hover{background:color-mix(in srgb,var(--tile-gold) 30%,var(--tile))}.inverse .choice:hover{background:color-mix(in srgb,var(--tile-gold) 45%,var(--tile))}}
.choice:active{box-shadow:var(--shadow-press-sm)}
.choice:has(input:checked){background:var(--tile-gold);box-shadow:inset 3px 3px 6px var(--press-lo),inset -3px -3px 6px var(--press-hi)}
/* Dark modes: the gold tile tint is only 1.2:1 against the option beside it, so the chosen option gets its own fill (1.8:1). */
.inverse .choice:has(input:checked){background:#5a4718}
.warm.inverse .choice:has(input:checked){background:#5c4718}
.error-summary{background:var(--tile-peach);border:0;border-radius:var(--radius);box-shadow:var(--shadow-clay);padding:var(--pad);margin:0}
.form-actions{margin:0;padding:0;border-top:0}
.form-done .form-actions{margin-top:var(--stack)}
@media(max-width:700px){
  .form-layout{display:flex;flex-direction:column;gap:var(--gap);padding:0}
  .form-sidebar{display:none}
  .mobile-links{display:flex;flex-direction:column;gap:var(--gap);margin:0}
  .mobile-links .sidebar-note{background:var(--tile-sky);border-radius:var(--radius);box-shadow:var(--shadow-clay);padding:var(--pad);border-top:0}
  .mobile-principles{background:var(--tile);border-radius:var(--radius);box-shadow:var(--shadow-clay);padding:4px var(--pad);margin:0}
}
.panel-heading .eyebrow{font-size:12px;font-weight:500;letter-spacing:.06em;color:var(--muted);margin:0 0 var(--stack)}
.form-actions .request,.form-done .request{min-width:0}

/* ==========================================================================
   Shared pieces for every page that loads this file (request, join, contact,
   donate, privacy, terms). Named for what they are, not for one page.
   ========================================================================== */
/* Text for screen readers only (for example "(required)" in the legend of an option group). */
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
/* Arrows are drawn by the page scripts as one 16px icon in the colour of its text: the font has no arrow glyphs. */
.arrow-icon{display:inline-block;width:16px;height:16px;vertical-align:-2px;flex:none}
.arrow>.arrow-icon{display:block}
/* An arrow straight after a link's words: the gap is a margin, so the underline stops at the last letter. */
a>.arrow-icon{margin-left:.3em}
.sidebar-note a>.arrow-icon,.give-now a>.arrow-icon,.phone-only a>.arrow-icon{margin-left:0}
.hint,.choice-hint,.submission-note,.sidebar-note{text-wrap:pretty}

/* Top bar on form pages: one back link at every width, its arrow always showing. Inside it, .back-long names the
   destination ("Ready to Learn") from 701px and .back-short ("Back") shows on phones, where the name would run into
   the logo. Form pages have no menu, so the three toolbar buttons stay in the bar; when the wordmark shows beside the
   logo on phones is up to styles.css. */
.form-page .nav-back{display:inline-flex;align-items:center;font-size:14px;font-weight:500}
.form-page .nav-back .arrow,.form-page .nav-back:hover .arrow,.form-page .nav-back:focus-visible .arrow{display:inline-flex;max-width:none;opacity:1;margin-right:8px;overflow:visible;transform:none;transition:transform .2s ease}
.form-page .nav-back:hover .arrow,.form-page .nav-back:focus-visible .arrow{transform:translateX(-3px)}
.back-short{display:none}
@media(max-width:700px){
  .back-long{display:none}.back-short{display:inline}
  .form-page .nav__left{display:flex}
  .form-page .nav-back{min-height:44px;margin:-2px 0;padding:0 10px 0 8px}
}
/* Narrow phones: the logo sits beside the back link instead of in the centre, where the toolbar would run into it. */
@media(max-width:374px){.form-page .nav__row{grid-template-columns:auto minmax(0,1fr) auto}.form-page .brand{justify-self:start}}

/* Errors. The message carries a round "!" so colour is not the only cue, and sits directly under its control; the
   ring is the error colour (the focus ring stays ink, so "wrong" and "where I am" look different); a failed group of
   options gets the ring around the whole group. */
.field-error::before{content:'!';flex:none;width:18px;height:18px;margin-top:1.5px;border-radius:50%;background:var(--danger);color:var(--tile);font-size:12px;font-weight:700;line-height:18px;text-align:center}
fieldset.field.has-error .choices{outline:2px solid var(--danger);outline-offset:6px;border-radius:20px;margin:6px 0 16px}
/* A notice pressed into its tile: the alert after a send that did not go through (role="alert", focused by the script). */
.form-alert{padding:16px 18px;border-radius:20px;background:var(--tile-peach);color:var(--ink);box-shadow:inset 5px 5px 10px var(--press-lo),inset -5px -5px 10px var(--press-hi)}
.form-alert h3{margin:0 0 6px;font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:var(--danger)}
.form-alert p,.error-summary p{margin:0 0 8px;font-size:16px;line-height:1.5}
.form-alert p:last-child{margin-bottom:0}
.form-alert a{color:inherit;text-underline-offset:3px}
.form-alert:focus{outline:2px solid var(--ink);outline-offset:3px}

/* The end of a form: .form-close is the last block of the last section. It holds the alert (when a send failed), the
   reassurance, then the Send button with a quiet link beside it, all lined up with the fields. The button fills the
   row on phones, and looks busy (not dead) while sending. A .phone-only span holds words shown only where the side
   panel is hidden (700px and below), for what the panel would otherwise have said. */
.form-close{display:flex;flex-direction:column;gap:var(--stack);margin-top:var(--pad);padding-top:var(--pad);border-top:1px solid var(--line)}
.form-close .submission-note{margin:0;font-size:16px;color:var(--text)}
.form-close .hint{margin:0}
.form-close .form-actions{justify-content:flex-start;flex-wrap:wrap;gap:8px 20px}
.form-close .form-actions .next{margin-left:0}
.form-actions .request[aria-disabled=true],.form-actions .request:disabled{opacity:.75;cursor:progress;transform:none}
.quiet-link{display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:var(--muted);text-underline-offset:4px}
.quiet-link:hover,.quiet-link:focus-visible{color:var(--ink)}
.phone-only{display:none}
@media(max-width:700px){.phone-only{display:inline}}
@media(max-width:600px){.form-close .form-actions{flex-direction:column;align-items:stretch;gap:4px}.form-close .request{justify-content:center;min-height:54px}.form-close .quiet-link{align-self:center}}

/* Thank-you screens: the heading takes focus without a ring; a one-line recap; numbered "what happens next" steps;
   actions on the left like every other tile, stacked on phones so the main button is never cut off. */
h1[tabindex="-1"]:focus,h2[tabindex="-1"]:focus{outline:0}
.done-recap{margin:var(--stack) 0 0;font-size:16px;line-height:1.5;color:var(--text)}
.form-done{display:flex;flex-direction:column;gap:var(--stack)}
.form-done .panel-heading{margin:0}
.form-done .form-actions{margin:0;justify-content:flex-start;flex-wrap:wrap;gap:8px var(--stack)}
.form-done .form-actions .next{margin-left:0}
.form-done .request{flex:none}
.form-done .submission-note{margin:0}
a.previous{display:inline-flex;align-items:center;color:inherit}
.next-steps{list-style:none;counter-reset:step;display:flex;flex-direction:column;gap:12px;margin:0;padding:0;max-width:60ch;font-size:16px;line-height:1.5;color:var(--text)}
.next-steps li{counter-increment:step;display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px}
.next-steps li::before{content:counter(step);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:14px;font-weight:600;line-height:1;color:var(--muted);box-shadow:var(--shadow-press-sm)}
@media(max-width:500px){.form-done-actions{flex-direction:column;align-items:stretch;gap:8px}.form-done .request{justify-content:center}.form-done .previous{align-self:center}}

/* District chooser: the way on for staff whose district is not listed. */
.district-more{margin:var(--stack) 0 0;font-size:14px;line-height:1.5;color:var(--muted)}
.district-more a{display:inline-block;padding:10px 0;color:var(--ink);font-weight:500;text-underline-offset:4px}
/* Once the district is known the intro is shorter and carries the district line, so the first field starts higher. */
.form-intro.compact h1{font-size:clamp(28px,3.4vw,40px);margin-bottom:12px}
.form-intro.compact .who-details{margin-top:4px}
/* "Who this is for": the words are underlined, the "+" beside them is not. */
.who-details summary{text-decoration:none}
.who-details summary>span{text-decoration:underline;text-underline-offset:4px}
@media(max-width:700px){.form-intro.compact>.lead{font-size:16px}}

/* Phones: one option per row, so no label wraps to three lines. */
@media(max-width:520px){.choices.tiles{grid-template-columns:1fr}.choice{padding:13px 14px}}
/* Tablets (701 to 1000px): the side panel becomes a banner above the form, which gets the full width with fields two
   across. A page whose panel is further reading puts it under the content with .notes-last on .form-layout. */
@media(max-width:1000px) and (min-width:701px){
  .form-layout{grid-template-columns:minmax(0,1fr)}
  .form-sidebar{position:static;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:var(--stack) var(--gap);align-items:start}
  .form-sidebar details{grid-column:1/-1}
  .form-layout.notes-last .form-sidebar,.donate-page .form-sidebar{order:2}
  .fields-grid{grid-template-columns:1fr 1fr}
  .choices.tiles{grid-template-columns:1fr 1fr}
}
/* Wider than that the panel is pinned beside the form. Opened, it scrolls inside itself instead of running off the
   screen. (No overscroll-behavior: the page must go on scrolling when the panel reaches its end.) */
@media(min-width:1001px){.form-sidebar{max-height:calc(100vh - 112px);max-height:calc(100dvh - 112px);overflow-y:auto;scrollbar-width:thin}}

@media(prefers-reduced-motion:reduce){.district-tile,.district-tile:hover,.district-tile:active,.form-page .nav-back .arrow{transform:none!important;transition:none}}
/* Windows contrast themes drop backgrounds and shadows, and every edge here is a shadow: give the tiles, fields and
   options defined in this file a real border (a failed field a thicker one), and mark the chosen option and the pressed
   district with the system highlight. */
@media(forced-colors:active){
  .form-intro,.district-pick,.form-section,.form-section+.form-section,.form-done,.form-sidebar,.error-summary,.mobile-principles,.mobile-links .sidebar-note,
  .form-alert,.field-error::before,.next-steps li::before,
  .field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{border:1px solid CanvasText}
  .field.has-error input:not([type=checkbox]):not([type=radio]),.field.has-error select,.field.has-error textarea{border-width:2px}
  .choice,.district-tile{border:1px solid ButtonText}
  .choice:has(input:checked),.district-tile[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-3px}
}
/* Print and Save as PDF (styles.css turns every colour mode into black on white and replaces the shading with thin
   lines): the error colour and field edge printed from a dark mode would be pale on paper, and the dark fill of a
   chosen option would hide its text, so all three take their light values; the chosen option, the alert after a
   failed send and the step numbers get a line instead. The side panel prints whole, not as a scrolling box. */
@media print{
  :root,:root.warm,:root.inverse,:root.warm.inverse{--danger:#b3261e;--field-line:#777}
  .choice:has(input:checked),.inverse .choice:has(input:checked),.warm.inverse .choice:has(input:checked){background:#fff;border:2px solid #111!important}
  .form-alert,.district-tile{border:1px solid #111}
  .next-steps li::before{border:1px solid #999}
  .form-sidebar{position:static;max-height:none;overflow:visible}
  /* The sidebar's principles may run on from page 1 rather than leave half of it blank. */
  .form-sidebar details{break-inside:auto}
}
