:root {
  --ink: #101828;
  --navy: #0b1324;
  --navy-2: #121d33;
  --blue: #315cdb;
  --blue-soft: #eaf0ff;
  --teal: #169c91;
  --surface: #f5f7fa;
  --surface-2: #eef1f5;
  --white: #ffffff;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #d9dee7;
  --line-dark: rgba(255,255,255,.14);
  --warning: #a15c00;
  --warning-soft: #fff3dc;
  --shadow: 0 28px 70px rgba(18, 32, 58, .12);
  --sans: Inter, "SF Pro Display", "PingFang SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --source: "Songti SC", STSong, "Noto Serif CJK SC", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: var(--sans); line-height: 1.62; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
::selection { color: var(--white); background: var(--blue); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; color: var(--white); background: var(--navy); }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.section-shell { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
section[id] { scroll-margin-top: 72px; }

.site-header { height: 72px; display: grid; grid-template-columns: minmax(270px,1fr) auto minmax(270px,1fr); align-items: center; gap: 24px; padding: 0 3.2vw; position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 5px; background: var(--navy); }
.brand-mark i { display: block; background: var(--white); opacity: .92; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { opacity: .36; }
.brand-copy { min-width: 0; display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 14px; letter-spacing: .025em; white-space: nowrap; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px,1.35vw,22px); font-size: 11px; }
.desktop-nav a { position: relative; color: #344054; text-decoration: none; white-space: nowrap; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--blue); transition: right .2s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.prototype-badge { padding: 5px 8px; color: #344054; background: var(--surface-2); border: 1px solid var(--line); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.language-menu { position: relative; }
.language-menu summary { min-width: 58px; min-height: 36px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); background: var(--white); border: 1px solid var(--line); cursor: pointer; font-size: 11px; list-style: none; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary i { color: var(--muted); font-style: normal; transition: transform .2s; }
.language-menu[open] summary i { transform: rotate(180deg); }
.language-options { width: 244px; position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; padding: 7px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(11,19,36,.16); }
.language-options [data-language] { width: 100%; min-height: 48px; padding: 7px 9px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; text-decoration: none; }
.language-options [data-language]:last-child { border-bottom: 0; }
.language-options [data-language]:hover,.language-options [data-language].active { background: var(--surface-2); }
.language-options [data-language] b { font-size: 12px; font-weight: 650; }
.language-options [data-language] small { color: var(--muted); font: 700 8px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .06em; }
.language-options [data-language][data-internal-locale] small { color: #8b5d10; }
.locale-preview-banner { min-height: 58px; position: sticky; top: 72px; z-index: 18; padding: 10px max(3.2vw,16px); display: flex; align-items: center; justify-content: space-between; gap: 22px; color: #553b13; background: #fff4d8; border-bottom: 1px solid #e6c987; }
.locale-preview-banner[hidden] { display: none; }
.locale-preview-banner div { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.locale-preview-banner strong { font-size: 12px; }
.locale-preview-banner span { font-size: 11px; }
.locale-preview-banner > b { flex: none; padding: 4px 7px; color: #754f0c; border: 1px solid #d7b66b; font: 700 8px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .05em; text-transform: uppercase; }
.menu-button { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--white); position: relative; cursor: pointer; }
.menu-button span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform .2s, top .2s; }
.menu-button span:first-child { top: 15px; }
.menu-button span:last-child { top: 23px; }
.menu-button[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; top: 72px; inset-inline: 0; z-index: 19; padding: 18px 24px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.mobile-menu a { display: block; padding: 14px 0; color: #344054; text-decoration: none; border-bottom: 1px solid var(--line); }

.hero { min-height: calc(100vh - 72px); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(48px,6vw,96px); padding-block: clamp(72px,10vh,120px); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 20px; color: var(--blue); font-size: 10px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #8da8ff; }
.hero h1 { margin: 0; max-width: 650px; font-size: clamp(56px,5.6vw,84px); line-height: 1.03; letter-spacing: -.055em; font-weight: 580; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 590px; margin: 32px 0 0; color: #475467; font-size: 16px; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 0; text-decoration: none; cursor: pointer; font-size: 13px; font-weight: 700; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--navy); border-color: var(--navy); }
.button-primary:hover { background: var(--blue); border-color: var(--blue); }
.button-quiet { color: #344054; background: transparent; border-color: var(--line); }
.button-quiet:hover { background: var(--white); border-color: #aeb7c5; }
.button-paper { color: var(--navy); background: var(--white); }
.hero-proof { margin-top: 56px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-proof span { min-height: 62px; display: flex; align-items: center; gap: 9px; border-right: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.hero-proof span:last-child { border-right: 0; }
.hero-proof i { color: var(--blue); font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.hero-proof b { color: #344054; font-weight: 650; }

.hero-visual { min-width: 0; }
.record-window { overflow: hidden; background: var(--white); border: 1px solid #cfd6e2; box-shadow: var(--shadow); }
.record-toolbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; color: #667085; background: #fbfcfd; border-bottom: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .07em; }
.review-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--warning); font-family: var(--sans); font-weight: 700; text-transform: uppercase; }
.review-badge i { width: 7px; height: 7px; border-radius: 50%; background: #e69522; box-shadow: 0 0 0 4px rgba(230,149,34,.14); }
.record-body { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 470px; }
.source-preview { min-height: 470px; position: relative; overflow: hidden; padding: 24px; color: #1d2939; background-color: #eaedf2; background-image: linear-gradient(rgba(16,24,40,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(16,24,40,.035) 1px,transparent 1px); background-size: 24px 24px; border-right: 1px solid var(--line); }
.scan-index { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #667085; font-size: 8px; letter-spacing: .08em; }
.scan-columns { position: absolute; inset: 58px 34px 38px; display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; direction: rtl; }
.scan-columns i { background: repeating-linear-gradient(to bottom,#6b7280 0 2px,transparent 2px 12px); opacity: .34; }
.scan-columns i:nth-child(2), .scan-columns i:nth-child(5) { opacity: .18; }
.scan-focus { position: absolute; top: 160px; right: 82px; width: 35px; height: 120px; border: 1px solid var(--blue); background: rgba(49,92,219,.07); }
.source-preview b { position: absolute; right: 88px; top: 190px; z-index: 1; color: var(--navy); font-family: var(--source); font-size: 38px; font-weight: 500; }
.record-panel { display: flex; flex-direction: column; padding: clamp(28px,3vw,46px); }
.record-kicker { margin: 0; color: var(--blue); font-size: 9px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.record-panel h2 { margin: 18px 0 26px; display: flex; align-items: baseline; gap: 12px; font-size: 56px; line-height: 1; font-weight: 560; letter-spacing: -.04em; }
.record-panel h2 small { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.record-fields { margin: 0; border-top: 1px solid var(--line); }
.record-fields div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.record-fields dt { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.record-fields dd { margin: 0; color: #344054; font-size: 11px; }
.evidence-path { margin-top: auto; display: grid; grid-template-columns: 12px 1fr 12px 1fr 12px 1fr 12px; align-items: center; }
.evidence-path span { width: 12px; height: 12px; border: 2px solid #c7cfda; border-radius: 50%; background: var(--white); }
.evidence-path span.complete { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 3px var(--white); }
.evidence-path i { height: 1px; background: #c7cfda; }
.evidence-path-labels { margin-top: 9px; display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.record-caption { margin: 0; padding: 12px 18px; color: var(--muted); background: #fbfcfd; border-top: 1px solid var(--line); font-size: 9px; }

.principle-strip { padding: 22px 5vw; color: #344054; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-size: 13px; }
.principle-strip p { max-width: 960px; margin: 0 auto; }
.principle-strip p::before { content: "SCOPE"; margin-right: 14px; color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 700; letter-spacing: .1em; }

.portal-index { margin-block: 34px 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); background: var(--line); border: 1px solid var(--line); gap: 1px; }
.portal-index a { min-height: 126px; padding: 20px; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; background: var(--white); text-decoration: none; transition: background .2s, box-shadow .2s; }
.portal-index a:hover, .portal-index a:focus-visible { z-index: 1; outline: 0; background: #fbfcff; box-shadow: inset 0 -3px 0 var(--blue); }
.portal-index a > span { color: var(--blue); font: 700 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.portal-index a > div { display: grid; gap: 8px; }
.portal-index b { font-size: 13px; font-weight: 650; }
.portal-index small { color: var(--muted); font-size: 9px; line-height: 1.55; }
.portal-index i { color: var(--muted); font-style: normal; }
.portal-index .teaching-portal-entry { color: var(--white); background: var(--navy); }
.portal-index .teaching-portal-entry:hover, .portal-index .teaching-portal-entry:focus-visible { background: #173829; box-shadow: inset 0 -3px 0 #9cd6a4; }
.portal-index .teaching-portal-entry > span, .portal-index .teaching-portal-entry i { color: #9cd6a4; }
.portal-index .teaching-portal-entry small { color: rgba(255,255,255,.58); }

.explore, .journey, .trust { padding-block: 112px; }
.section-heading { max-width: 780px; margin-bottom: 52px; }
.section-heading h2, .book-intro h2, .daily-copy h2, .about h2 { margin: 0; font-size: clamp(38px,4vw,58px); line-height: 1.08; letter-spacing: -.045em; font-weight: 580; }
.section-heading > p:last-child { color: var(--muted); }
.split-heading { max-width: none; display: grid; grid-template-columns: 1fr .82fr; gap: 8vw; align-items: end; }
.split-heading > p { margin: 0 0 5px; }
.search-panel { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 14px; background: var(--white); border: 1px solid var(--line); }
.search-box { flex: 1; max-width: 560px; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 13px; background: var(--surface); border: 1px solid transparent; }
.search-box:focus-within { background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,92,219,.1); }
.search-box svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-box input::placeholder { color: var(--muted-2); }
.filter-chips { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.chip { min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 0; background: var(--white); cursor: pointer; color: #475467; font-size: 11px; }
.chip:hover { border-color: #aeb7c5; }
.chip.active { color: var(--white); background: var(--navy); border-color: var(--navy); }
.herb-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.herb-card { min-height: 300px; position: relative; display: flex; flex-direction: column; padding: 26px; border: 0; background: var(--white); text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; }
.herb-card:hover, .herb-card:focus-visible { z-index: 2; outline: 0; background: #fbfcff; box-shadow: inset 0 0 0 2px var(--blue), 0 22px 54px rgba(28,46,84,.12); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.card-type { color: var(--blue); font-family: var(--sans); font-weight: 750; }
.card-symbol { margin: 30px 0 26px; display: flex; align-items: start; justify-content: space-between; }
.herb-glyph { width: 80px; height: 80px; display: grid; place-items: center; color: var(--navy); background: var(--surface); border: 1px solid var(--line); font-family: var(--source); font-size: 40px; line-height: 1; }
.card-symbol > i { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; font-style: normal; transition: color .2s, border-color .2s, background .2s; }
.herb-card:hover .card-symbol > i { color: var(--white); background: var(--blue); border-color: var(--blue); }
.herb-card h3 { margin: 0; display: grid; gap: 4px; font-size: 25px; font-weight: 600; letter-spacing: -.025em; }
.herb-card h3 small { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .02em; }
.herb-card p { margin: 11px 0 20px; color: #667085; font-size: 12px; }
.card-evidence { margin-top: auto; display: flex; justify-content: space-between; gap: 14px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.card-status { display: inline-flex; align-items: center; gap: 6px; color: var(--warning); }
.status-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #e69522; }
.empty-state { margin: 0; padding: 60px; color: var(--muted); background: var(--white); border: 1px solid var(--line); text-align: center; }
.legacy-interface-reservation { margin-top: 28px; padding: 26px; background: #f8faff; border: 1px solid #cfd9f4; box-shadow: inset 4px 0 0 var(--blue); }
.legacy-interface-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.legacy-interface-head span { color: var(--blue); font: 700 9px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .09em; }
.legacy-interface-head h3 { margin: 8px 0 0; font-size: 22px; font-weight: 620; letter-spacing: -.02em; }
.legacy-interface-head > b { flex: none; padding: 6px 9px; color: #755416; background: #fff6dc; border: 1px solid #e4ca83; font-size: 9px; letter-spacing: .06em; }
.legacy-interface-reservation > p { max-width: 850px; margin: 18px 0; color: #526078; font-size: 13px; }
.legacy-interface-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid #dbe2f2; border-left: 1px solid #dbe2f2; }
.legacy-interface-fields span { min-height: 68px; display: flex; align-items: center; padding: 14px; color: #344054; background: rgba(255,255,255,.74); border-right: 1px solid #dbe2f2; border-bottom: 1px solid #dbe2f2; font-size: 11px; font-weight: 650; }
.legacy-interface-rule { margin-top: 16px; display: flex; align-items: start; gap: 10px; color: var(--muted); }
.legacy-interface-rule i { width: 7px; height: 7px; flex: none; margin-top: 7px; border-radius: 50%; background: var(--teal); }
.legacy-interface-rule p { margin: 0; font-size: 11px; }

.book-structure { position: relative; overflow: hidden; padding-block: 112px; color: var(--white); background-color: var(--navy); background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 48px 48px; }
.book-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; position: relative; }
.book-intro p:not(.eyebrow) { max-width: 480px; color: rgba(255,255,255,.64); }
.text-link { display: inline-block; margin-top: 20px; text-underline-offset: 5px; }
.text-link.light { color: #b9c9ff; }
.book-stat-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); background: rgba(255,255,255,.025); }
.book-stat-grid article { min-height: 178px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.book-stat-grid b { font-size: 58px; font-weight: 450; letter-spacing: -.04em; }
.book-stat-grid span { color: rgba(255,255,255,.58); font-size: 11px; }
.taxonomy-ribbon { grid-column: 1/-1; margin-top: 48px; display: flex; justify-content: space-between; gap: 24px; color: rgba(255,255,255,.42); font-size: clamp(13px,1.4vw,18px); }
.taxonomy-ribbon span { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(5,1fr); margin-top: 58px; }
.timeline-track { position: absolute; top: 20px; left: 8%; right: 8%; height: 1px; background: var(--line); }
.timeline-item { z-index: 1; padding: 0 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.timeline-item::before { content: ""; width: 9px; height: 9px; display: block; margin: 16px auto 18px; border: 2px solid var(--white); outline: 1px solid #aeb7c5; border-radius: 50%; background: #aeb7c5; transition: background .2s, outline-color .2s, transform .2s; }
.timeline-item b { display: block; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.timeline-item span { font-size: 10px; }
.timeline-item.active::before { background: var(--blue); outline-color: var(--blue); transform: scale(1.35); }
.timeline-detail { margin-top: 42px; padding: 30px; display: grid; grid-template-columns: .25fr 1fr; gap: 30px; background: var(--white); border: 1px solid var(--line); }
.detail-index { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; }
.timeline-detail h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.timeline-detail p { margin: 0; color: var(--muted); }

.daily-herb { width: min(1376px,calc(100% - 64px)); min-height: 690px; margin: 0 auto 112px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 55px rgba(18,32,58,.08); }
.daily-illustration { min-width: 0; padding: 20px; display: flex; flex-direction: column; background: var(--navy); }
.facsimile-toolbar { min-height: 38px; display: flex; justify-content: space-between; gap: 18px; color: rgba(255,255,255,.46); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; letter-spacing: .08em; }
.facsimile-toolbar b { color: #f4bd68; font-family: var(--sans); font-weight: 700; }
.facsimile-sheet { flex: 1; min-height: 490px; position: relative; overflow: hidden; color: var(--ink); background-color: #e7eaf0; background-image: linear-gradient(rgba(16,24,40,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(16,24,40,.04) 1px,transparent 1px); background-size: 26px 26px; }
.sheet-code { position: absolute; top: 18px; left: 20px; color: #667085; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; letter-spacing: .08em; }
.sheet-columns { position: absolute; inset: 58px 52px 42px; display: grid; grid-template-columns: repeat(7,1fr); gap: 16px; direction: rtl; }
.sheet-columns i { background: repeating-linear-gradient(to bottom,#5f6877 0 2px,transparent 2px 13px); opacity: .34; }
.sheet-columns i:nth-child(2n) { opacity: .18; }
.sheet-annotation { position: absolute; right: 72px; top: 180px; width: 48px; height: 150px; display: grid; place-items: center; border: 1px solid var(--blue); background: rgba(49,92,219,.07); }
.sheet-annotation span { position: absolute; top: -18px; right: -1px; padding: 2px 5px; color: var(--white); background: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.sheet-annotation b { font-family: var(--source); font-size: 42px; font-weight: 500; }
.daily-illustration > p { margin: 14px 0 0; color: rgba(255,255,255,.5); font-size: 9px; }
.daily-copy { padding: clamp(52px,6vw,92px); display: flex; flex-direction: column; justify-content: center; }
.daily-copy .eyebrow { color: var(--blue); }
.daily-copy h2 { display: flex; align-items: baseline; gap: 16px; color: var(--navy); font-size: 80px; }
.daily-copy h2 small { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.daily-copy blockquote { margin: 24px 0 32px; padding-left: 20px; max-width: 560px; color: #344054; border-left: 2px solid var(--blue); font-size: 18px; line-height: 1.72; }
.daily-copy dl { margin: 0 0 32px; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.daily-copy dl div { display: grid; grid-template-columns: 112px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.daily-copy dt { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.daily-copy dd { margin: 0; color: #344054; font-size: 11px; }
.daily-copy .button { align-self: flex-start; color: var(--white); background: var(--navy); }

.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.trust-grid article { min-height: 250px; padding: 25px; background: var(--white); }
.trust-number { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.trust-grid h3 { margin: 66px 0 10px; font-size: 20px; font-weight: 600; }
.trust-grid p { color: var(--muted); font-size: 12px; }
.evidence-legend { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.evidence { min-height: 26px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid transparent; border-radius: 0; font-size: 9px; font-weight: 720; letter-spacing: .04em; }
.evidence.historical { color: #475467; background: #f2f4f7; border-color: #d0d5dd; }
.evidence.research { color: #067a6f; background: #e7f7f4; border-color: #a6ddd6; }
.evidence.interpretation { color: #2849a9; background: var(--blue-soft); border-color: #b8c7f7; }
.evidence.pending { color: var(--warning); background: var(--warning-soft); border-color: #f0cf93; }
.verification-pipeline { margin-top: 42px; background: var(--white); border: 1px solid var(--line); }
.pipeline-heading { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.pipeline-heading span { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.pipeline-heading b { font-size: 12px; font-weight: 600; }
.verification-pipeline ol { margin: 0; padding: 0; list-style: none; }
.verification-pipeline li { min-height: 78px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 18px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.verification-pipeline li:last-child { border-bottom: 0; }
.verification-pipeline li > span { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.verification-pipeline li div { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px; }
.verification-pipeline li b { font-size: 13px; }
.verification-pipeline li small { color: var(--muted); }
.verification-pipeline li > i { padding: 4px 8px; color: var(--warning); background: var(--warning-soft); border: 1px solid #f0cf93; font-size: 8px; font-style: normal; font-weight: 700; text-transform: uppercase; }

.about { padding-block: 110px; color: var(--white); background: linear-gradient(135deg,var(--navy),#13264d); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.about-copy { align-self: end; }
.about-copy > p { color: rgba(255,255,255,.65); font-size: 15px; }
.about-actions { margin-top: 32px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.partner-status { min-height: 1.5em; margin-top: .9rem; color: rgba(255,255,255,.7); font-size: .78rem; }
footer { display: flex; justify-content: space-between; gap: 40px; padding: 38px 4vw; color: rgba(255,255,255,.58); background: #070d19; border-top: 1px solid rgba(255,255,255,.09); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand p { margin: 0; }
.footer-brand strong { color: var(--white); font-size: 13px; }
.footer-notice { max-width: 620px; font-size: 10px; text-align: right; }
.footer-contact { color: rgba(255,255,255,.72); }
.footer-contact a { color: var(--white); text-underline-offset: 3px; }
.footer-contact a:hover { color: #b9c9ff; }
.footer-links { margin: 12px 0; display: flex; justify-content: flex-end; gap: 8px 16px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.78); text-underline-offset: 3px; }
.footer-links a:hover,.footer-links a:focus-visible { color: var(--white); }
.public-data-state { color: #aebfff; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 8px; }

.herb-dialog { width: min(760px,calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; color: var(--ink); background: var(--white); border: 1px solid var(--line); box-shadow: 0 34px 100px rgba(7,13,25,.32); }
.herb-dialog::backdrop { background: rgba(7,13,25,.72); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; float: right; top: 16px; right: 16px; z-index: 2; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 0; background: var(--white); cursor: pointer; font-size: 21px; }
.dialog-hero { padding: 50px 52px 32px; background: #fbfcfd; border-bottom: 1px solid var(--line); }
.dialog-index { float: right; margin-right: 46px; color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.dialog-hero h2 { margin: 0; font-size: 52px; font-weight: 580; letter-spacing: -.04em; }
.dialog-subtitle { color: var(--muted); font-size: 11px; }
.dialog-body { padding: 34px 52px 50px; }
.dialog-summary { color: #344054; font-size: 17px; line-height: 1.72; }
.dialog-meta { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dialog-meta div { padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-meta dt { color: var(--muted); font-size: 9px; }
.dialog-meta dd { margin: 5px 0 0; font-size: 11px; }
.dialog-body section { margin-top: 32px; }
.dialog-body section h3 { margin: 11px 0 7px; font-size: 19px; }
.dialog-body section p { color: var(--muted); }
.safety-note { margin-top: 34px; padding: 18px; background: #f7f9fc; border: 1px solid var(--line); border-left: 3px solid var(--blue); }
.safety-note p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }

/* Extended public-portal modules */
.history, .reader, .learning { padding-block: 112px; }
.history { border-bottom: 1px solid var(--line); }
.history-ledger { background: var(--white); border: 1px solid var(--line); }
.history-ledger article { min-height: 158px; display: grid; grid-template-columns: 150px 1fr auto; gap: 34px; align-items: center; padding: 26px 30px; border-bottom: 1px solid var(--line); }
.history-ledger article:last-child { border-bottom: 0; }
.history-ledger article > span { align-self: start; color: var(--blue); font: 650 12px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .04em; }
.ledger-type { margin: 0 0 8px; color: var(--muted); font: 700 9px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .09em; text-transform: uppercase; }
.history-ledger h3 { margin: 0 0 8px; font-size: 22px; font-weight: 610; letter-spacing: -.025em; }
.history-ledger div > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; }
.history-facts { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 18px; border: 1px solid var(--line); border-right: 0; }
.history-facts div { min-height: 116px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; background: var(--white); border-right: 1px solid var(--line); }
.history-facts b { color: var(--navy); font-size: 35px; font-weight: 520; letter-spacing: -.04em; }
.history-facts span { color: var(--muted); font-size: 10px; }
.subsection-heading { margin: 76px 0 24px; display: grid; gap: 10px; }
.subsection-heading > span { color: var(--blue); font: 750 9px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .1em; }
.subsection-heading h3 { margin: 0; font-size: clamp(28px,3vw,42px); line-height: 1.12; letter-spacing: -.035em; font-weight: 580; }
.subsection-heading > p, .split-subheading > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; }
.subsection-heading.compact { margin-bottom: 22px; }
.book-history-track { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; list-style: none; background: var(--line); border: 1px solid var(--line); gap: 1px; }
.book-history-track li { min-height: 154px; padding: 24px; display: grid; grid-template-columns: 88px 1fr; gap: 20px; background: var(--white); }
.book-history-track time { color: var(--blue); font: 700 12px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; }
.book-history-track b { display: block; margin-bottom: 8px; font-size: 16px; }
.book-history-track p { margin: 0; color: var(--muted); font-size: 11px; }
.honors-board { margin-top: 76px; }
.honors-board .subsection-heading { margin-top: 0; }
.honors-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.honors-grid article { min-height: 210px; padding: 24px; display: flex; flex-direction: column; background: var(--white); }
.honors-grid time { color: var(--blue); font: 700 9px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .08em; }
.honors-grid b { margin-top: auto; padding-top: 48px; font-size: 17px; line-height: 1.35; }
.honors-grid p { margin: 10px 0 0; color: var(--muted); font-size: 10px; }

.collection-overview { margin: 0 0 30px; display: grid; grid-template-columns: .65fr 1.35fr; background: var(--navy); color: var(--white); border: 1px solid var(--navy); }
.collection-target { min-height: 240px; padding: 27px; display: flex; flex-direction: column; border-right: 1px solid var(--line-dark); }
.collection-target > span, .edition-heading > span { color: #aebfff; font: 700 9px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .09em; }
.collection-target b { margin-top: auto; font-size: 82px; font-weight: 430; letter-spacing: -.06em; }
.collection-target p { margin: 4px 0 0; color: rgba(255,255,255,.58); font-size: 10px; }
.collection-phases { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.phase-track { display: grid; grid-template-columns: repeat(3,1fr); align-items: center; margin: 0 8.33% -5px; }
.phase-track::before { content:""; grid-column: 1/-1; grid-row: 1; height: 1px; background: rgba(255,255,255,.22); }
.phase-track span { z-index: 1; grid-row: 1; width: 10px; height: 10px; justify-self: start; border: 2px solid var(--navy); outline: 1px solid rgba(255,255,255,.36); border-radius: 50%; background: #68758d; }
.phase-track span:first-child { background: #84a0ff; outline-color: #84a0ff; }
.collection-phases ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); list-style: none; }
.collection-phases li { display: grid; gap: 4px; padding: 24px 12px 0; }
.collection-phases li b { font-size: 26px; font-weight: 520; }
.collection-phases li span { font-size: 11px; font-weight: 650; }
.collection-phases li small, .collection-phases > p { color: rgba(255,255,255,.5); font-size: 9px; }
.collection-phases > p { margin: 28px 12px 0; padding-top: 16px; border-top: 1px solid var(--line-dark); line-height: 1.7; }

.taxonomy-ribbon { display: grid; grid-template-columns: repeat(8,1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.taxonomy-ribbon span { min-height: 60px; padding: 14px 12px; display: flex; align-items: end; color: rgba(255,255,255,.62); background: var(--navy); border-left: 0; font-size: 10px; }
.edition-evolution { grid-column: 1/-1; margin-top: 64px; }
.edition-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 18px; }
.edition-heading p { max-width: 520px; margin: 0; color: rgba(255,255,255,.55); font-size: 10px; text-align: right; }
.edition-track { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.edition-track article { min-height: 258px; padding: 21px; display: flex; flex-direction: column; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: rgba(255,255,255,.018); }
.edition-track article > span { color: rgba(255,255,255,.3); font: 700 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.edition-track time { margin: 34px 0 8px; color: #aebfff; font: 600 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.edition-track h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.edition-track p { margin: 0; color: rgba(255,255,255,.52); font-size: 10px; }
.edition-track i { margin-top: auto; align-self: start; padding: 4px 7px; color: #aebfff; border: 1px solid rgba(174,191,255,.32); font-size: 8px; font-style: normal; }
.edition-track .verified { background: rgba(77,111,212,.12); box-shadow: inset 0 3px 0 #7894ec; }

.reader { background: var(--surface); }
.reader-shell { overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 22px 60px rgba(18,32,58,.07); }
.reader-toolbar { min-height: 54px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); background: #fafbfc; border-bottom: 1px solid var(--line); font: 650 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .08em; }
.reader-toolbar > div:first-child { display: flex; gap: 18px; }
.reader-toolbar b { color: var(--ink); font-weight: 650; }
.zoom-controls { display: flex; align-items: center; border: 1px solid var(--line); background: var(--white); }
.zoom-controls button { width: 34px; height: 30px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 16px; }
.zoom-controls button:hover { background: var(--blue-soft); }
.zoom-controls output { min-width: 52px; text-align: center; color: var(--muted); font-size: 8px; }
.reader-workspace { min-height: 600px; display: grid; grid-template-columns: 1.1fr .9fr; }
.reader-image-viewport { min-width: 0; min-height: 600px; display: grid; place-items: start center; overflow: auto; padding: 48px; background-color: #151e31; background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: 28px 28px; }
.reader-page { width: min(400px,88%); aspect-ratio: .72; position: relative; overflow: hidden; color: #28313f; background: #e9e9e4; box-shadow: 0 20px 60px rgba(0,0,0,.25); transition: transform .25s ease; }
.reader-page-code { position: absolute; top: 14px; left: 14px; color: #68707d; font: 600 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .06em; }
.reader-page-columns { position: absolute; inset: 54px 34px 70px; display: grid; grid-template-columns: repeat(8,1fr); gap: 10px; direction: rtl; }
.reader-page-columns i { background: repeating-linear-gradient(to bottom,#555e69 0 2px,transparent 2px 11px); opacity: .29; }
.reader-page-columns i:nth-child(3n) { opacity: .15; }
.reader-page-focus { position: absolute; top: 37%; right: 18%; width: 48px; height: 128px; display: grid; place-items: center; color: var(--navy); border: 1px solid var(--blue); background: rgba(49,92,219,.06); font: 500 36px/1 var(--source); }
.reader-page > p { position: absolute; inset: auto 20px 18px; margin: 0; color: #596273; font-size: 8px; line-height: 1.5; text-align: center; }
.facsimile-real { width: min(560px,94%); height: max-content; aspect-ratio: auto; margin: 0; overflow: visible; background: #e9e3d6; transform-origin: top center; }
.facsimile-real img { width: 100%; height: auto; display: block; }
.facsimile-real figcaption { min-height: 44px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 14px; align-items: center; color: #4b5565; background: #f7f4ed; border-top: 1px solid #c9c3b8; font: 650 7px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .05em; }
.facsimile-real figcaption b { font-family: var(--sans); font-size: 8px; font-weight: 600; text-align: right; }
.source-transcription { color: #2f3744 !important; font-family: var(--source); font-size: 19px; line-height: 2 !important; }
.reader-text-panel { min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.reader-tabs { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); }
.reader-tabs button { min-height: 60px; padding: 10px; border: 0; border-right: 1px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer; font-size: 10px; }
.reader-tabs button:last-child { border-right: 0; }
.reader-tabs button.active { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.reader-panel { flex: 1; padding: 42px; }
.reader-panel h3 { margin: 34px 0 14px; max-width: 450px; font-size: 30px; font-weight: 590; letter-spacing: -.035em; }
.reader-panel p { max-width: 520px; color: var(--muted); line-height: 1.75; }
.reader-metadata { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.reader-metadata div { padding: 15px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reader-metadata dt { color: var(--muted); font-size: 8px; }
.reader-metadata dd { margin: 5px 0 0; color: #344054; font-size: 10px; }

.person-profile { display: grid; grid-template-columns: .42fr 1.58fr; margin-bottom: 54px; background: var(--navy); color: var(--white); }
.person-id { min-height: 260px; padding: 28px; display: flex; flex-direction: column; border-right: 1px solid var(--line-dark); }
.person-id span { color: #aebfff; font: 700 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .08em; }
.person-id b { margin-top: auto; font-family: var(--source); font-size: 52px; font-weight: 500; }
.person-id small { color: rgba(255,255,255,.5); }
.person-facts { display: grid; grid-template-columns: repeat(3,1fr); }
.person-facts article { padding: 28px 24px; border-right: 1px solid var(--line-dark); }
.person-facts article:last-child { border-right: 0; }
.person-facts span { color: #aebfff; font: 700 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace; text-transform: uppercase; }
.person-facts b { min-height: 82px; margin: 54px 0 12px; display: block; font-size: 16px; line-height: 1.5; }
.person-facts p { margin: 0; color: rgba(255,255,255,.52); font-size: 10px; }
.life-chronology { margin-bottom: 76px; }
.life-chronology .subsection-heading { margin-top: 0; }
.life-chronology ol { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--white); }
.life-chronology li { min-height: 104px; padding: 20px 22px; display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); }
.life-chronology li:last-child { border-bottom: 0; }
.life-chronology time { color: var(--blue); font: 700 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.life-chronology b { font-size: 14px; }
.life-chronology p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.route-explorer { margin-top: 22px; display: grid; grid-template-columns: 1.25fr .75fr; min-height: 480px; border: 1px solid var(--line); background: var(--white); }
.route-map { position: relative; min-height: 480px; overflow: hidden; background-color: #eef1f5; background-image: linear-gradient(rgba(27,43,73,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(27,43,73,.07) 1px,transparent 1px); background-size: 44px 44px; border-right: 1px solid var(--line); }
.map-coordinate { position: absolute; inset: 24px auto 65px 16px; display: flex; flex-direction: column; justify-content: space-between; color: #8b94a5; font: 600 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.route-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-lines path { fill: none; stroke: #315cdb; stroke-width: .6; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.route-lines .edition-path { stroke: #818b9e; stroke-dasharray: 1 2; }
.map-node { position: absolute; left: var(--x); top: var(--y); padding: 0; display: grid; justify-items: center; gap: 5px; transform: translate(-50%,-50%); color: #344054; background: transparent; border: 0; cursor: pointer; }
.map-node i { width: 13px; height: 13px; border: 3px solid #eef1f5; outline: 1px solid #798397; border-radius: 50%; background: #798397; box-shadow: 0 0 0 4px rgba(255,255,255,.5); }
.map-node b { padding: 4px 7px; background: rgba(255,255,255,.9); border: 1px solid var(--line); font-size: 11px; }
.map-node small { color: #6a7486; font: 600 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.map-node.active i { outline-color: var(--blue); background: var(--blue); transform: scale(1.22); }
.map-node.active b { color: var(--blue); border-color: #9db2f1; }
.map-legend { position: absolute; left: 28px; bottom: 24px; display: flex; gap: 20px; }
.map-legend span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; }
.map-legend i { width: 22px; border-top: 1px dashed var(--blue); }
.map-legend span:last-child i { border-color: #818b9e; }
.map-legend b { font-weight: 550; }
.route-map > p { position: absolute; top: 20px; right: 20px; margin: 0; color: var(--muted); font-size: 8px; }
.route-detail { padding: 34px; display: flex; flex-direction: column; align-items: flex-start; }
.route-index { color: var(--blue); font: 700 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .08em; }
.route-detail .evidence { margin-top: 46px; }
.route-detail h3 { margin: 24px 0 12px; font-size: 25px; font-weight: 590; letter-spacing: -.03em; }
.route-detail > p { margin: 0; color: var(--muted); line-height: 1.7; }
.route-detail > small { margin-top: auto; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; line-height: 1.6; }
.route-catalog { margin-top: 78px; }
.split-subheading { grid-template-columns: 1fr .8fr; align-items: end; }
.split-subheading > div { display: grid; gap: 10px; }
.split-subheading > div > span { color: var(--blue); font: 750 9px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .1em; }
.split-subheading h3 { margin: 0; font-size: clamp(28px,3vw,42px); line-height: 1.12; letter-spacing: -.035em; font-weight: 580; }
.route-filters { margin-bottom: 18px; display: flex; gap: 7px; flex-wrap: wrap; }
.route-filters button { min-height: 38px; padding: 0 14px; color: #475467; background: var(--white); border: 1px solid var(--line); cursor: pointer; font-size: 10px; }
.route-filters button.active { color: var(--white); background: var(--navy); border-color: var(--navy); }
.route-record-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.route-record { min-height: 430px; padding: 24px; display: flex; flex-direction: column; background: var(--white); }
.route-record-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.route-record-head > span { color: var(--blue); font: 700 8px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .08em; }
.route-record h4 { margin: 42px 0 22px; font-size: 22px; line-height: 1.25; letter-spacing: -.025em; }
.route-record dl { margin: 0; border-top: 1px solid var(--line); }
.route-record dl > div { padding: 11px 0; display: grid; grid-template-columns: 78px 1fr; gap: 12px; border-bottom: 1px solid var(--line); }
.route-record dt { color: var(--muted); font-size: 8px; }
.route-record dd { margin: 0; color: #344054; font-size: 9px; line-height: 1.6; }
.route-products { display: flex; flex-wrap: wrap; gap: 5px; }
.route-products span { padding: 3px 6px; color: #344054; background: var(--surface-2); border: 1px solid var(--line); }
.route-record > a { margin-top: auto; padding-top: 20px; color: var(--blue); font-size: 9px; text-underline-offset: 4px; }

.daily-date { margin: 0 0 28px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; font: 650 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .08em; }
.daily-date time { color: #344054; }

.learning { border-top: 1px solid var(--line); }
.learning-shell { display: grid; grid-template-columns: .34fr 1.66fr; min-height: 600px; background: var(--white); border: 1px solid var(--line); }
.learning-modes { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.learning-modes button { flex: 1; min-height: 110px; padding: 24px; display: grid; grid-template-columns: 36px 1fr; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: var(--white); color: var(--muted); text-align: left; cursor: pointer; }
.learning-modes button:last-child { border-bottom: 0; }
.learning-modes button span { font: 700 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.learning-modes button b { color: var(--ink); font-size: 13px; }
.learning-modes button.active { background: var(--navy); color: #aebfff; }
.learning-modes button.active b { color: var(--white); }
.learning-panels { min-width: 0; display: grid; grid-template-columns: 1fr .7fr; }
.learning-panel { padding: 44px; border-right: 1px solid var(--line); }
.learning-index, .evidence-quiz > span { color: var(--blue); font: 700 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .08em; }
.learning-panel h3 { margin: 72px 0 16px; max-width: 580px; font-size: 34px; line-height: 1.15; letter-spacing: -.035em; }
.learning-panel > p { max-width: 650px; color: var(--muted); line-height: 1.75; }
.learning-panel ol { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: learning; border-top: 1px solid var(--line); }
.learning-panel li { counter-increment: learning; min-height: 52px; display: grid; grid-template-columns: 34px 1fr; align-items: center; border-bottom: 1px solid var(--line); color: #344054; font-size: 11px; }
.learning-panel li::before { content: counter(learning,decimal-leading-zero); color: var(--blue); font: 700 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.evidence-quiz { padding: 34px; background: #f8f9fb; }
.evidence-quiz h3 { margin: 54px 0 28px; font-size: 22px; line-height: 1.35; }
.evidence-quiz > div { display: grid; gap: 8px; }
.evidence-quiz button { padding: 15px; color: #344054; background: var(--white); border: 1px solid var(--line); text-align: left; cursor: pointer; font-size: 10px; line-height: 1.5; }
.evidence-quiz button:hover, .evidence-quiz button.selected { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.evidence-quiz > p { margin: 28px 0 0; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; line-height: 1.65; }
.evidence-quiz > p.correct { color: #067a6f; }
.evidence-quiz > p.wrong { color: var(--warning); }

html[lang="en"] .hero h1, html[lang="en"] .section-heading h2, html[lang="en"] .book-intro h2, html[lang="en"] .daily-copy h2, html[lang="en"] .about h2 { letter-spacing: -.055em; }
html[lang="en"] .desktop-nav { font-size: 11px; }
html[lang="ja"] .hero h1, html[lang="ja"] .section-heading h2, html[lang="ja"] .book-intro h2, html[lang="ja"] .daily-copy h2, html[lang="ja"] .about h2,
html[lang="ko"] .hero h1, html[lang="ko"] .section-heading h2, html[lang="ko"] .book-intro h2, html[lang="ko"] .daily-copy h2, html[lang="ko"] .about h2 { letter-spacing: -.035em; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-visual { max-width: 900px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .taxonomy-ribbon { grid-template-columns: repeat(4,1fr); }
  .person-profile { grid-template-columns: 1fr; }
  .person-id { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .learning-shell { grid-template-columns: 1fr; }
  .learning-modes { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); }
  .learning-modes button { border-bottom: 0; border-right: 1px solid var(--line); }
  .portal-index { grid-template-columns: 1fr 1fr; }
  .route-record-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  section[id] { scroll-margin-top: 64px; }
  .section-shell { width: min(100% - 32px,680px); }
  .site-header { height: 64px; padding-inline: 16px; }
  .locale-preview-banner { top: 64px; padding-block: 9px; align-items: flex-start; flex-direction: column; gap: 6px; }
  .locale-preview-banner div { display: grid; gap: 3px; }
  .locale-preview-banner > b { align-self: flex-start; }
  .language-options { width: min(244px,calc(100vw - 32px)); }
  .prototype-badge { display: none; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { display: none; }
  .mobile-menu { top: 64px; }
  .hero { min-height: auto; gap: 52px; padding-block: 64px; }
  .hero h1 { font-size: clamp(46px,13vw,68px); }
  .hero-lead { font-size: 14px; }
  .hero-proof { margin-top: 42px; }
  .hero-proof span { min-height: 56px; display: grid; place-content: center; gap: 2px; text-align: center; }
  .record-body { grid-template-columns: 1fr; }
  .source-preview { min-height: 330px; border-right: 0; border-bottom: 1px solid var(--line); }
  .record-panel { min-height: 400px; }
  .principle-strip { text-align: left; }
  .history, .explore, .reader, .journey, .learning, .trust { padding-block: 80px; }
  .section-heading h2, .book-intro h2, .about h2 { font-size: 40px; }
  .split-heading, .book-layout, .about-layout { grid-template-columns: 1fr; gap: 30px; }
  .portal-index { width: min(100% - 32px,680px); grid-template-columns: 1fr; }
  .portal-index a { min-height: 98px; }
  .search-panel { display: block; }
  .search-box { max-width: none; }
  .filter-chips { margin-top: 12px; justify-content: flex-start; }
  .herb-grid { grid-template-columns: 1fr; }
  .book-stat-grid { margin-top: 20px; }
  .book-stat-grid article { min-height: 142px; padding: 20px; }
  .book-stat-grid b { font-size: 46px; }
  .taxonomy-ribbon { overflow-x: auto; justify-content: flex-start; padding-bottom: 10px; }
  .taxonomy-ribbon span { white-space: nowrap; }
  .history-ledger article { grid-template-columns: 1fr; gap: 13px; padding: 24px; }
  .history-ledger article > .evidence { justify-self: start; }
  .history-facts { grid-template-columns: 1fr 1fr; }
  .book-history-track, .honors-grid { grid-template-columns: 1fr; }
  .book-history-track li { grid-template-columns: 72px 1fr; }
  .collection-overview { grid-template-columns: 1fr; }
  .collection-target { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .edition-track { grid-template-columns: 1fr 1fr; }
  .reader-workspace { grid-template-columns: 1fr; }
  .reader-image-viewport { min-height: 540px; padding: 34px; }
  .reader-text-panel { border-left: 0; border-top: 1px solid var(--line); }
  .person-facts { grid-template-columns: 1fr; }
  .person-facts article { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .person-facts article:last-child { border-bottom: 0; }
  .person-facts b { min-height: auto; margin-top: 28px; }
  .route-explorer { grid-template-columns: 1fr; }
  .route-map { border-right: 0; border-bottom: 1px solid var(--line); }
  .route-detail { min-height: 390px; }
  .life-chronology li { grid-template-columns: 72px 1fr; gap: 12px; }
  .life-chronology li .evidence { grid-column: 2; justify-self: start; }
  .split-subheading { grid-template-columns: 1fr; }
  .route-record-grid { grid-template-columns: 1fr; }
  .route-record { min-height: 380px; }
  .learning-panels { grid-template-columns: 1fr; }
  .learning-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; padding-left: 22px; }
  .timeline-track { top: 8px; bottom: 8px; left: 26px; width: 1px; height: auto; }
  .timeline-item { display: grid; grid-template-columns: 24px 72px 1fr; align-items: center; padding: 10px 0; text-align: left; }
  .timeline-item::before, .timeline-item.active::before { margin: 0; }
  .timeline-detail { grid-template-columns: 1fr; }
  .daily-herb { width: min(100% - 32px,680px); grid-template-columns: 1fr; margin-bottom: 80px; }
  .facsimile-sheet { min-height: 420px; }
  .daily-copy { padding: 52px 28px; }
  .daily-copy h2 { font-size: 68px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid article { min-height: 210px; }
  .trust-grid h3 { margin-top: 42px; }
  .pipeline-heading { display: grid; align-content: center; }
  .verification-pipeline li { grid-template-columns: 34px 1fr auto; gap: 10px; padding: 14px; }
  .verification-pipeline li div { display: grid; grid-template-columns: 1fr; gap: 3px; }
  footer { display: block; }
  .footer-notice { margin-top: 24px; text-align: left; }
  .footer-links { justify-content: flex-start; }
  .dialog-hero, .dialog-body { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 440px) {
  .brand-copy { display: none; }
  .hero-actions .button { width: 100%; }
  .hero-proof b { font-size: 10px; }
  .record-toolbar { font-size: 7px; }
  .record-panel h2 { font-size: 48px; }
  .herb-card { min-height: 290px; padding: 22px; }
  .book-stat-grid { grid-template-columns: 1fr; }
  .history-facts, .edition-track { grid-template-columns: 1fr; }
  .taxonomy-ribbon { grid-template-columns: 1fr 1fr; }
  .collection-phases { padding: 24px 14px; }
  .collection-phases li { padding-inline: 6px; }
  .reader-toolbar { align-items: start; padding-block: 12px; }
  .reader-toolbar > div:first-child { display: grid; gap: 5px; }
  .reader-image-viewport { min-height: 440px; padding: 24px; }
  .reader-panel { padding: 30px 22px; }
  .reader-metadata { grid-template-columns: 1fr; }
  .route-map { min-height: 410px; }
  .map-legend { right: 20px; flex-direction: column; gap: 8px; }
  .route-map > p { max-width: 180px; text-align: right; }
  .learning-modes button { min-height: 88px; padding: 14px 8px; grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .learning-panel, .evidence-quiz { padding: 28px 22px; }
  .learning-panel h3 { margin-top: 48px; font-size: 28px; }
  .facsimile-toolbar { display: grid; }
  .daily-copy dl div { grid-template-columns: 1fr; gap: 4px; }
  .verification-pipeline li { grid-template-columns: 28px 1fr; }
  .verification-pipeline li > i { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Public reading scale: balanced for the Codex side panel and normal browsers. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: 15px; line-height: 1.68; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { font-size: 10px; }
.desktop-nav { font-size: 13px; }
.language-switch { font-size: 12px; }
.eyebrow { font-size: 11px; }
.hero h1 { font-size: clamp(46px,5vw,68px); }
.hero-lead { font-size: 16px; line-height: 1.75; }
.section-heading h2,
.book-intro h2,
.daily-copy h2,
.about h2 { font-size: clamp(34px,3.5vw,50px); }
.section-heading > p,
.subsection-heading > p,
.split-subheading > p { font-size: 14px; line-height: 1.75; }
.subsection-heading h3,
.split-subheading h3 { font-size: clamp(25px,2.5vw,36px); }
.history-ledger h3 { font-size: 20px; }
.history-ledger div > p:last-child { font-size: 14px; line-height: 1.72; }
.history-facts b { font-size: 30px; }
.history-facts span,
.book-history-track p,
.honors-grid p { font-size: 12px; line-height: 1.65; }
.book-history-track b { font-size: 16px; }
.honors-grid b { font-size: 17px; }
.herb-card h3 { font-size: 22px; }
.herb-card h3 small { font-size: 12px; }
.herb-card p { font-size: 14px; line-height: 1.7; }
.card-evidence { font-size: 11px; }
.record-panel h2 { font-size: 46px; }
.record-fields dd { font-size: 13px; }
.record-caption { font-size: 11px; line-height: 1.6; }
.reader-panel h3 { font-size: 26px; }
.reader-metadata dd { font-size: 12px; }
.person-facts b { font-size: 16px; }
.person-facts p { font-size: 12px; line-height: 1.65; }
.life-chronology b { font-size: 15px; }
.life-chronology p { font-size: 13px; line-height: 1.7; }
.timeline-item span { font-size: 12px; }
.timeline-detail h3 { font-size: 21px; }
.route-detail h3 { font-size: 23px; }
.route-record h4 { font-size: 20px; }
.route-record dd { font-size: 12px; line-height: 1.7; }
.route-record > a { font-size: 11px; }
.daily-copy blockquote { font-size: 17px; }
.daily-copy dd { font-size: 13px; }
.trust-grid h3 { font-size: 19px; }
.trust-grid p { font-size: 14px; line-height: 1.7; }
.verification-pipeline li b { font-size: 14px; }
.verification-pipeline li small { font-size: 12px; }
.learning-modes button b { font-size: 14px; }
.learning-panel h3 { font-size: 29px; }
.learning-panel li,
.evidence-quiz button,
.evidence-quiz > p { font-size: 13px; }
.about-copy > p { font-size: 15px; line-height: 1.75; }
.collaboration-contact { margin: 22px 0 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: rgba(255,255,255,.64); font-size: 13px; }
.collaboration-contact span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.collaboration-contact a { color: #fff; font-weight: 650; text-underline-offset: 4px; }
.footer-notice { font-size: 12px; line-height: 1.65; }
.public-data-state { font-size: 10px; }

.record-toolbar,
.scan-index,
.record-kicker,
.record-fields dt,
.evidence-path-labels,
.card-top,
.facsimile-toolbar,
.sheet-code,
.daily-copy dt,
.trust-number,
.reader-metadata dt,
.map-legend span,
.route-map > p,
.route-record dt { font-size: 10px; }

@media (max-width: 780px) {
  body { font-size: 15px; }
  .hero h1 { font-size: 36px; line-height: 1.12; letter-spacing: -.04em; }
  .hero-lead { font-size: 15px; }
  .section-heading h2,
  .book-intro h2,
  .about h2 { font-size: 30px; line-height: 1.16; letter-spacing: -.035em; }
  .subsection-heading h3,
  .split-subheading h3 { font-size: 26px; }
  .daily-copy h2 { font-size: 46px; }
  .record-panel h2 { font-size: 40px; }
  .history-ledger h3 { font-size: 19px; }
  .dialog-hero h2 { font-size: 38px; }
  .learning-panel h3 { font-size: 26px; }
  .legacy-interface-head { display: block; }
  .legacy-interface-head > b { display: inline-block; margin-top: 14px; }
  .legacy-interface-fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 440px) {
  .hero h1 { font-size: 34px; }
  .section-heading h2,
  .book-intro h2,
  .about h2 { font-size: 28px; }
  .subsection-heading h3,
  .split-subheading h3 { font-size: 24px; }
  .daily-copy h2 { font-size: 40px; }
  .record-panel h2 { font-size: 36px; }
  .source-preview b { font-size: 32px; }
  .footer-notice { font-size: 12px; }
}

.materia-search-card{text-decoration:none}.materia-search-card h3{margin-block:10px}.materia-search-card .card-type{align-self:start}

/* The home page starts with the catalog and its search controls. */
.hero {
  min-height: 0;
  grid-template-columns: 1fr minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 80px);
  padding-block: clamp(32px, 6vw, 72px);
}
.hero h1 { font-size: clamp(38px, 5.3vw, 72px); }
.hero-lead { margin-top: 18px; }
.hero-reader-link { display: inline-block; margin-top: 13px; color: var(--blue); font-weight: 650; }
.hero-reader-link.sample-link { margin-inline-start: 16px; }
.hero-search { min-width: 0; padding: clamp(16px, 2.6vw, 30px); background: var(--white); border: 1px solid var(--line); }
#herb-search-form { scroll-margin-top: 88px; }
#herb-search-form > label { display: inline-block; margin-bottom: 9px; color: var(--ink); font-size: 15px; font-weight: 650; }
.hero-search-row { display: flex; align-items: stretch; gap: 8px; }
.hero-search-row .search-box { min-width: 0; max-width: none; }
.hero-search-row .search-box svg { flex: 0 0 18px; }
.hero-search-row .search-box input { min-width: 0; font-size: 16px; }
.hero-search-row .button { flex: 0 0 auto; padding-inline: 17px; }
.quick-entries { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 13px; }
.quick-entry {
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.quick-entry:hover { border-color: var(--blue); color: var(--blue); }
.quick-entry:focus-visible, .collection-details > summary:focus-visible, .dialog-review > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.explore { padding-block: 0 40px; }
.explore-heading, .explore-tools { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
.explore-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.explore-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.explore-tools { align-items: center; margin-block: 14px; }
.explore-tools .filter-chips { margin-top: 0; justify-content: flex-start; }
.catalog-topic-link { color: var(--blue); font-size: 14px; font-weight: 650; }
.herb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#herb-grid[hidden] { display: none; }
.herb-card { min-height: 145px; padding: 17px; }
.entry-name { display: flex; justify-content: space-between; gap: 12px; font-size: 22px; font-weight: 650; line-height: 1.25; }
.entry-arrow { color: var(--blue); font-size: 16px; }
.entry-subtitle { margin-top: 4px; color: var(--muted); font-size: 13px; }
.entry-theme { margin: 9px 0 14px; color: #475467; font-size: 14px; line-height: 1.45; }
.herb-card .card-evidence { flex-wrap: wrap; gap: 6px 10px; }
.materia-search-card h3 { margin-block: 6px 0; }
.materia-search-card p { margin-block: 6px 12px; }
#empty-state { padding: 24px 16px; }
#empty-state p { margin: 0 0 10px; }
.collection-details { margin-top: 20px; border-top: 1px solid var(--line); }
.collection-details > summary, .dialog-review > summary { padding-block: 12px; cursor: pointer; font-weight: 650; }
#materia-search-status { padding: 13px; text-align: left; }
.dialog-body .dialog-reference { margin-top: 0; }
.dialog-reference h3 { margin-top: 0; }
.dialog-reference a { color: var(--blue); font-weight: 650; }
.dialog-reference p { margin-block: 8px; }
.dialog-review { margin-top: 24px; border-top: 1px solid var(--line); }
.dialog-review .dialog-meta { margin-block: 0 16px; }

@media (max-width: 1120px) {
  .herb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; gap: 18px; padding-block: 24px 28px; }
  .hero h1 { font-size: clamp(33px, 8vw, 48px); }
  .hero-lead { margin-top: 12px; }
  .herb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .herb-card { padding: 13px; }
  .entry-name { font-size: 18px; }
  .hero-search-row .button { padding-inline: 12px; }
}

footer:has(.icp-filing:not([hidden])) { position: relative; padding-bottom: 68px; }
.icp-filing { position: absolute; inset-inline: 0; bottom: 18px; margin: 0; text-align: center; font-size: 13px; }
.icp-filing a { color: #d2dce8; }
