/*
 * Thought.global — Homepage V2 below the hero: "the living universe" (thought/home/world.php).
 * Loaded after home.css; reuses its tokens (--tho-*), buttons (.tho-btn), glyphs and the map engine rules.
 * Scope: body.tho-world .thw. Nothing here styles the hero (.tho-hero belongs to the hero session).
 *
 *   one world, alternating light: parchment for reading, night for wonder
 *   one golden thread: starts at the hero's "Follow a thread" cue, passes every chapter's seal and
 *   lane star (desktop), and ends at the observatory door; it lights up as you travel (position, not motion)
 *   finite motion only; nothing essential is hidden without world.js; reduced motion is complete and still
 */

body.tho-world {
	--thw-ground: #080d16;          /* the hero's foreground, sampled at its bottom edge (12 Oct 2026) */
	--thw-parch: #f4efe4;
	--thw-night: #060a15;
	--thw-plum: #170f20;
	--thw-indigo: #0b1426;
	--thw-gold-deep: #b8893e;       /* gold that reads as drawing on parchment */
	--thw-ink-gold: #7a5a20;
	--thw-lane: 14px;               /* the thread's lane, from the wrap's left edge (desktop) */
	--thw-indent: 64px;             /* content clears the lane by this much (desktop) */
	--thw-seam: 150px;
	--thw-stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='380'%3E%3Cg fill='%23f3ead2'%3E%3Ccircle cx='12' cy='22' r='.8' opacity='.7'/%3E%3Ccircle cx='64' cy='88' r='.6' opacity='.5'/%3E%3Ccircle cx='121' cy='31' r='1' opacity='.8'/%3E%3Ccircle cx='170' cy='140' r='.5' opacity='.45'/%3E%3Ccircle cx='232' cy='60' r='.7' opacity='.6'/%3E%3Ccircle cx='300' cy='18' r='.6' opacity='.5'/%3E%3Ccircle cx='352' cy='104' r='.9' opacity='.75'/%3E%3Ccircle cx='28' cy='196' r='.5' opacity='.45'/%3E%3Ccircle cx='96' cy='244' r='.8' opacity='.6'/%3E%3Ccircle cx='150' cy='300' r='.6' opacity='.5'/%3E%3Ccircle cx='210' cy='212' r='1.1' opacity='.85'/%3E%3Ccircle cx='268' cy='276' r='.5' opacity='.4'/%3E%3Ccircle cx='330' cy='230' r='.7' opacity='.6'/%3E%3Ccircle cx='370' cy='330' r='.6' opacity='.5'/%3E%3Ccircle cx='50' cy='350' r='.9' opacity='.7'/%3E%3Ccircle cx='190' cy='366' r='.5' opacity='.4'/%3E%3Ccircle cx='250' cy='150' r='.4' opacity='.4'/%3E%3Ccircle cx='80' cy='150' r='.4' opacity='.35'/%3E%3Ccircle cx='310' cy='170' r='.4' opacity='.35'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- foundation ---------- */
.thw { position: relative; z-index: 1; isolation: isolate; } /* z-index 1: the thread may continue over the footer centre corridor */
.thw .thw-ch { position: relative; padding: 0 0 clamp(84px, 9vw, 132px); }
.thw .thw-wrap { position: relative; z-index: 3; width: min(1200px, 100% - 2 * var(--tho-gutter)); margin-inline: auto; }
.thw .thw-seam + .thw-wrap { padding-top: clamp(14px, 2.4vw, 34px); }
.thw .thw-end { display: block; position: absolute; left: var(--thw-lane); width: 1px; height: 1px; margin-top: 28px; pointer-events: none; }

/* light chapters read in ink; night chapters in bone */
.thw .thw-book, .thw .thw-window, .thw .thw-study, .thw .thw-catalogue { color: var(--tho-ink); --tho-glyph-cut: var(--thw-parch); }
.thw .thw-obs, .thw .thw-hall, .thw .thw-gallery, .thw .thw-sky { color: var(--tho-bone); }
.thw .thw-book .tho-actions .tho-btn--paper, .thw .thw-study .tho-actions .tho-btn--paper { background: rgba(255, 253, 248, .5); }
.thw .thw-book :focus-visible, .thw .thw-window :focus-visible, .thw .thw-study :focus-visible, .thw .thw-catalogue :focus-visible { outline-color: var(--tho-ink) !important; }

/* ---------- chapter typography ---------- */
.thw .thw-head { max-width: 720px; }
.thw .thw-head--wide { max-width: 860px; }
.thw .thw-head--center { max-width: 820px; margin-inline: auto; text-align: center; }
.thw .thw-mark { display: flex; align-items: center; gap: .65em; margin: 0 0 22px; font: 700 12.5px/1.2 var(--tho-sans); letter-spacing: .17em; text-transform: uppercase; color: var(--tho-gold); }
.thw .thw-head--center .thw-mark { justify-content: center; }
.thw .thw-mark .tho-glyph { width: 18px; height: 18px; }
.thw .thw-num { display: inline-flex; align-items: center; padding-right: .8em; border-right: 1px solid rgba(201, 163, 94, .5); font: 500 16px/1 var(--tho-display); font-variation-settings: "opsz" 36; letter-spacing: .04em; color: var(--tho-gold-hi); }
.thw .thw-book .thw-mark, .thw .thw-window .thw-mark, .thw .thw-study .thw-mark, .thw .thw-catalogue .thw-mark { color: var(--thw-ink-gold); }
.thw .thw-book .thw-num, .thw .thw-window .thw-num, .thw .thw-study .thw-num, .thw .thw-catalogue .thw-num { color: #6b4e19; border-right-color: rgba(122, 90, 32, .4); }
.thw .thw-title { font-size: clamp(2.2rem, 1.25rem + 2.9vw, 3.9rem); line-height: 1.02; font-weight: 400; font-variation-settings: "SOFT" 60, "WONK" 0, "opsz" 144; letter-spacing: -.018em; color: inherit; }
.thw .thw-title em { font-style: normal; font-weight: 420; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; color: var(--tho-gold-hi); }
.thw .thw-book .thw-title em, .thw .thw-window .thw-title em, .thw .thw-study .thw-title em { color: #94631f; }
.thw .thw-title--quiet { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); }
.thw .thw-lead { max-width: 58ch; margin-top: 20px; font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem); line-height: 1.62; color: #d7d0c1; }
.thw .thw-head--center .thw-lead { margin-inline: auto; }
.thw .thw-book .thw-lead, .thw .thw-window .thw-lead, .thw .thw-study .thw-lead { color: var(--tho-ink-2); }
.thw .thw-hall .thw-lead { color: #d2c7d8; }
.thw .thw-minor { margin: 0; font: 700 11.5px/1.3 var(--tho-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tho-gold); }
.thw .thw-minor--sm { margin-top: 26px; font-size: 11px; color: var(--tho-bone-3); }
.thw .thw-meta { color: var(--tho-ink-3); font-size: 12.5px; }
.thw .thw-obs .thw-meta, .thw .thw-hall .thw-meta { color: var(--tho-bone-3); }
.thw .thw-spark { width: 14px; height: 14px; flex: none; fill: currentColor; }

/* ---------- seams: each chapter grows out of the last one's colour, and its seal sits on the thread ---------- */
.thw .thw-seam { position: relative; height: var(--thw-seam); pointer-events: none; }
.thw .thw-from-ground .thw-seam { color: var(--thw-ground); }
.thw .thw-from-parch .thw-seam { color: var(--thw-parch); }
.thw .thw-from-night .thw-seam { color: var(--thw-night); }
.thw .thw-from-plum .thw-seam { color: var(--thw-plum); }
.thw .thw-from-indigo .thw-seam { color: var(--thw-indigo); }
.thw .thw-edge { position: absolute; left: 0; top: -1px; width: 100%; height: calc(100% + 1px); display: block; }
.thw svg.thw-edge path { fill: currentColor; }
.thw svg.thw-edge .thw-edge-leaf { fill: none; stroke: #e2d6bf; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.thw .thw-edge--fill { background: currentColor; }
.thw .thw-seal { position: absolute; left: 50%; top: var(--seal-y, 80%); z-index: 4; display: grid; place-items: center; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 34%, #1f2a48, #0b1426 72%); box-shadow: 0 0 0 1.5px var(--tho-gold), 0 0 0 5px rgba(11, 20, 38, .9), 0 0 0 6px rgba(201, 163, 94, .45), 0 12px 30px -12px rgba(0, 0, 0, .7); color: var(--tho-gold-hi); transition: box-shadow .6s var(--tho-ease); }
.thw .thw-seal-n { display: grid; place-items: center; font: 500 19px/1 var(--tho-display); font-variation-settings: "opsz" 48, "SOFT" 50; letter-spacing: .02em; }
.thw .thw-seal-n .thw-spark { width: 18px; height: 18px; }
.thw .thw-seal.is-lit { box-shadow: 0 0 0 1.5px var(--tho-gold-hi), 0 0 0 5px rgba(11, 20, 38, .9), 0 0 0 6px rgba(227, 197, 140, .75), 0 0 34px 8px rgba(227, 197, 140, .38); }
.thw .thw-place { position: absolute; left: 50%; top: calc(var(--seal-y, 80%) + 40px); transform: translateX(-50%); font: 700 10.5px/1 var(--tho-sans); letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; color: rgba(201, 163, 94, .85); }
.thw .thw-book .thw-place, .thw .thw-window .thw-place, .thw .thw-study .thw-place, .thw .thw-catalogue .thw-place { color: #8a6a2e; }

/* I — an open book: the spine dips where the thread enters */
.thw .thw-seam--book { --seal-y: 84%; }
/* II — the observatory dome opens onto the night */
.thw .thw-seam--dome { --rx: min(280px, 44vw); --ry: calc(var(--rx) * .65); height: calc(var(--ry) + 30px); --seal-y: calc(100% - var(--ry)); }
.thw .thw-seam--dome .thw-edge--fill { background: radial-gradient(var(--rx) var(--ry) at 50% 100%, transparent 99.4%, currentColor 100%); }
.thw .thw-dome { position: absolute; left: 50%; bottom: 0; width: calc(var(--rx) * 2.2857); height: auto; transform: translateX(-50%); overflow: visible; }
.thw .thw-dome-rib { fill: none; stroke: rgba(201, 163, 94, .55); stroke-width: 1.4; }
.thw .thw-dome-rib--in { stroke: rgba(201, 163, 94, .22); stroke-dasharray: 2 6; }
.thw .thw-dome-slit { stroke: rgba(201, 163, 94, .18); stroke-width: 1; }
.thw .thw-dome-ticks { stroke: rgba(122, 90, 32, .55); stroke-width: 1.4; stroke-linecap: round; }
/* III — dawn over the hills */
.thw .thw-seam--dawn { --seal-y: 74%; }
/* IV — the arcade of the chamber */
.thw .thw-seam--arcade { --arch: 34px; --seal-y: calc(100% - var(--arch)); }
.thw .thw-seam--arcade .thw-edge--fill { height: calc(100% - 42px); }
.thw .thw-edge--arches { position: absolute; left: 0; right: 0; top: auto; bottom: 0; height: 44px; background: radial-gradient(circle var(--arch) at 50% 100%, transparent 98%, currentColor 100%) 50% 100% / 96px 44px repeat-x; }
/* V — the edge of a well-used map */
.thw .thw-seam--deckle { --seal-y: 70%; }
/* VI — night falls like a curtain */
.thw .thw-seam--curtain { --seal-y: 80%; }
/* the catalogue — a drawer's tab */
.thw .thw-seam--tab { height: 110px; --seal-y: calc(100% - 40px); }
.thw .thw-seam--tab .thw-edge--fill { height: calc(100% - 40px); }
.thw .thw-tab { position: absolute; left: 50%; bottom: 0; width: min(340px, 70vw); height: 41px; transform: translateX(-50%); border-radius: 18px 18px 0 0; background: var(--thw-parch); box-shadow: 0 -1px 0 rgba(201, 163, 94, .5); }
.thw .thw-seam--tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 40px; height: 40px; background: currentColor; -webkit-mask: linear-gradient(90deg, #000 calc(50% - min(170px, 35vw)), transparent 0 calc(50% + min(170px, 35vw)), #000 0); mask: linear-gradient(90deg, #000 calc(50% - min(170px, 35vw)), transparent 0 calc(50% + min(170px, 35vw)), #000 0); }
/* VII — hills under the wider sky */
.thw .thw-seam--hills { --seal-y: 80%; }

/* ---------- the thread: one golden line through every chapter (desktop) ---------- */
.thw .thw-star { display: none; }
.thw .thw-thread { display: none; }
@media (min-width: 1100px) {
	.thw .thw-wrap { padding-left: var(--thw-indent); }
	.thw .thw-head--center { padding-left: 0; }
	.thw .thw-star { display: block; position: absolute; left: var(--thw-lane); width: 16px; height: 16px; margin-top: -1px; transform: translateX(-50%) rotate(45deg); border-radius: 3px; background: var(--thw-indigo); box-shadow: 0 0 0 1.5px var(--tho-gold), 0 0 0 4px rgba(201, 163, 94, .14); transition: box-shadow .5s var(--tho-ease), background-color .5s var(--tho-ease); }
	.thw .thw-book .thw-star, .thw .thw-window .thw-star, .thw .thw-study .thw-star, .thw .thw-catalogue .thw-star { background: var(--thw-parch); box-shadow: 0 0 0 1.5px var(--thw-gold-deep), 0 0 0 4px rgba(184, 137, 62, .14); }
	.thw .thw-star.is-lit { background: var(--tho-gold-hi) !important; box-shadow: 0 0 0 1.5px var(--tho-gold-hi), 0 0 0 4px rgba(227, 197, 140, .25), 0 0 18px 3px rgba(227, 197, 140, .55) !important; }
	.thw.has-thread .thw-thread { display: block; position: absolute; left: 0; top: -60px; z-index: 2; width: 100%; pointer-events: none; }
	.thw .thw-thread svg { position: absolute; left: 0; top: 0; overflow: visible; }
	.thw .thw-thread path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
	.thw .thw-thread-base { stroke: rgba(201, 163, 94, .5); stroke-width: 1.3; stroke-dasharray: .5 7; }
	.thw .thw-thread-lit { position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; }
	.thw .thw-thread-glow { stroke: rgba(227, 197, 140, .22); stroke-width: 7; }
	.thw .thw-thread-line { stroke: var(--tho-gold-hi); stroke-width: 1.7; }
	.thw .thw-thread-head { position: absolute; left: 0; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff4d6; box-shadow: 0 0 0 3px rgba(227, 197, 140, .3), 0 0 16px 5px rgba(243, 214, 150, .55); will-change: transform; }
	/* the catalogue keeps its cards clear of the lane */
	.thw .thw-catalogue .tho-legacy .thought-archive-shell { padding-left: var(--thw-indent); }
}

/* ======================================================================
   I — The first page
   ====================================================================== */
.thw .thw-book { background: radial-gradient(900px 520px at 85% 0%, rgba(255, 249, 232, .9), transparent 62%), radial-gradient(700px 420px at 0% 60%, rgba(236, 222, 196, .45), transparent 70%), var(--thw-parch); }
.thw .thw-book-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.thw .thw-frontis { margin: 0; }
.thw .thw-art { display: block; overflow: visible; }
.thw .thw-art--book { width: 100%; max-width: 470px; margin-left: auto; }
.thw .thw-book-rays path { fill: none; stroke: rgba(184, 137, 62, .38); stroke-width: 1.1; stroke-dasharray: 1.5 6; stroke-linecap: round; }
.thw .thw-book-stars circle { fill: var(--thw-gold-deep); }
.thw .thw-book-stars .thw-spk { fill: var(--thw-gold-deep); }
.thw .thw-book-cover { fill: #3b2f47; }
.thw .thw-book-page { fill: #fffaf0; stroke: #b8955a; stroke-width: 1.3; stroke-linejoin: round; }
.thw .thw-book-lines { fill: none; stroke: rgba(74, 68, 83, .3); stroke-width: 1.2; stroke-linecap: round; }
.thw .thw-book-spine { stroke: #b8955a; stroke-width: 1.3; }
.thw .thw-book-thread { fill: none; stroke: var(--thw-gold-deep); stroke-width: 1.6; stroke-linecap: round; }
.thw .thw-cl { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thw .thw-cl--main { stroke: var(--thw-gold-deep); stroke-width: 1.6; }
.thw .thw-cl--branch { stroke: #8d7f68; stroke-width: 1.3; stroke-dasharray: 1.5 4.5; }
.thw .thw-cl--leaves { stroke: #c08a55; stroke-width: 1.4; stroke-dasharray: 5 4; }
.thw .thw-m { fill: #7a5a20; }
.thw .thw-m .thw-m-ring, .thw .thw-m .thw-m-open { fill: none; stroke: #7a5a20; stroke-width: 1.5; }
.thw .thw-m--thinker circle:not(.thw-m-ring) { fill: #7a5a20; }
.thw .thw-m--thinker .thw-m-ring { fill: #fffaf0; }
.thw .thw-m--question .thw-m-open { stroke: #a3672f; stroke-dasharray: 3.2 2.6; }
.thw .thw-m--thought rect { fill: #fffaf0; stroke: #8d7f68; stroke-width: 1.4; }

/* the journey */
.thw .thw-journey { position: relative; list-style: none; margin: clamp(48px, 6vw, 76px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "thinker idea debate question" ". thought thought ."; column-gap: clamp(18px, 2.4vw, 34px); row-gap: 34px; }
.thw .thw-stop { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; margin: 0; }
.thw .thw-stop--thinker { grid-area: thinker; }
.thw .thw-stop--thought { grid-area: thought; max-width: 520px; flex-direction: row; gap: 18px; }
.thw .thw-stop--idea { grid-area: idea; }
.thw .thw-stop--debate { grid-area: debate; }
.thw .thw-stop--question { grid-area: question; }
/* Without world.js a plain gold rule joins the main stops; the script replaces it with the measured line. */
.thw .thw-journey::before { content: ""; position: absolute; top: 34px; left: 34px; right: calc(25% - 34px); border-top: 2px solid var(--thw-gold-deep); }
.thw .thw-journey.has-line::before { display: none; }
.thw .thw-journey-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.thw .thw-journey-line path { fill: none; stroke-linecap: round; }
.thw .thw-journey-line .glow { stroke: rgba(233, 196, 120, .4); stroke-width: 9; }
.thw .thw-journey-line .main { stroke: var(--thw-gold-deep); stroke-width: 2.2; }
.thw .thw-journey-line .branch { stroke: #8d7f68; stroke-width: 1.7; stroke-dasharray: 1.5 7; }
.thw .thw-journey-line .leaves { stroke: #c08a55; stroke-width: 1.9; stroke-dasharray: 7 6; }
.thw .thw-journey-line .junction { fill: var(--thw-parch); stroke: #8d7f68; stroke-width: 1.6; }
.thw .thw-node { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; color: var(--tho-ink); background: radial-gradient(circle at 50% 36%, #fffcf3, #f1e5cc 78%); box-shadow: 0 0 0 1.5px var(--thw-gold-deep), 0 0 0 8px var(--thw-parch), 0 0 0 9px rgba(184, 137, 62, .3); transition: box-shadow .6s var(--tho-ease); }
.thw .thw-node img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: saturate(.82) sepia(.1); }
.thw .thw-node .tho-glyph { width: 28px; height: 28px; }
.thw .thw-stop--question .thw-node { color: #a3672f; }
.thw .thw-stop--thought .thw-node { width: 52px; height: 52px; box-shadow: 0 0 0 8px var(--thw-parch); border: 1.5px dashed #9c8f78; background: #fbf6ea; }
.thw .thw-stop--thought .thw-node .tho-glyph { width: 22px; height: 22px; }
.thw .thw-journey.is-drawn .thw-node:not(.thw-stop--thought .thw-node) { box-shadow: 0 0 0 1.5px var(--thw-gold-deep), 0 0 0 8px var(--thw-parch), 0 0 0 9px rgba(184, 137, 62, .35), 0 0 34px 10px rgba(240, 205, 130, .45); }
.thw .thw-stop-body { display: grid; gap: 8px; min-width: 0; }
.thw .thw-stop-k { font: 700 11.5px/1.3 var(--tho-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--thw-ink-gold); }
.thw .thw-stop-k span { display: inline-block; margin-left: .45em; padding: 2px 8px; border: 1px dashed #a89a80; border-radius: 999px; font-weight: 650; letter-spacing: .06em; color: var(--tho-ink-3); }
.thw .thw-stop h3 { font-size: 1.22rem; line-height: 1.22; color: var(--tho-ink); }
.thw .thw-stop p { color: var(--tho-ink-2); font-size: 14.5px; line-height: 1.52; }
.thw .thw-stop .thw-meta { color: var(--tho-ink-3); font-size: 12.5px; }
.thw .thw-go { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; padding-bottom: 2px; color: var(--tho-ink); font: 650 13.5px/1.3 var(--tho-sans); text-decoration: none; border-bottom: 1px solid rgba(184, 137, 62, .55); }
.thw .thw-go:hover { border-bottom-color: var(--tho-ink); }
.thw .thw-faces { display: flex; }
.thw .thw-faces img { width: 34px; height: 34px; margin-right: -8px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--thw-parch); }
.thw .thw-journey-note { display: flex; gap: 10px; align-items: flex-start; max-width: 72ch; margin-top: 40px; color: var(--tho-ink-3); font-size: 14.5px; line-height: 1.55; }
.thw .thw-spark--ink { margin-top: 3px; color: var(--thw-gold-deep); }

/* the ledger: recorded outcomes, each state its own mark */
.thw .thw-ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.thw .thw-ledger li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; font-size: 14.5px; line-height: 1.45; color: #e3dbe6; }
.thw .thw-ledger b { display: block; margin-bottom: 2px; font: 700 10.5px/1.3 var(--tho-sans); letter-spacing: .14em; text-transform: uppercase; color: inherit; opacity: .9; }
.thw .thw-chip { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid currentColor; --tho-glyph-cut: var(--tho-plum-1); }
.thw .thw-chip .tho-glyph { width: 17px; height: 17px; }
.thw .thw-ledger .is-strengthened { --c: #8db4e6; } .thw .thw-ledger .is-challenged { --c: #e58f88; } .thw .thw-ledger .is-revised { --c: #c3b2ea; } .thw .thw-ledger .is-converged { --c: #7fd0a6; } .thw .thw-ledger .is-open { --c: #e3b47e; }
.thw .thw-ledger li .thw-chip, .thw .thw-ledger li b { color: var(--c); }
.thw .thw-ledger .is-open .thw-chip { border-style: dashed; }
.thw .thw-ledger--small li { font-size: 13.5px; color: var(--tho-ink-2); grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.thw .thw-ledger--small .thw-chip { width: 26px; height: 26px; --tho-glyph-cut: var(--thw-parch); }
.thw .thw-ledger--small .thw-chip .tho-glyph { width: 15px; height: 15px; }
.thw .thw-ledger--small .is-strengthened { --c: #2f6aa8; } .thw .thw-ledger--small .is-challenged { --c: #b4473f; } .thw .thw-ledger--small .is-revised { --c: #6d55a0; } .thw .thw-ledger--small .is-converged { --c: #2f7d58; } .thw .thw-ledger--small .is-open { --c: #9a5f28; }

/* the glossary */
.thw .thw-glossary { max-width: 900px; margin-top: 42px; border-top: 1px solid var(--tho-rule); border-bottom: 1px solid var(--tho-rule); }
.thw .thw-glossary > summary { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; list-style: none; font: 650 15.5px/1.3 var(--tho-sans); color: var(--tho-ink); }
.thw .thw-glossary > summary::-webkit-details-marker { display: none; }
.thw .thw-glossary > summary::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(var(--tho-ink), var(--tho-ink)) 50% 50% / 10px 1.6px no-repeat, linear-gradient(var(--tho-ink), var(--tho-ink)) 50% 50% / 1.6px 10px no-repeat; box-shadow: inset 0 0 0 1.5px var(--thw-gold-deep); transition: transform .25s var(--tho-ease); }
.thw .thw-glossary[open] > summary::before { transform: rotate(45deg); }
.thw .thw-glossary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; margin: 4px 0 26px 34px; }
.thw .thw-glossary dl > div { margin: 0; }
.thw .thw-glossary dt { display: flex; align-items: center; gap: 10px; font: 450 1.1rem/1.2 var(--tho-display); color: var(--tho-ink); }
.thw .thw-glossary dt .tho-glyph { width: 20px; height: 20px; color: var(--thw-ink-gold); }
.thw .thw-glossary dd { margin: 6px 0 0 30px; color: var(--tho-ink-2); font-size: 14.5px; line-height: 1.52; }

/* ======================================================================
   II — The observatory
   ====================================================================== */
.thw .thw-obs { background: radial-gradient(1100px 520px at 78% 8%, rgba(74, 53, 87, .38), transparent 70%), radial-gradient(800px 500px at 10% 70%, rgba(32, 52, 92, .3), transparent 70%), var(--thw-stars) 0 0 / 380px 380px, linear-gradient(#0d1730, var(--thw-indigo) 40%, var(--thw-night)); }
.thw .thw-obs-head { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.thw .thw-key { position: relative; margin: 0; padding: 22px 24px 20px; border: 1px solid rgba(201, 163, 94, .3); border-radius: 18px; background: linear-gradient(rgba(16, 25, 48, .82), rgba(8, 13, 24, .82)); }
.thw .thw-key::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(201, 163, 94, .1); border-radius: 13px; pointer-events: none; }
.thw .thw-key h3 { margin: 0 0 14px; font: 700 11.5px/1.3 var(--tho-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tho-gold); }
.thw .thw-key dl { display: grid; gap: 16px; margin: 0; }
.thw .thw-key-row { margin: 0; }
.thw .thw-key-row dt { display: flex; align-items: center; gap: 12px; font: 450 1.14rem/1.2 var(--tho-display); color: var(--tho-bone); }
.thw .thw-key-row dt i { flex: none; width: 30px; height: 2px; border-radius: 2px; }
.thw .thw-key-row--args dt i { background: var(--tho-gold-hi); }
.thw .thw-key-row--shared dt i { background: repeating-linear-gradient(90deg, rgba(233, 228, 214, .8) 0 2px, transparent 2px 7px); }
.thw .thw-key-row dd { margin: 5px 0 0 42px; color: #cfc8b8; font-size: 14px; line-height: 1.5; }
.thw .thw-map { margin-top: 46px; }
.thw .thw-scope { position: relative; padding: 14px; border-radius: 32px; border: 1px solid rgba(201, 163, 94, .26); background: radial-gradient(70% 60% at 50% 40%, rgba(28, 42, 73, .45), transparent 75%), rgba(5, 9, 18, .55); box-shadow: inset 0 0 0 5px rgba(6, 10, 21, .65), inset 0 0 0 6px rgba(201, 163, 94, .12), 0 40px 80px -40px rgba(0, 0, 0, .8); }
.thw .thw-scope .sh-constellation { border-radius: 22px; }
.thw .thw-rim { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.thw .thw-rim-c { position: absolute; width: clamp(64px, 9vw, 112px); height: auto; overflow: visible; }
.thw .thw-rim-c--tl { left: 4px; top: 4px; }
.thw .thw-rim-c--tr { right: 4px; top: 4px; transform: scaleX(-1); }
.thw .thw-rim-c--br { right: 4px; bottom: 4px; transform: scale(-1, -1); }
.thw .thw-rim-c--bl { left: 4px; bottom: 4px; transform: scaleY(-1); }
.thw .thw-rim-arc { fill: none; stroke: rgba(201, 163, 94, .55); stroke-width: 1.2; }
.thw .thw-rim-arc--in { stroke: rgba(201, 163, 94, .25); stroke-dasharray: 2 5; }
.thw .thw-rim-ticks { stroke: rgba(201, 163, 94, .5); stroke-width: 1; }
.thw .thw-rim-bead { fill: var(--tho-gold-hi); }
.thw .thw-rim-star { fill: rgba(201, 163, 94, .55); }
.thw .thw-rim-rose { position: absolute; left: 50%; top: -31px; width: 62px; height: 62px; margin-left: -31px; overflow: visible; }
.thw .thw-rim-rose .thw-rim-arc:first-child { fill: #0b1426; }
.thw .tho-lg.is-none { opacity: .62; }
.thw .thw-recorded { margin-top: 46px; }
.thw .thw-recorded ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; margin: 16px 0 0; padding: 0; }
.thw .thw-rel { margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(201, 163, 94, .28); }
.thw .thw-rel-line { display: block; width: 100%; height: 16px; margin-bottom: 14px; overflow: visible; }
.thw .thw-rel-line path { stroke: var(--rel, var(--tho-conflict)); stroke-width: 2; }
.thw .thw-rel-line circle { fill: #e9cf94; stroke: #0b1426; stroke-width: 2; }
.thw .thw-rel--tension { --rel: var(--tho-tension); } .thw .thw-rel--support { --rel: var(--tho-support); } .thw .thw-rel--convergence { --rel: var(--tho-convergence); }
.thw .thw-rel--tension .thw-rel-line path { stroke-dasharray: 6 5; }
.thw .thw-rel p { color: var(--tho-bone-2); line-height: 1.45; }
.thw .thw-rel p a { color: var(--tho-bone); font: 430 1.06rem/1.3 var(--tho-display); text-decoration: underline; text-decoration-color: rgba(241, 237, 228, .28); text-underline-offset: 3px; }
.thw .thw-rel p a:hover { text-decoration-color: var(--tho-gold-hi); }
.thw .thw-rel-k { color: var(--rel, var(--tho-conflict)); font: 650 12.5px/1 var(--tho-sans); letter-spacing: .04em; padding: 0 2px; }
.thw .thw-rel .thw-meta { margin-top: 10px; font-size: 13px; }
.thw .thw-rel .thw-meta a { color: var(--tho-bone-2); }
.thw .thw-map-foot { margin-top: 34px; }

/* ======================================================================
   III — The window
   ====================================================================== */
.thw .thw-window { background: radial-gradient(900px 520px at 22% 30%, rgba(248, 205, 170, .45), transparent 70%), linear-gradient(#f1dfd3, #f3e8dd 45%, var(--thw-parch)); }
.thw .thw-window-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 84px); align-items: center; }
.thw .thw-window-art { margin: 0; }
.thw .thw-art--window { width: 100%; max-width: 420px; margin: 0 auto; filter: drop-shadow(0 30px 34px rgba(110, 70, 40, .2)); }
.thw .thw-frame-stone { fill: #ebdfcb; }
.thw .thw-frame-line { fill: none; stroke: rgba(92, 70, 44, .5); stroke-width: 1.4; }
.thw .thw-frame-key { fill: #dccaa8; stroke: rgba(92, 70, 44, .5); stroke-width: 1.2; }
.thw .thw-mullion { stroke: #e4d5bb; stroke-width: 7; }
.thw .thw-sill { fill: #e4d5bb; stroke: rgba(92, 70, 44, .45); stroke-width: 1.2; }
.thw .thw-sill-shadow { fill: rgba(92, 70, 44, .18); }
.thw .thw-land path { fill: rgba(184, 137, 62, .22); stroke: rgba(122, 90, 32, .35); stroke-width: 1; }
.thw .thw-globe-grid ellipse, .thw .thw-globe-grid path { fill: none; stroke: rgba(122, 90, 32, .32); stroke-width: 1; }
.thw .thw-signals path { fill: none; stroke: rgba(255, 244, 214, .85); stroke-width: 1.2; stroke-dasharray: 2 5; stroke-linecap: round; }
.thw .thw-city-glow { fill: rgba(255, 238, 196, .55); opacity: .55; }
.thw .thw-city-dot { fill: #fff8e6; }
.thw .thw-art--window .thw-twk { fill: #fff6dc; }
.thw .thw-sea { fill: rgba(236, 178, 140, .55); }
.thw .thw-sea-line { stroke: rgba(255, 246, 230, .7); stroke-width: 1.2; stroke-linecap: round; }
.thw .thw-tube { stroke: #5b4a3a; stroke-width: 7; stroke-linecap: round; }
.thw .thw-tripod { fill: none; stroke: #5b4a3a; stroke-width: 2.2; stroke-linejoin: round; }
.thw .thw-lens { fill: var(--tho-gold); }
.thw .thw-dispatches { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--tho-rule); }
.thw .thw-dispatch { display: grid; gap: 8px; margin: 0; padding: 18px 0 18px; border-bottom: 1px solid var(--tho-rule); }
.thw .thw-dispatch-k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 700 11.5px/1.3 var(--tho-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tho-ink-3); }
.thw .thw-dispatch-k span { color: #8e4f36; }
.thw .thw-dispatch-k time::before { content: "·"; margin-right: 12px; color: var(--tho-ink-3); }
.thw .thw-dispatch-k span + time::before { display: inline; }
.thw .thw-dispatch-k time:first-child::before { display: none; }
.thw .thw-dispatch h3 { font-size: 1.16rem; line-height: 1.28; color: var(--tho-ink); }
.thw .thw-dispatch--lead h3 { font-size: clamp(1.45rem, 1.15rem + 1vw, 2.05rem); line-height: 1.12; }
.thw .thw-dispatch h3 a { color: inherit; text-decoration: none; }
.thw .thw-dispatch h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.thw .thw-dispatch p { color: var(--tho-ink-2); font-size: 15px; line-height: 1.55; }
.thw .thw-dispatch .thw-prov { color: var(--tho-ink-3); font-size: 13px; }
.thw .thw-observed { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--tho-ink-2); font: 400 1.04rem/1.45 var(--tho-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 24; --tho-glyph-cut: var(--thw-parch); }
.thw .thw-observed .tho-glyph { width: 24px; height: 24px; color: #3f6f9f; }

/* ======================================================================
   IV — The chamber
   ====================================================================== */
.thw .thw-hall { background: radial-gradient(900px 480px at 12% 8%, rgba(201, 163, 94, .13), transparent 70%), radial-gradient(800px 600px at 70% 60%, rgba(120, 80, 150, .16), transparent 70%), linear-gradient(#2a1d3a, var(--tho-plum-1) 30%, var(--thw-plum)); --tho-glyph-cut: var(--tho-plum-1); }
.thw .thw-chamber-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 84px); align-items: center; margin-top: clamp(40px, 5vw, 60px); }
.thw .thw-chamber { position: relative; display: block; width: 100%; max-width: 520px; aspect-ratio: 1; margin-inline: auto; padding: 0; background: none; }
.thw .thw-art--chamber { position: absolute; inset: 0; width: 100%; height: 100%; }
.thw .thw-floor { fill: rgba(23, 15, 32, .55); stroke: rgba(201, 163, 94, .4); stroke-width: .3; }
.thw .thw-floor-ring { fill: none; stroke: rgba(201, 163, 94, .2); stroke-width: .25; }
.thw .thw-floor-ring--in { stroke: rgba(185, 167, 218, .3); stroke-dasharray: .6 1.4; }
.thw .thw-floor-ring--core { stroke: rgba(201, 163, 94, .55); fill: #241a33; }
.thw .thw-floor-ticks { stroke: rgba(201, 163, 94, .45); stroke-width: .25; }
.thw .thw-ray { fill: none; stroke: rgba(201, 163, 94, .6); stroke-width: .4; stroke-linecap: round; transition: stroke .25s, stroke-width .25s; }
.thw .thw-tie { fill: none; stroke: rgba(185, 167, 218, .42); stroke-width: .3; stroke-dasharray: .7 1.3; }
.thw .thw-seat { position: absolute; left: var(--x); top: var(--y); z-index: 1; display: grid; justify-items: center; gap: 6px; width: 32%; transform: translate(-50%, -32%); text-align: center; text-decoration: none; color: var(--tho-bone); }
.thw .thw-seat img, .thw .thw-seat-blank { width: 58%; aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--tho-plum-1), 0 0 0 4.5px var(--tho-gold); filter: saturate(.82); transition: box-shadow .25s var(--tho-ease), filter .25s, transform .25s var(--tho-ease); }
.thw .thw-seat-blank { display: grid; place-items: center; background: var(--tho-plum-1); }
.thw .thw-seat b { font: 450 15px/1.2 var(--tho-display); }
.thw .thw-seat b, .thw .thw-seat small { text-shadow: 0 0 2px #241a33, 0 0 6px #241a33, 0 0 10px #241a33; }
.thw .thw-seat small { margin-top: -2px; color: var(--tho-bone-3); font-size: 12px; }
.thw .thw-seat:hover img, .thw .thw-seat:focus-visible img { transform: scale(1.05); filter: none; box-shadow: 0 0 0 3px var(--tho-plum-1), 0 0 0 4.5px var(--tho-gold-hi), 0 0 34px 6px rgba(227, 197, 140, .4); }
.thw .thw-chamber:has(.thw-seat--1:hover, .thw-seat--1:focus-visible) .thw-ray--1,
.thw .thw-chamber:has(.thw-seat--2:hover, .thw-seat--2:focus-visible) .thw-ray--2,
.thw .thw-chamber:has(.thw-seat--3:hover, .thw-seat--3:focus-visible) .thw-ray--3,
.thw .thw-chamber:has(.thw-seat--4:hover, .thw-seat--4:focus-visible) .thw-ray--4 { stroke: var(--tho-gold-hi); stroke-width: .8; }
.thw .thw-chamber-core { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; justify-items: center; gap: 3px; width: 26%; transform: translate(-50%, -50%); text-align: center; color: var(--tho-gold); font: 700 9.5px/1.3 var(--tho-sans); letter-spacing: .16em; text-transform: uppercase; pointer-events: none; }
.thw .thw-chamber-core .tho-glyph { width: 30px; height: 30px; margin-bottom: 2px; }
.thw .thw-chamber-core b { color: var(--tho-bone-2); font-weight: 650; }
.thw .thw-debate-copy .thw-dispatch-k { color: var(--tho-bone-3); }
.thw .thw-debate-copy .thw-dispatch-k span { color: var(--tho-gold); }
.thw .thw-debate-copy .thw-dispatch-k time::before { color: var(--tho-bone-3); }
.thw .thw-debate-copy h3 { margin-top: 10px; font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.45rem); line-height: 1.1; color: var(--tho-bone); }
.thw .thw-topic { margin-top: 14px; color: #d2c7d8; font-size: 15px; line-height: 1.5; }
.thw .thw-chair { margin-top: 8px; color: var(--tho-bone-3); font-size: 13.5px; }
.thw .thw-left { margin: 26px 0 12px; font: 700 11.5px/1.3 var(--tho-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tho-gold); }
.thw .thw-minutes-wrap { margin-top: clamp(48px, 6vw, 72px); }
.thw .thw-minutes { position: relative; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; margin: 20px 0 0; padding: 0; border-top: 1px solid rgba(185, 167, 218, .3); }
.thw .thw-minutes li { position: relative; display: grid; align-content: start; gap: 9px; margin: 0; padding: 26px 0 0; }
.thw .thw-minutes li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--tho-plum-1); box-shadow: 0 0 0 1.5px var(--tho-gold); }
.thw .thw-minutes time { color: var(--tho-gold); font: 700 11.5px/1.3 var(--tho-sans); letter-spacing: .12em; text-transform: uppercase; }
.thw .thw-minutes a { color: var(--tho-bone); text-decoration: none; font: 430 1.14rem/1.3 var(--tho-display); font-variation-settings: "opsz" 30; }
.thw .thw-minutes a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.thw .thw-minutes p { color: var(--tho-bone-3); font-size: 13.5px; line-height: 1.45; }
.thw .thw-q-line { display: flex; gap: 8px; align-items: flex-start; color: #e8cfa9 !important; font-style: italic; }
.thw .thw-q-line .tho-glyph { width: 16px; height: 16px; margin-top: 1px; color: #e3b47e; }

/* ======================================================================
   V — The study
   ====================================================================== */
.thw .thw-study { background: radial-gradient(760px 460px at 82% 22%, rgba(250, 222, 160, .42), transparent 70%), linear-gradient(#f1e7d6, var(--thw-parch)); }
.thw .thw-study-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.thw .thw-study-art { margin: 0; }
.thw .thw-art--study { width: 100%; max-width: 460px; margin-left: auto; }
.thw .thw-lamp-glow { opacity: .85; }
.thw .thw-desk { fill: none; stroke: #5b4a3a; stroke-width: 2; stroke-linecap: round; }
.thw .thw-sheet { fill: #fffaf0; stroke: #b49a72; stroke-width: 1.3; stroke-linejoin: round; }
.thw .thw-sheet-roll { fill: none; stroke: #b49a72; stroke-width: 1.3; stroke-linecap: round; }
.thw .thw-sheet-lines { fill: none; stroke: rgba(74, 68, 83, .3); stroke-width: 1.2; stroke-linecap: round; }
.thw .thw-route-mini { fill: none; stroke: #9a6b22; stroke-width: 1.5; stroke-dasharray: 2 4; stroke-linecap: round; }
.thw .thw-x { fill: none; stroke: #b4473f; stroke-width: 1.6; stroke-linecap: round; }
.thw .thw-x-end { fill: none; stroke: #9a6b22; stroke-width: 1.4; stroke-dasharray: 2.4 2; }
.thw .thw-rose circle { fill: none; stroke: #8d7f68; stroke-width: 1; }
.thw .thw-rose path { fill: rgba(122, 90, 32, .55); }
.thw .thw-quill { fill: #efe3cc; stroke: #8d7f68; stroke-width: 1.2; }
.thw .thw-quill-spine { fill: none; stroke: #8d7f68; stroke-width: 1; }
.thw .thw-lan-ring { fill: none; stroke: #4a3b2c; stroke-width: 2.4; stroke-linecap: round; }
.thw .thw-lan-cap, .thw .thw-lan-base { fill: #4a3b2c; }
.thw .thw-lan-glass { fill: rgba(255, 220, 150, .42); stroke: #4a3b2c; stroke-width: 2.2; stroke-linejoin: round; }
.thw .thw-lan-bars { fill: none; stroke: #4a3b2c; stroke-width: 1.6; }
.thw .thw-lan-flame { fill: #f0a640; }
.thw .thw-glass circle { fill: rgba(255, 255, 255, .25); stroke: #5b4a3a; stroke-width: 2; }
.thw .thw-glass path { stroke: #5b4a3a; stroke-width: 4; stroke-linecap: round; }
.thw .thw-route { position: relative; margin-top: clamp(48px, 6vw, 72px); }
.thw .thw-route-path { position: absolute; left: 0; top: -28px; width: 100%; height: 120px; overflow: visible; pointer-events: none; }
.thw .thw-route-done { fill: none; stroke: var(--thw-gold-deep); stroke-width: 2; stroke-linecap: round; }
.thw .thw-route-ahead { fill: none; stroke: #b3a68f; stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.thw .thw-route--published .thw-route-ahead { stroke: var(--thw-gold-deep); stroke-dasharray: none; }
.thw .thw-route ol { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; }
.thw .thw-route li { display: grid; justify-items: center; align-content: start; gap: 10px; margin: 0; padding: 0 10px; text-align: center; }
.thw .thw-waypoint { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--tho-ink); background: radial-gradient(circle at 50% 42%, #fff6dc, #f1d9a2 58%, #d9b26a); box-shadow: 0 0 0 7px var(--thw-parch), 0 0 28px 5px rgba(233, 190, 110, .45); --tho-glyph-cut: #f1d9a2; transition: box-shadow .6s var(--tho-ease), filter .6s; }
.thw .thw-waypoint .tho-glyph { width: 26px; height: 26px; }
.thw .thw-route .is-gate .thw-waypoint { box-shadow: 0 0 0 7px var(--thw-parch), 0 0 0 8.5px var(--thw-gold-deep), 0 0 28px 5px rgba(233, 190, 110, .45); }
.thw .thw-route .is-pending .thw-waypoint { background: var(--thw-parch); border: 2px dashed #b3a68f; box-shadow: 0 0 0 7px var(--thw-parch); color: var(--tho-ink-3); }
.thw .thw-route li b { font: 450 1.08rem/1.2 var(--tho-display); color: var(--tho-ink); }
.thw .thw-route li > span:last-child { color: var(--tho-ink-3); font-size: 13.5px; line-height: 1.45; }
.thw .thw-state { display: flex; gap: 14px; align-items: flex-start; max-width: 780px; margin-top: 46px; padding: 18px 22px; border: 1px solid var(--tho-rule); border-left: 3px solid var(--thw-gold-deep); border-radius: 4px 14px 14px 4px; background: rgba(255, 253, 248, .75); color: var(--tho-ink-2); font-size: 15px; line-height: 1.55; }
.thw .thw-state .tho-glyph { width: 22px; height: 22px; color: var(--thw-ink-gold); }
.thw .thw-state strong { color: var(--tho-ink); }

/* ======================================================================
   VI — The gallery
   ====================================================================== */
.thw .thw-gallery { background: radial-gradient(900px 640px at 74% 46%, rgba(74, 53, 87, .38), transparent 70%), var(--thw-stars) 120px 60px / 380px 380px, linear-gradient(#0f1a32, var(--thw-indigo)); }
.thw .thw-gallery-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.thw .thw-schools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.thw .thw-schools li { margin: 0; }
.thw .thw-schools a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid rgba(201, 163, 94, .34); border-radius: 999px; color: var(--tho-bone-2); font-size: 13.5px; text-decoration: none; transition: border-color .2s, color .2s, background-color .2s; }
.thw .thw-schools a:hover { border-color: var(--tho-gold-hi); color: var(--tho-bone); background: rgba(201, 163, 94, .08); }
.thw .thw-schools a.is-all { border-style: dashed; }
.thw .thw-orrery { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; margin-inline: auto; }
.thw .thw-art--orrery { position: absolute; inset: 0; width: 100%; height: 100%; }
.thw .thw-orbit { fill: none; stroke: rgba(201, 163, 94, .36); stroke-width: .22; }
.thw .thw-orbit--fine { stroke: rgba(201, 163, 94, .2); stroke-dasharray: .5 1.3; }
.thw .thw-orbit--rim { stroke: rgba(241, 237, 228, .14); }
.thw .thw-orbit-ticks { stroke: rgba(201, 163, 94, .42); stroke-width: .2; }
.thw .thw-orbit-beads circle { fill: var(--tho-gold); }
.thw .thw-sun-rays { stroke: rgba(227, 197, 140, .32); stroke-width: .25; stroke-linecap: round; }
.thw .thw-arm { stroke: rgba(201, 163, 94, .32); stroke-width: .25; }
.thw .thw-planets { list-style: none; margin: 0; padding: 0; }
.thw .thw-planet { position: absolute; left: var(--x); top: var(--y); width: 13%; margin: 0; transform: translate(-50%, -50%); }
.thw .thw-planet--outer { width: 11%; }
.thw .thw-planet a { position: relative; display: block; border-radius: 50%; text-decoration: none; }
.thw .thw-planet img, .thw .thw-planet-blank { display: block; width: 100%; aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--tho-night-1), 0 0 0 3px rgba(201, 163, 94, .6); filter: saturate(.78) brightness(.9); transition: transform .22s var(--tho-ease), box-shadow .22s var(--tho-ease), filter .22s; }
.thw .thw-planet-blank { display: grid; place-items: center; background: var(--tho-night-2); color: var(--tho-gold); }
.thw .thw-plate { position: absolute; left: 50%; top: calc(100% + 9px); z-index: 3; display: grid; justify-items: center; gap: 2px; padding: 7px 13px 8px; border: 1px solid rgba(201, 163, 94, .45); border-radius: 10px; background: rgba(6, 10, 21, .94); color: var(--tho-bone); white-space: nowrap; opacity: 0; transform: translate(-50%, -4px); pointer-events: none; transition: opacity .16s, transform .2s var(--tho-ease); }
.thw .thw-plate::before { content: ""; position: absolute; left: 50%; top: -5px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg); border-left: 1px solid rgba(201, 163, 94, .45); border-top: 1px solid rgba(201, 163, 94, .45); background: rgba(6, 10, 21, .94); }
.thw .thw-plate b { font: 450 14.5px/1.2 var(--tho-display); }
.thw .thw-plate small { font: 500 11.5px/1.3 var(--tho-sans); color: var(--tho-bone-3); }
.thw .thw-planet a:hover img, .thw .thw-planet a:focus-visible img { transform: scale(1.12); filter: none; box-shadow: 0 0 0 2px var(--tho-night-1), 0 0 0 3.5px var(--tho-gold-hi), 0 0 26px 4px rgba(243, 214, 150, .4); }
.thw .thw-planet a:hover .thw-plate, .thw .thw-planet a:focus-visible .thw-plate { opacity: 1; transform: translate(-50%, 0); }
.thw .thw-planet:hover, .thw .thw-planet:focus-within { z-index: 4; }
.thw .thw-today { position: absolute; left: 50%; top: 48%; width: 38%; margin: 0; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; text-align: center; }
.thw .thw-today img { width: 50%; aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--tho-night-1), 0 0 0 5px var(--tho-gold), 0 0 64px 8px rgba(243, 234, 210, .26); }
.thw .thw-today figcaption { display: grid; justify-items: center; gap: 4px; }
.thw .thw-today small { margin-top: 8px; color: var(--tho-gold); font: 700 10.5px/1.2 var(--tho-sans); letter-spacing: .18em; text-transform: uppercase; }
.thw .thw-today b { font: 450 clamp(1.05rem, .9rem + .7vw, 1.5rem)/1.15 var(--tho-display); color: var(--tho-bone); }
.thw .thw-today-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--tho-bone-3); font-size: 12.5px; line-height: 1.4; }
.thw .thw-today-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; justify-content: center; margin-top: 4px; }
.thw .thw-today-actions a { color: var(--tho-gold-hi); font: 650 13px var(--tho-sans); text-decoration: none; }
.thw .thw-today-actions a:hover { text-decoration: underline; }

/* ======================================================================
   The catalogue (the full archive, unchanged inside)
   ====================================================================== */
.thw .thw-catalogue.tho-archive { padding: 0 0 clamp(40px, 5vw, 70px); }
.thw .thw-catalogue .tho-legacy { position: relative; z-index: 3; }
.thw .thw-catalogue-head .thw-head { max-width: 760px; }
.thw .thw-catalogue .thw-seam + .thw-wrap { padding-top: clamp(40px, 4vw, 56px); }
.thw .thw-catalogue-foot { height: 0; }
.thw .thw-lead--quiet { font-size: 1.04rem; }

/* ----- the catalogue, card by card (homepage and every filtered or later page of it) ----- */
body.tho-world .tho-legacy { --cat-card: #fffdf8; --cat-rule: #e2d6bf; }
body.tho-world .tho-legacy .thought-archive-filters { padding: 18px 20px 20px; border: 1px solid var(--cat-rule); border-radius: 22px; background: #fffaf0; box-shadow: inset 0 0 0 5px #fffaf0, inset 0 0 0 6px rgba(184, 137, 62, .26), 0 18px 40px -34px rgba(60, 40, 20, .6); }
body.tho-world .tho-legacy .thought-archive-filters label > span, body.tho-world .tho-legacy .thought-archive-more-panel label > span { font: 700 10.5px/1.3 var(--tho-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--thw-ink-gold); }
body.tho-world .tho-legacy .thought-archive-filters input[type="search"], body.tho-world .tho-legacy .thought-archive-filters select { min-height: 46px; border: 1px solid #d6c7aa; border-radius: 12px; background-color: var(--cat-card); color: var(--tho-ink); font: 500 15px/1.2 var(--tho-sans); box-shadow: none; }
body.tho-world .tho-legacy .thought-archive-filters input[type="search"]:hover, body.tho-world .tho-legacy .thought-archive-filters select:hover { border-color: #b89a62; }
body.tho-world .tho-legacy .thought-archive-filters > button[type="submit"] { min-height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--tho-ink); color: var(--thw-parch); font: 650 14.5px/1 var(--tho-sans); cursor: pointer; transition: transform .18s var(--tho-ease), background-color .18s; }
body.tho-world .tho-legacy .thought-archive-filters > button[type="submit"]:hover { transform: translateY(-2px); background: #2c2838; }
body.tho-world .tho-legacy .thought-archive-more > summary { min-height: 46px; border: 1.5px solid #cdbb98; border-radius: 999px; background: transparent; }
body.tho-world .tho-legacy .thought-archive-more[open] > summary { border-color: var(--thw-gold-deep); background: rgba(184, 137, 62, .08); }
body.tho-world .tho-legacy .thought-archive-more-panel { border-color: var(--cat-rule); border-radius: 16px; background: #fffaf0; }

body.tho-world .tho-legacy .thought-archive-layout .sh-thought-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.tho-world .tho-legacy .sh-thought-card { position: relative; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 18px 16px; overflow: visible; border: 1px solid var(--cat-rule); border-radius: 20px; background: var(--cat-card); box-shadow: 0 14px 30px -28px rgba(60, 40, 20, .7); transition: transform .25s var(--tho-ease), border-color .25s, box-shadow .25s; }
body.tho-world .tho-legacy .sh-thought-card::after { content: ""; position: absolute; right: 14px; top: 12px; width: 14px; height: 14px; background: var(--thw-gold-deep); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; transform: scale(.4) rotate(-45deg); transition: opacity .25s, transform .45s var(--tho-spring); pointer-events: none; }
body.tho-world .tho-legacy .sh-thought-card:hover, body.tho-world .tho-legacy .sh-thought-card:focus-within { transform: translateY(-3px); border-color: #cfb27a; box-shadow: 0 22px 38px -26px rgba(60, 40, 20, .65); }
body.tho-world .tho-legacy .sh-thought-card:hover::after, body.tho-world .tho-legacy .sh-thought-card:focus-within::after { opacity: 1; transform: scale(1) rotate(0); }
body.tho-world .tho-legacy .sh-thought-card-image { display: block; width: 78px; height: 78px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 3px var(--cat-card), 0 0 0 4.5px var(--thw-gold-deep); transition: box-shadow .3s var(--tho-ease); }
body.tho-world .tho-legacy .sh-thought-card-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; filter: saturate(.85) sepia(.06); transition: transform .4s var(--tho-ease), filter .3s; }
body.tho-world .tho-legacy .sh-thought-card:hover .sh-thought-card-image { box-shadow: 0 0 0 3px var(--cat-card), 0 0 0 4.5px var(--tho-gold-hi), 0 0 24px 4px rgba(233, 190, 110, .45); }
body.tho-world .tho-legacy .sh-thought-card:hover .sh-thought-card-image img { transform: scale(1.06); filter: none; }
body.tho-world .tho-legacy .sh-thought-card > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0; }
body.tho-world .tho-legacy .sh-thought-card > div > span { font: 700 10.5px/1.3 var(--tho-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--thw-ink-gold); }
body.tho-world .tho-legacy .sh-thought-card h3 { margin: 2px 0 0; font: 450 1.2rem/1.18 var(--tho-display); font-variation-settings: "opsz" 30; color: var(--tho-ink); }
body.tho-world .tho-legacy .sh-thought-card h3 a { color: inherit; text-decoration: none; }
/* the whole card opens the profile; the two buttons sit above that layer */
body.tho-world .tho-legacy .sh-thought-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
body.tho-world .tho-legacy .sh-thought-card h3 a:focus-visible { outline: none !important; }
body.tho-world .tho-legacy .sh-thought-card h3 a:focus-visible::after { outline: 2px solid var(--tho-ink); outline-offset: 3px; }
body.tho-world .tho-legacy .sh-thought-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 0; color: var(--tho-ink-2); font-size: 13.5px; line-height: 1.45; }
body.tho-world .tho-legacy .sh-thought-card-terms { overflow: hidden; margin: 2px 0 0; padding: 0; border: 0; color: var(--tho-ink-3); font: 600 10.5px/1.4 var(--tho-sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
body.tho-world .tho-legacy .sh-thought-card-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; padding: 0; border: 0; }
body.tho-world .tho-legacy .sh-thought-card-actions .sh-thought-card-cta, body.tho-world .tho-legacy .sh-thought-card-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; margin: 0; padding: 0 16px; border-radius: 999px; font: 650 13px/1 var(--tho-sans); letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .18s var(--tho-ease), background-color .18s, border-color .18s, color .18s; }
body.tho-world .tho-legacy .sh-thought-card-actions .sh-thought-card-cta { border: 1.5px solid var(--tho-ink); background: var(--tho-ink); color: var(--thw-parch); }
body.tho-world .tho-legacy .sh-thought-card-actions .sh-thought-card-cta > span { display: none; } /* no stray arrow */
body.tho-world .tho-legacy .sh-thought-card-actions button { border: 1.5px solid #cdbb98; background: transparent; color: var(--tho-ink); }
body.tho-world .tho-legacy .sh-thought-card-actions button::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--thw-bubble) center / contain no-repeat; mask: var(--thw-bubble) center / contain no-repeat; }
body.tho-world .tho-legacy { --thw-bubble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 3h11A2.5 2.5 0 0 1 20 5.5v8a2.5 2.5 0 0 1-2.5 2.5H11l-4.2 3.6c-.6.5-1.6.1-1.6-.7V16h-.7A2.5 2.5 0 0 1 2 13.5v-8A2.5 2.5 0 0 1 4.5 3z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
body.tho-world .tho-legacy .sh-thought-card-actions .sh-thought-card-cta:hover { transform: translateY(-1px); background: #2c2838; border-color: #2c2838; color: var(--thw-parch); }
body.tho-world .tho-legacy .sh-thought-card-actions button:hover { transform: translateY(-1px); border-color: var(--thw-gold-deep); background: rgba(184, 137, 62, .1); color: var(--tho-ink); }

/* the pager: moons on a golden thread; the page you are on is the full moon */
body.tho-world .tho-legacy .navigation.pagination { display: flex; justify-content: center; margin: 44px 0 6px; }
body.tho-world .tho-legacy .pagination ul.page-numbers { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin: 0; padding: 10px 14px; list-style: none; }
body.tho-world .tho-legacy .pagination ul.page-numbers::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed rgba(184, 137, 62, .55); transform-origin: 0 50%; }
body.tho-world .tho-legacy .pagination li { position: relative; z-index: 1; margin: 0; padding: 0; }
body.tho-world .tho-legacy .pagination .page-numbers:not(ul) { position: relative; isolation: isolate; display: grid; place-items: center; min-width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--tho-ink); font: 500 16px/1 var(--tho-display); font-variant-numeric: lining-nums; text-decoration: none; box-shadow: none; transition: transform .25s var(--tho-spring), color .2s; }
body.tho-world .tho-legacy .pagination .page-numbers:not(ul)::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--thw-parch); box-shadow: 0 0 0 1.5px var(--thw-gold-deep), 0 0 0 6px var(--thw-parch); transition: box-shadow .25s, background-color .25s; }
body.tho-world .tho-legacy .pagination a.page-numbers::before { content: ""; position: absolute; inset: -11px; z-index: -2; background: var(--tho-gold-hi); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; transform: scale(.4) rotate(-45deg); transition: opacity .25s, transform .5s var(--tho-spring); }
body.tho-world .tho-legacy .pagination a.page-numbers:hover, body.tho-world .tho-legacy .pagination a.page-numbers:focus-visible { transform: translateY(-3px); }
body.tho-world .tho-legacy .pagination a.page-numbers:hover::before, body.tho-world .tho-legacy .pagination a.page-numbers:focus-visible::before { opacity: .85; transform: scale(1) rotate(0); }
body.tho-world .tho-legacy .pagination a.page-numbers:hover::after { background: #fff6dc; }
body.tho-world .tho-legacy .pagination .page-numbers.current { color: #3b2a12; font-weight: 650; }
body.tho-world .tho-legacy .pagination .page-numbers.current::after { background: radial-gradient(circle at 36% 32%, #fffaf0, #f1d9a2 52%, #c99b4e); box-shadow: 0 0 0 1.5px var(--thw-gold-deep), 0 0 0 6px var(--thw-parch), 0 0 26px 6px rgba(233, 190, 110, .5); }
body.tho-world .tho-legacy .pagination .page-numbers.dots { min-width: 34px; color: var(--thw-ink-gold); letter-spacing: .2em; }
body.tho-world .tho-legacy .pagination .page-numbers.dots::after { box-shadow: 0 0 0 6px var(--thw-parch); background: var(--thw-parch); }
body.tho-world .tho-legacy .pagination .page-numbers.next, body.tho-world .tho-legacy .pagination .page-numbers.prev { padding: 0 20px; font: 650 14px/1 var(--tho-sans); }
body.tho-world .tho-legacy .pagination .page-numbers.next::after, body.tho-world .tho-legacy .pagination .page-numbers.prev::after { background: var(--tho-ink); box-shadow: 0 0 0 6px var(--thw-parch); }
body.tho-world .tho-legacy .pagination .page-numbers.next, body.tho-world .tho-legacy .pagination .page-numbers.prev, body.tho-world .tho-legacy .pagination .page-numbers.next:hover, body.tho-world .tho-legacy .pagination .page-numbers.prev:hover { color: var(--thw-parch); }
body.tho-world .tho-legacy .pagination .page-numbers.next::before, body.tho-world .tho-legacy .pagination .page-numbers.prev::before { display: none; }

/* arrivals: the cards fan in, the moons rise one by one (armed by world.js, below the fold only) */
@media (prefers-reduced-motion: no-preference) {
	body.tho-world .tho-legacy .thw-armed .sh-thought-card { opacity: .001; translate: 0 18px; }
	body.tho-world .tho-legacy .thw-armed.is-in .sh-thought-card { opacity: 1; translate: 0 0; transition: opacity .6s var(--tho-ease) calc(var(--i, 0) * 55ms), translate .7s var(--tho-ease) calc(var(--i, 0) * 55ms), transform .25s var(--tho-ease), border-color .25s, box-shadow .25s; }
	body.tho-world .tho-legacy .pagination.thw-armed ul.page-numbers::before { transform: scaleX(0); }
	body.tho-world .tho-legacy .pagination.thw-armed.is-in ul.page-numbers::before { transform: scaleX(1); transition: transform 1.1s var(--tho-ease); }
	body.tho-world .tho-legacy .pagination.thw-armed li { opacity: 0; scale: .5; }
	body.tho-world .tho-legacy .pagination.thw-armed.is-in li { opacity: 1; scale: 1; transition: opacity .4s var(--tho-ease) calc(var(--i, 0) * 90ms + .25s), scale .6s var(--tho-spring) calc(var(--i, 0) * 90ms + .25s); }
}
@media (max-width: 1099px) { body.tho-world .tho-legacy .thought-archive-layout .sh-thought-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
	body.tho-world .tho-legacy .thought-archive-layout .sh-thought-card-grid { grid-template-columns: minmax(0, 1fr); }
	body.tho-world .tho-legacy .sh-thought-card { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 16px; }
	body.tho-world .tho-legacy .sh-thought-card-image { width: 64px; height: 64px; }
	body.tho-world .tho-legacy .pagination ul.page-numbers { gap: 10px; }
}
/* archive mode (filtered or later pages): the same catalogue under the V2 intro */
body.tho-world .tho--archive .tho-archive.is-alone { padding-top: 34px; }

/* ----- the footer: the ground beneath the observatory, where the thread ends ----- */
body.tho-world .sh-thought-footer { position: relative; gap: 40px 0; padding: 64px max(6vw, 24px) 36px; border-top: 0; background: radial-gradient(640px 260px at 50% 0%, rgba(242, 200, 121, .09), transparent 72%), radial-gradient(900px 400px at 0% 100%, rgba(74, 53, 87, .22), transparent 70%), #04060c; color: #cfc8b8; }
body.tho-world .sh-thought-footer .sh-thought-footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--tho-bone); font: 420 clamp(2.1rem, 1.7rem + 1vw, 2.7rem)/1 var(--tho-display); font-variation-settings: "SOFT" 60, "opsz" 96; letter-spacing: -.015em; }
body.tho-world .sh-thought-footer .sh-thought-footer-brand::before { content: ""; width: 18px; height: 18px; background: var(--tho-gold-hi); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
body.tho-world .sh-thought-footer .sh-thought-footer-intro > span { color: #bdb6a6; font: 400 1.08rem/1.45 var(--tho-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 24; }
body.tho-world .sh-thought-footer .sh-thought-footer-heading { margin: 0 0 12px; color: var(--tho-gold); font: 700 11px/1.3 var(--tho-sans); letter-spacing: .2em; text-transform: uppercase; }
body.tho-world .sh-thought-footer .sh-thought-footer-group ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
body.tho-world .sh-thought-footer .sh-thought-footer-group a { color: var(--tho-bone); font: 500 15px/1.3 var(--tho-sans); text-decoration: none; background: linear-gradient(var(--tho-gold-hi), var(--tho-gold-hi)) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--tho-ease), color .2s; }
body.tho-world .sh-thought-footer .sh-thought-footer-group a:hover, body.tho-world .sh-thought-footer .sh-thought-footer-group a:focus-visible { color: var(--tho-gold-hi); background-size: 100% 1px; }
body.tho-world .sh-thought-footer :focus-visible { outline: 2px solid var(--tho-gold-hi) !important; outline-offset: 3px; }
body.tho-world .sh-thought-footer .sh-thought-footer-social a { border-color: rgba(201, 163, 94, .45); color: var(--tho-gold-hi); }
body.tho-world .sh-thought-footer .sh-thought-footer-social a:hover, body.tho-world .sh-thought-footer .sh-thought-footer-social a:focus-visible { border-color: var(--tho-gold-hi); background: rgba(201, 163, 94, .12); box-shadow: 0 0 18px rgba(227, 197, 140, .3); }
body.tho-world .sh-thought-footer .thought-recommend-thinker__input { height: 46px; padding: 0 18px; border: 1px solid rgba(201, 163, 94, .45); border-right: 0; border-radius: 999px 0 0 999px; background: rgba(241, 237, 228, .06); color: var(--tho-bone); font: 500 14.5px/1 var(--tho-sans); }
body.tho-world .sh-thought-footer .thought-recommend-thinker__input::placeholder { color: #a6aec0; }
body.tho-world .sh-thought-footer .thought-recommend-thinker__submit { height: 46px; padding: 0 22px; border: 1px solid var(--tho-gold); border-radius: 0 999px 999px 0; background: var(--tho-gold); color: var(--thw-night); font: 700 14px/1 var(--tho-sans); transition: background-color .2s; }
body.tho-world .sh-thought-footer .thought-recommend-thinker__submit:hover { background: var(--tho-gold-hi); }
body.tho-world .sh-thought-footer .sh-thought-footer-powered { position: relative; padding-top: 30px; border-top: 1px dashed rgba(201, 163, 94, .32); color: #a6aec0; font: 600 12.5px/1.5 var(--tho-sans); }
body.tho-world .sh-thought-footer .sh-thought-footer-powered a { color: var(--tho-bone); }
/* the coda: the thread's last star, on the last line of the page */
body.tho-world .thw-coda { display: grid; place-items: center; width: 42px; height: 42px; margin: -52px auto 12px; border-radius: 50%; background: radial-gradient(circle at 50% 34%, #1f2a48, #0b1426 72%); box-shadow: 0 0 0 1.5px var(--tho-gold), 0 0 0 5px #04060c, 0 0 0 6px rgba(201, 163, 94, .4); color: var(--tho-gold-hi); transition: box-shadow .6s var(--tho-ease); }
body.tho-world .thw-coda .thw-spark { width: 16px; height: 16px; fill: currentColor; }
body.tho-world .thw-coda.is-lit { box-shadow: 0 0 0 1.5px var(--tho-gold-hi), 0 0 0 5px #04060c, 0 0 0 6px rgba(227, 197, 140, .75), 0 0 34px 8px rgba(227, 197, 140, .4); }
@media (min-width: 1100px) {
	/* a centre corridor the thread can travel down without touching a word */
	body.tho-world .sh-thought-footer { grid-template-columns: minmax(0, 1fr) clamp(120px, 12vw, 220px) minmax(0, 1fr); }
	body.tho-world .sh-thought-footer .sh-thought-footer-intro { grid-column: 1; }
	body.tho-world .sh-thought-footer .sh-thought-footer-links { grid-column: 3; }
}
body.tho-world .sh-thought-footer .sh-thought-footer-groups { display: grid; grid-template-columns: repeat(4, max-content); gap: 22px 40px; }
@media (max-width: 1279px) { body.tho-world .sh-thought-footer .sh-thought-footer-groups { grid-template-columns: repeat(2, max-content); } }
@media (max-width: 1099px) { body.tho-world .sh-thought-footer .sh-thought-footer-groups { grid-template-columns: repeat(4, max-content); } }
@media (max-width: 760px) { body.tho-world .sh-thought-footer .sh-thought-footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
	body.tho-world .tho-legacy *, body.tho-world .tho-legacy *::before, body.tho-world .tho-legacy *::after, body.tho-world .sh-thought-footer * { transition: none !important; animation: none !important; }
}

/* ======================================================================
   VII — The wider sky, and the road home
   ====================================================================== */
.thw .thw-sky .thw-seam + .thw-wrap { padding-top: clamp(40px, 4vw, 58px); }
.thw .thw-sky { padding-bottom: 0; background: radial-gradient(760px 380px at 50% 96%, rgba(243, 234, 210, .12), transparent 70%), var(--thw-stars) 40px 120px / 380px 380px, linear-gradient(#0b1324, var(--thw-night) 66%, var(--thw-ground)); --tho-glyph-cut: var(--thw-night); }
.thw .thw-chart { position: relative; max-width: 1100px; height: 400px; margin: 34px auto 0; }
.thw .thw-art--chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.thw .thw-chart-path { fill: none; stroke: rgba(201, 163, 94, .5); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.thw .thw-chart-path--soft { stroke: rgba(201, 163, 94, .32); stroke-dasharray: 2 7; }
.thw .thw-chart ul { list-style: none; margin: 0; padding: 0; }
.thw .thw-door { position: absolute; left: var(--x); top: var(--y); margin: 0; transform: translate(-50%, -28px); }
.thw .thw-door a { display: grid; justify-items: center; gap: 8px; width: 176px; padding: 4px 8px 10px; border-radius: 16px; text-align: center; text-decoration: none; color: var(--tho-bone); }
.thw .thw-door-star { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(201, 163, 94, .6); color: var(--tho-gold-hi); background: radial-gradient(circle, rgba(201, 163, 94, .22), rgba(6, 10, 21, .9) 70%); box-shadow: 0 0 26px rgba(227, 197, 140, .16); transition: transform .22s var(--tho-ease), box-shadow .22s var(--tho-ease); }
.thw .thw-door-star .tho-glyph { width: 26px; height: 26px; }
.thw .thw-door a:hover .thw-door-star, .thw .thw-door a:focus-visible .thw-door-star { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(227, 197, 140, .12), 0 0 34px 6px rgba(227, 197, 140, .45); }
.thw .thw-door b { font: 450 1.08rem/1.2 var(--tho-display); }
.thw .thw-door b, .thw .thw-door small { text-shadow: 0 0 2px #070c19, 0 0 7px #070c19, 0 0 12px #070c19; }
.thw .thw-door small { color: var(--tho-bone-3); font-size: 12.5px; line-height: 1.35; }
.thw .thw-closing { max-width: 54ch; margin: 18px auto 0; text-align: center; color: var(--tho-bone-2); font: 400 1.18rem/1.5 var(--tho-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 24; }
.thw .thw-home { position: relative; height: 260px; margin-top: 10px; }
.thw .thw-art--home { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.thw .thw-home-stars circle { fill: #f3ead2; opacity: .75; }
.thw .thw-hill { fill: #04060c; }
.thw .thw-hill--far { fill: #0b1426; }
.thw .thw-road { fill: none; stroke: rgba(227, 197, 140, .4); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.thw .thw-obs-body, .thw .thw-obs-dome { fill: #04060c; }
.thw .thw-obs-slit { fill: #e8c27a; }
.thw .thw-obs-door { fill: #f2c879; }
.thw .thw-obs-scope { stroke: #04060c; stroke-width: 6; stroke-linecap: round; }
.thw .thw-tree path { fill: none; stroke: #04060c; stroke-width: 3; stroke-linecap: round; }
.thw .thw-tree circle { fill: #04060c; }
.thw .thw-obsy { filter: drop-shadow(0 0 1px rgba(160, 180, 220, .35)); }

/* ======================================================================
   Finite motion: armed by world.js below the fold, released once on arrival
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) {
	/* I */
	.thw .thw-armed .thw-book-cons .thw-cl--main, .thw .thw-armed .thw-book-thread { stroke-dasharray: 1; stroke-dashoffset: 1; }
	.thw .thw-armed.is-in .thw-book-thread { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--tho-ease) .2s; }
	.thw .thw-armed.is-in .thw-book-cons .thw-cl--main { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--tho-ease) 1s; }
	.thw .thw-armed .thw-cl--branch, .thw .thw-armed .thw-cl--leaves, .thw .thw-armed .thw-m, .thw .thw-armed .thw-book-rays { opacity: 0; }
	.thw .thw-armed.is-in .thw-cl--branch, .thw .thw-armed.is-in .thw-cl--leaves, .thw .thw-armed.is-in .thw-m, .thw .thw-armed.is-in .thw-book-rays { opacity: 1; transition: opacity .9s var(--tho-ease) 1.7s; }
	.thw .thw-armed.is-in .thw-m--thinker { transition-delay: 1s; }
	.thw .thw-armed.is-in .thw-m--idea { transition-delay: 1.4s; }
	.thw .thw-armed.is-in .thw-m--debate { transition-delay: 1.8s; }
	.thw .thw-armed.is-in .thw-book-rays { transition-delay: .3s; }
	.thw .thw-armed .thw-book-light { opacity: .35; }
	.thw .thw-armed.is-in .thw-book-light { opacity: 1; transition: opacity 1.6s var(--tho-ease) .1s; }
	.thw .thw-armed.is-in .thw-twk { animation: thw-twinkle 2.6s var(--tho-ease) calc(var(--i) * 130ms + .4s) both; }
	.thw .thw-journey.is-armed .thw-stop { opacity: .001; translate: 0 14px; }
	.thw .thw-journey.is-armed.is-drawn .thw-stop { opacity: 1; translate: 0 0; transition: opacity .7s var(--tho-ease), translate .7s var(--tho-ease); }
	.thw .thw-journey.is-armed.is-drawn .thw-stop--thought { transition-delay: .9s; }
	.thw .thw-journey.is-armed.is-drawn .thw-stop--idea { transition-delay: .35s; }
	.thw .thw-journey.is-armed.is-drawn .thw-stop--debate { transition-delay: .7s; }
	.thw .thw-journey.is-armed.is-drawn .thw-stop--question { transition-delay: 1.05s; }
	.thw .thw-journey.is-armed .thw-journey-line .main, .thw .thw-journey.is-armed .thw-journey-line .glow { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
	.thw .thw-journey.is-armed.is-drawn .thw-journey-line .main, .thw .thw-journey.is-armed.is-drawn .thw-journey-line .glow { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--tho-ease) .15s; }
	.thw .thw-journey.is-armed .thw-journey-line .branch, .thw .thw-journey.is-armed .thw-journey-line .leaves, .thw .thw-journey.is-armed .thw-journey-line .junction { opacity: 0; }
	.thw .thw-journey.is-armed.is-drawn .thw-journey-line .branch, .thw .thw-journey.is-armed.is-drawn .thw-journey-line .leaves, .thw .thw-journey.is-armed.is-drawn .thw-journey-line .junction { opacity: 1; transition: opacity .8s var(--tho-ease) 1.2s; }
	.thw .thw-journey .thw-node { transition: box-shadow .8s var(--tho-ease) .4s; }
	/* II */
	.thw .thw-armed .thw-rim-c, .thw .thw-armed .thw-rim-rose { opacity: 0; }
	.thw .thw-armed .thw-rim-rose { rotate: -60deg; }
	.thw .thw-armed.is-in .thw-rim-c, .thw .thw-armed.is-in .thw-rim-rose { opacity: 1; rotate: 0deg; transition: opacity 1s var(--tho-ease) .3s, rotate 1.6s var(--tho-ease) .3s; }
	.thw .thw-armed .thw-rel-line path { stroke-dasharray: 108; stroke-dashoffset: 108; }
	.thw .thw-armed.is-in .thw-rel-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--tho-ease) .9s; }
	.thw .thw-armed.is-in .thw-rel:nth-child(2) .thw-rel-line path { transition-delay: 1.15s; }
	.thw .thw-armed.is-in .thw-rel:nth-child(3) .thw-rel-line path { transition-delay: 1.4s; }
	.thw .thw-armed.is-in .thw-rel--tension .thw-rel-line path { stroke-dasharray: 6 5; stroke-dashoffset: 0; transition: none; }
	/* III */
	.thw .thw-armed .thw-city-glow { opacity: 0; }
	.thw .thw-armed.is-in .thw-city-glow { animation: thw-city 2.6s var(--tho-ease) calc(var(--i) * 280ms + .5s) both; }
	.thw .thw-armed .thw-signals { opacity: 0; }
	.thw .thw-armed.is-in .thw-signals { opacity: 1; transition: opacity 1.4s var(--tho-ease) 1.8s; }
	.thw .thw-armed .thw-globe { translate: 0 18px; }
	.thw .thw-armed.is-in .thw-globe { translate: 0 0; transition: translate 2.2s var(--tho-ease) .1s; }
	/* IV */
	.thw .thw-armed .thw-ray { stroke-dasharray: 1; stroke-dashoffset: 1; }
	.thw .thw-armed.is-in .thw-ray { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--tho-ease) .4s, stroke .25s, stroke-width .25s; }
	.thw .thw-armed.is-in .thw-ray--2 { transition-delay: .6s, 0s, 0s; }
	.thw .thw-armed.is-in .thw-ray--3 { transition-delay: .8s, 0s, 0s; }
	.thw .thw-armed.is-in .thw-ray--4 { transition-delay: 1s, 0s, 0s; }
	.thw .thw-armed .thw-tie { opacity: 0; }
	.thw .thw-armed.is-in .thw-tie { opacity: 1; transition: opacity 1.2s var(--tho-ease) 1.4s; }
	.thw .thw-armed .thw-chamber-core { opacity: 0; scale: .85; }
	.thw .thw-armed.is-in .thw-chamber-core { opacity: 1; scale: 1; transition: opacity .8s var(--tho-ease) 1.2s, scale .9s var(--tho-spring) 1.2s; }
	/* V */
	.thw .thw-armed .thw-lamp-glow { opacity: .22; }
	.thw .thw-armed.is-in .thw-lamp-glow { opacity: .9; transition: opacity 2.4s var(--tho-ease) .3s; }
	.thw .thw-armed .thw-lan-flame { opacity: .35; }
	.thw .thw-armed.is-in .thw-lan-flame { opacity: 1; transition: opacity 1.2s var(--tho-ease) .3s; }
	.thw .thw-armed .thw-route-done { stroke-dasharray: 1; stroke-dashoffset: 1; }
	.thw .thw-armed.is-in .thw-route-done { stroke-dashoffset: 0; transition: stroke-dashoffset 2s var(--tho-ease) .5s; }
	.thw .thw-armed .thw-route .is-lit .thw-waypoint, .thw .thw-armed .thw-route .is-gate .thw-waypoint { box-shadow: 0 0 0 7px var(--thw-parch); filter: saturate(.3) brightness(1.06); }
	.thw .thw-armed.is-in .thw-route .is-lit .thw-waypoint, .thw .thw-armed.is-in .thw-route .is-gate .thw-waypoint { filter: none; transition-delay: calc(var(--i) * .45s + .5s); }
	.thw .thw-armed.is-in .thw-route .is-lit .thw-waypoint { box-shadow: 0 0 0 7px var(--thw-parch), 0 0 28px 5px rgba(233, 190, 110, .45); }
	.thw .thw-armed.is-in .thw-route .is-gate .thw-waypoint { box-shadow: 0 0 0 7px var(--thw-parch), 0 0 0 8.5px var(--thw-gold-deep), 0 0 28px 5px rgba(233, 190, 110, .45); }
	/* VI */
	.thw .thw-armed .thw-planet { opacity: .001; translate: 0 10px; }
	.thw .thw-armed.is-in .thw-planet { opacity: 1; translate: 0 0; transition: opacity .7s var(--tho-ease) calc(var(--k) * 60ms + .2s), translate .9s var(--tho-ease) calc(var(--k) * 60ms + .2s); }
	.thw .thw-armed .thw-art--orrery { opacity: .25; rotate: -8deg; }
	.thw .thw-armed.is-in .thw-art--orrery { opacity: 1; rotate: 0deg; transition: opacity 1.4s var(--tho-ease), rotate 2.4s var(--tho-ease); }
	/* VII */
	.thw .thw-armed .thw-chart-path { opacity: 0; }
	.thw .thw-armed.is-in .thw-chart-path { opacity: 1; transition: opacity 1.6s var(--tho-ease) .6s; }
	.thw .thw-armed .thw-door-star { opacity: .2; scale: .7; }
	.thw .thw-armed.is-in .thw-door-star { opacity: 1; scale: 1; transition: opacity .6s var(--tho-ease) calc(var(--i) * .16s + .2s), scale .7s var(--tho-spring) calc(var(--i) * .16s + .2s), transform .22s var(--tho-ease), box-shadow .22s var(--tho-ease); }
	.thw .thw-armed .thw-obs-slit, .thw .thw-armed .thw-obs-door { opacity: .25; }
	.thw .thw-armed.is-in .thw-obs-slit, .thw .thw-armed.is-in .thw-obs-door { opacity: 1; transition: opacity 1.8s var(--tho-ease) 1.2s; }
}
@keyframes thw-twinkle { 0% { opacity: .1; } 55% { opacity: 1; } 75% { opacity: .45; } 100% { opacity: 1; } }
@keyframes thw-city { 0% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1.5); } 100% { opacity: .55; transform: scale(1); } }
.thw .thw-city-glow { transform-box: fill-box; transform-origin: center; }

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1099px) {
	.thw .thw-num { font-size: 15px; }
}
@media (max-width: 960px) {
	.thw .thw-book-head, .thw .thw-study-head { grid-template-columns: 1fr; }
	.thw .thw-art--book, .thw .thw-art--study { max-width: 380px; margin: 0 auto; }
	.thw .thw-frontis, .thw .thw-study-art { order: -1; }
	.thw .thw-journey { grid-template-columns: minmax(0, 1fr); grid-template-areas: "thinker" "thought" "idea" "debate" "question"; row-gap: 30px; }
	.thw .thw-stop, .thw .thw-stop--thought { flex-direction: row; gap: 18px; margin-left: 0; max-width: none; }
	.thw .thw-stop--thought { margin-left: 58px; }
	.thw .thw-journey::before { top: 34px; bottom: 34px; left: 33px; right: auto; border-top: 0; border-left: 2px solid var(--thw-gold-deep); }
	.thw .thw-glossary dl { grid-template-columns: 1fr; margin-left: 0; }
}
@media (max-width: 900px) {
	.thw .thw-obs-head, .thw .thw-window-grid, .thw .thw-chamber-grid, .thw .thw-gallery-grid { grid-template-columns: minmax(0, 1fr); }
	.thw .thw-recorded ul, .thw .thw-minutes { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.thw .thw-minutes { border-top: 0; border-left: 1px solid rgba(185, 167, 218, .3); margin-left: 4px; }
	.thw .thw-minutes li { padding: 0 0 26px 22px; }
	.thw .thw-minutes li::before { left: -5px; top: 4px; }
	.thw .thw-art--window { max-width: 300px; }
	.thw .thw-window-art { max-width: 320px; margin-inline: auto; }
	.thw .thw-orrery { max-width: 540px; }
}
@media (max-width: 760px) {
	body.tho-world { --thw-seam: 112px; }
	.thw .thw-route-path { display: none; }
	.thw .thw-route ol { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.thw .thw-route ol::before { content: ""; position: absolute; left: 31px; top: 20px; bottom: 20px; border-left: 2px dashed #c9b996; }
	.thw .thw-route li { grid-template-columns: 64px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 18px; row-gap: 3px; padding: 0; }
	.thw .thw-route li .thw-waypoint { grid-row: 1 / span 2; }
	.thw .thw-chart { height: auto; margin-top: 30px; }
	.thw .thw-art--chart { display: none; }
	.thw .thw-chart ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
	.thw .thw-door { position: static; transform: none; }
	.thw .thw-door a { width: auto; padding: 14px 8px; border: 1px solid rgba(201, 163, 94, .2); background: rgba(6, 10, 21, .4); }
	.thw .thw-seat b { font-size: 13.5px; }
	.thw .thw-seat small { display: none; }
}
@media (max-width: 560px) {
	.thw .thw-seal { width: 48px; height: 48px; }
	.thw .thw-seal-n { font-size: 16px; }
	.thw .thw-place { top: calc(var(--seal-y, 80%) + 34px); font-size: 9.5px; letter-spacing: .2em; }
	.thw .thw-seam--arcade { --arch: 26px; }
	.thw .thw-edge--arches { background-size: 72px 44px; }
	.thw .thw-node { width: 56px; height: 56px; }
	.thw .thw-journey::before { left: 27px; top: 28px; bottom: 28px; }
	.thw .thw-stop--thought { margin-left: 34px; }
	.thw .thw-key { padding: 18px; }
	.thw .thw-key-row dd { margin-left: 0; }
	.thw .thw-scope { padding: 8px; border-radius: 22px; }
	.thw .thw-rim-rose { display: none; }
	.thw .thw-chamber-grid { margin-top: 30px; }
	.thw .thw-seat { width: 36%; }
	.thw .thw-seat img, .thw .thw-seat-blank { width: 64%; }
	.thw .thw-chamber-core span { display: none; }
	/* the gallery becomes a scrolling rail, today's thinker first */
	.thw .thw-orrery { aspect-ratio: auto; display: flex; gap: 12px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; }
	.thw .thw-art--orrery { display: none; }
	.thw .thw-today { order: -1; position: static; flex: 0 0 220px; width: auto; transform: none; padding: 16px; border: 1px solid rgba(201, 163, 94, .3); border-radius: 18px; background: rgba(6, 10, 21, .45); scroll-snap-align: start; }
	.thw .thw-today img { width: 92px; }
	.thw .thw-planets { display: contents; }
	.thw .thw-planet, .thw .thw-planet--outer { position: static; flex: 0 0 84px; width: 84px; transform: none; scroll-snap-align: start; }
	.thw .thw-plate { position: static; display: block; margin-top: 8px; padding: 0; border: 0; background: none; text-align: center; white-space: normal; opacity: 1; transform: none; }
	.thw .thw-plate::before, .thw .thw-plate small { display: none; }
	.thw .thw-plate b { font: 600 11.5px/1.3 var(--tho-sans); color: var(--tho-bone-2); }
	.thw .thw-dispatch--lead h3 { font-size: 1.4rem; }
	.thw .thw-home { height: 200px; }
	.thw .thw-chart ul { grid-template-columns: minmax(0, 1fr); }
	.thw .thw-door a { grid-template-columns: 48px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 14px; row-gap: 2px; padding: 12px 14px; }
	.thw .thw-door-star { grid-row: 1 / span 2; width: 48px; height: 48px; }
}

/* ---------- no JS: nothing waits for a script; the map becomes its list (home.css) ---------- */
html:not(.tho-js) .thw .thw-thread { display: none !important; }

/* ---------- motion off: complete and still (home.css also stops every .tho animation) ---------- */
@media (prefers-reduced-motion: reduce) {
	.thw *, .thw *::before, .thw *::after { animation: none !important; transition: none !important; }
}
@media print {
	.thw .thw-thread, .thw .thw-seam, .thw .thw-art, .thw .thw-home { display: none !important; }
	.thw .thw-ch { background: #fff !important; color: #000 !important; padding-top: 24px; }
	.thw .thw-armed .thw-stop, .thw .thw-armed .thw-planet { opacity: 1 !important; translate: none !important; }
}
