/* Page-specific components. Depends on tokens.css + base.css. */

/* Home hero */
.hero-home { padding-top: var(--s-8); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-figure { margin: 0; border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--radius); padding: var(--s-3); }
.hero-figure svg { width: 100%; height: auto; }
.hero-ring { fill: none; stroke: var(--line); stroke-dasharray: 2 6; }
.hero-edge { stroke: var(--line-strong); stroke-width: 1; opacity: .55; fill: none; transition: opacity .4s; }
.hero-edge.hero-support { stroke: var(--meridian); stroke-dasharray: 3 3; opacity: .7; }
.hero-edge.dim { opacity: .08; } .hero-edge.hi { opacity: 1; stroke-width: 1.5; }
.hero-node, .hero-ind { transition: opacity .4s; }
.hero-node.dim { opacity: .18; } .hero-ind.dim { opacity: .35; }
.hero-node .shape, .hero-ind .shape { stroke: var(--paper); stroke-width: 1.5; }
.hero-label { font-family: var(--font-display); font-weight: 600; font-size: 13px; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.hero-figure figcaption { min-height: 2.6em; transition: color .3s; }
.hero-figure figcaption { margin-top: var(--s-2); }

/* Journey */
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-7); counter-reset: j; }
@media (max-width: 800px) { .journey { grid-template-columns: 1fr; } }
.journey-step { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.journey-step h2 { font-size: var(--fs-4); margin: var(--s-2) 0 var(--s-3); max-width: 26ch; }
.loop { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.loop-step { font-family: var(--font-mono); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--line-strong); padding: 6px 10px; border-radius: var(--radius-pill); position: relative; animation: loop-pulse 8s infinite; animation-delay: calc(var(--i) * 1s); }
.loop-step:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 4px; color: var(--line-strong); }
@keyframes loop-pulse { 0%, 12.5%, 100% { background: transparent; color: inherit; } 6% { background: var(--ink); color: var(--paper); border-color: var(--ink); } }

/* Capability stack (interactive) */
.stack-layers { display: grid; gap: 6px; margin-top: var(--s-5); }
.stack-layer { display: grid; grid-template-columns: 220px 1fr; gap: var(--s-4); align-items: start; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); text-align: left; width: 100%; transition: border-color .15s, background .15s; position: relative; }
.stack-layer::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 3px; background: var(--line-strong); }
.stack-layer[aria-expanded="true"] { border-color: var(--ink); background: var(--paper-2); }
.stack-layer[aria-expanded="true"]::before { background: var(--meridian); }
.stack-layer h3 { margin: 0; font-size: var(--fs-3); }
.stack-layer .items { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-layer .items span { font-family: var(--font-mono); font-size: var(--fs-0); border: 1px solid var(--line); padding: 3px 8px; border-radius: var(--radius); background: var(--paper); }
.stack-detail { grid-column: 1 / -1; padding-top: var(--s-3); border-top: 1px dashed var(--line); font-size: var(--fs-1); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.stack-arrow { text-align: center; color: var(--line-strong); font-family: var(--font-mono); font-size: var(--fs-0); line-height: 1; }
@media (max-width: 720px) { .stack-layer { grid-template-columns: 1fr; } }

/* Capability map */
.cap-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 1000px) { .cap-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cap-map { grid-template-columns: 1fr; } }
.cap-node { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; background: var(--paper); min-height: 220px; position: relative; }
.cap-node::after { content: ""; position: absolute; right: var(--s-4); top: var(--s-4); width: 10px; height: 10px; border: 1.5px solid var(--meridian); transform: rotate(45deg); }
.cap-node:hover { border-color: var(--ink); }
.cap-node h2 { font-size: var(--fs-4); margin: 0; }
.cap-node .cluster { margin-top: auto; }

/* Services */
.offer-flow { --node: 52px; --pad: var(--s-4); list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.offer-flow li { position: relative; }
/* Rail joining the node centres; a chevron marks the direction between stages. */
.offer-flow li::before { content: ""; position: absolute; top: calc(var(--pad) + var(--node) / 2); left: 0; right: 0; height: 2px; background: var(--meridian); opacity: .35; }
.offer-flow li:first-child::before { left: calc(var(--pad) + var(--node) / 2); }
.offer-flow li:last-child::before { right: calc(100% - var(--pad) - var(--node) / 2); }
.offer-flow li + li::after { content: ""; position: absolute; z-index: 2; top: calc(var(--pad) + var(--node) / 2 + 1px); left: calc(var(--pad) + var(--node) / 2 - 50%); width: 8px; height: 8px; border-top: 2px solid var(--meridian); border-right: 2px solid var(--meridian); transform: translate(-50%, -50%) rotate(45deg); }
.offer-flow a { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: var(--pad); color: inherit; text-decoration: none; border-radius: var(--radius); }
/* No hover fill: it would hide the rail. The node fills and the name underlines instead. */
.offer-flow a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--meridian); }
.offer-node { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: var(--node); height: var(--node); border-radius: 50%; border: 2px solid var(--meridian); background: var(--paper); color: var(--meridian); transition: background .15s ease, color .15s ease; }
.offer-flow a:hover .offer-node, .offer-transversal:hover .offer-node { background: var(--meridian); color: var(--paper); }
.offer-num { margin-top: var(--s-3); font-family: var(--font-mono); font-size: var(--fs-0); color: var(--ink-3); letter-spacing: .08em; }
.offer-flow strong { font-family: var(--font-display); font-size: var(--fs-4); font-weight: 700; line-height: var(--lh-tight); }
.offer-theory { margin-top: auto; padding-top: var(--s-3); font-family: var(--font-mono); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.offer-flow .small { color: var(--ink-2); }
.offer-transversal { --node: 44px; display: grid; grid-template-columns: var(--node) minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: var(--s-4); row-gap: 2px; align-items: center; margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border: 1px dashed var(--meridian); border-radius: var(--radius); color: inherit; text-decoration: none; background: var(--paper); }
.offer-transversal:hover { background: var(--paper-2); }
.offer-transversal .offer-node { grid-row: 1 / span 2; }
.offer-transversal strong { font-family: var(--font-display); }
.offer-transversal .small { grid-column: 2; }
.offer-transversal .offer-theory { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 0; color: var(--meridian); }
@media (max-width: 900px) {
  .offer-flow { grid-template-columns: 1fr; }
  .offer-flow li::before { top: 0; bottom: -12px; left: calc(var(--pad) + var(--node) / 2 - 1px); right: auto; width: 2px; height: auto; }
  .offer-flow li:first-child::before { top: calc(var(--pad) + var(--node) / 2); left: calc(var(--pad) + var(--node) / 2 - 1px); }
  .offer-flow li:last-child::before { bottom: calc(100% - var(--pad) - var(--node) / 2); }
  .offer-flow li + li::after { top: 0; left: calc(var(--pad) + var(--node) / 2); transform: translate(-50%, -50%) rotate(135deg); }
  .offer-flow a { display: grid; grid-template-columns: var(--node) minmax(0, 1fr); column-gap: var(--s-4); row-gap: 2px; }
  .offer-flow .offer-node { grid-row: 1 / span 4; }
  .offer-flow a > :not(.offer-node) { grid-column: 2; }
  .offer-num { margin-top: 0; }
  .offer-theory { padding-top: var(--s-1); }
  .offer-transversal { grid-template-columns: var(--node) minmax(0, 1fr); }
  .offer-transversal .offer-theory { grid-column: 2; grid-row: auto; }
}
.offer { padding-top: var(--s-6); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.two-col { columns: 2; column-gap: var(--s-6); padding-left: 1.2em; }
@media (max-width: 700px) { .two-col { columns: 1; } }

/* Platform chain */
.chain { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); }
.chain li { border-top: 2px solid var(--ink); padding-top: var(--s-3); font-size: var(--fs-1); position: relative; }
.chain li + li::before { content: "→"; position: absolute; left: -18px; top: -12px; color: var(--line-strong); font-family: var(--font-mono); }
.chain .label { display: block; margin-bottom: var(--s-2); color: var(--ink); }
@media (max-width: 960px) { .chain { grid-template-columns: 1fr; } .chain li + li::before { display: none; } }
.chain-phases { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0; }
.chain-phases li { font-family: var(--font-mono); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .06em; padding: 8px 12px; border: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; background: var(--paper); }

/* Lists */
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: var(--s-2) 0; border-bottom: 1px dashed var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain .meta { margin-top: 4px; }

/* Observatory */
.obs-stats { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); margin-top: var(--s-5); font-family: var(--font-mono); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.obs-stats b { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-5); color: var(--ink); letter-spacing: 0; text-transform: none; line-height: 1; margin-bottom: 4px; }
.iotd { border-left: 3px solid var(--inquiry); }
.iotd-q { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-5); line-height: 1.25; margin: var(--s-2) 0 var(--s-3); }
.iotd-q a { color: inherit; text-decoration: none; } .iotd-q a:hover { text-decoration: underline; text-decoration-color: var(--inquiry); }
h1.iotd-q { font-size: var(--fs-6); max-width: 30ch; }

.signal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.signal-grid > :only-child { grid-column: 1 / -1; }
@media (max-width: 800px) { .signal-grid { grid-template-columns: 1fr; } }
.signal { border: 1px solid var(--line); border-left: 3px solid var(--signal); border-radius: var(--radius); background: var(--paper); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); scroll-margin-top: 90px; }
.signal:target { outline: 2px solid var(--signal); outline-offset: 2px; }
.signal h3 { font-size: var(--fs-3); margin: 0; }
.signal p { margin: 0; }
.signal-metrics { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); }
.metric { display: inline-flex; flex-direction: column; gap: 3px; }
.signal[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: end; padding: var(--s-4); border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--radius); }
.filters label { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.filters select, .filters input[type="search"], .search-panel input { font: inherit; font-size: var(--fs-2); min-height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.filters input[type="range"] { min-height: 44px; accent-color: var(--meridian); }
/* A select sizes to its longest option; cap it so long labels truncate instead of pushing the page sideways on phones. */
.filters label { max-width: 100%; min-width: 0; }
.filters select { max-width: 100%; text-overflow: ellipsis; }
.frame-head select { font: inherit; font-size: var(--fs-1); min-height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); max-width: 60vw; }

.lifecycle { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lifecycle li { flex: 1 1 120px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-right: 1px solid var(--line); background: var(--paper); position: relative; }
.lifecycle li:last-child { border-right: 0; }
.lifecycle li[aria-current="step"] { background: var(--trend-soft); box-shadow: inset 0 -3px 0 var(--trend); }
.lifecycle-current { margin-top: var(--s-5); }

.tension { border: 1px solid var(--line); border-left: 3px solid var(--tension); border-radius: var(--radius); padding: var(--s-5); background: var(--paper); scroll-margin-top: 90px; display: flex; flex-direction: column; gap: var(--s-4); }
.tension:target { outline: 2px solid var(--tension); outline-offset: 2px; }
.tension h2 { margin: 0; }
.tension-bar { display: grid; grid-template-columns: max-content 1fr max-content; gap: var(--s-3); align-items: center; }
.tension-bar .pole { font-family: var(--font-mono); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .08em; }
.tension-bar .bar { height: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); position: relative; background: var(--paper-2); overflow: hidden; }
.tension-bar .bar i { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% * var(--a) / (var(--a) + var(--b))); background: repeating-linear-gradient(-45deg, var(--tension) 0 4px, transparent 4px 8px); }
.tension-bar .bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--ink); }

.timeline-list { list-style: none; padding: 0; margin: 0; }
.timeline-list li { display: grid; grid-template-columns: 80px 120px 1fr; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px dashed var(--line); align-items: baseline; font-size: var(--fs-1); }
.timeline-list li[hidden] { display: none; }
@media (max-width: 600px) { .timeline-list li { grid-template-columns: 70px 1fr; } .timeline-list li .label { grid-column: 2; } }
.timeline-svg { width: 100%; height: auto; display: block; }

/* Graphs */
.graph-body { padding: 0; position: relative; min-height: 420px; }
.graph-body.tall { min-height: 560px; }
.graph { width: 100%; height: 100%; min-height: 420px; display: block; touch-action: none; }
.hero-graph { min-height: 0; height: auto; touch-action: auto; }
.graph-body.tall .graph { min-height: 560px; }
.timeline-svg .edge, .graph .edge { stroke: var(--line-strong); stroke-width: 1; fill: none; opacity: .8; }
.graph .edge.long { opacity: .35; }
.graph .edge.dim { opacity: .12; }
.graph .edge.hi { stroke: var(--ink); stroke-width: 1.5; opacity: 1; }
.graph .node { cursor: pointer; }
.graph .node:focus:not(:focus-visible) { outline: none; }
.timeline-svg .node .shape, .graph .node .shape { stroke: var(--paper); stroke-width: 1.5; }
.graph .node text { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-2); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.graph .node.dim { opacity: .18; }
.graph .node.focus .shape { stroke: var(--ink); stroke-width: 2.5; }
.graph .edge-label { font-family: var(--font-mono); font-size: 9px; fill: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; pointer-events: none; }
.timeline-svg .layer-label, .graph .layer-label { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; }
.timeline-svg .layer-line, .graph .layer-line { stroke: var(--line); stroke-dasharray: 2 4; }
.graph-detail { position: absolute; right: var(--s-3); bottom: var(--s-3); max-width: 320px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--s-3) var(--s-4); box-shadow: var(--shadow); font-size: var(--fs-1); }
.graph-detail h4 { margin: 0 0 var(--s-2); }
.graph-detail p { margin: 0 0 var(--s-2); }
.graph-body.with-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 24rem); }
.graph-panel { border-left: 1px solid var(--line); padding: var(--s-4) var(--s-5); max-height: 720px; overflow-y: auto; font-size: var(--fs-1); background: var(--paper); }
.graph-panel h3 { font-size: var(--fs-4); line-height: var(--lh-snug); margin: var(--s-3) 0; }
.graph-panel section { border-top: 1px solid var(--line); padding-top: var(--s-3); margin-top: var(--s-4); }
.graph-panel h5 { margin: 0 0 var(--s-2); }
.graph-panel p { margin: 0 0 var(--s-2); }
.graph-panel .prov-item + .prov-item { margin-top: var(--s-3); }
.graph-panel .prov-sources { margin: var(--s-2) 0 0; padding-left: var(--s-5); }
.graph-panel .prov-sources li + li { margin-top: var(--s-3); }
.graph-panel blockquote { margin: var(--s-1) 0 0; padding-left: var(--s-3); border-left: 2px solid var(--line-strong); color: var(--ink-2); font-style: italic; }
@media (max-width: 900px) { .graph-body.with-panel { grid-template-columns: 1fr; } .graph-panel { border-left: 0; border-top: 1px solid var(--line); max-height: none; } }
@media (max-width: 640px) { .graph-detail { left: var(--s-3); max-width: none; } }
.bridge-figure { margin: 0; }
.bridge-figure svg { width: 100%; height: auto; }

/* Embeds */
.embed-frame iframe { width: 100%; height: 72vh; min-height: 520px; border: 0; background: var(--paper-2); display: block; }
/* The env-scan panel renders a fixed-height dashboard, so the generic 72vh frame
   leaves a tall band of empty space below its content. */
.envscan iframe { height: 35rem; min-height: 30rem; }
.envscan .frame-head { flex-wrap: wrap; row-gap: var(--s-2); }

/* Search */
.search-panel { border-top: 1px solid var(--line); background: var(--paper); padding: var(--s-4) 0; }
.search-panel input { width: 100%; }
.search-results { margin-top: var(--s-3); display: grid; gap: 2px; max-height: 50vh; overflow: auto; }
.search-results a { display: grid; grid-template-columns: 110px 1fr; gap: var(--s-3); padding: var(--s-2) var(--s-3); text-decoration: none; color: inherit; border-radius: var(--radius); align-items: start; }
.search-results a:hover, .search-results a:focus { background: var(--paper-2); }
.search-results .small { color: var(--ink-3); }
@media (max-width: 600px) { .search-results a { grid-template-columns: 1fr; } }
.follow-count:not(:empty) { position: absolute; margin: -22px 0 0 20px; background: var(--meridian); color: var(--paper); font-family: var(--font-mono); font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: inline-grid; place-items: center; padding: 0 4px; }
.icon-btn { position: relative; }

/* Following */
.following { display: grid; gap: var(--s-5); }
.following-group h2 { font-size: var(--fs-4); border-bottom: 1px solid var(--line); padding-bottom: var(--s-2); }
.following-group ul { list-style: none; padding: 0; margin: 0; }
.following-group + .following-group { margin-top: var(--s-7); }
.following-group h2 .chip a { color: inherit; text-decoration: none; }
.following-group h3 { margin: var(--s-4) 0 var(--s-1); }
.following-group li > .cluster { flex-shrink: 0; }
.following-group li { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px dashed var(--line); align-items: center; }
.following-tree { font-family: var(--font-mono); font-size: var(--fs-1); border: 1px solid var(--line); background: var(--paper-2); padding: var(--s-4); border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Context builder stepper */
.cb-steps { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cb-step + .cb-step { border-top: 1px solid var(--line); }
.cb-head { width: 100%; text-align: left; display: flex; gap: var(--s-4); align-items: baseline; padding: var(--s-4); background: var(--paper); }
.cb-head:hover { background: var(--paper-2); }
.cb-head h3 { margin: 0; font-size: var(--fs-3); }
.cb-step[aria-current="step"] .cb-head { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--meridian); }
.cb-body { padding: 0 var(--s-4) var(--s-4); }

/* Prose */
.prose { max-width: var(--measure); font-size: var(--fs-3); }
.prose p { max-width: none; }
.lab-card h3 { font-size: var(--fs-3); }

/* Knowledge building trends */
.kt { margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.kt-findings { margin-top: var(--s-5); }
.kt-findings h3 { font-size: var(--fs-3); }
.kt-chart { width: 100%; height: auto; display: block; }
.kt-grid { stroke: var(--line); stroke-dasharray: 2 4; }
.kt-tick { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-3); }
.kt-annot { font-family: var(--font-mono); font-size: 10px; fill: var(--ink); letter-spacing: .06em; }
.kt-bar { fill: var(--tech); opacity: .85; } .kt-bar.peak { fill: var(--meridian); opacity: 1; } .kt-bar.incomplete { fill: var(--line-strong); opacity: .5; }
.kt-shift td.gain { color: var(--actor); font-weight: 600; } .kt-shift td.loss { color: var(--tension); font-weight: 600; }
.kt-figures { padding-left: 1.1em; margin: 0; } .kt-figures li { margin-bottom: 4px; }
.kt-card .card-footer { justify-content: flex-end; }

/* Audiences */
.audiences { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Home: the live strip under the hero, and the definition line. */
.live-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.live-strip .obs-stats { margin-top: 0; align-items: flex-end; }
.live-strip .obs-stats a { color: inherit; text-decoration: none; } .live-strip .obs-stats a:hover b { color: var(--meridian); }
.live-strip-note { text-transform: none; letter-spacing: 0; font-family: var(--font-body); max-width: 34ch; margin-left: auto; }
@media (max-width: 800px) { .live-strip-note { margin-left: 0; } }
.dfn { color: var(--ink-2); border-left: 2px solid var(--inquiry); padding-left: var(--s-3); margin: var(--s-2) 0 var(--s-3); }
.dfn dfn { font-style: normal; font-family: var(--font-display); font-weight: 700; color: var(--inquiry); }

/* Monitor CTA: the bridge from a public object to a managed plan. */
.monitor { border-left: 3px solid var(--meridian); }
.monitor .cluster { margin-top: var(--s-3); align-items: center; }

/* Services: from the public observatory to your own infrastructure. */
.funnel { --node: 48px; --pad: var(--s-4); list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.funnel li { position: relative; }
/* Rail through the node centres, from the first node to the last. */
.funnel li::before { content: ""; position: absolute; top: calc(var(--pad) + var(--node) / 2); left: 0; right: 0; height: 2px; background: var(--line-strong); z-index: 0; }
.funnel li:first-child::before { left: calc(var(--pad) + var(--node) / 2); }
.funnel li:last-child::before { right: calc(100% - var(--pad) - var(--node) / 2); }
.funnel li[data-tier="managed"]::before { background: var(--meridian); }
.funnel a { display: flex; flex-direction: column; gap: 6px; padding: var(--pad); height: 100%; color: inherit; text-decoration: none; position: relative; z-index: 1; border-radius: var(--radius); }
.funnel a:hover { background: var(--paper-2); }
.funnel a:hover .funnel-node { transform: translateY(-2px); }
.funnel-node { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--node); height: var(--node); margin-bottom: var(--s-3); border-radius: 50%; border: 2px solid var(--line-strong); background: var(--paper); color: var(--ink-2); transition: transform .15s ease; }
.funnel li[data-tier="managed"] .funnel-node { border-color: var(--meridian); background: var(--meridian); color: var(--paper); }
.funnel-num { position: absolute; top: -6px; right: -10px; font-family: var(--font-mono); font-size: 10px; line-height: 1; padding: 3px 4px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); color: var(--ink-3); }
.funnel strong { font-family: var(--font-display); font-size: var(--fs-3); font-weight: 700; }
.funnel-tiers { display: grid; grid-template-columns: 2fr 4fr; gap: var(--s-4); margin-top: var(--s-4); font-family: var(--font-mono); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.funnel-tiers span { border-top: 2px solid var(--line-strong); padding-top: var(--s-2); }
.funnel-tiers [data-tier="managed"] { border-top-color: var(--meridian); color: var(--meridian); }
@media (max-width: 1000px) {
  .funnel { grid-template-columns: 1fr; }
  /* Overlap into the next item so inherited list spacing never breaks the rail. */
  .funnel li::before { top: 0; bottom: -12px; left: calc(var(--pad) + var(--node) / 2 - 1px); right: auto; width: 2px; height: auto; }
  .funnel li:first-child::before { top: calc(var(--pad) + var(--node) / 2); left: calc(var(--pad) + var(--node) / 2 - 1px); }
  .funnel li:last-child::before { bottom: calc(100% - var(--pad) - var(--node) / 2); right: auto; }
  .funnel a { display: grid; grid-template-columns: var(--node) minmax(0, 1fr); column-gap: var(--s-4); row-gap: 2px; align-items: start; }
  .funnel-node { grid-row: 1 / span 3; margin-bottom: 0; }
  .funnel a > :not(.funnel-node) { grid-column: 2; }
  .funnel-tiers { display: flex; gap: var(--s-5); }
  .funnel-tiers span { border-top: 0; padding-top: 0; display: inline-flex; align-items: center; gap: var(--s-2); }
  .funnel-tiers span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); }
  .funnel-tiers [data-tier="managed"]::before { border-color: var(--meridian); background: var(--meridian); }
}

/* Principles page. */
.principle { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.principle h2 { margin: var(--s-2) 0 var(--s-3); }
.inline-link { display: inline-flex; align-items: center; gap: 4px; }

/* Provenance: sources and cross-checks under a signal, collapsed by default. */
.provenance { border-top: 1px solid var(--line); padding-top: var(--s-2); }
.provenance summary { display: flex; gap: var(--s-3); align-items: baseline; cursor: pointer; min-height: 32px; list-style: none; }
.provenance summary::-webkit-details-marker { display: none; }
.provenance summary .prov-count::after { content: " +"; }
.provenance[open] summary .prov-count::after { content: " −"; }
.provenance ol { margin: var(--s-2) 0 0; padding-left: var(--s-5); display: grid; gap: var(--s-2); }
.provenance a { overflow-wrap: anywhere; }
.provenance blockquote { margin: var(--s-1) 0 0; padding-left: var(--s-3); border-left: 2px solid var(--line-strong); color: var(--ink-2); font-style: italic; }

/* Cookie consent: a non-modal bar at the bottom; accepting and declining are equally easy. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper); border-top: 1px solid var(--line-strong); box-shadow: var(--shadow); padding: var(--s-4) 0 calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); max-height: 80dvh; overflow-y: auto; }
.consent[hidden] { display: none; }
.consent .container { display: grid; gap: var(--s-3); }
.consent-text p { margin: 0; }
.consent-text .label { margin-bottom: var(--s-1); }
.consent-prefs { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.consent-prefs[hidden] { display: none; }
.consent-opt { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.consent-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--meridian); flex: none; }
.consent-opt > span { display: grid; gap: 2px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.consent-actions [hidden] { display: none; }
@media (max-width: 640px) { .consent-actions .btn { flex: 1 1 100%; justify-content: center; } }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Epistemic status: what kind of claim a title makes. Mono caps, one hue per state. */
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: var(--fs-0); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid currentColor; border-radius: var(--radius); line-height: 1.2; white-space: nowrap; cursor: help; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status[data-status="verified"] { color: var(--evidence); }
.status[data-status="internal"] { color: var(--actor); }
.status[data-status="interpretation"] { color: var(--inquiry); }
.status[data-status="live"] { color: var(--signal); }
.status[data-status="live"] i { animation: status-pulse 2s ease-in-out infinite; }
@keyframes status-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .status[data-status="live"] i { animation: none; } }
.page-head .status { margin-bottom: var(--s-3); }

/* Monitor form (contact): radio choices, three short fields, one action. */
.monitor-form { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); }
.monitor-form > p { margin: 0; }
.monitor-what { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.monitor-what legend { font-weight: 600; margin-bottom: var(--s-2); padding: 0; }
.radio { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.radio input { accent-color: var(--meridian); width: 16px; height: 16px; margin: 0; }
.monitor-fields { gap: var(--s-4); }
.field { display: grid; gap: 6px; font-weight: 600; font-size: var(--fs-1); }
.field input, .field textarea { font: inherit; font-weight: 400; font-size: var(--fs-2); min-height: 44px; padding: var(--s-2) var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--meridian); outline-offset: 1px; }
@media (max-width: 640px) { .monitor-fields { grid-template-columns: 1fr; } .radio { flex: 1 1 100%; } }
.monitor-link { margin-left: auto; white-space: nowrap; }

/* Following: personal feed of signals connected to what the visitor follows. */
.following-feed { margin-top: var(--s-5); }
.following-note { margin-bottom: var(--s-5); }
.following-feed h2 { margin: 0; }
.following-feed ul { list-style: none; margin: var(--s-2) 0 0; padding: 0; border-top: 1px solid var(--line); }
.following-feed li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 2px var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.following-feed li > .small { grid-column: 2; }
.following-feed li.is-new a { font-weight: 600; }
.following-feed .meta { display: flex; gap: var(--s-2); align-items: center; }
@media (max-width: 640px) { .following-feed li { grid-template-columns: 1fr; } .following-feed li > .small { grid-column: 1; } }

/* Platform module cards: Lucide icon, name, note and a link to the service's OpenAPI docs. */
.module-card { display: flex; flex-direction: column; gap: var(--s-2); }
.module-card h3 { margin: 0; }
.module-card p { margin: 0; flex: 1; }
.module-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--meridian); background: var(--paper-2); }
.module-api { display: inline-flex; align-items: center; gap: var(--s-1); margin-top: var(--s-2); color: var(--meridian); text-decoration: none; align-self: flex-start; }
.module-api:hover { text-decoration: underline; }
.icon { flex-shrink: 0; }

/* SPHINX questions of the day: a tab per lens, a carousel of questions per lens.
   Lens accents follow the epistemic mode, so a renamed lens keeps its colour. */
.sx { --lens: var(--meridian); margin-top: var(--s-4); }
[data-mode="discovery"] { --lens: var(--tech); }
[data-mode="speculation"] { --lens: var(--inquiry); }
[data-mode="planning"] { --lens: var(--signal); }
[data-mode="synthesis"] { --lens: var(--meridian); }
[data-mode="phenomenological"] { --lens: var(--tension); }
.sx-shared-theme { margin: 0 0 var(--s-3); font-family: var(--font-mono); font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.sx-tabs { display: none; }
.sx.is-tabbed .sx-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-2); }
.sx-tab { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); text-align: left; font: inherit; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-bottom: 3px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.sx-tab .icon { color: var(--lens); flex-shrink: 0; }
.sx-tab:hover { background: var(--paper-2); }
.sx-tab[aria-selected="true"] { color: var(--ink); background: var(--paper-2); border-color: var(--lens); border-bottom-color: var(--lens); }
.sx-tab-text { display: flex; flex-direction: column; min-width: 0; }
.sx-lens { font-weight: 700; font-family: var(--font-display); font-size: var(--fs-2); }
.sx-guide { font-size: var(--fs-1); color: var(--ink-3); }
.sx-panel { margin-top: var(--s-3); border: 1px solid var(--line); border-top: 3px solid var(--lens); border-radius: var(--radius); background: var(--paper); }
.sx-panel + .sx-panel { margin-top: var(--s-4); }
.sx.is-tabbed .sx-panel + .sx-panel { margin-top: var(--s-3); }
.sx-panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); }
.sx-panel-title { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-2); color: var(--ink-2); }
.sx-panel-title .icon { color: var(--lens); }
.sx-panel-title b { color: var(--ink); }
.sx-nav { flex-shrink: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-mono); font-size: var(--fs-1); color: var(--ink-3); }
.sx-nav button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink-2); cursor: pointer; }
.sx-nav button:hover { border-color: var(--lens); color: var(--lens); }
.sx-track { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sx-track::-webkit-scrollbar { display: none; }
.sx-slide { flex: 0 0 100%; scroll-snap-align: start; padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.sx-title { margin: 0; font-size: var(--fs-5); line-height: var(--lh-tight); }
.sx-question { margin: 0; font-size: var(--fs-4); line-height: 1.45; color: var(--ink); max-width: 95ch; border-left: 3px solid var(--lens); padding-left: var(--s-4); }
.sx-facets { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-3); margin-top: var(--s-2); }
.sx-facet { padding: var(--s-5); border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }
.sx-facet h5 { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); font-family: var(--font-mono); font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.sx-facet.sx-insight h5 { color: var(--lens); }
.sx-facet p { margin: 0; font-size: var(--fs-2); line-height: var(--lh-body); }
.sx-theme { margin: 0; font-size: var(--fs-1); color: var(--ink-3); }
.sphinx-ctx { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3) var(--s-4); background: var(--paper); }
.sphinx-ctx summary { cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4); align-items: baseline; font-weight: 600; }
.sphinx-ctx summary .label { flex-shrink: 0; }
@media (max-width: 640px) {
  .sx.is-tabbed .sx-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 104px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; }
  .sx-tab { scroll-snap-align: start; }
  .sx-tab { flex-direction: column; justify-content: center; gap: 4px; padding: var(--s-2); text-align: center; }
  .sx-guide { display: none; }
  .sx-panel-title { flex-wrap: wrap; }
  .sx-lens { font-size: var(--fs-0); }
  .sx-panel-head, .sx-slide { padding-left: var(--s-4); padding-right: var(--s-4); }
  .sx-question { font-size: var(--fs-2); }
}

/* Inquiry of the Day on the home page: competing hypotheses and implications
   fill the panel, which stretches to the height of the sidebar. */
.iotd { display: flex; flex-direction: column; }
.iotd .card-footer { margin-top: auto; }
.iotd-body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin: var(--s-5) 0; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.iotd-body h4 { margin: 0 0 var(--s-3); }
.iotd-hyps, .iotd-imps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.iotd-hyps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.iotd-n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--inquiry); color: var(--inquiry); font-family: var(--font-mono); font-size: var(--fs-0); font-weight: 600; }
.iotd-hyps p { margin: 0 0 var(--s-2); font-size: var(--fs-1); line-height: var(--lh-snug); }
/* Support vs challenge, proportional to the number of signals on each side. */
.iotd-balance { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line); margin-bottom: 4px; }
.iotd-balance .for { flex: var(--for) 0 0; background: var(--actor); }
.iotd-balance .against { flex: var(--against) 0 0; background: var(--tension); }
.iotd-imps { counter-reset: imp; }
.iotd-imps li { counter-increment: imp; position: relative; padding: var(--s-3) var(--s-3) var(--s-3) calc(var(--s-3) + 28px); font-size: var(--fs-1); line-height: var(--lh-snug); border-left: 3px solid var(--ink-3); background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0; }
.iotd-imps li::before { content: counter(imp, decimal-leading-zero); position: absolute; left: var(--s-3); top: var(--s-3); font-family: var(--font-mono); font-size: var(--fs-0); color: var(--ink-3); }
@media (max-width: 900px) { .iotd-body { grid-template-columns: 1fr; } }

.sx-title a { color: inherit; text-decoration: none; }
.sx-title a:hover { text-decoration: underline; text-decoration-color: var(--lens); }
.sx-open { margin: 0; font-size: var(--fs-2); }

/* ---------- SPHINX pages: scenarios, archive by lens, question ---------- */
.sxp-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; }
.sxp-bar i { background: var(--lens, var(--line)); }
.sxp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); font-size: var(--fs-1); font-family: var(--font-mono); color: var(--ink-3); }
.sxp-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.sxp-meta .icon { color: var(--lens); width: 16px; height: 16px; }
.sxp-legend { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); }
.sxp-legend li { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3); border: 1px solid var(--line); border-left: 3px solid var(--lens); border-radius: var(--radius); background: var(--paper); }
.sxp-legend b { display: block; font-family: var(--font-display); }
.sxp-legend span:not(.sxp-legend-icon) { font-size: var(--fs-1); color: var(--ink-3); }
.sxp-legend-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; color: var(--lens); background: var(--paper-2); border: 1px solid var(--line); }
.sxp-scenarios { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--s-4); }
.sxp-scenario-link { display: flex; flex-direction: column; gap: var(--s-3); height: 100%; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.sxp-scenario-link:hover { border-color: var(--meridian); transform: translateY(-2px); }
.sxp-scenario h3 { margin: 0; font-size: var(--fs-4); line-height: var(--lh-snug); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sxp-scenario-q { padding: var(--s-3); border-radius: var(--radius); background: var(--paper-2); }
.sxp-scenario-q p { margin: var(--s-1) 0 0; font-size: var(--fs-2); }
.sxp-go { margin-top: auto; color: var(--meridian); font-size: var(--fs-2); }
.sxp-context-meta { display: flex; flex-direction: column; gap: var(--s-3); margin: var(--s-4) 0; }
.sxp-context-meta .sxp-bar { height: 10px; }
.sxp-jump { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 var(--s-5); position: sticky; top: 4rem; z-index: 5; padding: var(--s-2) 0; background: var(--paper); }
.sxp-jump a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-2); text-decoration: none; font-size: var(--fs-2); }
.sxp-jump a .icon { color: var(--lens); width: 16px; height: 16px; }
.sxp-jump a span { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--ink-3); }
.sxp-jump a:hover { border-color: var(--lens); }
.sxp-lens { margin-top: var(--s-7); scroll-margin-top: 130px; }
.sxp-lens > header { display: flex; align-items: center; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 3px solid var(--lens); }
.sxp-lens > header h3 { margin: 0; }
.sxp-lens > header p { margin: 0; color: var(--ink-3); font-size: var(--fs-2); }
.sxp-lens > header .label { margin-left: auto; }
.sxp-cards { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--s-4); }
.sxp-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line); border-top: 3px solid var(--lens); border-radius: var(--radius); background: var(--paper); }
.sxp-card.is-today { background: var(--paper-2); }
.sxp-card h4 { margin: 0; font-size: var(--fs-3); line-height: var(--lh-snug); }
.sxp-card h4 a { color: inherit; text-decoration: none; }
.sxp-card h4 a::after { content: ""; position: absolute; inset: 0; }
.sxp-card { position: relative; min-width: 0; }
.sxp-card-top > * { min-width: 0; }
.sxp-card:hover { border-color: var(--lens); }
.sxp-card-q { margin: 0; font-size: var(--fs-2); line-height: var(--lh-body); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.sxp-card-top { display: flex; gap: var(--s-2); align-items: center; min-height: 18px; }
.sxp-card-theme { font-size: var(--fs-1); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sxp-today { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--lens, var(--meridian)); color: var(--paper); font-family: var(--font-mono); font-size: var(--fs-1); flex-shrink: 0; }
.sxp-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: var(--s-2); color: var(--ink-3); font-size: var(--fs-1); }
.sxp-facet-hints { display: inline-flex; gap: 6px; color: var(--lens); }
/* Share */
.sxp-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }
.sxp-share-channels { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.sxp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--paper); color: var(--ink); font: inherit; font-size: var(--fs-2); text-decoration: none; cursor: pointer; }
.sxp-chip:hover { border-color: var(--meridian); color: var(--meridian); }
.sxp-share.has-native .sxp-share-channels .label { display: none; }
.btn .icon { vertical-align: -3px; margin-right: 4px; }
/* Question page */
.sxp-q-head { border-bottom: 3px solid var(--lens); }
.sxp-q-badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-3) 0; }
.sxp-lens-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill); border: 1px solid var(--lens); color: var(--lens); font-size: var(--fs-1); font-weight: 600; }
.sxp-q-head h1 { max-width: 40ch; }
.sxp-q-text { font-size: var(--fs-5); line-height: 1.35; max-width: 80ch; border-left: 4px solid var(--lens); padding-left: var(--s-4); color: var(--ink); }
.sxp-q-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-6); align-items: start; }
.sxp-q-facets { margin-top: 0; }
.sxp-q-facets .sx-facet p { font-size: var(--fs-3); }
.sxp-engage-box { margin-top: var(--s-5); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.sxp-reactions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-2); }
.sxp-react { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s-4) var(--s-2); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink-2); font: inherit; font-size: var(--fs-1); cursor: pointer; transition: transform .1s ease, border-color .15s ease; }
.sxp-react .icon { width: 26px; height: 26px; }
.sxp-react b { font-family: var(--font-mono); color: var(--ink); }
.sxp-react:hover { border-color: var(--lens, var(--meridian)); transform: translateY(-1px); }
.sxp-react[aria-pressed="true"] { border-color: var(--lens, var(--meridian)); background: var(--paper-2); color: var(--ink); box-shadow: inset 0 -3px 0 var(--lens, var(--meridian)); }
.sxp-react[aria-pressed="true"] .icon { color: var(--lens, var(--meridian)); }
.sxp-after-react { margin: var(--s-3) 0 0; }
.sxp-comments { margin-top: var(--s-6); }
.sxp-comments h2 { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-4); }
.sxp-form { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.sxp-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.sxp-field { display: flex; flex-direction: column; gap: 4px; }
.sxp-field input, .sxp-field textarea { font: inherit; padding: var(--s-2) var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.sxp-field textarea { resize: vertical; min-height: 96px; }
.sxp-check { display: flex; gap: var(--s-2); align-items: center; }
.sxp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sxp-submit { align-items: center; }
.sxp-submit p { margin: 0; }
.sxp-submit .btn { justify-self: end; }
.sxp-comment-list { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: flex; flex-direction: column; gap: var(--s-3); }
.sxp-comment { padding: var(--s-3) var(--s-4); border-left: 3px solid var(--line-strong); background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0; }
.sxp-comment header { display: flex; gap: var(--s-3); align-items: baseline; font-size: var(--fs-2); }
.sxp-comment time { color: var(--ink-3); font-size: var(--fs-0); font-family: var(--font-mono); }
.sxp-comment p { margin: var(--s-1) 0 0; }
.sxp-q-aside { position: sticky; top: 88px; }
.sxp-cards-compact { grid-template-columns: 1fr; }
.sxp-cards-compact .sxp-card-q { -webkit-line-clamp: 2; }
.sxp-other-lenses { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: flex; flex-direction: column; gap: var(--s-2); }
.sxp-other-lenses a { display: flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--ink-2); }
.sxp-other-lenses a .icon { color: var(--lens); }
.sxp-other-lenses a span { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-0); color: var(--ink-3); }
@media (max-width: 900px) {
  .sxp-q-body { grid-template-columns: 1fr; }
  .sxp-q-aside { position: static; }
  .sxp-reactions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sxp-row { grid-template-columns: 1fr; }
  .sxp-q-text { font-size: var(--fs-3); }
  .sx-question { font-size: var(--fs-3); }
  .sx-title { font-size: var(--fs-4); }
  .sx-slide { padding: var(--s-4); }
  .sxp-cards { grid-template-columns: minmax(0, 1fr); }
  .sxp-jump { top: 56px; overflow-x: auto; flex-wrap: nowrap; }
}
.sxp-lens-badge .sxp-guide { font-weight: 400; color: var(--ink-2); }
.sxp-lens-badge .sxp-guide::before { content: "— "; }
.sxp-meta b { color: var(--ink-2); }
.sxp-go { display: inline-flex; align-items: center; gap: 6px; }
/* Epistemic markers the questions carry, such as [Cenário] or [Hipótese]. */
.sx-tag { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: var(--radius-pill); border: 1px solid var(--lens, var(--line-strong)); color: var(--lens, var(--ink-2)); font-family: var(--font-mono); font-size: .7em; letter-spacing: .04em; vertical-align: .15em; line-height: 1.7; }
.sxp-fab { position: fixed; right: var(--s-4); bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); z-index: 50; display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px; border: 0; border-radius: var(--radius-pill); background: var(--meridian); color: var(--paper); font: inherit; font-weight: 600; box-shadow: var(--shadow); }

/* ---------- SPHINX question entrance ---------- */
@keyframes sx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sx-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sx-fade { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }
@keyframes sx-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sx-panel.is-entering .sx-slide > *, .sx-panel.is-entering .sx-facet { animation: sx-rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.sx-panel.is-entering .sx-slide > :nth-child(1) { animation-delay: 0s; }
.sx-panel.is-entering .sx-slide > :nth-child(2) { animation-delay: .08s; }
.sx-panel.is-entering .sx-slide > :nth-child(3) { animation: none; }
.sx-panel.is-entering .sx-facet:nth-child(1) { animation-delay: .2s; }
.sx-panel.is-entering .sx-facet:nth-child(2) { animation-delay: .32s; }
.sx-panel.is-entering .sx-slide > :nth-child(n+4) { animation-delay: .42s; }
/* The lens rule beside the question grows from the top. */
.sx-question { position: relative; border-left-color: transparent; }
.sx-question::before { content: ""; position: absolute; left: -3px; top: 0; bottom: 0; width: 3px; background: var(--lens); transform-origin: top; }
.sx-panel.is-entering .sx-question::before { animation: sx-grow .6s .1s cubic-bezier(.2, .7, .2, 1) both; }
.sx-fade { animation: sx-fade .5s ease both; }
/* Home, while the draw is on its way: a skeleton instead of the build's questions. */
.js [data-sphinx-home]:not(.is-ready) .sx-slide > :not(.sx-skel) { visibility: hidden; }
.sx-skel { display: none; }
.js [data-sphinx-home]:not(.is-ready) .sx-skel { display: flex; flex-direction: column; gap: var(--s-3); position: absolute; inset: var(--s-6); }
.sx-slide { position: relative; }
.sx-skel i, .sx-skel b { display: block; border-radius: var(--radius); background: linear-gradient(90deg, var(--line) 0%, var(--paper-3, var(--paper-2)) 50%, var(--line) 100%) 0 0 / 200% 100%; animation: sx-shimmer 1.4s linear infinite; }
.sx-skel i { height: 18px; }
.sx-skel i:first-child { height: 30px; width: 55%; margin-bottom: var(--s-2); }
.sx-skel i:nth-child(2) { width: 94%; } .sx-skel i:nth-child(3) { width: 88%; } .sx-skel i:nth-child(4) { width: 62%; }
.sx-skel div { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); flex: 1; margin-top: var(--s-3); }
.sx-skel b { opacity: .6; }
.js [data-sphinx-home]:not(.is-ready) + p, .js #sphinx-today:has([data-sphinx-home]:not(.is-ready)) [data-sphinx-title] { opacity: .35; transition: opacity .3s; }
@media (prefers-reduced-motion: reduce) {
  .sx-panel.is-entering .sx-slide > *, .sx-panel.is-entering .sx-facet, .sx-panel.is-entering .sx-question::before, .sx-fade { animation: none; }
  .sx-skel i, .sx-skel b { animation: none; }
}
.sxp-replies { list-style: none; margin: var(--s-3) 0 0; padding: 0 0 0 var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); border-left: 1px solid var(--line); }
.sxp-replies .sxp-comment { background: var(--paper); }
/* Simulated engagement: a small, always visible agentic-simulation badge. */
.sxp-sim-badge { display: inline-block; padding: 0 6px; margin-left: 2px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; vertical-align: .12em; cursor: help; }
.sxp-sim-line { margin: var(--s-2) 0 0; font-size: var(--fs-0); }
.sxp-sim-mark { margin-left: calc(-1 * var(--s-2)); color: var(--ink-3); font-family: var(--font-mono); font-size: var(--fs-0); cursor: help; }
