/* Cucumbs hub v2: explorers, roots, doors. Loads after tokens.css and hub.css.
 * Shared type, status and motion values come from the Cucumbs tokens. */
:root {
  --sans: var(--cu-font-sans);
  --mono: var(--cu-font-mono);
  --radius: var(--cu-radius-lg);
  --warn: #ffd56b;
}
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.kicker { font: 600 0.78rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--vine); margin: 0 0 0.6rem; }
.aside-note { color: var(--muted); font-size: 0.95rem; max-width: 75ch; margin-top: 1.2rem; }
.label-block { display: block; font: 600 0.85rem var(--mono); color: var(--muted); margin-bottom: 0.4rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.next-steps { padding: 2rem 0; }
.next-steps p { margin: 0; font-size: 1.05rem; }
.js-off { border-left: 3px solid var(--human); padding: 0.6rem 1rem; background: var(--surface); border-radius: 6px; margin-bottom: 1.2rem; }
.js-off p { margin: 0 0 0.5rem; }
.cu-notice { border-radius: 6px; max-width: 75ch; }
.cu-status { white-space: nowrap; }
.tag-missing { color: #e7d7d4; background: transparent; border-style: dotted; }

.btn.small { padding: 0.42rem 0.9rem; font-size: 0.88rem; }
.btn:disabled { opacity: 0.45; cursor: default; }
.chip { font: 500 0.9rem var(--sans); color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 0.4rem 0.85rem; border-radius: 999px; cursor: pointer; }
.chip:hover { color: var(--ink); border-color: var(--vine-deep); }
.chip[aria-pressed="true"] { color: #05140d; background: var(--vine); border-color: var(--vine); }
.seg { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.icon-btn { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; width: 2.1rem; height: 2.1rem; font-size: 1.1rem; cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--bad); border-color: var(--bad); }

input[type="text"], select, textarea {
  font: 400 0.95rem var(--sans); color: var(--ink); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.65rem; width: 100%;
}
textarea { font-family: var(--mono); font-size: 0.86rem; line-height: 1.55; resize: vertical; }
select { width: auto; max-width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--vine); outline-offset: 1px; }

/* Page hero */
.page-hero { padding: clamp(3rem, 8vw, 5.5rem) 0 2.2rem; }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); margin: 0 0 1rem; letter-spacing: -0.02em; }

/* Axiom ribbon on explorer pages */
.ax-ribbon { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(244, 227, 181, 0.07), transparent 70%); padding: 1rem 0; }
.ax-ribbon-title { font: 600 0.74rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--human); margin: 0 0 0.5rem; }
.ax-ribbon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
@media (min-width: 900px) { .ax-ribbon ul { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.ax-ribbon li { font-size: 0.95rem; color: var(--muted); }
.ax-ref { font: 600 0.8rem var(--mono); color: var(--human); margin-right: 0.3rem; }
.ax-ribbon q { font-family: var(--serif); color: var(--ink); font-style: italic; }
.ax-tie { display: block; margin-top: 0.15rem; }

/* Packets and issues */
.pkt { font: 400 0.84rem/1.55 var(--mono); color: #d8efe2; background: #050e0a; border: 1px solid var(--line); border-left: 3px solid var(--vine); border-radius: 8px; padding: 0.9rem 1rem; white-space: pre-wrap; word-break: break-word; margin: 0 0 1rem; max-height: 32rem; overflow: auto; }
.pkt.mini { font-size: 0.78rem; padding: 0.6rem 0.8rem; margin: 0.6rem 0; }
.issues { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.4rem; }
.issue { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.92rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.7rem; }
.issue .lvl { flex: none; font: 600 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.1rem 0.45rem; border-radius: 4px; border: 1px solid currentColor; }
.issue.error .lvl { color: var(--bad); }
.issue.warn .lvl { color: var(--warn); border-style: dashed; }
.issue.info .lvl { color: var(--muted); border-style: dotted; }
.issue.ok .lvl { color: var(--good); }

/* Message page */
.shape { list-style: none; counter-reset: sh; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.shape li { display: grid; grid-template-columns: minmax(10rem, 13rem) 1fr; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 1rem; }
.shape li .mono { color: var(--vine); font-weight: 600; font-size: 0.9rem; }
.shape li span + span { color: var(--muted); }
@media (max-width: 600px) { .shape li { grid-template-columns: 1fr; gap: 0.2rem; } }
.presets { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 1.2rem; }
.presets-label { color: var(--muted); font-size: 0.9rem; margin-right: 0.3rem; }
.comp-grid, .dec-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 980px) { .comp-grid, .dec-grid { grid-template-columns: 1.05fr 1fr; } }
.comp-form { display: grid; gap: 0.8rem; }
.comp-form label { display: grid; gap: 0.3rem; font: 600 0.78rem var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.row2 { display: flex; gap: 0.6rem; align-items: end; }
.row2 label { flex: 1; }
.row2 select { width: 100%; }
.row2 .arrow { font-size: 1.4rem; color: var(--vine); padding-bottom: 0.35rem; }
.claims { border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem 0.8rem; margin: 0; }
.claims legend { font: 600 0.78rem var(--mono); letter-spacing: 0.06em; color: var(--vine); padding: 0 0.4rem; }
.claims ul { list-style: none; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.4rem; }
.claim-row { display: flex; gap: 0.4rem; align-items: center; }
.claim-row select { flex: none; width: 8.4rem; font-family: var(--mono); font-size: 0.78rem; }
.comp-out h3, .dec-out h3 { font-size: 1.05rem; margin-top: 0.4rem; }
.parts { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.35rem 0.9rem; margin: 0 0 1.2rem; font-size: 0.92rem; }
.parts dt { color: var(--vine); font-size: 0.78rem; padding-top: 0.15rem; }
.parts dd { margin: 0; }
.parts dd ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.sh { display: inline-flex; align-items: baseline; gap: 0.25rem; background: rgba(95, 211, 160, 0.1); border-radius: 4px; padding: 0 0.3rem; }
.sh-sym { font-family: var(--mono); color: var(--vine); font-weight: 700; }
.sh-plain { font-size: 0.8em; color: var(--muted); font-style: italic; }
.reading { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; }
.reading h4 { font: 600 0.78rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--human); margin: 0.9rem 0 0.4rem; }
.reading h4:first-child { margin-top: 0; }
.reading ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.reading li, .reading p { font-size: 0.95rem; }
.key { border-collapse: collapse; width: 100%; max-width: 34rem; font-size: 0.95rem; }
.key caption { text-align: left; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.4rem; }
.key th, .key td { text-align: left; border-bottom: 1px solid var(--line); padding: 0.4rem 0.6rem; }
.key td.mono { color: var(--vine); font-size: 1.05rem; width: 6rem; }

/* Loop page */
.loop-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; margin: 1.2rem 0; }
.steppers { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.loop-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .loop-grid { grid-template-columns: 1.1fr 1fr; } }
.ring-fig { margin: 0; }
.ring-fig figcaption { color: var(--muted); font-size: 0.85rem; text-align: center; }
#loop-ring { width: 100%; height: auto; display: block; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 3; }
.ring-progress { fill: none; stroke: var(--vine); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 11.1 100; transition: stroke-dasharray var(--cu-duration-base) var(--cu-ease); }
.ring-return { fill: none; stroke: var(--human); stroke-width: 2; stroke-dasharray: 4 4; }
.arrowfill { fill: var(--human); }
.ring-core { fill: var(--bg-2); stroke: var(--line); }
.ring-step { fill: var(--ink); font: 600 30px var(--serif); text-anchor: middle; }
.ring-sub { fill: var(--muted); font: 400 15px var(--sans); text-anchor: middle; }
.ring-count { fill: var(--vine); font: 600 14px var(--mono); text-anchor: middle; }
.station { cursor: pointer; }
.st-halo { fill: var(--vine); opacity: 0; transition: opacity var(--cu-duration-base); }
.st-dot { fill: var(--surface); stroke: var(--line-strong, #3c6152); stroke-width: 2; }
.st-num { fill: var(--muted); font: 600 18px var(--mono); text-anchor: middle; }
.st-label { fill: var(--ink); font: 500 19px var(--sans); }
.st-label.end { text-anchor: end; }
.st-label.mid { text-anchor: middle; }
.station.is-done .st-dot { stroke: var(--vine-deep); fill: #12352a; }
.station.is-done .st-num { fill: var(--vine); }
.station.is-current .st-halo { opacity: 0.25; }
.station.is-current .st-dot { fill: var(--vine); stroke: var(--vine); }
.station.is-current .st-num { fill: #05140d; }
.station:hover .st-dot, .station:focus-visible .st-dot { stroke: var(--human); }
.station:focus { outline: none; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--vine); border-radius: 10px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.step-card h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.step-card .who { font: 600 0.85rem var(--mono); color: var(--human); }
.record h3 { font-size: 1.05rem; }
.record-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.rec { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.6rem; align-items: baseline; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.92rem; }
.rec-meta { grid-column: 2; font: 400 0.75rem var(--mono); color: var(--muted); }
.rec.is-fresh { border-color: var(--vine-deep); box-shadow: 0 0 0 1px var(--vine-deep) inset; }
.rec.is-superseded { opacity: 0.6; }
.rec.is-superseded .rec-text { text-decoration: line-through; text-decoration-color: var(--muted); }
.loop9 { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .loop9 { grid-template-columns: 1fr 1fr 1fr; } }
.loop9-step { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; }
.loop9-step h3 { display: flex; gap: 0.6rem; align-items: center; }
.loop9-step .n { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid var(--vine); color: var(--vine); font: 600 0.85rem var(--mono); }
.loop9-step p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.examples { display: grid; gap: 2rem; }
.example { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem 1.4rem; }
.ex-intro { color: var(--muted); }
.wx-list { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.9rem; }
.wx h4 { margin: 0 0 0.2rem; font-size: 1rem; }
.wx h4 .who { font: 500 0.8rem var(--mono); color: var(--human); margin-left: 0.4rem; }
.wx p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.adds { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.3rem; font-size: 0.9rem; }

/* Evidence page */
.table-wrap { overflow-x: auto; }
.cats { border-collapse: collapse; width: 100%; min-width: 46rem; font-size: 0.94rem; }
.cats th, .cats td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 0.7rem 0.8rem; }
.cats thead th { font: 600 0.75rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cats td.ex { font-family: var(--serif); font-style: italic; color: var(--ink); }
.cats td { color: var(--muted); }
.sr-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sorter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.score { margin: 0; font: 600 0.95rem var(--mono); color: var(--vine); }
.sort-deck { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .sort-deck { grid-template-columns: 1fr 1fr; } }
.sort-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; }
.sort-card .by { font: 600 0.75rem var(--mono); color: var(--human); margin-bottom: 0.3rem; }
.sort-card .claim { font: 400 1.05rem/1.5 var(--serif); }
.sort-card.is-right { border-color: var(--vine-deep); }
.sort-card.is-wrong { border-color: #7a4a44; }
.picks { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pick { cursor: pointer; font-size: 0.8rem; }
.pick:disabled { cursor: default; opacity: 0.4; }
.pick.is-answer { opacity: 1; outline: 2px solid var(--good); outline-offset: 2px; }
.pick.is-chosen:not(.is-answer) { opacity: 1; outline: 2px dashed var(--bad); outline-offset: 2px; }
.feedback { font-size: 0.92rem; color: var(--muted); margin: 0.6rem 0 0; }
.feedback:empty { display: none; }
.answer summary { cursor: pointer; color: var(--vine); font-size: 0.9rem; }
.answer p { font-size: 0.92rem; color: var(--muted); margin-top: 0.4rem; }
.drift-controls { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; margin-bottom: 1rem; }
.hop-label { display: flex; gap: 0.6rem; align-items: center; font-weight: 600; }
.hop-label input { width: 10rem; accent-color: #5fd3a0; }
.hops { list-style: none; display: flex; padding: 0; margin: 0 0 1rem; counter-reset: hop; }
.hops li { flex: 1; text-align: center; font: 500 0.8rem var(--mono); color: var(--muted); border-top: 3px solid var(--line); padding-top: 0.4rem; }
.hops li.is-done { border-color: var(--vine-deep); color: var(--ink); }
.hops li.is-current { border-color: var(--vine); color: var(--vine); }
.drift-claims { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.dc { display: grid; grid-template-columns: auto 1fr auto; gap: 0.2rem 0.7rem; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.8rem; }
.dc-text { font-size: 0.97rem; }
.dc-meta { grid-column: 2; font: 400 0.75rem var(--mono); color: var(--muted); }
.dc-state { grid-column: 3; grid-row: 1; font: 600 0.72rem var(--mono); color: var(--muted); text-align: right; }
.dc.is-drift { border-color: #6b5520; }
.dc.is-drift .dc-state { color: var(--warn); }
.dc.is-dropped { border-style: dashed; border-color: #7a4a44; }
.dc.is-dropped .dc-state { color: var(--bad); }
.dc.is-dropped .dc-text { color: var(--muted); font-style: italic; }
.dc.is-up { border-color: var(--vine-deep); }
.dc.is-up .dc-state, .dc.is-kept .dc-state { color: var(--good); }
@media (max-width: 640px) { .dc { grid-template-columns: auto 1fr; } .dc-state { grid-column: 2; grid-row: auto; text-align: left; } }
.drift-verdict { margin-top: 1rem; font: 400 1.05rem/1.5 var(--serif); color: var(--ink); border-left: 3px solid var(--human); padding-left: 0.9rem; }
.rules { padding-left: 1.3rem; display: grid; gap: 0.6rem; }
.rules li { color: var(--muted); }
.rules strong { color: var(--ink); }
.rules.four { list-style: decimal; }
@media (min-width: 900px) { .rules.four { grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; } }

/* Reconcile page */
.static-rec { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; }
.scen-pick { margin: 1.2rem 0 1rem; }
.scen-q { font-size: 1.35rem; max-width: 60ch; }
.scen-options { color: var(--muted); }
.rec-controls { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; margin-bottom: 1.2rem; }
.rec-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .rec-grid { grid-template-columns: 1fr 1fr; } }
.rec-grid h4 { font: 600 0.78rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--human); margin: 1.2rem 0 0.6rem; }
.rec-grid h4:first-child { margin-top: 0; }
.nodes, .cruxes { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.nd { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--a, var(--vine)); border-radius: 8px; padding: 0.7rem 0.9rem; display: grid; gap: 0.45rem; }
.nd-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.nd-head a { font-weight: 650; color: var(--ink); }
.nd .init { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid var(--a, var(--vine)); color: var(--a, var(--vine)); font: 600 0.85rem var(--serif); }
.conf { margin-left: auto; font: 500 0.72rem var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.5rem; }
.conf-high { border-style: solid; color: var(--ink); }
.conf-medium { border-style: dashed; }
.conf-low { border-style: dotted; }
.nd-reasons { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--muted); }
.crux { background: var(--bg-2); border: 1px dashed var(--line); border-radius: 8px; padding: 0.7rem 0.9rem; }
.crux p { margin: 0 0 0.4rem; font-size: 0.93rem; }
.crux.is-done { border-style: solid; border-color: var(--vine-deep); }
.crux-result { color: var(--good); }
.rec-log { padding-left: 1.3rem; margin: 0; display: grid; gap: 0.3rem; font-size: 0.92rem; color: var(--muted); }
.log-move { color: var(--ink); }
.log-flag { color: var(--warn); }
.log-check { color: var(--good); }
.tally { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.tally-status { font: 400 1.05rem/1.45 var(--serif); margin-bottom: 0.8rem; padding-left: 0.8rem; border-left: 3px solid var(--vine); }
.tally-status.warn { border-left-color: var(--warn); }
.tally-status.split { border-left-color: var(--human); }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.bars li { display: grid; grid-template-columns: 11rem 1fr; gap: 0.2rem 0.8rem; align-items: center; font-size: 0.88rem; }
.bar-label { color: var(--ink); }
.bar { height: 0.7rem; border-radius: 999px; background: var(--vine); min-width: 2px; transition: width var(--cu-duration-base) var(--cu-ease); }
.bar.w-0 { width: 0; background: var(--line); }
.bar.w-1 { width: 20%; } .bar.w-2 { width: 40%; } .bar.w-3 { width: 60%; } .bar.w-4 { width: 80%; } .bar.w-5 { width: 100%; }
.bar-names { grid-column: 2; color: var(--muted); font-size: 0.8rem; }
.vote { margin-top: 1rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; }
.vote summary { cursor: pointer; color: var(--vine); font-weight: 600; }
.vote ul { color: var(--muted); font-size: 0.92rem; }

/* Front door: roots */
.roots-band { background: radial-gradient(900px 420px at 50% 100%, rgba(244, 227, 181, 0.08), transparent 70%); }
.roots-fig { margin: 1.5rem 0 1.5rem; }
#roots-svg { width: 100%; height: auto; display: block; max-height: 560px; }
#roots-cap { text-align: center; color: var(--muted); font-size: 0.95rem; min-height: 3em; max-width: 70ch; margin: 0.4rem auto 0; }
.tie { fill: none; stroke: var(--vine-deep); stroke-width: 1.6; opacity: 0.45; transition: opacity var(--cu-duration-base), stroke var(--cu-duration-base); }
#roots-svg.has-lit .tie { opacity: 0.1; }
#roots-svg .tie.is-lit { opacity: 1; stroke: var(--human); stroke-width: 2.6; }
.trunk circle { fill: var(--bg-2); stroke: var(--vine); stroke-width: 2; }
.trunk text { fill: var(--ink); font: 600 17px var(--serif); text-anchor: middle; }
.trunk .trunk-sub { fill: var(--muted); font: 400 11px var(--sans); }
.grow rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; transition: stroke var(--cu-duration-base); }
.grow text { fill: var(--ink); font: 600 15px var(--sans); text-anchor: middle; }
.grow:hover rect, .grow:focus-visible rect, .grow.is-lit rect { stroke: var(--human); }
.grow:focus, .root:focus { outline: none; }
.root circle { fill: #2a2412; stroke: var(--human); stroke-width: 2; transition: fill var(--cu-duration-base); }
.root .root-n { fill: var(--human); font: 700 20px var(--serif); text-anchor: middle; }
.root:hover circle, .root:focus-visible circle, .root.is-lit circle { fill: var(--human); }
.root:hover .root-n, .root:focus-visible .root-n, .root.is-lit .root-n { fill: #1a1408; }
.ground { fill: var(--muted); font: 500 12px var(--mono); letter-spacing: 0.14em; text-anchor: middle; text-transform: uppercase; }
.roots-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 980px) { .roots-grid { grid-template-columns: 1.3fr 1fr; } }
.axioms-list { list-style: none; counter-reset: ax; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.axiom { counter-increment: ax; position: relative; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--human); border-radius: 10px; padding: 0.9rem 1.1rem 0.9rem 3.3rem; transition: border-color var(--cu-duration-base); scroll-margin-top: 80px; }
.axiom::before { content: counter(ax); position: absolute; left: 1rem; top: 0.85rem; font: 700 1.3rem var(--serif); color: var(--human); }
.axiom.is-lit, .axiom:target { border-color: var(--human); background: #17291f; }
.ax-text { font: 600 1.12rem/1.4 var(--serif); color: var(--ink); margin: 0 0 0.3rem; }
.ax-line { color: var(--muted); font-style: italic; margin: 0 0 0.4rem; }
.ax-grows { font-size: 0.85rem; color: var(--muted); margin: 0; }
.grew-title { font-size: 1.15rem; }
.growths { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.growth { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem; transition: border-color var(--cu-duration-base); }
.growth.is-lit { border-color: var(--human); }
.growth h3 { font-size: 1rem; margin: 0 0 0.15rem; }
.growth h3 a { color: var(--ink); }
.growth p { margin: 0 0 0.3rem; color: var(--muted); font-size: 0.9rem; }
.growth ul { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; color: var(--muted); }

/* Front door: doors and explorers */
.doors { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .doors { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .doors { grid-template-columns: 1fr 1fr 1fr; } }
.door { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--a); border-radius: 12px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; transition: transform var(--cu-duration-base) var(--cu-ease); }
.door:hover { transform: translateY(-3px); }
.door-link { display: grid; grid-template-columns: auto 1fr; gap: 0 0.8rem; text-decoration: none; color: var(--ink); margin-bottom: 0.7rem; }
.door-link .init { grid-row: span 3; display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--a); color: var(--a); font: 600 1.2rem var(--serif); }
.door-name { font: 600 1.25rem var(--serif); }
.door-role { font: 600 0.78rem var(--mono); color: var(--a); }
.door-site { font-size: 0.88rem; color: var(--vine); text-decoration: underline; text-underline-offset: 3px; }
.door-link:hover .door-site { color: var(--ink); }
.door p { color: var(--muted); font-size: 0.94rem; }
.door-adds { margin: auto 0 0; font-size: 0.86rem; }
.door-adds span { font: 600 0.72rem var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.explorers { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .explorers { grid-template-columns: 1fr 1fr; } }
.explorers a { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; text-decoration: none; color: var(--ink); background: linear-gradient(135deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem; height: 100%; transition: border-color var(--cu-duration-base); }
.explorers a:hover { border-color: var(--vine); }
.ex-n { grid-row: span 2; font: 700 2rem/1 var(--serif); color: var(--vine); }
.explorers strong { font: 600 1.15rem var(--serif); }
.explorers a span:last-child { color: var(--muted); font-size: 0.94rem; }

/* Front door: map additions */
.panel-extra { color: var(--muted); font-size: 0.92rem; }
.chord { fill: none; stroke: var(--a, var(--vine)); stroke-width: 2; stroke-dasharray: 5 5; opacity: 0.75; }
.node.is-linked .halo { opacity: 0.35; }

/* Footer network list */
.foot-nav { margin-bottom: 1.2rem; }
.foot-title { font: 600 0.75rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--vine); margin-bottom: 0.4rem; }
.foot-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; font-size: 0.9rem; color: var(--muted); }
.top nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }

@media print { .loop-lab, .rec-lab, .drift-lab, .composer, .cu-netbar { display: none; } }
@media (min-width: 1180px) { .doors { grid-template-columns: repeat(4, 1fr); } }

/* v3: journey path, chapter handoffs, richer type rhythm. No surface grain. */
.journey {
  list-style: none;
  margin: 1.6rem 0 1.4rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  max-width: 40rem;
}
.journey li {
  display: flex;
  align-items: center;
}
.journey li:not(:last-child)::after {
  content: "";
  width: 1.4rem;
  height: 0;
  margin: 0 0.35rem;
  border-top: 1px solid var(--line);
}
.journey a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--muted);
  text-decoration: none;
  font: 500 0.95rem var(--serif);
  padding: 0.15rem 0;
}
.journey a:hover { color: var(--ink); }
.journey .jn {
  font: 600 0.72rem var(--mono);
  color: var(--vine);
  letter-spacing: 0.04em;
}
.band-next {
  margin: 2.2rem 0 0;
  max-width: 68ch;
  font: 400 1.05rem/1.55 var(--serif);
  color: var(--muted);
}
.band-next a { font-weight: 600; }

.axioms-list { gap: 0.9rem; }
.axiom { padding: 1.15rem 1.25rem 1.15rem 3.5rem; }
.axiom::before { top: 1.1rem; font-size: 1.45rem; }
.ax-text { font-size: 1.22rem; line-height: 1.4; margin-bottom: 0.45rem; }
.ax-line { font-size: 1.02rem; line-height: 1.55; }

.hero .kicker { margin-bottom: 1rem; }
.page-hero .lede { font: 400 clamp(1.2rem, 2.4vw, 1.6rem)/1.45 var(--serif); max-width: 46ch; }

@media (max-width: 640px) {
  .journey li:not(:last-child)::after { width: 0.7rem; margin: 0 0.2rem; }
}
