/* ── Shell D: the doorway (Phase 6 of the shell plan, 2026-10-11) ───────────
   The pages a volunteer, a family or an applicant reaches without the staff
   shell — a link in a text or an email, the volunteer and family homes, the
   welcome page — share ONE look: a warm paper ground, one 560px column, a
   Lora greeting, cards, one teal primary, a footer that says who to contact.
   Before this file each carried its own copy of these rules, and the copies
   had drifted (three grounds, three column widths, two type families).
   A page adds the shared class BESIDE its own role class
   (`class="door-card vh-card"`): the page keeps its role classes for its
   scripts and its specs; the LOOK comes from here. Self-contained — no
   style.css, no revival-ui — because these pages load neither. Every target
   is held to 44px. */
:root {
  --paper: #f3f0ea; --card: #faf8f5; --ink: #1e2433; --muted: #525a6b; --faint: #5b6372;
  --line: #e2ddd3; --navy: #1e2433; --teal: var(--accent, #1f4e5f); --teal-dk: #0b5a5f; --teal-soft: #e3f0f0;
  --red: #a3281b; --red-soft: #f6dcd8; --amber: #8a5300; --amber-soft: #f6e7cc; --green: #2b6242; --green-soft: #e3efe6;
  --shadow: 0 1px 2px rgba(30,36,51,.06), 0 8px 24px rgba(30,36,51,.07);
  --serif: "Lora", Georgia, serif; --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* The VOLUNTEER theme — the volunteer surface's plum (next steps, the covenant,
   the volunteer help page), a deliberate identity of its own: the same sheet,
   its own palette. `--teal` follows the theme's accent so the shared button and
   links take it. --faint is #6f6678, not a lighter grey: at 11.5px the eyebrow
   and step sub-labels are "small text", so they need 4.5:1 — 4.89 on --paper,
   5.37 on --card, and still visibly lighter than --muted (6.19). */
body[data-door-theme="volunteer"] {
  --paper: #f6f2ec; --card: #fffdf9; --ink: #2b2430; --muted: #5f5766; --faint: #6f6678; --line: #e4dbce;
  --accent: #6a3d7a; --accent-hover: #582f68; --accent-soft: #efe3f2;
  --teal: var(--accent); --teal-dk: var(--accent-hover); --teal-soft: var(--accent-soft);
  --honey: #7a4f10; --honey-soft: #f6ead2; --pine: #2b6242; --pine-soft: #e3efe6;
  --shadow: 0 1px 2px rgba(43,36,48,.06), 0 8px 24px rgba(43,36,48,.07);
}
/* The HELP theme — the homeschool family help page: teal, NOT the volunteer
   plum, because a parent arrives from /homeschool.html and should not feel
   handed to a different product. Every value is help/help.css's, where each
   was contrast-measured against THIS paper (--faint 4.70 on --paper, 4.99 on
   --card) — the plan's "help.css keeps its own tokens but sits on it". */
body[data-door-theme="help"] {
  --paper: #f7f5f2; --card: #ffffff; --ink: #232a2e; --muted: #4a555b; --faint: #656f75; --line: #e2ddd6;
  --accent: #1f4e5f; --accent-hover: #173b48; --accent-soft: #e7eff1;
  --teal: var(--accent); --teal-dk: var(--accent-hover); --teal-soft: var(--accent-soft);
  --shadow: 0 1px 2px rgba(35,42,46,.05), 0 8px 24px rgba(35,42,46,.06);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

/* The top bar — the staff pages' navy bar, so a person who holds both sees one product. */
.door-bar { background: var(--navy); color: #fff; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 clamp(14px, 4vw, 24px); }
.door-brand { font-family: var(--serif); font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.door-bar-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.door-bar-links a { color: #dfe3ec; font-size: 13.5px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 8px; }
.door-bar-links a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* The one column. */
.door-wrap { max-width: 560px; margin: 0 auto; padding: clamp(18px, 5vw, 32px) clamp(16px, 5vw, 24px) 64px; display: flex; flex-direction: column; gap: 18px; }
.door-wrap h1, h1.door-greeting { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 7vw, 30px); line-height: 1.15; margin: 0 0 2px; letter-spacing: -.01em; }
.door-sub { margin: 0; color: var(--muted); font-size: 15px; }
.door-eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--faint); display: flex; align-items: center; gap: 9px; margin: 0 0 8px; }
.door-eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.door-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: clamp(16px, 4.5vw, 22px); }
.door-card h2 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 0 0 6px; }
.door-card p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; }
.door-card p:last-child { margin-bottom: 0; }

/* One primary per page; the rest are quiet. */
.door-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; font-family: var(--sans); font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.door-btn:hover { border-color: var(--teal); color: var(--teal); }
.door-btn:focus-visible { outline: 2px solid #d8a04a; outline-offset: 2px; }
.door-btn:disabled { opacity: .5; cursor: default; }
.door-btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.door-btn-primary:hover { background: var(--teal-dk); color: #fff; }
.door-btn-primary:disabled { background: var(--teal); color: #fff; }
/* A decision the page exists for (Decline) — visible, quiet, never the primary. */
.door-btn-danger { border-color: var(--red); color: var(--red); }
.door-btn-danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
/* A destructive decision the page EXISTS for (Deny's Confirm — Not Approved): the
   page's one primary, in red. */
.door-btn-primary.door-btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.door-btn-primary.door-btn-danger:hover { background: #87210f; border-color: #87210f; color: #fff; }

/* The footer: who to contact, never a dead end. */
.door-foot { text-align: center; color: var(--faint); font-size: 13px; }
.door-foot a { color: var(--teal); display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }

/* ── Link tile (2026-10-11) — a door onto a page or an app, on the volunteer
   and family homes (`door-tile vh-tile`, `door-tile hh-tile`; the staff twin
   is .link-tile in style.css). The page keeps its role class beside it. */
.door-tile{display:flex;align-items:center;min-height:56px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--card);box-shadow:var(--shadow);text-decoration:none;font-weight:600;font-size:15px}
.door-tile:hover{border-color:var(--teal);color:var(--teal)}
.door-tile:focus-visible{outline:2px solid #d8a04a;outline-offset:2px}
/* ── Status pill (2026-10-11) — the doorway twin of style.css's .pill: one
   shape, one tone (is-amber · is-red · is-green · is-muted; teal when none),
   the page's role class beside it (`door-pill vh-pill`). */
.door-pill{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:700;background:var(--teal-soft);color:var(--teal);vertical-align:middle;white-space:nowrap}
.door-pill.is-amber{background:var(--amber-soft);color:var(--amber)}
.door-pill.is-red{background:var(--red-soft);color:var(--red)}
.door-pill.is-green{background:var(--green-soft);color:var(--green)}
.door-pill.is-muted{background:#efe8dd;color:#5f5a52}
/* ── Attach control (2026-10-14) — a file to send from a doorway page: the
   homeschool parent upload and the clearance documents page. A `<label
   class="door-drop xyz-drop" for="…">` over a `door-drop-input` file input
   (visually hidden, still focusable, so Tab and Space reach the picker and the
   label's text is its name); once a file is chosen the page draws a
   `door-drop-file` row — name, `door-drop-meta`, and a quiet `door-drop-replace`
   — and may hide the zone. The page keeps its role classes and ids beside
   these for its script and its specs. Every target is 44px. */
.door-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:14px 16px;border:1.5px dashed var(--teal);border-radius:10px;background:#fff;color:var(--teal);font-weight:600;font-size:15px;text-align:center;cursor:pointer}
.door-drop:hover{background:var(--teal-soft)}
.door-drop:focus-within{outline:2px solid #d8a04a;outline-offset:2px}
.door-drop-row{flex-direction:row;gap:8px}
.door-drop-icon{font-size:22px;line-height:1}
.door-drop-picked{font-weight:600;color:var(--teal);word-break:break-all}
.door-drop-input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.door-drop-file{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 6px 6px 10px;border-radius:8px;background:var(--green-soft);color:var(--ink)}
.door-drop-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.door-drop-meta{color:var(--muted)}
.door-drop-replace{flex:none;min-height:44px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--teal);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.door-drop-replace:hover{background:rgba(255,255,255,.6)}
.door-drop-replace:focus-visible{outline:2px solid #d8a04a;outline-offset:2px}
