/* Waypoint. Plain, readable, no university colours.
   The look (Dev, 2026-11-17; web/design/final.html and rationale.md): dark, with ONE green that means progress
   (the line, the dots, the finish, the one main button) and amber that means "check this" and nothing else.
   No navy (the university's) and no purple (the generic AI look). A light version is used on paper. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root {
  --ink: #f2f5f3;          /* main text */
  --soft: #b7bfbb;         /* supporting text (9.9:1 on the page) */
  --fine: #9ca5a0;         /* fine print (7:1) */
  --line: #2b312e;         /* hairlines between rows */
  --border: #75807b;       /* edges of things you can type in or press (3:1) */
  --paper: #0f1211;        /* the page */
  --card: #171b19;         /* panels */
  --wash: #212624;         /* a quiet fill */
  --accent: #45c486;       /* ONLY progress: the line, the dots, the finish, the one main button */
  --accent-soft: #15261d;
  --accent-ink: #07170e;   /* text on a green button */
  --warn: #e8b34b;         /* ONLY "check this" */
  --warn-wash: #2a2210;
  --danger: #f1a3a3;
  --radius: 12px;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  /* the display face: the headline, the big number, term names, the brand. Never running text. */
  --display: "Bricolage Grotesque", var(--sans);
}
* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
/* Numbers that line up in columns: credits, totals, the graph */
.term-credits, .item-credits, .tile .value, .graph, .route-total { font-variant-numeric: tabular-nums; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }
.quiet { color: var(--soft); font-size: 0.9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
/* Read by a screen reader, not shown: the "Plan updated" announcements and a few words that only sight makes obvious */
.visually-hidden { position: absolute !important; 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; }
/* Links are text-coloured and underlined: green keeps its one job (progress) */
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Header */
.site { background: var(--card); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { margin: 0; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; display: flex; align-items: center; gap: 10px; }
.mark { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); display: inline-block; }
.status { margin: 0; font-size: 0.85rem; color: var(--soft); display: flex; align-items: center; gap: 6px; text-align: right; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--soft); flex: none; }
.status.ready::before { background: var(--accent); }
.status.failed { color: var(--danger); }
.status.failed::before { background: var(--danger); }

/* Start */
h1 { font-size: 1.7rem; line-height: 1.2; margin: 28px 0 8px; letter-spacing: -0.01em; }
.lead { font-size: 1.05rem; color: var(--soft); margin: 0 0 20px; max-width: 60ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; }
.card h2 { font-size: 1.05rem; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { margin: 6px 0; }
.step { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; flex: none; }
.optional { font-size: 0.75rem; font-weight: 600; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }

.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 20px 16px; text-align: center; background: var(--paper); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.has-file { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.drop-actions { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 10px 0 6px; }
.file-name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.drop:not(.has-file) .file-name, .pick-row .file-name.none { font-weight: 400; color: var(--soft); }
.pick-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.help { margin-top: 12px; font-size: 0.93rem; }
.help summary { cursor: pointer; color: var(--accent); }
.help p { color: var(--soft); }

.field { display: flex; gap: 16px; align-items: flex-start; padding: 8px 0; flex-wrap: wrap; }
.field + .field { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.field > label, .field-label { width: 150px; font-weight: 600; padding-top: 4px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; padding: 4px 0; }
.checks .quiet { margin: 4px 0 0; max-width: 46ch; }
select { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); min-width: 80px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }

input[type="text"], input[type="number"] { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); width: min(100%, 360px); }
.field > div { flex: 1; min-width: 220px; }
.go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 20px 0 8px; }
.go p { margin: 0; }
.button { display: inline-block; font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.button:hover { border-color: var(--soft); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover { filter: brightness(1.08); }
.button.big { padding: 12px 26px; font-size: 1.05rem; }
.button[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.button:focus-visible, .link:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible, a:focus-visible,
button:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.promise { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; margin: 22px 0 14px; }
.promise p { margin: 0; font-size: 0.95rem; }
.lock { color: var(--accent); flex: none; margin-top: 2px; }
.how { margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 0 20px; }
.how > summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.how[open] { padding-bottom: 8px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 28px; }
.how h3 { font-size: 0.98rem; margin: 10px 0 4px; }
.how p { margin: 4px 0 8px; font-size: 0.93rem; color: var(--soft); }
.how p strong { color: var(--ink); }
.alt { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0 0; font-size: 0.95rem; }

/* Working and problems */
.progress { height: 6px; background: var(--wash); border-radius: 3px; overflow: hidden; margin: 18px 0; }
.progress div { width: 35%; height: 100%; background: var(--accent); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .progress div { animation: none; width: 100%; } }
.problem { margin-top: 28px; border-left: 4px solid var(--danger); }
.problem h1 { margin-top: 0; font-size: 1.35rem; }
.problem .button { margin-top: 8px; }

/* Result */
.toolbar { position: sticky; top: 0; z-index: 5; background: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back { text-decoration: none; font-weight: 600; padding: 8px 4px; }
.notice { background: var(--warn-wash); color: var(--warn); border-radius: 8px; padding: 10px 14px; margin: 14px 0 0; }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.jump a { font-size: 0.85rem; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.jump a:hover { border-color: var(--accent); color: var(--accent); }

.glance { margin: 16px 0 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.tile.main { border-top: 4px solid var(--accent); }
.tile .label { margin: 0; font-size: 0.8rem; color: var(--soft); }
.tile .value { margin: 2px 0 0; font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.tile .sub { margin: 2px 0 0; font-size: 0.85rem; color: var(--soft); }
.next { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-top: 12px; }
.next h2 { font-size: 1rem; margin: 0 0 6px; }
.next ul { list-style: none; margin: 0; padding: 0; }
.next li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.next li:first-child { border-top: 0; }
.next li > span:last-child { color: var(--soft); white-space: nowrap; }
.next .choice { color: var(--soft); font-style: italic; }
.next .what { min-width: 0; }
.next .ideas { margin: 4px 0 0; font-size: 0.9rem; color: var(--soft); }
.next .ideas summary { cursor: pointer; }
.next .ideas ul { margin: 6px 0 4px; }
.next .ideas li { display: block; border-top: 0; padding: 3px 0; color: var(--ink, inherit); }
.next .ideas li .why { display: block; color: var(--soft); white-space: normal; }
.next .ideas .quiet { margin: 4px 0 0; }
.road { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.road li { font-size: 0.82rem; background: var(--accent-soft); color: var(--ink); border-radius: 6px; padding: 4px 10px; }
.road li b { font-weight: 600; }
.glance .quiet { margin: 10px 0 0; }
.glance .quiet a { color: var(--accent); }
.plan > h1 { font-size: 1.6rem; margin: 18px 0 10px; }
.plan > blockquote, .plan > p { margin: 10px 0; }
.plan blockquote { padding: 10px 14px; background: var(--wash); border-left: 4px solid var(--line); border-radius: 4px; font-size: 0.93rem; }
.plan blockquote p { margin: 4px 0; }
.plan section, .plan details.section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 14px; margin: 14px 0; }
.plan section.key { border-top: 4px solid var(--accent); }
.plan h2 { font-size: 1.15rem; margin: 14px 0 8px; }
.plan h3 { font-size: 1rem; margin: 20px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.plan h2 + h3 { border-top: 0; padding-top: 0; margin-top: 8px; }
.plan details.section { padding: 0 20px; }
.plan details.section > summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 1.15rem; }
.plan details.section > summary span { font-weight: 400; font-size: 0.85rem; color: var(--soft); margin-left: 8px; }
.plan details.section[open] { padding-bottom: 14px; }
.plan ul { padding-left: 22px; margin: 8px 0; }
.plan li { margin: 5px 0; }
.plan a { color: var(--accent); }
.table-scroll { overflow-x: auto; margin: 8px 0; }
.plan table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.plan th, .plan td { border-bottom: 1px solid var(--line); padding: 8px 8px; text-align: left; vertical-align: top; }
.plan tr:last-child td { border-bottom: 0; }
.plan th { font-weight: 600; color: var(--soft); font-size: 0.82rem; }
.plan td.num, .plan th.num { text-align: right; white-space: nowrap; width: 1%; }
.plan table th:first-child { width: 32%; }
.plan table th:last-child { width: 12%; }
.top-link { text-align: center; margin: 20px 0 0; }
.top-link a { color: var(--accent); }

footer { margin-top: 40px; padding: 16px 16px 32px; border-top: 1px solid var(--line); }

@media (max-width: 600px) {
  h1 { font-size: 1.4rem; margin-top: 20px; }
  .card { padding: 14px 14px; }
  .field > label, .field-label { width: 100%; padding-top: 0; }
  .field { gap: 6px; }
  .status { font-size: 0.78rem; }
  .toolbar-actions .button { padding: 8px 12px; font-size: 0.93rem; }
  .toolbar { position: static; }
  .jump { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .jump a { flex: none; padding: 6px 12px; }
  .plan section, .plan details.section { padding-left: 14px; padding-right: 14px; }
}

@media print {
  .no-print, .skip, footer { display: none !important; }
  html { font-size: 10.5pt; }
  body { background: #fff; color: #000; }
  .wrap { max-width: none; padding: 0; }
  .plan section, .plan details.section { border: 0; padding: 0; margin: 10pt 0; background: none; }
  .plan section.key { border-top: 0; }
  .plan details.section > summary { list-style: none; padding: 0; }
  .plan details.section > summary span { display: none; }
  .plan a { color: #000; text-decoration: none; }
  .plan a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; }
  .plan h2, .plan h3 { break-after: avoid; }
  .plan tr { break-inside: avoid; }
  .table-scroll { overflow: visible; }
}

/* The schedule: one card per term */
.schedule { margin-top: 18px; }
.schedule a { color: var(--accent); }
.schedule-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.schedule-head h2 { margin: 0; }
.schedule-head p { margin: 0; }
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
.term { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 6px; min-width: 0; }
.term.is-abroad { border-color: var(--accent); }
.term.is-off { border-style: dashed; background: var(--wash); }
.term.is-fixed { border-color: var(--accent); border-style: dashed; }
.term-note { margin: 6px 0 2px; }
.chain-tag { font-size: 0.75rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.program-tag { display: inline-block; font-size: 0.75rem; font-style: normal; font-weight: 400; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }   /* a second major or a minor this counts for */
.chain-line { margin: 8px 0 0; overflow-wrap: anywhere; }
.fixed-inputs { display: flex; gap: 8px; flex-wrap: wrap; }
.fixed-inputs input { flex: 1 1 160px; min-width: 0; }
.fixed-inputs input[type="number"] { flex: 0 1 110px; }
.term-head { display: flex; align-items: baseline; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.term-head h3 { margin: 0; font-size: 1.05rem; flex: 1; }
.term-credits { color: var(--soft); white-space: nowrap; }
.tag { font-size: 0.75rem; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 0 8px; }
.item { border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item > summary { display: flex; gap: 8px; align-items: baseline; padding: 8px 0; cursor: pointer; list-style: none; }
.item > summary::-webkit-details-marker { display: none; }
.item > summary::before { content: "+"; color: var(--soft); width: 0.8em; flex: none; }
.item[open] > summary::before { content: "\2212"; }
.item-name { flex: 1; min-width: 0; }
.item.is-choice .item-name { font-style: italic; color: var(--soft); }
.item-credits { color: var(--soft); white-space: nowrap; }
.tick { font-size: 0.75rem; color: var(--accent); white-space: nowrap; }
.item.is-confirmed > summary::before { content: "\2713"; color: var(--accent); }
.item-body { padding: 0 0 10px 1.3em; font-size: 0.95rem; }
.item-body h4 { margin: 2px 0 4px; font-size: 0.9rem; }
.item-body .why-list { margin: 0 0 6px; padding-left: 1.1em; }
.item-body .ideas { margin: 6px 0; font-size: 0.9rem; color: var(--soft); }
.item-body .ideas summary { cursor: pointer; }
.item-body .ideas ul { margin: 6px 0 4px; padding-left: 0; list-style: none; }
.item-body .ideas li { padding: 3px 0; color: var(--ink); }
.item-body .ideas li .why { display: block; color: var(--soft); }
.item-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.button.small { padding: 4px 12px; font-size: 0.9rem; }
.adjust { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; margin-top: 12px; }
.adjust > summary { cursor: pointer; font-weight: 600; }
.adjust[open] > summary { margin-bottom: 10px; }
#abroad-field input { width: 100%; max-width: 22rem; }
@media print { .terms { grid-template-columns: 1fr 1fr; } .item-body { display: block; } }

/* Flags on a course row, and what the student has checked */
.check-tag { font-size: 0.75rem; color: var(--warn); border: 1px solid var(--warn); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.counts-for { margin: 2px 0 6px; color: var(--soft); }
.flag-list { margin: 0 0 8px; padding-left: 1.1em; }
.flag-list li { margin-bottom: 4px; }
.flag-list li.is-checked > span:first-child { color: var(--soft); }
.checked-note { margin-left: 8px; font-size: 0.8rem; color: var(--accent); white-space: nowrap; }
.flag-list button { margin-left: 8px; }

/* Moving a course, picking a choice, and what a rebuild changed */
.changes { background: var(--wash); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 8px 12px; margin: 10px 0 0; }
.pin-problems { border: 1px solid var(--warn); border-radius: var(--radius); padding: 8px 12px; margin: 10px 0 0; }
.pin-problems h3 { margin: 0 0 4px; font-size: 1rem; color: var(--warn); }
.pin-problems ul { margin: 0; padding-left: 1.1em; }
.item-move { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 0.9rem; }
.item-move select { max-width: 12rem; }
.note-list { margin: 0 0 8px; padding-left: 1.1em; color: var(--soft); }
.chosen-line { margin: 4px 0; }
.item-body .ideas li button { margin-left: 8px; }

/* The one-page view for an advisor: only ever shown on paper */
.advisor { display: none; }
@media print {
  body.advisor-print #notice, body.advisor-print #glance, body.advisor-print #schedule, body.advisor-print #jump,
  body.advisor-print #plan, body.advisor-print footer, body.advisor-print header { display: none !important; }
  body.advisor-print .advisor { display: block; color: #000; }
  .advisor h1 { font-size: 1.3rem; margin: 0 0 4px; }
  .advisor h2 { font-size: 1rem; margin: 12px 0 4px; }
  .advisor table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
  .advisor th, .advisor td { border: 1px solid #999; padding: 3px 6px; text-align: left; vertical-align: top; }
  .advisor td.num { text-align: right; white-space: nowrap; }
  .advisor ul { margin: 4px 0; padding-left: 1.2em; font-size: 0.9rem; }
  .advisor table, .advisor li { break-inside: avoid; }
}

/* "Three things to try", on the example only */
.first-look { background: var(--card); border: 1px solid var(--accent); border-radius: var(--radius); padding: 10px 16px 12px; margin: 12px 0; }
.first-look h2 { margin: 0 0 6px; font-size: 1.05rem; }
.first-look ol { margin: 0 0 10px; padding-left: 1.3em; }
.first-look li { margin-bottom: 4px; }

/* Every course that counts for a choice */
.all-options { margin: 8px 0; }
.all-options > summary { cursor: pointer; color: var(--accent); }
.options-search { width: 100%; margin: 8px 0 4px; }
.options-count { margin: 0 0 4px; font-size: 0.85rem; }
.options-list { list-style: none; margin: 0; padding: 0; max-height: 22rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; }
.options-list li { padding: 5px 8px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.options-list li:last-child { border-bottom: 0; }
.options-list .option-facts { display: block; color: var(--soft); font-size: 0.8rem; }
.options-list button { font-size: 0.8rem; }
@media print { .all-options { display: none; } }

/* Dragging a course between terms, and keeping one in place */
.schedule-tools { margin-top: 10px; }
.schedule-tools p { margin: 0 0 6px; }
.schedule-buttons { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.item[draggable="true"] > summary { cursor: grab; }
.item.is-dragging { opacity: 0.5; }
.term.can-drop { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.term.no-drop { opacity: 0.55; }
/* While a course is dragged, each term says in words whether it can take it: the outline is not the only sign.
   Laid over the card's top edge, so nothing moves under the pointer mid-drag. */
.term { position: relative; }
.term.can-drop::after, .term.no-drop::after { position: absolute; top: -0.75em; right: 12px; font-size: 0.75rem; line-height: 1.4; border-radius: 999px; padding: 0 8px; white-space: nowrap; background: var(--card); pointer-events: none; }
.term.can-drop::after { content: "Can go here"; color: var(--accent); border: 1px solid var(--accent); }
.term.no-drop::after { content: "Cannot go here"; color: var(--soft); border: 1px dashed var(--soft); }
.kept-tag { font-size: 0.75rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.item.is-kept > summary .item-name { font-weight: 600; }

/* "You can catch up": a suggestion beside the plan */
.catch-up { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; }
.catch-up h2 { margin: 0 0 4px; font-size: 1.15rem; }
.catch-up h3 { margin: 10px 0 4px; font-size: 0.95rem; }
.catch-up ul { margin: 0 0 6px; padding-left: 1.2em; }
.catch-up .why { display: block; color: var(--soft); font-size: 0.9rem; }
.catch-up a { color: var(--accent); }
.catch-up .button { margin-top: 8px; }
.plan-notes { margin: 6px 0 0; padding-left: 1.2em; }
.note-rest { overflow-wrap: anywhere; }
.report-age { margin: 6px 0 0; }
/* A week for the coming term */
.week-tools { margin-top: 14px; }
.week-tools .quiet { margin: 6px 0 0; }
.week { margin-top: 18px; }
.week-note { background: var(--warn-wash); color: var(--ink); border: 1px solid var(--warn); border-radius: var(--radius); padding: 8px 12px; margin: 8px 0 12px; overflow-wrap: anywhere; }
.week-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.week-tabs .button.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.week-grid { display: grid; grid-template-columns: 52px repeat(5, minmax(0, 1fr)); gap: 0 6px; margin: 8px 0 14px; }
.week-grid.has-weekend { grid-template-columns: 52px repeat(7, minmax(0, 1fr)); }
.week-hours { position: relative; margin-top: 24px; }
.week-hour { position: absolute; right: 4px; font-size: 0.72rem; color: var(--soft); transform: translateY(-50%); white-space: nowrap; }
.week-day-name { height: 24px; font-weight: 600; font-size: 0.85rem; text-align: center; }
.week-lane { position: relative; background: var(--wash); border: 1px solid var(--line); border-radius: 8px; list-style: none; margin: 0; padding: 0; }
.week-block { position: absolute; left: 2px; right: 2px; border-radius: 6px; padding: 1px 5px; font-size: 0.72rem; line-height: 1.25; overflow: hidden; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); }
.week-block strong, .week-block span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-block.c1 { border-style: dashed; }
.week-block.c2 { border-width: 2px; }
.week-block.c3 { border-style: dotted; border-width: 2px; }
.week-block.c4 { border-style: double; border-width: 3px; }
.week-block.c5 { border-style: dashed; border-width: 2px; }
.week-sections { list-style: none; margin: 0; padding: 0; }
.week-section { border-top: 1px solid var(--line); padding: 8px 0; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.week-section > span { overflow-wrap: anywhere; }
.week-name { flex: 1 1 220px; }
.week-seats { font-weight: 600; }
.week-checks { flex-basis: 100%; margin: 4px 0 0; padding-left: 0; list-style: none; }
.week-checks li { margin: 2px 0; }
.week-broken, .week-out { border: 1px solid var(--warn); border-radius: var(--radius); padding: 8px 12px; margin: 10px 0; }
.week-broken h3, .week-out h3 { margin: 0 0 4px; color: var(--warn); font-size: 1rem; }
.week-panel > h3 { font-size: 1rem; margin: 12px 0 4px; }
.week-broken ul, .week-out ul { margin: 0; padding-left: 1.1em; }
.report-problem { margin: 18px 0 0; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; }
.report-problem > summary { cursor: pointer; font-weight: 600; }
.diagnosis { margin-top: 8px; }
.diagnosis-list { margin: 6px 0 4px; padding-left: 1.1em; overflow-wrap: anywhere; }
.diagnosis-list li { margin: 2px 0; }
.report-problem textarea { font: inherit; width: 100%; box-sizing: border-box; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); resize: vertical; }
.report-problem #report-text { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; margin: 6px 0; }
.report-problem #report-made { margin-top: 12px; }
.seats-line { margin: 0 0 8px; }
.seats-tag { font-size: 0.75rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.seats-tag.is-none { color: var(--warn); border-color: var(--warn); }
.week-calendar { margin: 12px 0; }
.week-calendar .quiet { margin: 6px 0 0; }
.week-full, .week-choices { margin: 10px 0; }
.week-full > summary, .week-choices > summary { cursor: pointer; font-weight: 600; }
@media (max-width: 620px) { .week-grid { display: none; } }   /* on a phone the list below says the same, and nothing scrolls sideways */
/* The week on paper: the grid whole on one page, each section's line whole, the class search's address spelled out,
   and a list the student left closed is left out rather than printed as a bare title. */
@media print {
  .week-grid { display: grid; break-inside: avoid; }
  .week h3, .week h4, .week-panel > .quiet { break-after: avoid; }
  .week-section, .week-broken, .week-out, .week-note { break-inside: avoid; }
  .week-note a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; }
  .week-full:not([open]), .week-choices:not([open]) { display: none; }
}
.own-questions { margin-top: 14px; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; }
.own-questions > summary { cursor: pointer; font-weight: 600; }
.own-questions label { display: block; margin: 8px 0 4px; }
.own-questions textarea { font: inherit; width: 100%; box-sizing: border-box; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); resize: vertical; }
.advisor-own li { font-weight: 600; }
.advisor th { white-space: nowrap; }
.advisor-notes { margin: 0; padding-left: 1.1em; }
.advisor-notes li { margin: 0 0 4px; overflow-wrap: anywhere; }
.note-more { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media print { .note-more { display: none; } }

/* What Waypoint read from the report about the student */
.student-line { margin: 10px 0 0; padding: 6px 12px; border-left: 4px solid var(--accent); background: var(--wash); border-radius: 6px; }

/* Long words and web addresses must wrap, not push a phone screen sideways */
.schedule, .catch-up, .student-line, .advisor { overflow-wrap: anywhere; }

/* A report with nothing left to place */
.nothing-left { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; }
.nothing-left h2 { margin: 0 0 4px; font-size: 1.15rem; }
/* Idea G: the offer under "cannot plan from that report", and what the Common Curriculum list is, said first */
.common-offer { margin: 14px 0 6px; padding: 12px 16px; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); }
.common-offer h2 { margin: 0 0 4px; font-size: 1.1rem; }
.common-offer p { margin: 0 0 6px; }
.kind-note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; }
.kind-note h2 { margin: 0 0 6px; font-size: 1.2rem; }
.kind-note ul { margin: 0; padding-left: 1.1em; }
.kind-note li { margin: 3px 0; }

/* ---------- The look, part 2: layout (Dev, 2026-11-17; web/design/) ----------
   Overrides only: every id and class app.js and the tests use is unchanged. Spacing is on one scale
   (4, 8, 12, 16, 24, 32, 48, 64). */
.wrap { max-width: 1184px; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
#main { max-width: 768px; margin-left: max(32px, calc((100% - 1120px) / 2)); }
@media (max-width: 1184px) { #main { margin: 0 auto; } }

/* Text links and quiet buttons: ink, underlined. Green is never a link colour. */
.link, .schedule a, .plan a, .catch-up a, .top-link a, .glance .quiet a, .help summary, .all-options > summary { color: var(--ink); }
.link { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Header: the brand is a green dot, the route's own mark */
.site { background: var(--paper); border-bottom: 0; }
.bar { min-height: 64px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1rem; gap: 12px; }
.mark { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: none; }

/* Type: the display face for headings, at a few fixed sizes */
h1, .term-head h3, .plan > h1, .schedule-head h2, .nothing-left h2, .kind-note h2, .catch-up h2 { font-family: var(--display); font-weight: 600; }
h1 { font-size: 2.5rem; line-height: 1.2; letter-spacing: -0.02em; margin: 48px 0 8px; }
.lead { font-size: 1.25rem; line-height: 1.4; color: var(--soft); margin-bottom: 32px; }
@media (max-width: 600px) { h1 { font-size: 2.25rem; margin-top: 32px; } .lead { font-size: 1.1rem; } }

/* Controls */
.card { background: var(--card); border: 0; border-radius: var(--radius); padding: 24px; margin: 16px 0; }
.card h2 { font-size: 1rem; }
.step { background: none; border: 2px solid var(--accent); color: var(--ink); width: 24px; height: 24px; font-size: 0.8rem; }
.optional { color: var(--soft); border-color: var(--border); }
.drop { background: var(--paper); border: 1px dashed var(--border); border-radius: var(--radius); padding: 24px 16px; }
.drop.over, .drop.has-file { border-color: var(--accent); background: var(--accent-soft); }
.button { border-color: var(--border); background: none; color: var(--ink); border-radius: 8px; min-height: 40px; }
.button:hover { border-color: var(--ink); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover { filter: brightness(1.08); }
.button.big { min-height: 48px; padding: 12px 24px; font-size: 1rem; }
select, input[type="text"], input[type="number"], textarea { background: var(--paper) !important; border-color: var(--border) !important; color: var(--ink) !important; }
.button:focus-visible, .link:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible, a:focus-visible,
button:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ink); }
.promise { background: var(--card); }
.lock { color: var(--ink); }
.how, .adjust, .own-questions, .report-problem, .common-offer { background: var(--card); border: 0; }
.problem { border-left-color: var(--danger); }
.notice, .week-note { background: var(--warn-wash); color: var(--warn); border-color: transparent; }
.toolbar { background: var(--paper); border-bottom-color: var(--line); }
.jump a { background: none; border-color: var(--border); }
.jump a:hover { border-color: var(--ink); color: var(--ink); }

/* One answer first: "You finish Spring 2028." then one quiet line */
.glance { margin: 32px 0 0; }
.glance .tiles { display: flex; flex-wrap: wrap; gap: 4px 0; align-items: baseline; }
.glance .tile { background: none; border: 0; border-radius: 0; padding: 0; display: flex; gap: 6px; align-items: baseline; color: var(--soft); }
.glance .tile:not(.main) + .tile:not(.main)::before { content: "\00b7"; color: var(--soft); margin: 0 10px 0 4px; }
.glance .tile .label, .glance .tile .value, .glance .tile .sub { margin: 0; font-size: 1rem; font-weight: 400; color: var(--soft); }
.glance .tile .value { color: var(--ink); }
.glance .tile.main { flex-basis: 100%; display: block; border-top: 0; margin-bottom: 8px; }
.glance .tile.main .label { font-family: var(--display); font-size: 2.5rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); display: inline; }
.glance .tile.main .value { font-family: var(--display); font-size: 2.5rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; color: var(--accent); display: inline; white-space: nowrap; }
.glance .tile.main:not(.says) .label { display: block; font-size: 1rem; font-family: var(--sans); font-weight: 400; color: var(--soft); letter-spacing: 0; }
.glance .tile.main.says .label::after { content: " "; }
.glance .tile.main.says .value::after { content: "."; }
.glance .tile.main .sub { display: block; font-size: 1rem; margin-top: 8px; }
@media (max-width: 600px) { .glance .tile.main .label, .glance .tile.main .value { font-size: 2.25rem; } }
.glance .road { display: none; }          /* the route below shows each term; no need to say it twice */
.glance > .quiet { margin: 8px 0 0; font-size: 1rem; }
.glance > .quiet, .glance > .quiet a { color: var(--warn); }

/* The graph: credits done, then the plan's terms, climbing to the degree total. Solid is done, dashed is planned.
   Drawn by app.js only when the plan says how many credits are done and needed. */
.graph { position: relative; margin: 32px 0 0; padding: 0 40px 32px 0; }
.graph-num { margin: 0; font-family: var(--display); font-weight: 700; font-size: 4rem; line-height: 1; letter-spacing: -0.03em; }
.graph-num-sub { margin: 4px 0 0; color: var(--soft); font-size: 0.875rem; }
.graph-plot { position: relative; height: 168px; margin-top: 16px; border-bottom: 1px solid var(--line); }
.graph-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.graph-plot path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.graph-plot path.planned { stroke-dasharray: 5 5; }
.graph-pt { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--accent); background: var(--paper); }
.graph-pt.is-now, .graph-pt.is-end { background: var(--accent); }
.graph-pt.is-end { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.graph-val { position: absolute; transform: translate(-50%, -150%); font-size: 0.8125rem; color: var(--ink); white-space: nowrap; }
.graph-term { position: absolute; bottom: -28px; transform: translateX(-50%); font-size: 0.8125rem; color: var(--soft); white-space: nowrap; }
.graph-term.is-now, .graph-term.is-end { color: var(--ink); }
@media (max-width: 700px) { .graph-term.is-mid { display: none; } .graph-num { font-size: 3.5rem; } }

/* The route: each term is a stop on one dashed line down to Graduation, the same dots as the graph */
.schedule { margin-top: 48px; }
.terms { display: block; position: relative; margin-top: 24px; }
.term { margin: 0; padding: 0 0 32px 32px; background: none; border: 0; border-radius: 0; }
.term::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--accent); background: var(--paper); z-index: 1; }
.term:first-child::before { background: var(--accent); }
.terms::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 14px; border-left: 2px dashed var(--accent); }
.term.is-off::before, .term.is-fixed::before { border-style: dashed; }
.term.is-abroad, .term.is-off, .term.is-fixed { background: none; }
.term.can-drop { box-shadow: none; outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.term-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; align-items: baseline; }
.term-head h3 { font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.01em; flex: 0 1 auto; }
.term-credits { margin-left: auto; color: var(--soft); font-size: 0.875rem; }
.tag, .kept-tag { color: var(--ink); border-color: var(--border); }
.item { border-bottom: 1px solid var(--line); }
.item > summary { min-height: 48px; align-items: center; padding: 8px 0; }
.item.is-choice .item-name { font-style: normal; color: var(--soft); }
.item-credits { color: var(--ink); }
.check-tag, .seats-tag.is-none { color: var(--warn); border-color: var(--warn); background: none; }
.route-end { position: relative; margin: 0; padding: 0 0 0 32px; font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.4; color: var(--accent); }
.route-end::before { content: ""; position: absolute; left: -2px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.plan section, .plan details.section { background: var(--card); border: 0; }
.plan section.key { border-top: 0; }
.plan blockquote { background: var(--card); border-left-color: var(--border); }
.tile.main, .first-look, .catch-up, .nothing-left, .changes, .student-line { border-color: var(--line); }
.first-look { border: 1px solid var(--border); background: var(--card); }
.catch-up, .nothing-left, .kind-note { background: var(--card); border-top: 0; border-right: 0; border-bottom: 0; }
.week-lane { background: var(--card); }
.week-block { background: var(--accent-soft); }

/* Phone: room at the bottom so a docked Ask bar never covers the last course */
@media (max-width: 1040px) { #result { padding-bottom: 96px; } }

footer { border-top-color: var(--line); color: var(--fine); }

/* On paper: the light version, black on white, the green darkened to pass on white */
@media print {
  :root { --ink: #111413; --soft: #454c48; --fine: #59615d; --line: #dde2df; --border: #737d78; --paper: #fff; --card: #fff;
          --wash: #f3f5f4; --accent: #0e7a45; --accent-soft: #e6f2ec; --accent-ink: #fff; --warn: #8a5a00; --warn-wash: #fbefd0; }
  .graph-pt, .term::before, .route-end::before, .terms::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .glance .tile.main .label, .glance .tile.main .value { font-size: 1.6rem; }
  #main { margin: 0; max-width: none; }
}
/* The right-hand column (#side), from 1041px: fixed beside the plan, so it stays in view while the route scrolls.
   Below that, one column; a panel mounted here docks at the bottom of a phone in its own stylesheet. */
#side:empty { display: none; }
@media (min-width: 1041px) {
  #main { max-width: 704px; }
  #side { position: fixed; top: 96px; right: max(32px, calc((100% - 1120px) / 2)); width: 352px;
          max-height: calc(100vh - 128px); overflow-y: auto; }
}/* A course row: the code in ink, the title quieter, as in the design */
.item-name { color: var(--soft); }
.item-name strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
/* No panel beside the plan (a build without one): the plan sits in the middle */
@media (min-width: 1041px) { body:has(#side:empty) #main { max-width: 832px; margin: 0 auto; } }/* The header, the tools under the plan and the footer line up with the plan's column */
@media (min-width: 1041px) {
  body:has(#side:empty) .site .wrap, body:has(#side:empty) > .wrap, body:has(#side:empty) footer.wrap { max-width: 832px; }
}
.site .wrap { max-width: 1184px; }
.first-look { margin-top: 32px; }
/* ---------- Review on 266 (Mercer): the answer first, and the phone ---------- */
/* The plan's actions live in the header, as quiet text buttons; only while a plan is on screen */
.site .toolbar { position: static; display: none; padding: 0; border: 0; background: none; gap: 24px; }
body:has(#result:not([hidden])) .site .toolbar { display: flex; }
body:has(#result:not([hidden])) .site .status:not(.failed) { display: none; }   /* "Ready" is for the start screen */
.site .toolbar-actions { gap: 24px; }
.site .toolbar .link { font-size: 0.875rem; font-weight: 600; text-decoration: none; padding: 8px 0; }
.site .toolbar .link:hover { text-decoration: underline; }
.site .back { padding: 8px 0; }
.site .bar { flex-wrap: wrap; column-gap: 24px; }
/* The example's line: a small tag above the answer, not a banner */
.notice.is-tag { display: inline-block; background: none; color: var(--soft); border: 1px solid var(--border); border-radius: 999px;
                 padding: 2px 12px; margin: 24px 0 0; font-size: 0.8125rem; }
/* "Three things to try" below the route */
.first-look { margin: 32px 0 0; }
/* Start: one box, one button; the extras folded */
#start .step { display: none; }
.more-options { margin: 24px 0 0; }
.more-options > summary { cursor: pointer; color: var(--soft); font-weight: 600; padding: 8px 0; }
.more-options[open] > summary { color: var(--ink); }
.go { margin: 24px 0 0; }

@media (max-width: 600px) {
  /* Header: the name and the status on one line each, never wrapped beside each other */
  .bar { padding-top: 8px; padding-bottom: 8px; row-gap: 4px; }
  .status { flex-basis: 100%; justify-content: flex-start; text-align: left; font-size: 0.8125rem; }
  .site .toolbar { flex-basis: 100%; flex-wrap: wrap; gap: 4px 16px; }
  .site .toolbar-actions { flex-wrap: wrap; gap: 4px 16px; }
  /* The facts line: one fact a line, no ragged columns */
  .glance .tiles { display: block; }
  .glance .tile:not(.main) { display: block; margin: 0 0 4px; }
  .glance .tile:not(.main) + .tile:not(.main)::before { content: none; }
  .glance .tile .label, .glance .tile .value, .glance .tile .sub { display: inline; }
  .glance .tile.main .value { white-space: normal; }
}@media (max-width: 600px) {
  .glance .tile:not(.main) > * + *::before { content: " "; }
  .site .toolbar, .site .toolbar-actions { gap: 0 16px; }
}
/* Review on 269 (Mercer) */
/* No dot separators in the facts line: a wrapped line never starts with a stray "·"; space does the work */
.glance .tiles { column-gap: 24px; }
.glance .tile:not(.main) + .tile:not(.main)::before { content: none; }
@media (max-width: 600px) {
  /* "You finish" / "Spring 2034." breaks before the term, never inside it */
  .glance .tile.main .label, .glance .tile.main .value { font-size: 2rem; }
  .glance .tile.main .value { white-space: nowrap; }
  /* The plan's actions: one line that scrolls sideways, not four lines above the answer */
  .site .toolbar { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; gap: 0 16px; }
  .site .toolbar-actions { flex-wrap: nowrap; gap: 0 16px; }
  .site .toolbar .link, .site .back { flex: none; font-size: 0.8125rem; padding: 4px 0; }
}