:root {
  color-scheme: light;
  --ink: #382536;
  --muted: #594152;
  --plum: #79365f;
  --deep-plum: #663052;
  --ground: #f8edf3;
  --pale: #f4e5ed;
  --band: #ead5e4;
  --rose: #e4cadc;
  --strong-band: #d9b4cd;
  --line: #c5a1b9;
  --diagram-blue: #5773a4;
  --diagram-deep: #385484;
  --heading-font: "Arial Black", "Arial", "Helvetica Neue", sans-serif;
  --body-font: Georgia, "Times New Roman", serif;
  --corner: 6px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 19px/1.75 var(--body-font); overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading-font); font-weight: 900; letter-spacing: 0; line-height: 1.25; text-wrap: balance; }
a { color: var(--plum); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
button, summary { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button[hidden], [hidden] { display: none !important; }
a:hover, button:hover { color: var(--deep-plum); }
:focus-visible { outline: 3px solid var(--deep-plum); outline-offset: 4px; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; border-radius: var(--corner); }

/* The same pale plum ground and broad colour bands carry through every page. */
.u-shell { width: min(1184px, calc(100% - 64px)); margin-inline: auto; }
.u-tap { min-height: 48px; min-width: 44px; display: inline-flex; align-items: center; }
.u-gap-xs { gap: 6px; }
.u-gap-sm { gap: 12px; }
.u-gap-md { gap: 24px; }
.u-inline-flex { display: inline-flex; }
.u-flex-between { display: flex; align-items: center; justify-content: space-between; }
.u-border-top { border-top: 2px solid var(--line); }
.u-border-bottom { border-bottom: 2px solid var(--line); }
.u-pill { border-radius: var(--corner); padding: 4px 18px; }
.u-underline { text-decoration: underline; }
.u-text-muted { color: var(--muted); }
.u-eyebrow { font-size: 19px; font-weight: 400; line-height: 1.5; color: var(--plum); margin-bottom: 20px; }
.u-display { font-size: clamp(38px, 4.5vw, 62px); line-height: 1.12; max-width: 21ch; color: var(--ink); }
.u-heading { font-size: clamp(25px, 2.4vw, 32px); line-height: 1.3; margin-bottom: 24px; }
.u-subheading { font-size: 21px; line-height: 1.4; }
.u-large-line { font-size: clamp(26px, 2.7vw, 36px); line-height: 1.3; font-weight: 400; margin-top: 24px; color: var(--plum); }
.u-lead { font-size: 21px; line-height: 1.65; max-width: 56ch; margin-top: 24px; }
.u-prose { font-size: 19px; line-height: 1.8; max-width: 66ch; margin-bottom: 18px; }
.u-small-prose { font-size: 18px; line-height: 1.75; }
.u-rail { display: flex; align-items: center; flex-wrap: wrap; padding-block: 12px 18px; }
.u-primary-button { justify-content: space-between; gap: 28px; padding: 13px 24px; background: var(--plum); color: var(--ground); border: 2px solid var(--plum); border-radius: var(--corner); text-decoration: none; font-weight: 700; margin-top: 28px; max-width: 100%; }
.u-primary-button:hover { background: var(--deep-plum); border-color: var(--deep-plum); color: var(--ground); }
.u-primary-button:focus-visible { outline-offset: 5px; }
.u-outline-button { justify-content: space-between; gap: 18px; padding: 11px 20px; border: 2px solid var(--plum); border-radius: var(--corner); background: var(--ground); color: var(--plum); font-weight: 700; }
.u-outline-button:hover { background: var(--band); }
.u-text-link { font-size: 19px; line-height: 1.5; gap: 18px; padding-block: 11px; }
.u-link-row { width: 100%; justify-content: space-between; gap: 18px; padding-block: 12px; }
.u-link-row > span:first-child, .u-text-link > span:first-child { min-width: 0; }
.u-link-row:hover { color: var(--deep-plum); }
.u-home-opening { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; padding-block: 58px 64px; }
.u-page-opening { padding: 48px 40px; margin-block: 36px 32px; background: var(--rose); border-radius: var(--corner); border-bottom: 8px solid var(--plum); }
.u-article-grid { display: grid; grid-template-columns: minmax(0, 792px) minmax(0, 320px); gap: 40px; align-items: start; }
.u-read-column { min-width: 0; }
.u-section-space { padding-block: 38px 22px; scroll-margin-top: 24px; }
.u-path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.u-pad-entry { padding-block: 14px 24px; }
.u-pad-card { padding: 28px; }
.u-question-aside { margin-top: 24px; background: var(--rose); border-radius: var(--corner); border-top: 8px solid var(--plum); }
.u-next-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; padding: 24px 32px; margin-block: 32px; border-radius: var(--corner); background: var(--band); }
.u-drawer-entry { padding-block: 0 42px; }
.u-drawer-panel { padding: 32px; margin-top: 16px; max-width: 68ch; background: var(--pale); border-radius: var(--corner); }
.u-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 40px 44px; }
.u-footer-links { display: flex; flex-direction: column; align-items: flex-start; }
.u-mark { width: 28px; height: 28px; position: relative; display: inline-block; flex: 0 0 auto; }
.u-mark::before, .u-mark::after { content: ""; position: absolute; width: 16px; height: 16px; background: var(--plum); border-radius: 4px; }
.u-mark::before { top: 0; left: 0; }
.u-mark::after { bottom: 0; right: 0; background: #a46d90; }

/* Muted blue preserves the fixed descriptions of the existing geometric art. */
.u-geometry { position: relative; overflow: hidden; pointer-events: none; }
.u-geometry-large { aspect-ratio: 1; max-height: 460px; background: var(--strong-band); border-radius: var(--corner); border-bottom: 24px solid var(--plum); }
.u-open-circle { position: absolute; width: 71%; height: 71%; top: 12%; left: 13%; border: 40px solid var(--diagram-blue); border-right-color: transparent; border-radius: 50%; transform: rotate(-32deg); }
.u-pale-square { position: absolute; width: 29%; height: 29%; background: var(--ground); top: 34%; left: 34%; border-radius: var(--corner); transform: rotate(12deg); }
.u-blue-block { position: absolute; width: 19%; height: 19%; bottom: 11%; right: 8%; background: var(--diagram-deep); border-radius: var(--corner); }
.u-guide-line { position: absolute; width: 34%; height: 5px; background: var(--diagram-blue); top: 18%; left: 7%; transform: rotate(-32deg); }
.u-geometry-small { height: 112px; margin-bottom: 25px; }
.u-question-arc { position: absolute; width: 92px; height: 92px; left: 2px; top: 6px; border: 18px solid var(--diagram-blue); border-right-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(-20deg); }
.u-question-square { position: absolute; width: 48px; height: 48px; left: 111px; top: 45px; border: 4px solid var(--diagram-blue); border-radius: var(--corner); transform: rotate(12deg); }

.guide-header { background: var(--band); border-bottom: 8px solid var(--plum); }
.guide-name { font-family: var(--heading-font); font-size: 18px; font-weight: 900; line-height: 1.3; color: var(--ink); text-decoration: none; }
.header-content { padding-block: 18px 6px; }
.reading-link { font-size: 18px; font-weight: 700; }
.rail-link { font-size: 18px; font-weight: 400; color: var(--ink); }
.rail-link:hover, .rail-link[aria-current] { color: var(--ground); background: var(--plum); }
.home-answers > .answer-section { padding: 38px 40px; margin-bottom: 24px; border: 0; border-radius: var(--corner); background: var(--band); }
.home-answers > .answer-section:nth-child(2n) { background: var(--pale); }
.home-answers > .answer-section:nth-child(3n) { background: var(--rose); }
.home-answers > .answer-section:first-child { background: var(--strong-band); border-left: 10px solid var(--plum); }
.pathway-entry { padding: 18px 22px 24px; background: var(--ground); border: 0; border-radius: var(--corner); }
.pathway-detail { padding-right: 12px; max-width: 48ch; }
.link-direction { flex: 0 0 auto; }
.article-answers > .answer-section, .article-answers > .answer-group { padding: 32px 36px; margin-top: 24px; border-radius: var(--corner); background: var(--pale); }
.article-answers > :nth-child(2n) { background: var(--band); }
.article-answers > :nth-child(3n) { background: var(--rose); }
.answer-group > .answer-section { padding-block: 0 32px; }
.answer-group > .answer-section:last-child { padding-bottom: 0; }
.answer-section > p:last-child { margin-bottom: 0; }
.reading-record { border-top: 3px solid var(--line); }
.question-label { color: var(--ink); margin-bottom: 18px; }
.question-text { margin-bottom: 10px; }
.question-path { font-size: 18px; }
.next-label { font-size: 18px; }
.guide-footer { background: var(--rose); border-top: 10px solid var(--plum); }
.guide-description { max-width: 42ch; color: var(--ink); }
.footer-link { font-size: 18px; }
.skip-reading { position: absolute; z-index: 40; left: 16px; top: -200px; padding: 12px 20px; background: var(--ground); border: 2px solid var(--plum); border-radius: var(--corner); }
.skip-reading:focus { top: 16px; }
.evidence-heading { align-items: flex-start; margin-bottom: 24px; }
.evidence-heading h2 { margin: 0; }
.evidence-close { font-size: 18px; flex: 0 0 auto; }
.evidence-control { font-size: 19px; max-width: 100%; }
.evidence-reading { font-size: 19px; }
.record-note { max-width: 65ch; }
.missing-page { margin-block: 40px 56px; }

/* Native details retains its existing enhancement and keyboard behaviour. */
.u-drawer[data-enhanced][open] > .u-drawer-panel { position: fixed; z-index: 30; inset: 0 0 0 auto; width: min(550px, 100%); max-width: none; height: 100dvh; margin: 0; overflow-y: auto; background: var(--ground); border-left: 8px solid var(--plum); border-radius: var(--corner) 0 0 var(--corner); padding: 36px; }
.u-drawer-shade { position: fixed; z-index: 20; inset: 0; background: #38253680; }
body.evidence-is-open { overflow: hidden; }

@media (min-width: 1100px) { .u-question-aside { position: sticky; top: 32px; } }
@media (max-width: 1099px) {
  .u-article-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
  .u-home-opening { gap: 32px; }
  .u-open-circle { border-width: 28px; }
  .u-path-grid { gap: 18px; }
  .article-answers > .answer-section, .article-answers > .answer-group { padding: 28px; }
}
@media (max-width: 760px) {
  .u-shell { width: calc(100% - 40px); }
  .u-home-opening { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 36px 40px; }
  .u-geometry-large { width: min(100%, 370px); max-height: 280px; aspect-ratio: 1.25; justify-self: center; border-bottom-width: 16px; }
  .u-page-opening { padding: 30px 24px; margin-block: 28px 24px; }
  .u-display { font-size: clamp(34px, 9.5vw, 46px); line-height: 1.17; }
  .u-heading { font-size: 26px; }
  .u-subheading { font-size: 20px; }
  .u-lead { font-size: 20px; }
  .u-article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .u-question-aside { margin-top: 24px; }
  .u-path-grid { grid-template-columns: minmax(0, 1fr); }
  .u-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .u-section-space { padding-block: 30px 16px; }
  .u-next-row { align-items: flex-start; padding: 22px 24px; }
  .home-answers > .answer-section { padding: 28px 24px; }
  .home-answers > .answer-section:first-child { border-left-width: 6px; padding-inline: 22px; }
  .pathway-entry { padding: 14px 18px 22px; }
  .article-answers > .answer-section, .article-answers > .answer-group { padding: 28px 24px; margin-top: 20px; }
  .u-drawer-panel { padding: 24px; }
  .u-drawer[data-enhanced][open] > .u-drawer-panel { padding: 28px 22px; }
  .u-drawer[data-enhanced][open] .evidence-heading { flex-direction: column-reverse; gap: 28px; }
  .guide-name { font-size: 16px; gap: 9px; }
  .reading-link { font-size: 17px; }
  .header-content { gap: 12px; flex-wrap: wrap; }
  .u-pill { padding-inline: 13px; }
  .u-rail { gap: 4px; }
  .evidence-entry { padding-top: 4px; }
  .missing-page { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  .guide-header, .anchor-rail, .skip-reading, .next-path, .evidence-entry, .guide-footer, .evidence-shade { display: none; }
  body { background: white; }
  .u-shell { width: 100%; }
  .u-article-grid { display: block; }
  .u-question-aside { position: static; }
  .u-page-opening { padding-top: 0; }
  .answer-section { break-inside: avoid; }
}
