:root {
  color-scheme: light;
  --ink: #352a50;
  --muted: #554965;
  --link: #244973;
  --paper: #f6f8fc;
  --white: #ffffff;
  --aqua: #e6f8f5;
  --lilac: #eee9fa;
  --pink: #f8e8f0;
  --blue: #e4edf9;
  --cream: #faf3dd;
  --line: #a69ab9;
  --edge: 2px solid var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", Candara, Calibri, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; scroll-padding-top: 1rem; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: #b7cff6; }
a {
  color: var(--link);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
a:hover { text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:target { scroll-margin-top: 1rem; }
p { margin: 0 0 1.05rem; max-width: 70ch; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { line-height: 1.15; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 4.5vw, 3.75rem); letter-spacing: -0.04em; margin: 0.95rem 0 1.4rem; max-width: 21ch; }
h2, .reading-subheading { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.025em; margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.8rem; }
li, dd, dt, figcaption, footer, .small-label { font-size: 1rem; }
ul, ol { padding-left: 1.3rem; }
figure { margin: 0; }
::selection { background: #b7cff6; color: var(--ink); }

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border: var(--edge);
  border-radius: 12px;
  background: var(--white);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.masthead {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.45rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.site-mark { color: var(--ink); font-size: 1.22rem; line-height: 1.25; font-weight: 700; gap: 0.8rem; text-decoration: none; }
.mark-subline { display: block; font-size: 16px; font-weight: 400; margin-top: 0.25rem; color: var(--muted); }
.mark-diagram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  height: 52px;
  border: var(--edge);
  border-radius: 17px;
  background: linear-gradient(135deg, var(--aqua), var(--lilac));
  flex: 0 0 52px;
}
.mark-diagram::before { content: ""; position: absolute; width: 33px; height: 2px; background: var(--ink); }
.mark-diagram > span { position: relative; width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); }
.mark-diagram > span:nth-child(2) { width: 12px; height: 12px; background: #b7cff6; }
.directory-jump { padding: 0.5rem 0.8rem; border: 1.5px solid var(--ink); border-radius: 24px; color: var(--ink); background: var(--white); text-decoration: none; font-size: 16px; gap: 0.8rem; }
.directory-jump:hover { background: var(--aqua); }
.article-shell { max-width: 1240px; margin: 0 auto; padding: 0 2rem 4rem; }
.article-intro { padding: 3.2rem 0 2.6rem; max-width: 860px; }
.eyebrow { display: inline-block; border: 1px solid var(--ink); background: var(--aqua); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 16px; line-height: 1.45; margin-bottom: 0; }
.deck { font-size: 1.2rem; line-height: 1.55; max-width: 55ch; color: var(--muted); }
.article-shell > p { margin-bottom: 1.6rem; }
.small-label { font-size: 16px; line-height: 1.45; color: var(--muted); margin: 0 0 0.65rem; }

.comparison {
  border: var(--edge);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 7px 7px 0 #d7deef;
  margin: 0 0 3.2rem;
  overflow: clip;
}
.comparison::before { content: ""; display: block; height: 17px; border-bottom: var(--edge); background: linear-gradient(90deg, #b7cff6, #c9efe8 45%, #edc9de); }
.comparison-grid { display: grid; }
.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comparison-cell { position: relative; min-width: 0; padding: 1.5rem 1.6rem 1.4rem; background: var(--aqua); }
.comparison-cell + .comparison-cell { border-left: var(--edge); }
.cell-1 { background: var(--lilac); }
.cell-2 { background: var(--cream); }
.cell-label { display: inline-block; padding: 0.2rem 0.6rem; border: 1px solid var(--ink); border-radius: 7px; background: var(--white); font-size: 16px; line-height: 1.5; margin-bottom: 1rem; }
.comparison-cell h2 { font-size: 1.48rem; max-width: 23ch; margin-bottom: 1.1rem; }
.comparison-cell p { font-size: 1rem; max-width: 48ch; }
.comparison figcaption { padding: 1rem 1.6rem; border-top: var(--edge); line-height: 1.5; color: var(--muted); font-size: 16px; }
.caption-mark { display: inline-block; font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-right: 0.25rem; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 4rem; align-items: start; }
.reading-column { max-width: 70ch; min-width: 0; }
.reading-group { display: contents; }
.reading-section { margin: 0 0 3rem; }
.reading-section:last-child { margin-bottom: 2rem; }
.reading-group > .reading-section:last-child { margin-bottom: 3rem; }
.reading-group:last-child > .reading-section:last-child { margin-bottom: 2rem; }
.reading-section p { line-height: 1.65; }
.note-cue { padding: 0.15rem 0.6rem; border: 1px solid #a69ab9; border-radius: 20px; font-size: 16px; line-height: 1.3; text-decoration: none; color: var(--link); background: #ffffff; vertical-align: baseline; white-space: nowrap; }
.note-cue:hover { background: var(--blue); }
.margin-note { margin-top: 0.15rem; padding: 1.5rem; border: var(--edge); border-radius: 3rem 3rem 18px 18px; background: var(--pink); box-shadow: 5px 5px 0 #e6d4e4; }
.margin-note h2 { font-size: 1.5rem; line-height: 1.25; }
.margin-note p { font-size: 1rem; }
.pill-link { border: var(--edge); border-radius: 999px; padding: 0.55rem 1rem; background: var(--white); text-decoration: none; line-height: 1.35; color: var(--ink); font-size: 16px; }
.pill-link:hover { background: var(--aqua); }
.ask-box { border-left: 7px solid var(--ink); padding: 1.2rem 1.35rem; background: var(--blue); border-radius: 0 24px 24px 0; margin: 1.5rem 0 0; }
.ask-box .ask-label { font-size: 16px; line-height: 1.15; margin-bottom: 0.8rem; font-weight: 400; color: var(--muted); }
.ask-box p { font-size: 1.12rem; line-height: 1.45; }
.path-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; gap: 1.35rem; padding: 0; margin: 1.6rem 0; }
.path-map li { position: relative; border: var(--edge); border-radius: 20px; padding: 1rem; background: var(--aqua); min-width: 0; }
.path-map li + li::before { content: "→"; position: absolute; left: -1.23rem; top: 50%; transform: translateY(-50%); color: var(--ink); font-size: 1rem; font-weight: 700; }
.path-map li > span { font-weight: 700; display: block; margin-bottom: 0.5rem; }
.path-map p { font-size: 16px; line-height: 1.5; }
.bill-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.bill-map > div { padding: 1rem 1.1rem; border: 1px solid var(--ink); border-radius: 13px; background: var(--white); }
.bill-map dt { font-weight: 700; margin-bottom: 0.4rem; }
.bill-map dd { margin: 0; font-size: 16px; line-height: 1.5; }
.programme-note { border: var(--edge); background: var(--aqua); border-radius: 24px; padding: 1.3rem; margin: 1.4rem 0; }
.urgent-note { border: var(--edge); background: var(--cream); border-radius: 20px; padding: 1.3rem; margin-bottom: 1.5rem; }
.sample-note { border-left: 3px solid var(--ink); padding: 0.5rem 0 0.5rem 1.2rem; margin: 1.5rem 0; scroll-margin-top: 1rem; }

.page-notes { border-top: 1px solid var(--line); padding-top: 1.7rem; margin-top: 3rem; max-width: 70ch; }
.page-notes h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.notes-list { list-style: none; padding: 0; margin: 0; }
.notes-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 0.75rem; margin-bottom: 0.85rem; scroll-margin-top: 1rem; }
.note-letter { font-size: 16px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--lilac); margin-top: 0.25rem; }
.notes-list p { font-size: 16px; color: var(--muted); line-height: 1.5; margin-top: 0.2rem; }
.source-link { font-size: 16px; line-height: 1.4; padding: 0.3rem 0; }
.next-stop { border: var(--edge); border-radius: 24px; margin-top: 3rem; padding: 1.1rem 1.5rem; background: var(--lilac); max-width: 70ch; }
.next-stop .small-label { margin-bottom: 0.2rem; }
.next-stop a { justify-content: space-between; gap: 1rem; width: 100%; font-size: 1.15rem; text-decoration: none; color: var(--ink); line-height: 1.45; }
.next-stop a:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.missing-page { min-height: 140px; }

.site-footer { margin-top: 0; border-top: var(--edge); background: var(--blue); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 2.6rem 2rem 2rem; }
.directory-heading { position: relative; padding-right: 220px; margin-bottom: 1.4rem; }
.directory-heading h2 { font-size: 1.75rem; }
.back-top { position: absolute; right: 0; bottom: 0; font-size: 16px; padding: 0.4rem 0.5rem; }
.directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.directory-grid li { min-width: 0; }
.directory-grid a { display: grid; grid-template-columns: 26px minmax(0, 1fr) 18px; gap: 0.65rem; align-items: start; min-height: 112px; height: 100%; padding: 1rem 0.9rem; border: 1px solid var(--ink); border-radius: 15px; color: var(--ink); text-decoration: none; background: var(--white); }
.directory-grid a:hover { background: var(--aqua); }
.directory-grid a[aria-current="page"] { background: var(--aqua); box-shadow: inset 0 -5px 0 var(--ink); }
.directory-letter { display: flex; justify-content: center; align-items: center; border: 1px solid var(--ink); border-radius: 7px; font-size: 16px; width: 26px; height: 29px; background: var(--lilac); }
.directory-grid strong { font-size: 1rem; line-height: 1.35; display: block; margin-top: 0.15rem; }
.directory-caption { display: block; font-size: 16px; line-height: 1.45; color: var(--muted); margin-top: 0.5rem; }
.directory-arrow { font-size: 1rem; }
.footer-line { border-top: 1px solid var(--line); padding-top: 1.4rem; margin: 1.8rem 0 0; font-size: 16px; line-height: 1.55; max-width: 80ch; color: var(--muted); }

.print-sheet { background: var(--white); border: var(--edge); border-radius: 26px; box-shadow: 7px 7px 0 #d7deef; padding: 1.8rem; max-width: 850px; margin: 3rem 0; }
.sheet-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; margin-bottom: 1rem; }
.sheet-heading h2 { margin-bottom: 0; max-width: 24ch; }
.print-button { border: var(--edge); border-radius: 999px; padding: 0.65rem 1rem; min-height: 48px; font-size: 16px; background: var(--aqua); color: var(--ink); cursor: pointer; flex-shrink: 0; }
.print-button:hover { background: var(--blue); }
.sheet-intro { font-size: 1rem; }
.check-group { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1.4rem; }
.check-group h3 { font-size: 1.15rem; }
.checklist { padding: 0; list-style: none; margin: 0; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0.8rem; align-items: start; padding: 0.65rem 0; font-size: 1rem; line-height: 1.5; }
.tickbox { display: block; width: 21px; height: 21px; border: 1.5px solid var(--ink); border-radius: 4px; margin-top: 0.18rem; background: var(--white); }
.write-notes { padding-top: 1.5rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.writing-lines { height: 85px; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, #a69ab9 27px, #a69ab9 28px); }
.print-credit { display: none; }

@media (max-width: 1000px) {
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading-layout { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .margin-note { max-width: 70ch; border-radius: 24px; margin: 0 0 2rem; }
  .columns-3 { grid-template-columns: 1fr; }
  .columns-3 .comparison-cell + .comparison-cell { border-left: 0; border-top: var(--edge); }
  .sheet-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .masthead { padding: 1rem; gap: 0.5rem; }
  .site-mark { font-size: 18px; gap: 0.5rem; }
  .mark-diagram { width: 38px; height: 44px; flex-basis: 38px; border-radius: 13px; gap: 2px; }
  .mark-diagram::before { width: 25px; }
  .mark-diagram > span { width: 7px; height: 7px; }
  .mark-diagram > span:nth-child(2) { width: 9px; height: 9px; }
  .mark-subline { font-size: 16px; }
  .directory-jump { padding: 0.45rem 0.55rem; gap: 0.35rem; white-space: nowrap; }
  .article-shell { padding: 0 1rem 2.5rem; }
  .article-intro { padding: 2.2rem 0 1.8rem; }
  h1 { font-size: 2.25rem; max-width: 17ch; letter-spacing: -0.035em; margin: 0.9rem 0 1.1rem; }
  .eyebrow { border-radius: 14px; padding: 0.35rem 0.65rem; }
  .deck { font-size: 1.1rem; line-height: 1.5; }
  .comparison { border-radius: 23px; box-shadow: 4px 4px 0 #d7deef; margin-bottom: 2.6rem; }
  .columns-2 { grid-template-columns: 1fr; }
  .comparison-cell { padding: 1.2rem; }
  .comparison-cell + .comparison-cell { border-left: 0; border-top: var(--edge); }
  .comparison-cell h2 { font-size: 1.4rem; }
  .comparison figcaption { padding: 1rem 1.2rem; }
  .reading-section { margin-bottom: 2.3rem; }
  .reading-group > .reading-section:last-child { margin-bottom: 2.3rem; }
  .ask-box { padding: 1rem; border-left-width: 5px; }
  .path-map { grid-template-columns: 1fr; gap: 1.35rem; }
  .path-map li + li::before { content: "↓"; left: 50%; top: -1.7rem; transform: translateX(-50%); }
  .bill-map { grid-template-columns: 1fr; }
  .page-notes { margin-top: 2.5rem; }
  .source-link { align-items: flex-start; }
  .notes-list li { gap: 0.6rem; }
  .next-stop { padding: 1rem 1.2rem; }
  .footer-inner { padding: 2rem 1rem 1.5rem; }
  .directory-heading { padding-right: 0; }
  .directory-heading h2 { font-size: 1.55rem; margin-bottom: 0.5rem; }
  .back-top { position: static; padding-left: 0; }
  .directory-grid { gap: 0.6rem; }
  .directory-grid a { grid-template-columns: 24px minmax(0, 1fr); gap: 0.5rem; padding: 0.85rem 0.65rem; min-height: 148px; }
  .directory-arrow { display: none; }
  .directory-letter { width: 24px; height: 28px; }
  .directory-grid strong { font-size: 16px; }
  .directory-caption { margin-top: 0.5rem; }
  .print-sheet { padding: 1.2rem; box-shadow: 4px 4px 0 #d7deef; }
  .sheet-heading { gap: 1rem; }
  .print-button { width: 100%; text-align: center; }
}

@media (max-width: 360px) {
  .masthead { flex-wrap: wrap; }
  .directory-jump { margin-left: auto; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-grid a { min-height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  @page { size: A4; margin: 16mm; }
  :root { font-size: 16px; line-height: 1.35; }
  body { background: #ffffff; color: #000000; }
  .no-print, .print-button, noscript { display: none !important; }
  .article-shell { padding: 0; max-width: none; }
  .has-checklist .article-shell > :not(.print-sheet) { display: none !important; }
  .print-sheet { margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; max-width: none; }
  .sheet-heading { margin-bottom: 0.5rem; }
  .sheet-heading h2 { font-size: 25px; max-width: none; }
  .sheet-heading .small-label { color: #000000; margin-bottom: 0.3rem; }
  .sheet-intro { margin-bottom: 0.7rem; }
  .check-group { padding-top: 0.65rem; margin-top: 0.65rem; break-inside: avoid; border-color: #666666; }
  .check-group h3 { font-size: 18px; margin-bottom: 0.25rem; }
  .checklist li { padding: 0.35rem 0; font-size: 16px; line-height: 1.35; }
  .tickbox { width: 18px; height: 18px; border-color: #000000; margin-top: 0.1rem; }
  .write-notes { padding-top: 0.7rem; margin-top: 0.7rem; break-inside: avoid; }
  .write-notes h3 { font-size: 18px; margin-bottom: 0.3rem; }
  .writing-lines { height: 72px; border-bottom: 1px solid #666666; }
  .print-credit { display: block; margin-top: 0.8rem; font-size: 16px; color: #000000; }
  a { color: #000000; text-decoration: none; }
  .comparison, .margin-note, .next-stop { box-shadow: none; }
}
