:root {
    --paper: #f4f2ec;
    --paper-deep: #e9e6dd;
    --card: #fbfaf6;
    --ink: #15271f;
    --ink-soft: #56645d;
    --line: #d1cec4;
    --white: #ffffff;
    --acid: #d9ff62;
    --blue: #b8d9ff;
    --peach: #ffcbb2;
    --yellow: #f9e293;
    --lavender: #d9cdfd;
    --mint: #bfe8cf;
    --shadow: 0 20px 55px rgba(21, 39, 31, .09);
    --sidebar: 252px;
}

* { box-sizing: border-box; }
site-header, side-navigation, search-view, timeline-view { display: contents; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible, a:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; border-radius: 8px; color: var(--white); background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar);
    flex-direction: column;
    padding: 24px 18px;
    overflow-y: auto;
    color: var(--white);
    background: var(--ink);
}
.brand-row { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0; border: 0; color: var(--white); text-align: left; text-decoration: none; background: transparent; cursor: pointer; }
.brand-mark { display: block; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 12px 12px 12px 3px; object-fit: cover; }
.brand > span { min-width: 0; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .01em; }
.brand small { margin-top: 2px; color: #9fb0a6; font-size: 9px; line-height: 1.35; text-wrap: balance; }
.primary-nav { flex: 1; margin-top: 42px; }
.nav-label { margin: 31px 12px 9px; color: #879a8f; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-item { display: flex; width: 100%; align-items: center; gap: 11px; margin: 2px 0; padding: 10px 12px; border: 0; border-radius: 11px; color: #b8c5bd; background: transparent; font-size: 12px; text-align: left; cursor: pointer; transition: .18s ease; }
.nav-item:hover { color: var(--white); background: rgba(255,255,255,.07); transform: translateX(2px); }
.nav-item.active { color: var(--ink); background: var(--acid); font-weight: 750; }
.nav-symbol { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border: 1px solid currentColor; border-radius: 7px; font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.nav-group { margin-top: 2px; }
.nav-group-toggle i { margin-left: auto; font-style: normal; transition: transform .18s ease; }
.nav-group-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.nav-submenu { margin: 3px 0 5px 24px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.13); }
.nav-submenu[hidden] { display: none; }
.nav-subitem { padding: 8px 10px; font-size: 11px; text-decoration: none; }
.nav-subitem .nav-symbol { width: 22px; height: 22px; flex-basis: 22px; font-size: 8px; }
.nav-feature-link { margin-top: 22px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.11); color: var(--acid); text-decoration: none; }
.garden-link { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding: 10px 4px; color: #91a39a; font-size: 9px; text-decoration: none; }
.garden-link:hover { color: var(--acid); }

.page-shell { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 72px; align-items: center; gap: 20px; padding: 13px clamp(24px, 5vw, 70px); border-bottom: 1px solid rgba(21,39,31,.12); background: rgba(244,242,236,.94); backdrop-filter: blur(16px); }
.search-wrap { display: flex; width: min(560px, 58vw); align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid transparent; border-radius: 11px; color: var(--ink-soft); background: #e9e6dd; }
.search-wrap:focus-within { border-color: var(--ink); background: var(--white); }
.search-wrap input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-wrap input::placeholder { color: #7a867f; }
kbd { padding: 1px 6px; border: 1px solid #cbc8bd; border-radius: 5px; color: #708078; background: var(--card); font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.topbar-link { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 0; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 10px; font-weight: 750; text-decoration: none; }
.icon-button { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.menu-button, .sidebar-close { display: none; }

main { min-height: calc(100vh - 150px); }
.view { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 95px; }
.eyebrow { margin: 0 0 12px; color: #65766d; font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }

/* Quiet homepage — one search surface and one way to wander. */
body[data-view] .topbar { display: none; }
.home-view { width: min(900px, calc(100% - 48px)); min-height: 100vh; padding: clamp(105px, 16vh, 175px) 0 90px; }
.home-search { display: flex; width: min(680px, 100%); align-items: center; gap: 15px; margin: 0 auto; padding: 18px 21px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink-soft); background: rgba(251,250,246,.9); box-shadow: 0 16px 45px rgba(21,39,31,.07); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.home-search:focus-within { border-color: var(--ink); background: var(--white); box-shadow: 0 20px 55px rgba(21,39,31,.11); }
.home-search > span { font-size: 26px; line-height: 1; transform: translateY(-1px); }
.home-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: clamp(16px, 1.8vw, 20px); }
.home-search input::placeholder { color: #7b8780; }
.home-content { width: min(720px, 100%); margin: clamp(95px, 15vh, 155px) auto 0; }
.timeline-feature { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--card); box-shadow: 0 18px 48px rgba(21,39,31,.07); }
.timeline-feature img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: contain; }
.timeline-feature figcaption { display: flex; align-items: center; justify-content: space-between; padding: 19px 23px 20px; border-top: 1px solid var(--line); }
.timeline-feature strong { font: 500 clamp(20px, 2.4vw, 28px)/1 Georgia, "Times New Roman", serif; }
.home-results > p { margin: 0 0 18px; color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.home-results .empty-state { margin-top: 0; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .7fr); gap: clamp(45px, 8vw, 105px); align-items: center; min-height: 440px; padding: clamp(42px, 6vw, 72px); overflow: hidden; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.hero::before { position: absolute; inset: -110px auto auto -60px; width: 310px; height: 310px; border: 1px solid #e2ded2; border-radius: 50%; content: ""; box-shadow: 0 0 0 48px transparent, 0 0 0 49px #e2ded2, 0 0 0 97px transparent, 0 0 0 98px #e2ded2; }
.hero-copy, .orientation-card { position: relative; z-index: 1; }
.hero h1 { max-width: 690px; margin: 0; font: 500 clamp(45px, 5.3vw, 76px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.hero h1 em { position: relative; z-index: 0; font-weight: 500; }
.hero h1 em::after { position: absolute; z-index: -1; right: -5px; bottom: 4px; left: -5px; height: 22%; background: var(--acid); content: ""; transform: rotate(-1deg); }
.hero-intro { max-width: 620px; margin: 24px 0 0; color: var(--ink-soft); font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.primary-button, .secondary-button { min-height: 45px; padding: 0 18px; border-radius: 9px; font-size: 10px; font-weight: 800; cursor: pointer; transition: .18s ease; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid var(--ink); color: var(--white); background: var(--ink); }
.primary-button span { color: var(--acid); }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(21,39,31,.12); }
.orientation-card { padding: 28px; border: 1px solid rgba(21,39,31,.25); background: var(--yellow); box-shadow: 10px 12px 0 rgba(21,39,31,.07); transform: rotate(1.5deg); }
.orientation-number { margin: 0 0 20px; font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.orientation-card h2 { margin: 0; font: 500 27px/1.05 Georgia, "Times New Roman", serif; }
.orientation-flow { display: grid; gap: 6px; margin: 24px 0; }
.orientation-flow span, .orientation-flow strong { padding: 8px 10px; border: 1px solid rgba(21,39,31,.2); font-size: 9px; }
.orientation-flow strong { color: var(--white); background: var(--ink); }
.orientation-flow i { padding-left: 12px; font-style: normal; font-size: 10px; }
.orientation-card a { color: var(--ink); font-size: 9px; font-weight: 800; }

.section-block { margin-top: 75px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; font: 500 clamp(30px, 3.2vw, 42px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.section-heading > p { max-width: 380px; margin: 0; color: var(--ink-soft); font-size: 11px; text-align: right; }
.text-link { padding: 5px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }

.overview-map { min-height: 630px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.overview-map__canvas { position: relative; min-height: 592px; overflow: hidden; border-radius: 14px; background-image: radial-gradient(rgba(21,39,31,.13) .7px, transparent .7px); background-size: 22px 22px; }
.overview-map__canvas::before { position: absolute; inset: 19% 31%; border: 1px solid rgba(21,39,31,.08); border-radius: 50%; content: ""; }
.overview-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.overview-map line { vector-effect: non-scaling-stroke; stroke: #81958a; stroke-width: 1.2; }
.overview-map line.bridge-line { stroke: #b0aaa0; stroke-dasharray: 3 4; }
.overview-root, .overview-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.overview-root { display: grid; width: 178px; height: 178px; place-items: center; align-content: center; border: 2px solid var(--ink); border-radius: 50%; color: var(--white); text-align: center; background: var(--ink); box-shadow: 0 0 0 13px rgba(21,39,31,.05); }
.overview-root span { color: var(--acid); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.overview-root strong { max-width: 120px; margin-top: 7px; font: 500 22px/1.1 Georgia, "Times New Roman", serif; }
.overview-node { display: grid; min-width: 168px; min-height: 106px; place-items: center; align-content: center; padding: 14px; border: 1px solid var(--ink); border-radius: 15px; color: var(--ink); background: var(--node-color); cursor: pointer; box-shadow: 0 9px 22px rgba(21,39,31,.08); transition: .18s ease; }
.overview-node:hover { z-index: 2; transform: translate(-50%, -54%); box-shadow: 0 15px 28px rgba(21,39,31,.14); }
.overview-node > span { font: 850 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.overview-node strong { margin-top: 6px; font: 500 18px/1 Georgia, "Times New Roman", serif; }
.overview-node small { margin-top: 7px; font-size: 8px; }
.bridge-label { position: absolute; padding: 3px 6px; border-radius: 4px; color: #78867f; background: var(--card); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.bridge-label--one { top: 21%; left: 68%; transform: rotate(27deg); }
.bridge-label--two { left: 42%; bottom: 11%; }
.bridge-label--three { left: 20%; top: 27%; transform: rotate(-22deg); }

.domain-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 13px; }
.domain-card { position: relative; display: flex; min-height: 240px; flex-direction: column; grid-column: span 2; padding: 22px; overflow: hidden; border: 1px solid rgba(21,39,31,.2); border-radius: 16px; color: var(--ink); text-align: left; background: var(--domain-color); cursor: pointer; transition: .18s ease; }
.domain-card:nth-child(4), .domain-card:nth-child(5) { grid-column: span 3; }
.domain-card::after { position: absolute; right: -30px; bottom: -50px; width: 135px; height: 135px; border: 1px solid rgba(21,39,31,.18); border-radius: 50%; content: ""; }
.domain-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(21,39,31,.1); }
.domain-card__top { display: flex; align-items: center; justify-content: space-between; }
.domain-card__top i { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid var(--ink); border-radius: 10px; background: rgba(255,255,255,.27); font: 850 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }
.domain-card__top b { font-size: 20px; }
.domain-card h3 { margin: 28px 0 9px; font: 500 24px/1 Georgia, "Times New Roman", serif; }
.domain-card p { margin: 0; font-size: 10px; }
.domain-card__meta { margin-top: auto; padding-top: 20px; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.method-grid article { min-height: 220px; padding: 27px; border-right: 1px solid var(--line); }
.method-grid article:last-child { border-right: 0; }
.method-grid span { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.method-grid h3 { margin: 35px 0 9px; font: 500 25px/1 Georgia, "Times New Roman", serif; }
.method-grid p { margin: 0; color: var(--ink-soft); font-size: 11px; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide-card { position: relative; display: flex; width: 100%; min-height: 238px; flex-direction: column; padding: 23px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); text-align: left; background: var(--card); cursor: pointer; transition: .18s ease; }
.guide-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--guide-color); content: ""; }
.guide-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 25px rgba(21,39,31,.07); }
.guide-card__meta { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.guide-card__meta i { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--ink); border-radius: 7px; color: var(--ink); background: var(--guide-color); font: 850 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }
.guide-card h3 { margin: 25px 0 9px; font: 500 24px/1.08 Georgia, "Times New Roman", serif; }
.guide-card > p { margin: 0; color: var(--ink-soft); font-size: 10px; }
.guide-card__footer { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 22px; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.guide-card__footer b { color: var(--ink); }

.domain-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: end; padding: 10px 0 44px; border-bottom: 1px solid var(--line); }
.domain-header h1 { margin: 0; font: 500 clamp(48px, 6vw, 78px)/.95 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.domain-header > div:first-child > p:last-child { max-width: 730px; margin: 20px 0 0; color: var(--ink-soft); font-size: 13px; }
.domain-summary { display: grid; grid-template-columns: auto auto; gap: 3px 14px; min-width: 220px; padding: 20px; border: 1px solid var(--ink); border-radius: 14px; background: var(--domain-color); }
.domain-summary strong { font: 500 25px/1 Georgia, "Times New Roman", serif; }
.domain-summary span { align-self: center; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.principle-strip { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: var(--card); }
.principle-strip span { display: flex; min-height: 56px; align-items: center; gap: 11px; padding: 13px 18px; border-right: 1px solid var(--line); font-size: 9px; font-weight: 750; }
.principle-strip span:last-child { border-right: 0; }
.principle-strip i { color: var(--ink-soft); font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }

.graph-section { scroll-margin-top: 90px; }
.graph-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 700px; overflow: hidden; border: 1px solid var(--ink); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.graph-panel { position: relative; min-width: 0; overflow: hidden; background-image: radial-gradient(rgba(21,39,31,.16) .7px, transparent .7px); background-size: 21px 21px; }
.graph-panel::before { position: absolute; inset: 18% 27%; border: 1px solid rgba(21,39,31,.09); border-radius: 50%; content: ""; }
.graph-scroll-hint { display: none; }
#domain-graph { position: relative; width: 100%; height: 100%; min-height: 700px; }
.graph-link { stroke: #788d82; stroke-width: 1.2; transition: .2s ease; }
.graph-link--detail { stroke: #a59f94; }
.graph-link.is-active { stroke: var(--ink); stroke-width: 1.8; }
.graph-link.is-muted { opacity: .13; }
.graph-node { outline: none; cursor: pointer; transition: opacity .18s ease; }
.graph-node.is-muted { opacity: .22; }
.graph-node__hit-area { fill: transparent; stroke: none; }
.graph-node__body { fill: var(--card); stroke: #53675c; stroke-width: 1.5; transition: .18s ease; }
.graph-node__orbit { fill: transparent; stroke: rgba(21,39,31,.18); stroke-width: 1; stroke-dasharray: 3 4; }
.graph-node__label { fill: var(--ink); font-size: 9px; font-weight: 700; paint-order: stroke; stroke: var(--card); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.graph-node--root .graph-node__body { fill: var(--ink); stroke: var(--ink); }
.graph-node--root .graph-node__label { fill: var(--white); stroke: none; font: 500 12px Georgia, "Times New Roman", serif; }
.graph-node--cluster .graph-node__body { fill: color-mix(in srgb, var(--graph-color) 62%, var(--card)); stroke: var(--ink); }
.graph-node--cluster .graph-node__label { font-size: 9px; font-weight: 800; }
.graph-node--guide .graph-node__body { fill: var(--acid); stroke: var(--ink); }
.graph-node:hover .graph-node__body, .graph-node:focus .graph-node__body, .graph-node.is-selected .graph-node__body { stroke: var(--ink); stroke-width: 3; filter: drop-shadow(0 4px 5px rgba(21,39,31,.18)); }
.concept-inspector { display: flex; flex-direction: column; padding: 34px 28px; border-left: 1px solid var(--ink); background: var(--paper-deep); }
.inspector-type { color: var(--ink-soft); font-size: 8px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.concept-inspector h3 { margin: 14px 0 12px; font: 500 31px/1.02 Georgia, "Times New Roman", serif; }
.concept-inspector > p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.inspector-connections { display: grid; gap: 5px; margin-top: 30px; }
.inspector-connections > span { margin-bottom: 5px; color: var(--ink-soft); font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.inspector-connections button { padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; text-align: left; background: var(--card); font-size: 9px; cursor: pointer; }
.inspector-connections button:hover { border-color: var(--ink); }
.concept-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 27px; color: var(--ink-soft); font-size: 8px; }
.concept-path i { font-style: normal; }
.concept-path strong { color: var(--ink); }
.inspector-guide { width: 100%; margin-top: auto; }
.inspector-note { margin-top: auto !important; padding-top: 30px; border-top: 1px solid var(--line); font-size: 9px !important; }

.cluster-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cluster-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cluster-card > button { width: 100%; min-height: 168px; padding: 21px; border: 0; color: var(--ink); text-align: left; background: transparent; cursor: pointer; }
.cluster-card > button:hover { background: var(--paper-deep); }
.cluster-card > button > span { color: var(--ink-soft); font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.cluster-card h3 { margin: 20px 0 8px; font: 500 23px/1 Georgia, "Times New Roman", serif; }
.cluster-card p { margin: 0; color: var(--ink-soft); font-size: 9px; }
.cluster-card ul { margin: 0; padding: 9px; border-top: 1px solid var(--line); list-style: none; }
.cluster-card li button { display: grid; width: 100%; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 8px; border: 0; border-radius: 7px; color: var(--ink-soft); text-align: left; background: transparent; font-size: 9px; cursor: pointer; }
.cluster-card li button:hover { color: var(--ink); background: var(--paper-deep); }
.cluster-card li i { width: 7px; height: 7px; border: 1px solid #71847a; border-radius: 50%; }
.cluster-card li i.has-guide { border-radius: 2px; border-color: var(--ink); background: var(--acid); }
.cluster-card li span { padding: 2px 5px; border: 1px solid var(--line); border-radius: 99px; font-size: 7px; font-weight: 800; text-transform: uppercase; }

.library-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.library-header h1 { margin: 0; font: 500 clamp(45px, 6vw, 76px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
.library-header p:last-child { max-width: 650px; margin: 15px 0 0; color: var(--ink-soft); font-size: 12px; }
.library-count { white-space: nowrap; color: var(--ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.domain-filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 25px 0; }
.domain-filter { padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-soft); background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }
.domain-filter:hover, .domain-filter.active { border-color: var(--ink); color: var(--white); background: var(--ink); }
.guide-grid--library { grid-template-columns: repeat(3, minmax(0,1fr)); }
.concept-result::after { position: absolute; right: 17px; top: 17px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 99px; content: "Graph node"; font-size: 6px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.empty-state { padding: 85px 20px; color: var(--ink-soft); text-align: center; }
.empty-state > span { font-size: 35px; }
.empty-state h2 { margin: 12px 0 4px; color: var(--ink); font: 500 29px/1 Georgia, "Times New Roman", serif; }
.empty-state p { margin: 0; font-size: 10px; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px clamp(24px,5vw,70px); border-top: 1px solid var(--line); }
footer strong { font: 500 18px Georgia, "Times New Roman", serif; }
footer p { margin: 4px 0 0; color: var(--ink-soft); font-size: 8px; }
footer a { color: var(--ink); font-size: 9px; font-weight: 800; }

.topic-dialog { width: min(880px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: hidden; border: 0; border-radius: 22px; color: var(--ink); background: var(--card); box-shadow: 0 30px 100px rgba(0,0,0,.32); }
.topic-dialog::backdrop { background: rgba(11,23,17,.75); backdrop-filter: blur(5px); }
.dialog-shell { position: relative; max-height: calc(100vh - 30px); overflow-y: auto; }
.dialog-close { position: sticky; z-index: 5; top: 18px; float: right; display: grid; width: 38px; height: 38px; margin: 18px 18px 0 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); font-size: 24px; line-height: 1; cursor: pointer; }
.dialog-hero { padding: 52px clamp(28px,7vw,72px) 45px; background: var(--topic-color); }
.dialog-hero .eyebrow { color: var(--ink); }
.dialog-hero h1 { max-width: 700px; margin: 14px 0 15px; font: 500 clamp(38px,6vw,60px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.dialog-hero > p { max-width: 650px; margin: 0; font-size: 12px; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.dialog-meta span { padding: 5px 9px; border: 1px solid rgba(21,39,31,.25); border-radius: 99px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.dialog-body { padding: 38px clamp(28px,7vw,72px) 60px; }
.graph-location { display: grid; width: 100%; grid-template-columns: 1fr auto; gap: 4px 20px; margin-bottom: 28px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-align: left; background: var(--card); cursor: pointer; }
.graph-location span { color: var(--ink-soft); font-size: 7px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.graph-location strong { grid-row: 2; font-size: 9px; }
.graph-location i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 8px; font-style: normal; }
.prompt-box { padding: 24px; border-left: 4px solid var(--ink); background: var(--paper-deep); }
.prompt-box span, .content-block > span, .related-guides > span { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 8px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.prompt-box p { margin: 0; font: 500 20px/1.35 Georgia, "Times New Roman", serif; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin-top: 38px; }
.content-block h2 { margin: 0 0 12px; font: 500 26px/1 Georgia, "Times New Roman", serif; }
.content-block p, .content-block li { color: var(--ink-soft); font-size: 10px; }
.content-block ul, .content-block ol { margin: 0; padding-left: 19px; }
.content-block li { margin-bottom: 9px; }
.answer-block, .code-panel { margin-top: 38px; }
.answer-block { padding: 25px; border: 1px solid var(--line); border-radius: 13px; }
.answer-block p { margin-bottom: 0; }
.code-panel { overflow: hidden; border-radius: 13px; color: #e5eee8; background: #102019; }
.code-panel__header { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid rgba(255,255,255,.12); color: #9db0a5; font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.copy-button { padding: 4px 8px; border: 1px solid #52655a; border-radius: 5px; color: #d8e2dc; background: transparent; font-size: 8px; cursor: pointer; }
.code-panel pre { margin: 0; padding: 22px; overflow-x: auto; font: 10px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; tab-size: 4; }
.guide-content-slot[data-state="loading"] { padding: 40px 0; color: var(--ink-soft); font-size: 11px; text-align: center; }
.guide-content-slot[data-state="error"] { padding: 24px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink-soft); font-size: 11px; }

/* Shared baseline (also matches .content-block's existing scale, so it's a
   no-op for guides already using that class). Table/image/inline-code rules
   are scoped to any depth since .content-block never styled those. */
.guide-content h2 { margin: 0 0 12px; font: 500 26px/1 Georgia, "Times New Roman", serif; }
.guide-content table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 10.5px; }
.guide-content th, .guide-content td { padding: 9px 11px; border: 1px solid var(--line); text-align: left; }
.guide-content th { background: var(--paper-deep); font-weight: 750; }
.guide-content img { max-width: 100%; border-radius: 10px; }
.guide-content code:not(pre code) { padding: 1px 5px; border-radius: 4px; background: var(--paper-deep); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Reading-size prose for freeform content written straight into the
   fragment, i.e. NOT wrapped in .content-block/.prompt-box/.answer-block.
   Scoped with the direct-child combinator so it can't out-specificity those
   existing (smaller, denser) block styles used by the 15 migrated guides. */
.guide-content > p, .guide-content > ul, .guide-content > ol, .guide-content > blockquote { margin: 0 0 16px; }
.guide-content > p, .guide-content > li, .guide-content > ul li, .guide-content > ol li { color: var(--ink-soft); font-size: 11.5px; line-height: 1.7; }
.guide-content > ul, .guide-content > ol { padding-left: 20px; }
.guide-content > ul li, .guide-content > ol li { margin-bottom: 8px; }
.guide-content > h2 { margin-top: 34px; }
.guide-content > h2:first-child { margin-top: 0; }
.guide-content > h3 { margin: 26px 0 10px; font: 500 19px/1.2 Georgia, "Times New Roman", serif; }
.guide-content > blockquote { padding: 18px 22px; border-left: 4px solid var(--ink); border-radius: 0 10px 10px 0; background: var(--paper-deep); font: 500 16px/1.4 Georgia, "Times New Roman", serif; color: var(--ink); }
.guide-content > hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.related-guides { margin-top: 38px; padding-top: 25px; border-top: 1px solid var(--line); }
.related-guides > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.related-guides button { display: flex; min-height: 72px; align-items: end; justify-content: space-between; gap: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; text-align: left; background: transparent; font-size: 8px; cursor: pointer; }
.related-guides button:hover { border-color: var(--ink); }
.related-guides i { font-style: normal; }
.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; padding: 11px 16px; border-radius: 9px; color: var(--white); background: var(--ink); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.sidebar-scrim { display: none; }

@media (max-width: 1080px) {
    .hero { grid-template-columns: 1fr; }
    .orientation-card { width: min(430px,100%); }
    .overview-map { min-height: 560px; }
    .overview-map__canvas { min-height: 522px; }
    .overview-node { min-width: 142px; }
    .graph-layout { grid-template-columns: 1fr; }
    .concept-inspector { min-height: 280px; border-top: 1px solid var(--ink); border-left: 0; }
    .inspector-guide, .inspector-note { margin-top: 25px !important; }
    .guide-grid, .guide-grid--library { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
    :root { --sidebar: 224px; }
    .domain-card, .domain-card:nth-child(4), .domain-card:nth-child(5) { grid-column: span 3; }
    .domain-card:last-child { grid-column: 2 / span 4; }
    .cluster-index { grid-template-columns: repeat(2,1fr); }
    .domain-header { grid-template-columns: 1fr; }
    .domain-summary { width: min(100%,420px); }
}

@media (max-width: 760px) {
    .sidebar { width: min(290px,86vw); transform: translateX(-105%); transition: transform .22s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-scrim { position: fixed; z-index: 25; inset: 0; background: rgba(11,23,17,.62); }
    body.sidebar-open .sidebar-scrim { display: block; }
    .sidebar-close, .menu-button { display: grid; }
    .sidebar-close { color: var(--white); font-size: 25px; }
    .page-shell { margin-left: 0; }
    .topbar { gap: 8px; padding: 10px 14px; }
    body[data-view] .topbar { display: flex; min-height: 58px; border-bottom: 0; background: rgba(244,242,236,.94); }
    .search-wrap { width: auto; flex: 1; }
    .search-wrap kbd, .topbar-link { display: none; }
    .view { width: min(100% - 28px,650px); padding: 28px 0 65px; }
    .home-view { min-height: calc(100vh - 58px); padding: clamp(48px, 10vh, 82px) 0 65px; }
    .home-search { gap: 11px; padding: 15px 16px; border-radius: 15px; }
    .home-search > span { font-size: 22px; }
    .home-search kbd { display: none; }
    .home-content { margin-top: clamp(70px, 12vh, 110px); }
    .timeline-feature { border-radius: 15px; }
    .timeline-feature img { max-height: none; }
    .timeline-feature figcaption { padding: 16px 17px; }
    .timeline-feature strong { font-size: 21px; }
    .hero { gap: 45px; min-height: 0; padding: 38px 25px; }
    .hero h1 { font-size: clamp(40px,13vw,59px); }
    .hero-actions, .primary-button, .secondary-button { width: 100%; }
    .primary-button, .secondary-button { justify-content: center; }
    .section-block { margin-top: 57px; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 11px; text-align: left; }
    .overview-map { min-height: 0; padding: 10px; }
    .overview-map__canvas { display: grid; min-height: 0; gap: 8px; padding: 12px; background-size: 18px 18px; }
    .overview-map svg, .overview-map__canvas::before, .bridge-label { display: none; }
    .overview-root, .overview-node { position: relative; left: auto; top: auto; width: 100%; min-width: 0; height: auto; min-height: 92px; transform: none; }
    .overview-root { border-radius: 13px; }
    .overview-node:hover { transform: translateY(-2px); }
    .domain-grid { display: block; }
    .domain-card { min-height: 215px; margin-bottom: 10px; }
    .method-grid, .principle-strip { grid-template-columns: 1fr; }
    .method-grid article, .principle-strip span { border-right: 0; border-bottom: 1px solid var(--line); }
    .method-grid article:last-child, .principle-strip span:last-child { border-bottom: 0; }
    .guide-grid, .guide-grid--library, .cluster-index { grid-template-columns: 1fr; }
    .graph-layout { min-height: 0; }
    .graph-panel { overflow-x: auto; }
    .graph-scroll-hint { position: sticky; z-index: 1; top: 8px; left: 8px; display: inline-block; margin: 8px 0 0 8px; padding: 4px 9px; border-radius: 99px; color: var(--card); background: var(--ink); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    #domain-graph { width: 900px; min-height: 660px; }
    .library-header { display: block; }
    .library-count { margin-top: 20px; }
    .dialog-grid, .related-guides > div { grid-template-columns: 1fr; }
    footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 470px) {
    .domain-summary { grid-template-columns: auto 1fr; }
    .guide-card { min-height: 220px; }
}

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