:root {
  color-scheme: light;
  --ink: #242128;
  --muted: #5e5260;
  --accent: #783454;
  --accent-hover: #632a47;
  --base: #ffffff;
  --panel: #f8f1f5;
  --panel-soft: #fcf9fb;
  --line: #d9ccd4;
  --type: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--base); color: var(--ink); font: 18px/1.7 var(--type); }
button, summary { font: inherit; }
a { color: var(--accent); text-decoration-thickness: .075em; text-underline-offset: .22em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: .12em; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  box-shadow: 0 0 0 5px var(--base);
}
p { margin: 0 0 1.25rem; }
strong { font-weight: 700; }
h1, h2, h3, h4, h5, h6 { font-family: var(--type); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.7vw, 4.25rem); line-height: 1.14; letter-spacing: 0; max-width: 21ch; margin: 0 0 1.5rem; }
h2 { font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.35; margin: 0 0 1.25rem; }
h3 { font-size: 1.2rem; line-height: 1.45; margin: 0 0 .75rem; }
ul { padding-left: 1.4rem; margin: 1.25rem 0 0; }
li { margin: .75rem 0; padding-left: .2rem; }
li::marker { color: var(--accent); }
::selection { background: #ead3e0; color: var(--ink); }
[class$="-skip"] { position: fixed; top: -10rem; left: 1rem; z-index: 10; min-height: 48px; padding: .75rem 1.25rem; border-radius: 999px; background: var(--accent); color: #fff; }
[class$="-skip"]:focus { top: 1rem; }

/* The masthead and column rules carry the structure of a printed guide. */
[class$="-masthead"] { max-width: 1280px; margin: auto; padding: 1.5rem 2rem; display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; }
[class$="-home-link"] { display: inline-flex; align-items: center; gap: 1rem; min-height: 56px; color: var(--ink); text-decoration: none; font-size: 25px; font-weight: 700; line-height: 1.25; }
[class$="-home-sub"] { display: block; color: var(--muted); font-size: 16px; font-weight: 400; line-height: 1.5; margin-top: .25rem; }
[class$="-mark"] { display: block; flex: 0 0 38px; width: 38px; height: 46px; border-radius: 12px; background: var(--accent); position: relative; }
[class$="-mark"]::after { content: ""; position: absolute; left: 10px; right: 10px; top: 15px; height: 12px; border-block: 2px solid #fff; }
[class$="-guide-label"] { border-left: 1px solid var(--line); padding-left: 1.5rem; color: var(--muted); font-size: 17px; line-height: 1.5; }
[class$="-tabs"] { max-width: 1216px; margin: auto; border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; padding: .75rem 0; background: var(--base); }
[class$="-tabs"] a { padding: .8rem 1rem; min-height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--accent); text-align: center; font-size: 17px; font-weight: 600; line-height: 1.4; text-decoration: none; }
[class$="-tabs"] a[data-active="true"] { color: #fff; background: var(--accent); }
[class$="-tabs"] a:hover { color: var(--accent-hover); background: var(--panel); text-decoration: underline; }
[class$="-tabs"] a[data-active="true"]:hover { color: #fff; background: var(--accent-hover); }
[class$="-shell"] { max-width: 1280px; margin: auto; padding: 0 2rem 4rem; }
[class$="-hero"], [class$="-hero-with-diagram"] { padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--line); margin-bottom: 3rem; }
[class$="-hero-with-diagram"] { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
[class$="-eyebrow"] { color: var(--accent); margin-bottom: .75rem; font-size: 17px; font-weight: 600; }
[class$="-intro"] { color: var(--muted); font-size: 21px; line-height: 1.65; max-width: 60ch; margin: 0; }
[class$="-reading-grid"] { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
[class$="-article"] { min-width: 0; }
[class$="-section"], [class$="-routes"], [class$="-terms"], [class$="-myth-list"] { margin-bottom: 3rem; }
[class$="-section"] > p, [class$="-section"] li { max-width: 66ch; }
[class$="-section"] > h2, [class$="-routes"] > h2, [class$="-terms"] > h2 { border-top: 1px solid var(--line); padding-top: 1.5rem; }

[class$="-evidence"] { background: var(--panel); border-radius: 24px; padding: 2rem; margin-bottom: 2rem; }
[class$="-evidence"] p { max-width: 66ch; }
[class$="-record-label"] { display: inline-block; color: var(--accent); background: var(--base); border-radius: 999px; padding: .3rem .9rem; font-size: 16px; line-height: 1.5; font-weight: 600; margin-bottom: 1rem; }
[class$="-source-link"] { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); margin-top: 1.5rem; padding: 1rem 0 .25rem; min-height: 56px; line-height: 1.5; }
[class$="-source-link"] span { font-size: 24px; flex: 0 0 auto; }
[class$="-route-grid"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
[class$="-route"] { padding: 1.5rem; display: block; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 24px; text-decoration: none; min-height: 132px; }
[class$="-route"] h3 { text-decoration: underline; text-underline-offset: .2em; }
[class$="-route"] p { color: var(--muted); margin: 0; font-size: 18px; }
[class$="-route"] span { float: right; margin-left: .5rem; font-size: 24px; }
[class$="-route"]:hover { border-color: var(--accent); background: var(--panel); }
[class$="-related"] { align-self: start; padding: .5rem 0 1.5rem 2rem; border-left: 1px solid var(--line); }
[class$="-related-label"] { font-size: 24px; line-height: 1.4; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
[class$="-related"] a { display: flex; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); min-height: 52px; font-size: 18px; line-height: 1.5; }

[class$="-starting-map"] { border-radius: 28px; background: var(--accent); padding: 1.75rem; margin: 0; position: relative; }
[class$="-starting-map"] figcaption { font-size: 26px; line-height: 1.35; font-weight: 700; padding-bottom: .75rem; color: #fff; }
[class$="-starting-map"] a { display: flex; flex-direction: column; gap: .2rem; border-radius: 18px; background: var(--base); color: var(--ink); text-decoration: none; padding: 1rem 1.25rem; margin-top: .75rem; position: relative; z-index: 1; min-height: 90px; }
[class$="-starting-map"] a span { color: var(--accent); font-size: 16px; font-weight: 600; }
[class$="-starting-map"] a strong { font-size: 19px; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
[class$="-starting-map"] a:hover { background: var(--panel); }
[class$="-map-line"] { position: absolute; width: 1px; top: 5rem; bottom: 2.5rem; left: 3rem; background: #fff; }
[class$="-diagram"] { background: var(--panel); border-radius: 24px; padding: 2rem; margin: 0 0 3rem; }
[class$="-flow"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 1.5rem 0; list-style: none; gap: 1.75rem; }
[class$="-flow"] li { position: relative; border-top: 2px solid var(--accent); margin: 0; padding: 1rem 0 0; }
[class$="-flow"] li:not(:last-child)::after { content: "→"; position: absolute; color: var(--accent); right: -1.25rem; top: -1rem; font-size: 24px; line-height: 1; }
[class$="-flow"] strong { display: block; color: var(--accent); font-size: 19px; font-weight: 700; }
[class$="-flow"] p { font-size: 18px; margin: .5rem 0 0; line-height: 1.6; }
figcaption { color: var(--muted); font-size: 16px; line-height: 1.6; }

[class$="-reveal-all"] { min-height: 48px; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: .75rem 1.5rem; margin-bottom: 1.5rem; cursor: pointer; }
[class$="-reveal-all"]:hover { background: var(--accent-hover); }
[hidden] { display: none !important; }
[class$="-myth"] { border: 1px solid var(--line); border-radius: 24px; margin-bottom: 1rem; background: var(--panel-soft); }
[class$="-myth"] summary { padding: 1.5rem; min-height: 72px; border-radius: 24px; font-size: 21px; line-height: 1.5; color: var(--accent); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; }
[class$="-myth"] summary::-webkit-details-marker { display: none; }
[class$="-myth"] summary span { font-size: 28px; line-height: 1; min-width: 24px; text-align: center; }
[class$="-myth"] summary:hover { background: var(--panel); }
[class$="-myth"][open] summary { border-bottom: 1px solid var(--line); border-radius: 24px 24px 0 0; background: var(--panel); }
[class$="-myth"][open] summary span { transform: rotate(45deg); }
[class$="-myth-answer"] { padding: 1.5rem; }
[class$="-myth-answer"] p:last-child { margin-bottom: 0; }
[class$="-terms"] dl { margin: 0; }
[class$="-term"] { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
dt { color: var(--accent); font-size: 23px; font-weight: 700; line-height: 1.4; margin-bottom: .75rem; }
dd { margin: 0; max-width: 66ch; }
[class$="-footer"] { border-top: 1px solid var(--line); max-width: 1216px; margin: auto; padding: 2rem 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
[class$="-footer"] p { max-width: 60ch; color: var(--muted); font-size: 18px; }
[class$="-footer"] nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
[class$="-footer"] a { display: inline-flex; align-items: center; min-height: 48px; padding: .65rem 0; font-size: 18px; line-height: 1.5; }

@media (min-width: 1100px) {
  .p-briefing-article { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .p-briefing-reading-grid { display: block; }
  .p-briefing-section, .p-briefing-routes { grid-column: 1 / -1; margin-top: .5rem; }
  .p-briefing-evidence { margin-bottom: .5rem; }
  .p-briefing-route-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-briefing-section ul { columns: 2; column-gap: 3rem; column-rule: 1px solid var(--line); padding-left: 1.5rem; }
  .p-briefing-section li { break-inside: avoid; padding-right: 1rem; }
}
@media (max-width: 1280px) {
  [class$="-tabs"], [class$="-footer"] { margin-inline: 2rem; }
}
@media (max-width: 900px) {
  [class$="-reading-grid"] { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  [class$="-related"] { border-left: 0; border-top: 1px solid var(--line); padding: 1.75rem 0 0; }
  [class$="-related"] a { max-width: 68ch; }
  [class$="-hero-with-diagram"] { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  [class$="-starting-map"] { max-width: 660px; }
  [class$="-tabs"] a { padding: .75rem .5rem; font-size: 16px; }
}
@media (max-width: 600px) {
  [class$="-masthead"] { padding: 1.25rem; gap: .75rem; }
  [class$="-home-link"] { gap: .75rem; font-size: 22px; }
  [class$="-home-sub"] { font-size: 16px; }
  [class$="-guide-label"] { max-width: 114px; font-size: 16px; line-height: 1.5; padding-left: .75rem; }
  [class$="-mark"] { flex-basis: 32px; width: 32px; height: 42px; }
  [class$="-mark"]::after { left: 8px; right: 8px; top: 13px; }
  [class$="-tabs"] { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 1.25rem; padding: .75rem 0; gap: .4rem; }
  [class$="-tabs"] a { min-height: 52px; padding: .6rem .75rem; }
  [class$="-tabs"] a:last-child { grid-column: 1 / -1; }
  [class$="-shell"] { padding: 0 1.25rem 2rem; }
  [class$="-hero"], [class$="-hero-with-diagram"] { padding: 2.25rem 0; margin-bottom: 2rem; }
  h1 { font-size: clamp(2rem, 8.7vw, 2.75rem); line-height: 1.2; }
  [class$="-intro"] { font-size: 20px; line-height: 1.65; }
  [class$="-evidence"], [class$="-diagram"] { padding: 1.5rem 1.25rem; }
  [class$="-record-label"] { max-width: 100%; }
  [class$="-route-grid"] { grid-template-columns: minmax(0, 1fr); }
  [class$="-route"] { padding: 1.5rem 1.25rem; }
  [class$="-starting-map"] { padding: 1.5rem 1.25rem; }
  [class$="-starting-map"] figcaption { font-size: 24px; }
  [class$="-flow"] { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  [class$="-flow"] li { border-top: 0; border-left: 2px solid var(--accent); padding: 0 0 0 1.25rem; }
  [class$="-flow"] li:not(:last-child)::after { content: "↓"; right: auto; left: -.5rem; top: auto; bottom: -1.6rem; }
  [class$="-myth"] summary { font-size: 20px; padding: 1.25rem; }
  [class$="-myth-answer"] { padding: 1.25rem; }
  [class$="-footer"] { margin-inline: 1.25rem; padding: 1.75rem 0; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  [class$="-footer"] nav { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  :root { --base: #fff; --ink: #242128; --muted: #403843; --panel: #fff; --panel-soft: #fff; }
  [class$="-tabs"], [class$="-skip"], [class$="-related"], [class$="-reveal-all"], [class$="-footer"] nav { display: none; }
  [class$="-shell"], [class$="-masthead"], [class$="-footer"] { margin: 0; padding: 1rem 0; }
  [class$="-hero"], [class$="-hero-with-diagram"] { padding: 1rem 0; }
  [class$="-reading-grid"], [class$="-hero-with-diagram"], .p-briefing-article { display: block; }
  [class$="-starting-map"] { background: #fff; border: 1px solid var(--line); margin-top: 1.5rem; }
  [class$="-starting-map"] figcaption { color: var(--ink); }
  [class$="-starting-map"] a { border-bottom: 1px solid var(--line); }
  [class$="-evidence"], [class$="-diagram"], [class$="-myth"] { break-inside: avoid; }
  [class$="-myth"] > [class$="-myth-answer"] { display: block; }
  h1 { font-size: 34px; }
}
