/* The compressed letter form (Rod, 2026-10-12: "Even the form fields should be collapsed ... Compress it."). Loaded after styles.css.
   Only the letter tool's form uses these rules: "Which describes you?", the progress line, the folding steps and the "Why we ask" toggles.
   Same tokens as styles.css (no new colours), square corners, 44px touch targets. */

/* Which describes you? Two big buttons; once one is chosen they fold into a single line with Change. */
.who-q{margin:0 0 12px;color:var(--navy);font-size:19px;line-height:1.3;font-weight:700}
.who-choices{display:grid;gap:12px}
@media(min-width:600px){.who-choices{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.who-btn{appearance:none;-webkit-appearance:none;display:flex;align-items:center;gap:14px;width:100%;min-height:88px;margin:0;padding:14px 16px;background:#fff;border:2px solid var(--field);border-radius:0;color:var(--navy);font:400 16px/1.4 "DM Sans",sans-serif;text-align:left;cursor:pointer}
.who-btn:hover{background:var(--panel)}
.who-btn.is-on{border-color:var(--navy);background:var(--panel)}
.who-btn:focus-visible{outline:3px solid var(--navy);outline-offset:2px;box-shadow:0 0 0 2px var(--gold)}
.who-txt{display:block;min-width:0}
.who-txt small{display:block;margin-top:2px;color:var(--body);font-size:16px;line-height:1.4}
.who-txt .who-warn{color:var(--burgundy);font-weight:700}
.who-chosen{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;margin:0;padding:4px 12px;background:var(--panel);border-left:4px solid var(--navy);color:var(--navy);font-weight:700}
.who-chosen-text{overflow-wrap:anywhere}

/* The progress line: not clickable. The step you are on is filled navy, the ones before it carry a tick. */
.steps-bar{list-style:none;display:flex;flex-wrap:wrap;gap:6px 20px;margin:16px 0;padding:0;color:var(--body);font-size:16px;scroll-margin-top:16px}
.steps-bar li{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.steps-bar .num{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:2px solid var(--field);background:#fff;color:var(--body);font-size:14px;font-weight:700}
.steps-bar li.is-cur{color:var(--navy);font-weight:700}
.steps-bar li.is-cur .num{background:var(--navy);border-color:var(--navy);color:#fff}
.steps-bar li.is-done .num{background:var(--teal);border-color:var(--teal);color:#fff;font-size:0}
.steps-bar li.is-done .num::after{content:"\2713";font-size:14px;line-height:1}

/* A step: a header button (name, and a one-line summary when it is folded) over its body. */
.step{margin:0 0 16px}
.step-h{margin:0;font-size:inherit;line-height:inherit}
.step-head{appearance:none;-webkit-appearance:none;position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;width:100%;min-height:52px;margin:0;padding:12px 48px 12px 16px;background:var(--panel);border:0;border-left:4px solid var(--navy);border-radius:0;color:var(--navy);font:700 18px/1.3 "DM Sans",sans-serif;text-align:left;cursor:pointer}
.step-head:focus-visible{outline:3px solid var(--navy);outline-offset:2px;box-shadow:0 0 0 2px var(--gold)}
.step-head::after{content:"";position:absolute;right:20px;top:50%;width:9px;height:9px;margin-top:-7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.step-head[aria-expanded="true"]::after{margin-top:-3px;transform:rotate(-135deg)}
.step-sum{color:var(--body);font-size:16px;font-weight:400;overflow-wrap:anywhere}
.step-sum:empty{display:none}
.step-body{padding:16px 0 0}
.next-child{margin:8px 0 0}
#home_note:empty{display:none}
#err:empty{min-height:0;margin:0}

/* "Why we ask": a quiet toggle that shows one extra line. Facts about where a detail goes are never behind it. */
.why{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;min-height:44px;margin:-14px 0 4px;padding:0 4px;background:none;border:0;border-radius:0;color:var(--teal);font:700 16px/1.2 "DM Sans",sans-serif;text-decoration:underline;cursor:pointer}
.why:focus-visible{outline:3px solid var(--navy);outline-offset:2px;box-shadow:0 0 0 2px var(--gold)}
.why-text{margin:0 0 16px}

/* A child card with only one child needs no "Child 1" heading. */
.child.solo .child-head{display:none}

/* On a wider screen the short pairs sit side by side: phone and email, town and postal code, a child's name and grade. */
.row2{display:block}
@media(min-width:700px){.row2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px}}

/* Quiet motion: what opens fades in and settles 6px, 0.2s. Folding is instant. Off when the visitor asks for less motion. */
@keyframes form-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:no-preference){
  .step-body:not([hidden]),.why-text:not([hidden]),.who-choices:not([hidden]),.child{animation:form-in .2s ease-out}
}

/* Placeholders that are longer than a narrow phone's box: a little smaller, and cut with an ellipsis rather than mid-letter. The words are unchanged. */
#dq,.child input[id$="_school"]{text-overflow:ellipsis}
@media(max-width:420px){
  #dq::placeholder,.child input[id$="_school"]::placeholder{font-size:14px}
}
@media(max-width:350px){
  #dq::placeholder,.child input[id$="_school"]::placeholder{font-size:13px}
}

/* The intro under the title is a dek, and the group headings carry a small teal icon (decorative; svg.lg-ic outranks sections.css's .ic{display:block}). */
.tool-intro .dek{display:block;margin-top:8px;color:var(--navy);font-size:20px;line-height:1.4;font-weight:600}
svg.lg-ic{display:inline-block;width:20px;height:20px;margin:0 8px 0 0;vertical-align:-4px;color:var(--teal)}
.step-head svg.lg-ic{align-self:center;margin:0}
