/* Schools.Career.Studio: the parent website. Mobile first, light, academic:
   Oxford navy ink, a royal-blue accent, gold for stars and achievements, and
   book-face serif headings (system fonts only, so nothing loads from elsewhere). */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --ink: #0d1b3e;
  --muted: #56617d;
  --line: #e1e5ef;
  --accent: #1d3faf;
  --accent-strong: #142f8a;
  --on-accent: #ffffff;
  --accent-soft: #e9eeff;
  --gold: #b7791f;
  --gold-bright: #d4a23a;
  --gold-ink: #7a4e0b;
  --gold-soft: #fff4d9;
  --ok: #157347;
  --ok-soft: #e5f5ec;
  --warn-ink: #7a4f00;
  --warn-soft: #fbf1d8;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(13, 27, 62, .04), 0 8px 24px rgba(13, 27, 62, .06);
  --radius: 16px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(180deg, #ffffff 0, var(--bg) 360px);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
b, strong { font-weight: 650; }

/* masthead: a navy rule over a white bar, the crest and a serif wordmark */
.masthead { background: rgba(255, 255, 255, .92); border-top: 4px solid var(--ink); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
.top, main, .foot { width: 100%; max-width: 660px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand .word { font-family: var(--serif); font-size: 1.16rem; letter-spacing: .005em; white-space: nowrap; }
.brand .word b { font-weight: 700; color: var(--ink); }
.brand .word span { color: var(--muted); }
.mark { width: 30px; height: 30px; flex: none; }
.mark .shield { fill: var(--ink); }
.mark .book { fill: #fff; }
.mark .spine { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.mark .rule { stroke: var(--gold-bright); stroke-width: 1.6; stroke-linecap: round; fill: none; }
#nav { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: .92rem; }
#nav .who { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
#nav .link { white-space: nowrap; }
@media (max-width: 520px) { #nav .who { display: none; } .brand .word span { display: none; } }

main { flex: 1; padding-top: 16px; padding-bottom: 44px; outline: none; }
.foot { color: var(--muted); font-size: .85rem; padding-bottom: 28px; text-align: center; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); }
h1 { font-size: 2rem; font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 18px 0 10px; outline: none; }
h2 { font-size: 1.28rem; font-weight: 700; line-height: 1.25; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 18px 0 8px; }
p { margin: 0 0 12px; }
.kicker { font: 700 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.lead { font-size: 1.06rem; color: var(--muted); margin-bottom: 22px; }
/* The opening promise on step 1, read before the practical detail. */
.lead.hope { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hint, .fine { color: var(--muted); font-size: .9rem; }
.fine { margin-top: 16px; }
.error { color: var(--danger); font-size: .95rem; min-height: 0; }
.error:empty { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.loading { color: var(--muted); padding: 40px 0; }

/* progress */
.steps { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps li { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; color: var(--muted); }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.steps li.done::before, .steps li.now::before { background: var(--accent); }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps .dot { display: none; }

/* cards and sections */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 14px; box-shadow: var(--shadow); }
.card.soft { background: var(--accent-soft); border-color: transparent; box-shadow: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.card-head h2 { margin: 0; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: .85rem; font-weight: 700; flex: none; }
.optional { font-weight: 500; font-size: .8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.badge { font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--accent-soft); color: var(--accent-strong); }

/* forms */
.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-weight: 600; font-size: .95rem; }
input[type=text], input[type=email], input[type=search], input[type=password], select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; min-height: 52px; padding: 0 14px; width: 100%;
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder { color: var(--muted); opacity: .8; }
/* Password with a Show button; the emailed 6-digit code. */
.pw { display: flex; gap: 8px; align-items: stretch; }
.pw input { flex: 1; min-width: 0; }
.pw .btn.small { min-height: 52px; }
input.code { font-size: 1.5rem; letter-spacing: .35em; text-align: center; max-width: 11ch; font-variant-numeric: tabular-nums; padding: 0 8px 0 calc(8px + .35em); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; min-height: 52px; padding: 0 22px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: .92rem; border-radius: 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn[aria-busy=true] { opacity: .7; cursor: progress; }
.btn:focus-visible, .link:focus-visible, .result:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.actions .btn { width: 100%; }
form .btn.primary[type=submit] { margin-top: 6px; }

/* school picker */
.picker { position: relative; }
.results { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.results:empty { display: none; }
.results li + li { border-top: 1px solid var(--line); }
.result { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; padding: 12px 14px; cursor: pointer; }
.result:hover { background: var(--surface-2); }
.result .muted, .chosen .muted { font-size: .88rem; }
.results .empty { padding: 12px 14px; font-size: .92rem; }
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--accent); border-radius: 12px; background: var(--accent-soft); }
.chosen > div { display: flex; flex-direction: column; min-width: 0; }
.chosen[hidden], input[hidden] { display: none; }

.saved { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 18px; font-size: .95rem; }
.saved .tick { color: var(--ok); font-weight: 700; }
.saved a { margin-left: auto; }

/* membership */
.plan .price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.plan .amount { font-size: 2.3rem; font-weight: 700; letter-spacing: -.02em; }
.plan .per { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }
.notice { background: var(--warn-soft); color: var(--warn-ink); border-radius: 12px; padding: 12px 14px; font-size: .95rem; }

/* copyable values */
.copy { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--surface-2); margin: 6px 0 10px; }
.copy .value { flex: 1; min-width: 0; font-family: var(--mono); font-size: .95rem; overflow-wrap: anywhere; }
.copy .btn { flex: none; }

/* live status */
.status { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin: 8px 0 12px; font-size: .95rem; }
.card > .status:last-child { margin-bottom: 0; }
/* Connect Gmail, inside "Make it automatic". */
.subcard { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.subcard h3 { margin: 0; font-size: 1rem; }
.gmail-connect { display: flex; flex-direction: column; gap: 10px; }
.gmail-connect .status { margin: 0; }
.status.ok { background: var(--accent-soft); }
.status .tick { color: var(--ok); font-weight: 800; font-size: 1.1rem; line-height: 1.3; }
.waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; padding: 10px 0; margin: 0; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 7px; animation: pulse 1.6s ease-in-out infinite; }
.waiting .pulse { margin-top: 0; }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; opacity: .7; } .btn { transition: none; } }

/* how-to steps */
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; padding: 14px 2px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
.howto { margin: 0 0 16px; padding-left: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.howto > li { counter-increment: s; position: relative; padding-left: 36px; }
.howto > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--muted); }
.howto p { margin-bottom: 6px; }
.howto .btn { margin: 2px 0 4px; }

/* invite */
.invite .row { display: flex; gap: 8px; }
.invite input { flex: 1; min-width: 0; }
.invite .btn { flex: none; }
.invite .hint, .invite .error { margin-top: 8px; }

/* AI prompts */
.asks { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.asks li { background: var(--surface); border-radius: 12px; padding: 10px 14px; font-size: .97rem; }

/* home */
.child h2 { font-size: 1.3rem; margin-bottom: 2px; }
.kv { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.list li { display: flex; gap: 8px; align-items: baseline; }
.list .tick { color: var(--ok); font-weight: 700; }
.access-list li { flex-direction: column; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
.access-list li:last-child { border-bottom: 0; }
.access-list .when { font-size: .85em; color: var(--muted, #6b6b6b); }
.more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

@media (min-width: 560px) {
  h1 { font-size: 2.15rem; }
  .card { padding: 24px; }
  .actions { flex-direction: row-reverse; justify-content: flex-start; }
  .actions .btn { width: auto; min-width: 220px; }
  .steps .dot { display: none; }
}

/* School senders */
.list.senders li { align-items: center; justify-content: space-between; }
.list.senders .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sender-ask p { margin: 0 0 8px; overflow-wrap: anywhere; }
.sender-ask .actions { margin: 0; gap: 12px; align-items: center; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }

/* Class photos (from a feed portal such as Weduc / Cognita Connect) */
.photo-post { margin: 0 0 14px; }
.photo-post .meta { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.photo-post .summary { margin: 0 0 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 0 0 12px; }
.photo-grid a { display: block; border-radius: 8px; overflow: hidden; background: var(--accent-soft); }
.photo-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-save { display: flex; flex-direction: column; gap: 6px; }
.photo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.photo-head h2 { margin-bottom: 0; }
.photo-tools { display: flex; gap: 14px; align-items: baseline; font-size: .95rem; }
.photo-pick { position: relative; display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--accent-soft); cursor: pointer; }
.photo-pick img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-grid.selecting .photo-pick:not(.on) img { opacity: .85; }
.photo-pick.on { outline: 3px solid var(--accent); outline-offset: -3px; }
.photo-pick .check { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .25); color: #fff; font-weight: 700; font-size: 14px; line-height: 20px; text-align: center; }
.photo-pick.on .check { background: var(--accent); }

/* Full-screen photo viewer */
.photo-open { display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--accent-soft); cursor: zoom-in; }
.photo-open img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.viewer { position: fixed; inset: 0; z-index: 50; background: #0b0f11; color: #fff; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.viewer-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 8px 132px; box-sizing: border-box; }
.viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.viewer-close { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 44px; cursor: pointer; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 36px; cursor: pointer; }
.viewer-nav.prev { left: 8px; }
.viewer-nav.next { right: 8px; }
.viewer-nav:disabled { opacity: .25; cursor: default; }
.viewer-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.viewer-count { font-size: .9rem; opacity: .8; }
.viewer-save { width: min(420px, 100%); }
.viewer-msg { margin: 0; min-height: 1.2em; font-size: .9rem; opacity: .9; }
@media (hover: none) { .viewer-nav { display: none; } }

/* Add to the records */
textarea { width: 100%; box-sizing: border-box; min-height: 84px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; resize: vertical; }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea::placeholder { color: var(--muted); opacity: .8; }
.add-files { margin: 12px 0; }
.add-files li { justify-content: space-between; align-items: center; word-break: break-all; }
#add-child { margin-bottom: 4px; }
.add-pick { margin-top: 0; }
.photo-post.linked { outline: 3px solid var(--accent); outline-offset: 2px; }

/* buttons and cards: a little more presence */
.card { border-color: var(--line); }
.btn.primary { box-shadow: 0 1px 0 rgba(13, 27, 62, .12), 0 6px 16px rgba(29, 63, 175, .18); }
.link.quiet { color: var(--muted); font-size: .88rem; }
.chip { font: inherit; font-size: .9rem; padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--accent); }
.chip.dream { border-color: var(--gold-bright); background: var(--gold-soft); color: var(--gold-ink); }
.chip[disabled] { opacity: .5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ───── Dream Route ───── */
.goals .e { font-size: 1.25rem; line-height: 1; width: 1.6em; text-align: center; flex: none; }
.dream-pick .inline { margin: 4px 0 6px; }
.dream-family h3 { font-family: var(--sans); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.dream-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.dream-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; min-height: 88px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; transition: border-color .15s, transform .1s, box-shadow .15s; }
.dream-tile .e { font-size: 1.7rem; line-height: 1; }
.dream-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.dream-tile.on { border-color: var(--accent); background: var(--accent-soft); }
.dream-tile:focus-visible, .route-tab:focus-visible, .chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.dream-dest { background: linear-gradient(135deg, #ffffff 0%, #f3f6ff 60%, #fff8e8 100%); }
.dest-row { display: flex; gap: 16px; align-items: center; }
.dest-emoji { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.5rem; background: #fff; border: 2px solid var(--gold-bright); box-shadow: 0 0 0 6px var(--gold-soft); }
.dest-row h2 { font-size: 1.6rem; margin-bottom: 4px; }
.dest-row .muted { margin: 0; }
.dream-dest .more { align-items: center; margin-top: 14px; }

.route-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 6px; scrollbar-width: thin; }
.route-tab { flex: 1 0 auto; min-width: 150px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.route-tab small { color: var(--muted); font-size: .8rem; }
.route-tab[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: #fff; }
.route-tab[aria-pressed=true] small { color: rgba(255, 255, 255, .78); }
.route-tabs.kids { margin-bottom: 14px; }

/* the sat-nav: a route line with stops; school stops blue, the dream gold */
.satnav { list-style: none; margin: 8px 0 6px; padding: 0; position: relative; }
.satnav::before { content: ""; position: absolute; left: 19px; top: 22px; bottom: 26px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--accent) 0%, #6d83d8 55%, var(--gold-bright) 100%); }
.stop { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.stop:last-child { padding-bottom: 0; }
.stop .pin { position: relative; z-index: 1; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; background: #fff; border: 2px solid var(--accent); }
.stop b { display: block; font-family: var(--serif); font-size: 1.04rem; line-height: 1.3; padding-top: 2px; }
.stop .when { display: block; color: var(--accent); font-size: .82rem; font-weight: 650; letter-spacing: .01em; margin: 1px 0 3px; }
.stop p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.stop.here .pin { background: var(--accent); border-color: var(--accent); }
.stop.move .pin { border-style: dashed; }
.stop.uni .pin, .stop.train .pin, .stop.work .pin { border-color: #6d83d8; }
.stop.goal .pin { width: 52px; height: 52px; margin-left: -5px; font-size: 1.55rem; border: 3px solid var(--gold-bright); box-shadow: 0 0 0 5px var(--gold-soft); }
.stop.goal b { font-size: 1.2rem; }
.stop.goal .when { color: var(--gold-ink); }

/* stepping stones: rank, progress, badges, goals */
.rank { display: flex; gap: 16px; align-items: center; }
.rank .grow { flex: 1; min-width: 0; }
.rank h2 { margin-bottom: 2px; }
.rank .muted { margin: 0 0 8px; }
.rank-ico { flex: none; width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; font-size: 2.1rem; background: var(--gold-soft); border: 1.5px solid #f0d9a8; }
.rank-ico.pop { animation: pop .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(.6) rotate(-12deg); } 60% { transform: scale(1.15) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
.bar { height: 10px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; min-width: 6px; border-radius: 10px; background: linear-gradient(90deg, var(--gold-bright), var(--gold)); transition: width .5s ease; }
.cheer { margin: 12px 0 0; font-weight: 650; color: var(--gold-ink); }
.cheer:empty { display: none; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin: 16px 0 4px; }
.badge-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border: 1.5px dashed var(--line); border-radius: 14px; font-size: .78rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.2; }
.badge-tile .e { font-size: 1.35rem; filter: grayscale(1); opacity: .45; }
.badge-tile small { position: absolute; top: 6px; right: 8px; font-size: .72rem; color: var(--gold-ink); }
.badge-tile.earned { border-style: solid; color: var(--ink); background: #fff; }
.badge-tile.earned .e { filter: none; opacity: 1; }
.badge-tile.bronze { border-color: #e2b98a; }
.badge-tile.silver { border-color: #9aa6bf; background: #f7f8fb; }
.badge-tile.gold { border-color: var(--gold-bright); background: var(--gold-soft); }
.goals { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; }
.goals li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.goals li:first-child { border-top: 0; }
.goals .grow { flex: 1; min-width: 0; }
.goals small { color: var(--muted); font-size: .82rem; }
.goals.done .star { width: 1.6em; text-align: center; }
.icon-btn { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font: inherit; font-size: .95rem; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.ideas { margin: 6px 0 14px; }
.goal-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.goal-add input { flex: 1 1 220px; min-width: 0; }
.goal-add select { flex: 0 1 180px; }
.goal-add .btn { min-height: 52px; }
@media (prefers-reduced-motion: reduce) { .rank-ico.pop { animation: none; } .bar span, .dream-tile { transition: none; } }
@media (min-width: 560px) { h1 { font-size: 2.35rem; } }

/* ───── Dream Route at the centre: the banner, Gab's quiz and its results ───── */
.dream-hero { margin: 6px 0 16px; padding: 22px 20px 20px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, #0d1b3e 0%, #33267f 52%, #8e2a86 100%); box-shadow: 0 12px 30px rgba(51, 38, 127, .22); }
.dream-hero .kicker { color: #f3d58a; }
.dream-hero h1 { color: #fff; margin: 4px 0 8px; }
.dream-hero p { margin: 0; color: rgba(255, 255, 255, .9); }
.tip { background: #f6f2ff; border: 1px dashed #c4b5fd; border-radius: 12px; padding: 10px 12px; font-size: .92rem; color: #3b2a8f; margin: 0 0 14px; }
.tags { color: var(--muted); font-size: .88rem; margin: 0 0 4px; }
h3.first { margin-top: 0; }
.lead-tiles { grid-template-columns: 1fr; margin: 4px 0 12px; }
.dream-tile small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.dream-tile.quiz { flex-direction: row; align-items: center; flex-wrap: wrap; min-height: 0; padding: 16px; background: linear-gradient(120deg, #0d1b3e, #33267f); color: #fff; border-color: transparent; font-size: 1.08rem; }
.dream-tile.quiz small { color: rgba(255, 255, 255, .78); flex-basis: 100%; padding-left: 2.7rem; margin-top: -6px; }
.dream-tile.quiz:hover { box-shadow: 0 8px 22px rgba(51, 38, 127, .3); }
.quiz-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.quiz-top h2 { margin-bottom: 4px; }
.quiz-top .muted { margin: 0; }
.quiz-top .more { margin-top: 0; }
.bar.violet span { background: linear-gradient(90deg, #4f46e5, #a21caf); }
.quiz-q { font-size: 1.4rem; margin: 18px 0 14px; display: block; }
.quiz-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 156px; padding: 16px 10px; border: 2px solid var(--line); border-radius: 18px; background: #fff; font: inherit; color: var(--ink); text-align: center; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.quiz-choice .e { font-size: 2.9rem; line-height: 1; }
.quiz-choice b { font-size: 1rem; line-height: 1.3; }
.quiz-choice:hover, .quiz-choice:focus-visible { border-color: #6d28d9; background: #faf7ff; transform: translateY(-2px); outline: none; }
.quiz-more { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 14px 0 4px; }
.matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 8px 0 6px; }
.match { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.match:hover, .match:focus-visible { border-color: #6d28d9; box-shadow: var(--shadow); outline: none; }
.match-head { display: flex; align-items: center; gap: 8px; }
.match-head .e { font-size: 1.5rem; line-height: 1; }
.match-head b { flex: 1; font-family: var(--serif); font-size: 1.06rem; }
.match .pct { font-weight: 700; color: #5b21b6; font-size: .92rem; }
.match small { color: var(--muted); font-size: .86rem; line-height: 1.35; }

/* home: the Dream Route first, as the reason for everything else */
.dream-lead { color: #fff; border: 0; background: linear-gradient(130deg, #0d1b3e 0%, #2a2470 55%, #7a2a7f 100%); box-shadow: 0 14px 34px rgba(42, 36, 112, .25); }
.dream-lead .kicker { color: #f3d58a; }
.dream-lead h2 { color: #fff; margin-bottom: 12px; }
.dream-lead p { color: rgba(255, 255, 255, .88); }
.dream-lead .kid + .kid { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 14px; margin-top: 14px; }
.dream-lead .row { display: flex; align-items: center; gap: 14px; }
.dream-lead .big { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2.1rem; background: #fff; box-shadow: 0 0 0 4px rgba(243, 213, 138, .55); }
.dream-lead .row div b { display: block; font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.dream-lead .row div span { color: rgba(255, 255, 255, .82); font-size: .92rem; }
.journey { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .16); margin: 16px 0 6px; }
.journey span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, #f3d58a, #d4a23a); min-width: 10px; }
.journey-ends { display: flex; justify-content: space-between; font-size: .78rem; color: rgba(255, 255, 255, .7); margin-bottom: 10px; }
.dream-lead .next { font-size: .95rem; margin: 6px 0 0; }
.dream-lead .actions .btn.primary { background: #f3d58a; border-color: #f3d58a; color: #0d1b3e; box-shadow: none; }
.dream-lead .actions .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
#nav .dream-link { font-weight: 650; }
@media (max-width: 400px) { #nav { gap: 10px; font-size: .86rem; } .brand .word { display: none; } }
@media (prefers-reduced-motion: reduce) { .quiz-choice { transition: none; } }
