/* Desktop editorial grid; smaller screens stack the reading path. */
@font-face {
  font-family: "Desk Kufi";
  src: url("tb500-reading-kufi.33ead1986cd4.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1b2119;
  --paper: #f4f5eb;
  --volt: #d8ff64;
  --soft: #dcd0f4;
  --muted: #505a4b;
  --line: #bcc2b1;
  --dark-line: #4f5946;
  --measure: 67ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-bottom: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Desk Kufi", sans-serif; font-size: 18px; line-height: 1.7; }
button, input { font: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #634189; outline-offset: 5px; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
strong { font-weight: 650; }
p { margin: 0 0 22px; max-width: var(--measure); }
ul { margin: 0; padding-left: 24px; max-width: var(--measure); }
li { padding-bottom: 15px; }
h1, h2, h3, h4 { font-weight: 650; line-height: 1.15; letter-spacing: -.025em; margin: 0; }
h2 { font-size: 39px; max-width: 24ch; }
h3 { font-size: 24px; }
figure { margin: 0; }
svg { display: block; flex: none; }
.guide__skip { position: fixed; left: 16px; top: 12px; transform: translateY(-180%); z-index: 100; background: var(--volt); padding: 10px 18px; min-height: 48px; }
.guide__skip:focus { transform: none; }
.guide__wrap { max-width: 1296px; margin: 0 auto; padding-left: 60px; padding-right: 60px; }
.masthead { color: var(--paper); background: var(--ink); }
.masthead__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 100px; border-bottom: 1px solid var(--dark-line); }
.masthead__name { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; font-size: 21px; font-weight: 650; text-decoration: none; }
.masthead__mark { width: 26px; height: 26px; display: block; background: var(--volt); border: 6px solid var(--ink); outline: 1px solid var(--volt); transform: rotate(45deg); }
.masthead__label { font-size: 16px; color: #d4dbc8; }
.hero { background: var(--ink); color: var(--paper); padding-top: 36px; padding-bottom: 64px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 68px; align-items: center; padding-top: 44px; }
.hero__eyebrow { font-size: 16px; color: var(--volt); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 26px; }
.hero__title { font-size: 72px; max-width: 17ch; }
.hero__title--home { font-size: 78px; max-width: 14ch; }
.hero__topic { display: block; color: var(--volt); margin-bottom: 14px; }
.hero__intro { color: #dce2d3; font-size: 21px; line-height: 1.65; max-width: 48ch; margin-top: 28px; margin-bottom: 28px; }
.hero__intro p { margin-bottom: 14px; }
.hero__note { color: #d4dbc8; font-size: 16px; max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.hero__action { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 21px; min-height: 54px; color: var(--ink); background: var(--volt); text-decoration: none; font-weight: 650; font-size: 18px; border: 1px solid var(--volt); }
.hero__action--quiet { background: transparent; color: var(--paper); border-color: var(--dark-line); }
.hero a:focus-visible { outline-color: var(--volt); }
.breadcrumb { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: #d4dbc8; font-size: 16px; }
.breadcrumb__link { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb__current { min-height: 44px; display: flex; align-items: center; }
.route { border: 1px solid #8d987d; padding: 28px; position: relative; }
.route::before, .route::after { position: absolute; background: var(--volt); width: 8px; height: 8px; content: ""; }
.route::before { top: -4px; left: -4px; }
.route::after { bottom: -4px; right: -4px; }
.route__label { font-size: 16px; color: var(--volt); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 24px; }
.route__node { border: 1px solid var(--dark-line); display: flex; gap: 16px; align-items: center; padding: 18px; font-size: 21px; line-height: 1.4; }
.route__node--bright { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.route__dot { width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; flex-shrink: 0; }
.route__connector { width: 1px; height: 28px; margin-left: 27px; background: var(--volt); }
.route__caption { color: #d4dbc8; margin-top: 24px; font-size: 16px; line-height: 1.6; }
.reading { padding-top: 16px; }
.chapter { padding: 68px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); gap: 80px; }
.chapter__heading { position: relative; }
.chapter__kicker { color: var(--muted); font-size: 16px; font-weight: inherit; line-height: inherit; max-width: none; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 22px; display: block; }
.chapter__title { font-size: 39px; max-width: 24ch; }
.chapter__content { min-width: 0; }
.chapter--summary .chapter__content { font-size: 23px; line-height: 1.6; }
.chapter--summary .chapter__content p { max-width: 50ch; }
.chapter__notes { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 14px; font-size: 16px; line-height: 1.6; }
.chapter__note-label { color: var(--muted); margin-bottom: 4px; font-size: 16px; }
.chapter__note { margin: 8px 0 0; font-size: 16px; line-height: 1.6; }
.chapter__source { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 7px 0; overflow-wrap: anywhere; }
.chapter__note-detail { display: block; color: var(--muted); }
.signal { border-left: 5px solid var(--ink); background: #e3e6d9; padding: 24px 26px; margin-bottom: 24px; }
.signal--soft { background: var(--soft); }
.signal__title { font-size: 23px; font-weight: 650; line-height: inherit; letter-spacing: inherit; margin-bottom: 12px; }
.signal p:last-child { margin-bottom: 0; }
.brief { border-top: 1px solid var(--ink); margin-top: 32px; }
.brief__row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 28px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.brief__label { font-weight: 650; font-size: 20px; line-height: 1.5; }
.brief__text { font-size: 18px; line-height: 1.65; }
.brief__text p:last-child { margin-bottom: 0; }
.chain { background: #e3e6d9; padding: 28px; margin: 28px 0; }
.chain__label { font-size: 18px; margin-bottom: 18px; }
.chain__row { display: grid; grid-template-columns: repeat(11, 1fr); gap: 7px; max-width: 480px; margin-bottom: 24px; }
.chain__cell { aspect-ratio: 1; background: #9ea990; border: 1px solid var(--ink); }
.chain__cell--piece { background: var(--volt); }
.chain__row--piece { grid-template-columns: repeat(7, 1fr); max-width: 302px; }
.chain__caption { font-size: 16px; line-height: 1.6; }
.path-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); margin: 28px 0 0; }
.path-map__group { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px; }
.path-map__name { font-size: 23px; margin-bottom: 16px; }
.path-map__link { min-height: 48px; display: flex; align-items: center; padding: 8px 0; font-size: 18px; line-height: 1.5; }
.path-map__arrow { margin-left: auto; padding-left: 12px; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); margin: 28px 0; }
.comparison__side { padding: 25px; font-size: 18px; }
.comparison__side--open { background: var(--volt); }
.comparison__label { font-size: 21px; line-height: 1.4; font-weight: 650; letter-spacing: inherit; margin-bottom: 18px; }
.comparison__side p:last-child { margin-bottom: 0; }
.question-list { list-style: none; padding: 0; counter-reset: none; }
.question-list__item { border-top: 1px solid var(--line); padding: 22px 0 22px 28px; position: relative; }
.question-list__item::before { content: ""; position: absolute; left: 0; top: 34px; width: 9px; height: 9px; background: var(--ink); }
.question-list__question { display: block; font-weight: 650; font-size: 20px; line-height: 1.5; letter-spacing: inherit; margin-bottom: 10px; }
.question-list__help { font-size: 18px; line-height: 1.6; }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 46px 0; }
.next__link { padding: 24px 26px; border: 1px solid var(--ink); text-decoration: none; min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 20px; line-height: 1.5; }
.next__link--forward { background: var(--volt); }
.next__label { display: block; font-size: 16px; color: var(--muted); margin-bottom: 6px; }
.footer { padding-bottom: 150px; padding-top: 16px; }
.footer__sentence { font-size: 16px; line-height: 1.65; max-width: 80ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.footer__link { display: inline-flex; min-height: 48px; min-width: 44px; align-items: center; font-size: 16px; padding: 8px 0; }
.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; width: min(650px, calc(100% - 24px)); background: var(--ink); border: 1px solid #657252; color: var(--paper); z-index: 50; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 7px; gap: 4px; box-shadow: 0 6px 24px #1b211938; }
.dock__link { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; min-height: 56px; font-size: 16px; line-height: 1.3; text-decoration: none; }
.dock__link--current { color: var(--ink); background: var(--volt); }
.dock__link:hover { background: #3b4532; color: var(--paper); }
.dock__link--current:hover { background: var(--volt); color: var(--ink); }
.dock a:focus-visible { outline-color: var(--volt); outline-offset: 1px; }
.dock__icon { width: 19px; height: 19px; }
.glossary__tools { background: var(--soft); padding: 26px; margin-bottom: 28px; }
.glossary__label { display: block; font-weight: 650; margin-bottom: 12px; }
.glossary__controls { display: flex; gap: 12px; flex-wrap: wrap; }
.glossary__input { min-width: 0; flex: 1 1 250px; min-height: 54px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); padding: 9px 15px; font-size: 18px; border-radius: 0; }
.glossary__input::placeholder { color: var(--muted); opacity: 1; }
.glossary__reset { min-height: 54px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 10px 18px; font-size: 16px; }
.glossary__status { margin: 14px 0 0; font-size: 16px; }
.glossary__list { margin: 0; }
.glossary__entry { padding: 24px 0; border-top: 1px solid var(--line); }
.glossary__term { font-size: 23px; font-weight: 650; line-height: 1.45; margin-bottom: 9px; }
.glossary__term-heading { font: inherit; letter-spacing: inherit; }
.glossary__meaning { margin: 0; max-width: var(--measure); font-size: 18px; }
.glossary__meaning p:last-child { margin-bottom: 0; }
.glossary__empty { background: var(--soft); padding: 24px; }
@media (max-width: 1050px) {
  .guide__wrap { padding-left: 36px; padding-right: 36px; }
  .hero__grid { gap: 36px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .hero__title { font-size: 56px; }
  .hero__title--home { font-size: 63px; }
  .chapter { gap: 42px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); }
  h2, .chapter__title { font-size: 32px; }
  .path-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route { padding: 22px; }
}
@media (max-width: 720px) {
  body { font-size: 18px; }
  .guide__wrap { padding-left: 22px; padding-right: 22px; }
  .masthead__row { min-height: 87px; gap: 12px; align-items: flex-start; justify-content: center; flex-direction: column; padding-top: 18px; padding-bottom: 18px; }
  .masthead__name { min-height: 44px; font-size: 20px; }
  .masthead__label { padding-left: 40px; }
  .hero { padding-top: 22px; padding-bottom: 40px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 24px; }
  .hero__eyebrow { margin-bottom: 20px; line-height: 1.5; }
  .hero__title, .hero__title--home { font-size: 44px; max-width: 17ch; }
  .hero__intro { font-size: 20px; margin-top: 24px; }
  .hero__action { font-size: 18px; padding: 12px 18px; width: 100%; }
  .route { padding: 24px; }
  .route__node { padding: 16px; }
  .route__caption { margin-top: 18px; }
  .chapter { display: block; padding: 44px 0; }
  .chapter__kicker { margin-bottom: 14px; }
  .chapter__heading { margin-bottom: 26px; }
  h2, .chapter__title { font-size: 32px; }
  .chapter--summary .chapter__content { font-size: 21px; }
  .brief__row { display: block; }
  .brief__label { margin-bottom: 12px; }
  .path-map { grid-template-columns: minmax(0, 1fr); }
  .path-map__group { padding: 23px; }
  .comparison { grid-template-columns: minmax(0, 1fr); }
  .signal { padding: 22px; }
  .chain { padding: 20px; }
  .chain__row { gap: 5px; }
  .next { grid-template-columns: minmax(0, 1fr); padding: 30px 0; gap: 14px; }
  .next__link { font-size: 19px; min-height: 90px; padding: 20px; }
  .footer { padding-bottom: 126px; }
  .dock { bottom: 8px; padding: 5px; gap: 2px; }
  .dock__link { flex-direction: column; gap: 7px; min-height: 64px; font-size: 16px; }
  .dock__icon { width: 18px; height: 18px; }
  .glossary__tools { padding: 22px; }
  .glossary__controls { display: block; }
  .glossary__input { width: 100%; }
  .glossary__reset { margin-top: 12px; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .guide__skip, .dock, .glossary__tools { display: none; }
  .guide__wrap { padding: 0; max-width: none; }
  .hero, .masthead { color: var(--ink); background: white; }
  .hero__topic, .hero__eyebrow, .hero__intro, .masthead__label, .breadcrumb { color: var(--ink); }
  .hero__grid, .chapter { display: block; }
  .route { display: none; }
  .chapter { padding: 24px 0; }
  .chapter__heading { margin-bottom: 16px; }
  .footer { padding-bottom: 0; }
  a { color: var(--ink); }
}
