/* Ru exhibit: app styles. System fonts only, no network. */
:root {
  --ink: #0b0d12; --peat: #12151c; --peat2: #1a1e28; --line: #2a303d; --bone: #ece4d2; --dim: #a39c8c;
  --gold: #d9a441; --woad: #4f86b8; --heather: #9b6fae; --blood: #b8432f; --moss: #7c9a5b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bar: 56px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--bone); font: 17px/1.55 var(--serif); -webkit-font-smoothing: antialiased; }
body.booting main { opacity: 0; }
main { transition: opacity .6s; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #f2c66a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 99; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 4px; }
.skip:focus { top: 8px; }
.eyebrow, .label { font: 600 11.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6em; }
.note { color: var(--dim); font-size: .86em; }
.draft { font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--heather); border: 1px dashed var(--heather); border-radius: 99px; padding: 3px 8px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }

.btn { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--bone); background: rgba(10,12,18,.55); border: 1px solid rgba(236,228,210,.4); padding: 13px 20px; border-radius: 99px; cursor: pointer; text-decoration: none; display: inline-block; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { border-color: var(--bone); color: #fff; transform: translateY(-1px); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #14100a; }
.btn.gold:hover { background: #f0bd5c; color: #000; }

/* certainty: colour, glyph and border style all differ */
.cert { font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 99px; border: 1px solid; vertical-align: middle; white-space: nowrap; }
.cert i { font-style: normal; font-size: 11px; }
.cert-attested { color: #e8c170; border-color: #e8c170; background: rgba(217,164,65,.14); }
.cert-probable { color: #8fb7dc; border-color: #8fb7dc; }
.cert-inferred { color: #b9c7a4; border-color: #b9c7a4; border-style: dashed; }
.cert-imagined { color: #c9a3d8; border-color: #c9a3d8; border-style: dotted; }
.cert-other { color: var(--dim); border-color: var(--dim); }

/* ---------- top bar ---------- */
#bar { position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 30; display: flex; align-items: center; gap: 18px; padding: 0 18px; background: linear-gradient(rgba(6,7,11,.92), rgba(6,7,11,.55) 70%, transparent); }
body:not([data-view="journey"]) #bar { background: rgba(9,11,16,.94); border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; color: var(--bone); flex: none; }
.brand-ru { font: 500 24px/1 var(--serif); letter-spacing: .28em; color: var(--gold); }
.brand-sub { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
#nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
#nav::-webkit-scrollbar { display: none; }
#nav a { font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); text-decoration: none; padding: 10px 9px; border-radius: 4px; white-space: nowrap; border-bottom: 2px solid transparent; }
#nav a:hover { color: var(--bone); }
#nav a[aria-current] { color: var(--bone); border-bottom-color: var(--gold); border-radius: 4px 4px 0 0; }
#search { position: relative; flex: none; }
#q { width: 250px; max-width: 42vw; font: 14px/1 var(--sans); color: var(--bone); background: rgba(20,24,33,.8); border: 1px solid var(--line); border-radius: 99px; padding: 9px 34px 9px 14px; }
#q::placeholder { color: #7d7869; }
#q:focus { outline: none; border-color: var(--gold); background: #141821; }
#search kbd { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font: 11px var(--mono); color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; pointer-events: none; }
#q:focus + kbd { display: none; }
#results { position: absolute; right: 0; top: calc(100% + 8px); width: min(31rem, 94vw); max-height: 72vh; overflow: auto; background: #10131b; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.6); padding: 6px; }
#results .count, #results .none { font: 12px var(--sans); color: var(--dim); margin: 6px 10px; }
#results a { display: flex; gap: 10px; padding: 9px 10px; border-radius: 7px; text-decoration: none; color: var(--bone); }
#results a:hover, #results a.sel { background: #1c2130; }
.rtype { flex: none; width: 5.6em; font: 600 9.5px/1.9 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-align: center; border: 1px solid var(--line); border-radius: 4px; align-self: flex-start; margin-top: 3px; overflow: hidden; }
.t-stop { color: var(--gold); border-color: var(--gold); } .t-passage { color: #8fb7dc; border-color: #8fb7dc; } .t-object { color: #b9c7a4; border-color: #b9c7a4; }
.t-interpretation { color: #c9a3d8; border-color: #c9a3d8; } .t-gap { color: #d98a78; border-color: #d98a78; }
.rbody b { font-weight: 500; } .rstop { color: var(--dim); font-size: .8em; font-style: italic; }
.rbody small { display: block; color: var(--dim); font: 13px/1.4 var(--sans); margin-top: 2px; }
mark { background: rgba(217,164,65,.28); color: #ffe2a3; border-radius: 2px; padding: 0 1px; }

#fixture-flag { position: fixed; left: 12px; bottom: 10px; z-index: 20; font: 11px var(--sans); color: var(--dim); background: rgba(8,10,14,.75); border: 1px dashed #5a5546; border-radius: 99px; padding: 4px 11px; pointer-events: none; }
#backchip { position: fixed; top: calc(var(--bar) + 12px); left: 16px; z-index: 28; font: 600 13px var(--sans); background: var(--gold); color: #14100a; text-decoration: none; padding: 9px 15px; border-radius: 99px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }

/* ---------- journey ---------- */
#v-journey { position: fixed; inset: 0; overflow: hidden; background: #05070c; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#j-scroll { position: absolute; inset: 0; overflow-y: scroll; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; }
#j-scroll::-webkit-scrollbar { display: none; }
#j-scroll:focus-visible { outline: none; }
.j-layer { position: absolute; pointer-events: none; z-index: 3; }
.j-layer a, .j-layer button { pointer-events: auto; }
#j-title { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--bar) 20px 12vh; }
#j-title h1 { font: 400 clamp(110px, 25vw, 300px)/.9 var(--serif); letter-spacing: .12em; margin: 0 0 .08em .12em; display: flex; gap: .04em; }
#j-title h1 span { background: linear-gradient(180deg, #fff3d0 5%, #e2b04c 48%, #8a5a1c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(0,0,0,.6)); animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
#j-title h1 span + span { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.96); letter-spacing: .4em; } }
#j-title .eyebrow { text-shadow: 0 1px 12px #000; }
.lede { font-size: clamp(17px, 2vw, 22px); max-width: 34em; margin: 0 0 1.6em; text-shadow: 0 1px 14px rgba(0,0,0,.9); font-style: italic; }
.j-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hint { font: 12px var(--sans); color: rgba(236,228,210,.7); letter-spacing: .05em; margin-top: 1.6em; text-shadow: 0 1px 8px #000; }
#j-caption { left: clamp(16px, 4vw, 64px); top: calc(var(--bar) + 4vh); width: min(31rem, calc(100vw - 80px)); opacity: 0; }
#j-caption .card { padding: 22px 24px 20px; border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(6,8,13,.88), rgba(6,8,13,.72) 75%, rgba(6,8,13,.5)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#j-caption h2 { font-size: clamp(30px, 4.2vw, 50px); margin-bottom: .22em; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
#j-caption .where { font: 500 13px/1.5 var(--sans); letter-spacing: .06em; color: #d9d2c0; margin: 0 0 .9em; }
#j-caption .where em { color: var(--dim); font-style: normal; }
#j-caption .narr { margin: 0 0 1em; text-shadow: 0 1px 10px rgba(0,0,0,.9); font-size: 16.5px; }
#j-caption .counts { font: 12px var(--sans); color: var(--dim); margin: .8em 0 0; }
#j-caption .opt { color: var(--heather); }
#j-rail { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 4; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
#j-rail a { display: flex; align-items: center; gap: 10px; justify-content: flex-end; text-decoration: none; padding: 5px 4px; color: var(--bone); }
#j-rail a::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(236,228,210,.75); flex: none; transition: all .3s; box-shadow: 0 0 0 3px rgba(0,0,0,.25); }
#j-rail li.opt a::after { border-style: dotted; border-radius: 2px; transform: rotate(45deg); }
#j-rail li.cur a::after { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 14px 3px rgba(217,164,65,.7); transform: scale(1.35); }
#j-rail a span { font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: all .25s; text-shadow: 0 1px 8px #000; white-space: nowrap; background: rgba(6,8,13,.7); padding: 4px 8px; border-radius: 4px; }
#j-rail a:hover span, #j-rail a:focus-visible span, #j-rail li.cur a span { opacity: 1; transform: none; }
#j-controls { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 4; display: flex; gap: 6px; background: rgba(6,8,13,.6); border: 1px solid rgba(236,228,210,.22); border-radius: 99px; padding: 5px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#j-controls button { font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--bone); background: none; border: 0; border-radius: 99px; padding: 9px 15px; cursor: pointer; min-width: 40px; }
#j-controls button:hover { background: rgba(236,228,210,.14); }
#j-play[aria-pressed="true"] { background: var(--gold); color: #14100a; }
body.panel-open #j-rail, body.panel-open #j-controls { display: none; }

/* ---------- stop panel ---------- */
#panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(470px, 100vw); z-index: 40; background: linear-gradient(180deg, #131722, #0e1118); border-left: 1px solid var(--line); box-shadow: -30px 0 80px rgba(0,0,0,.55); overflow-y: auto; transform: translateX(40px); opacity: 0; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .35s; }
#panel.in { transform: none; opacity: 1; }
.p-head { position: sticky; top: 0; z-index: 2; padding: 22px 56px 14px 26px; background: linear-gradient(#131722 82%, rgba(19,23,34,0)); }
.p-head h2 { font-size: 31px; }
.p-place { margin: .5em 0 0; font: 13.5px/1.6 var(--sans); color: #d2cbb9; } .p-place span { color: var(--dim); }
.opt { color: var(--heather); }
.p-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #0c0f15; color: var(--bone); font-size: 14px; cursor: pointer; }
.p-close:hover { border-color: var(--gold); color: var(--gold); }
.p-body { padding: 4px 26px 10px; }
.p-sec { padding: 16px 0; border-top: 1px solid var(--line); }
.p-sec h3 { font: 600 11.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.p-sec p { margin: .3em 0; }
.narr { font-size: 17.5px; }
.p-people, .p-objects, .p-ints { list-style: none; margin: 0; padding: 0; }
.p-people li, .p-objects li { padding: 9px 12px; margin: 0 -12px; border-radius: 8px; }
.p-people li + li, .p-objects li + li { margin-top: 2px; }
.p-people b, .p-objects b { font-weight: 500; font-size: 18px; margin-right: 4px; }
.p-people p, .p-objects p { font-size: 15px; color: #d4cdbb; }
.origin { display: block; font: 12.5px var(--sans); color: var(--woad); letter-spacing: .03em; margin-top: 2px; }
.passage { margin: 0 -12px 8px; padding: 12px 14px; border-radius: 8px; background: rgba(79,134,184,.07); border-left: 2px solid var(--woad); }
.passage blockquote { margin: 0 0 8px; font-style: italic; }
.passage.summary { border-left-style: dashed; } .passage.summary blockquote { font-style: normal; }
.passage figcaption { font: 13px/1.6 var(--sans); color: #cfc8b6; } .passage .note { display: block; }
.sumtag { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--heather); }
.caution::before { content: "Caution: "; color: #d98a78; }
.hit { animation: hit 2.4s ease-out; box-shadow: 0 0 0 1px var(--gold); }
@keyframes hit { 0%, 40% { background: rgba(217,164,65,.3); } }
.p-ints li a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; text-decoration: none; border-bottom: 1px dotted var(--line); }
.p-ints span { color: var(--dim); font: 12.5px var(--sans); white-space: nowrap; }
.toggles { display: flex; gap: 8px; }
.tog { font: 600 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bone); background: #0c0f15; border: 1px solid var(--line); padding: 9px 13px; border-radius: 6px; cursor: pointer; }
.tog:hover, .tog[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
pre.code { font: 12.5px/1.6 var(--mono); background: #07090d; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 12px 0 0; overflow: auto; max-height: 50vh; color: #cfd6e4; white-space: pre; tab-size: 2; }
pre.code .c { color: #6f7a8c; font-style: italic; } pre.code .k { color: var(--gold); } pre.code .s { color: #a9c98a; }
.p-foot { display: flex; justify-content: space-between; gap: 14px; padding: 16px 26px 26px; border-top: 1px solid var(--line); font: 13.5px var(--sans); }
.p-foot a { text-decoration: none; }

/* ---------- map ---------- */
#v-map { min-height: 100vh; padding-top: var(--bar); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 24rem); background: radial-gradient(120% 90% at 30% 40%, #121a26, #070a10 75%); }
.map-wrap { position: relative; height: calc(100vh - var(--bar)); position: sticky; top: var(--bar); overflow: hidden; }
.map-wrap svg { width: 100%; height: 100%; display: block; }
.map-note { position: absolute; left: 16px; bottom: 34px; max-width: 19rem; font: 11.5px/1.45 var(--sans); color: var(--dim); margin: 0; }
.m-sea-line { fill: none; stroke: var(--woad); }
.m-land { fill: url(#m-landfill); stroke: #d8c48a; stroke-width: 1.3; stroke-linejoin: round; }
.m-isle { fill: #1a2029; stroke: #d8c48a; stroke-width: 1; stroke-linejoin: round; }
.m-mtn { fill: none; stroke: #8d8468; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.m-wall { fill: none; stroke: var(--blood); stroke-width: 3.2; stroke-dasharray: 5 2.5; }
.m-walltxt { font: italic 11px var(--serif); fill: #d98a78; }
.m-region { font: 500 22px var(--serif); letter-spacing: .5em; fill: rgba(236,228,210,.2); text-anchor: middle; }
.m-sea { font: italic 15px var(--serif); letter-spacing: .25em; fill: rgba(127,170,210,.42); text-anchor: middle; }
.m-ghost { fill: none; stroke: rgba(217,164,65,.3); stroke-width: 1.4; stroke-dasharray: 2 6; stroke-linecap: round; }
.m-route { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(217,164,65,.8)); transition: stroke-dashoffset 3.6s cubic-bezier(.4,0,.2,1); }
.m-stop { cursor: pointer; outline: none; }
.m-stop .halo { fill: rgba(217,164,65,0); stroke: none; transition: fill .25s; }
.m-stop .dot { fill: #0b0d12; stroke: var(--gold); stroke-width: 2; transition: all .25s; }
.m-stop.opt .dot { stroke-dasharray: 2.5 2; stroke: #c9a3d8; }
.m-stop text { font: 600 12.5px var(--sans); fill: var(--bone); paint-order: stroke; stroke: #0a0d13; stroke-width: 4px; stroke-linejoin: round; }
.m-stop .num { font: 700 10px var(--sans); fill: var(--gold); text-anchor: middle; stroke: none; }
.m-stop:hover .halo, .m-stop:focus-visible .halo, .m-stop.hot .halo { fill: rgba(217,164,65,.28); }
.m-stop:focus-visible .dot { stroke: #fff; stroke-width: 3; }
.m-stop.cur .dot { fill: var(--gold); } .m-stop.cur .num { fill: #14100a; } .m-stop.cur .halo { fill: rgba(217,164,65,.22); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { fill: rgba(217,164,65,.05); } }
.m-ru { pointer-events: none; filter: drop-shadow(0 0 6px rgba(255,220,150,.9)); }
.m-cloud { fill: #000; opacity: .22; filter: blur(22px); animation: drift 70s linear infinite; }
.m-cloud.b { animation-duration: 110s; animation-delay: -50s; }
@keyframes drift { from { transform: translateX(-380px); } to { transform: translateX(1250px); } }
.m-rose { stroke: #8d8468; fill: none; stroke-width: 1; } .m-rose .n { fill: var(--gold); stroke: none; } .m-rose text { font: 600 11px var(--sans); fill: var(--gold); stroke: none; text-anchor: middle; }
.itin { padding: 26px 22px 60px; border-left: 1px solid var(--line); background: rgba(9,11,16,.6); }
.itin h1 { font-size: 30px; margin-bottom: .3em; }
.itin > p { color: var(--dim); font-size: 15px; margin: 0 0 1.2em; }
.itin ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.itin li a { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 2px 8px; padding: 11px 10px; margin: 0 -10px; border-radius: 8px; text-decoration: none; color: var(--bone); border-bottom: 1px solid rgba(42,48,61,.6); }
.itin li a::before { content: attr(data-n); grid-row: span 2; font: 600 12px/26px var(--sans); width: 26px; height: 26px; border: 1.5px solid var(--gold); color: var(--gold); border-radius: 50%; text-align: center; }
.itin li.opt a::before { border-style: dashed; border-color: #c9a3d8; color: #c9a3d8; }
.itin li a:hover, .itin li a:focus-visible, .itin li.cur a { background: #1a1f2c; }
.itin li.cur a::before { background: var(--gold); color: #14100a; }
.itin b { font-weight: 500; font-size: 18px; } .itin small { font: 12.5px/1.4 var(--sans); color: var(--dim); }
.legend { margin-top: 1.6em; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- pages ---------- */
.page { padding: calc(var(--bar) + 46px) clamp(16px, 5vw, 70px) 90px; max-width: 1240px; margin: 0 auto; min-height: 100vh; }
.page > header h1 { font-size: clamp(34px, 5vw, 58px); margin-bottom: .3em; }
.page > header p { max-width: 44em; color: #d2cbb9; margin: .5em 0; }
.page > header { margin-bottom: 38px; }
.even { border: 1px dashed #5a5546; border-radius: 8px; padding: 10px 14px; font: 13.5px/1.5 var(--sans); color: var(--dim); max-width: 50em; }

.tl { position: relative; list-style: none; margin: 0; padding: 0; }
.tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, #5a5546 4%, #5a5546 96%, transparent); }
.tl li { position: relative; width: calc(50% - 34px); margin-bottom: 22px; }
.tl li:nth-child(even) { margin-left: calc(50% + 34px); }
.tl li::before { content: ""; position: absolute; top: 26px; right: -40px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--bone); }
.tl li:nth-child(even)::before { right: auto; left: -40px; }
.tl li::after { content: ""; position: absolute; top: 31px; right: -30px; width: 30px; height: 1px; background: #5a5546; }
.tl li:nth-child(even)::after { right: auto; left: -30px; }
.tl article { background: var(--peat); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.tl li.hit article { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 40px rgba(217,164,65,.18); }
.tl .era { font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 0 0 4px; }
.tl h2 { font-size: 24px; margin-bottom: 2px; }
.tl .who { font-style: italic; color: #d2cbb9; margin: 0 0 10px; }
.tl dl { margin: 0; display: grid; grid-template-columns: 6.4em 1fr; gap: 6px 12px; font-size: 15.5px; }
.tl dt { font: 600 10.5px/1.9 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.tl dd { margin: 0; }
.tl .at { margin: 12px 0 0; font: 13px var(--sans); color: var(--dim); }

.emp { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 26px; align-items: start; }
.emp svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 12px; background: #0a1019; }
.e-land { fill: #39382f; } .e-sea { fill: #0b1c30; stroke: rgba(226,204,140,.8); stroke-width: 1.2; stroke-linejoin: round; } .e-isle { fill: #39382f; stroke: rgba(226,204,140,.8); stroke-width: 1.2; }
.e-grat { stroke: rgba(127,170,210,.08); stroke-width: 1; fill: none; }
.e-arc { fill: none; stroke: var(--gold); stroke-width: 1.6; opacity: .5; stroke-dasharray: 4 5; animation: flow 2.2s linear infinite; transition: opacity .2s, stroke-width .2s; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.e-arc.imagined { stroke: #c9a3d8; }
.e-pt circle { fill: var(--gold); stroke: #0a1019; stroke-width: 1.5; } .e-pt.imagined circle { fill: #c9a3d8; }
.e-pt text { font: 600 11.5px var(--sans); fill: var(--bone); paint-order: stroke; stroke: #0a1019; stroke-width: 3.5px; }
.e-pt { cursor: pointer; } .e-brit { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .7; }
.emp.has-sel .e-arc:not(.on) { opacity: .1; } .e-arc.on { opacity: 1; stroke-width: 2.6; }
.emp.has-sel .e-pt:not(.on) { opacity: .35; }
.chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chips button { font: 14px var(--serif); color: var(--bone); background: var(--peat); border: 1px solid var(--line); border-radius: 99px; padding: 7px 13px; cursor: pointer; }
.chips button:hover { border-color: var(--bone); } .chips button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #14100a; }
.pcard { background: var(--peat); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.pcard h2 { font-size: 26px; margin-bottom: 6px; } .pcard p { margin: .5em 0; }

.york { display: grid; grid-template-columns: minmax(280px, 520px) minmax(0, 1fr); gap: 36px; align-items: start; }
.tondo { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.tondo .fig { cursor: pointer; outline: none; transition: opacity .5s; }
.tondo .fig .ring { fill: none; stroke: transparent; stroke-width: 3; }
.tondo .fig:hover .ring, .tondo .fig:focus-visible .ring, .tondo .fig.on .ring { stroke: #fff3d0; }
.tondo .fig.gone { opacity: .22; } .tondo .fig.dead .robe, .tondo .fig.dead .skin { filter: grayscale(1) brightness(.6); }
.tondo .smear { opacity: 0; transition: opacity 1.2s; } .tondo .smear.on { opacity: 1; }
.tondo text { font: 600 11px var(--sans); letter-spacing: .14em; fill: #2a1c08; text-anchor: middle; text-transform: uppercase; }
.yr { margin: 0 0 20px; }
.yr input { width: 100%; accent-color: var(--gold); }
.yr .ticks { display: flex; justify-content: space-between; font: 600 11px var(--sans); letter-spacing: .08em; color: var(--dim); }
.yr .ticks button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 4px 2px; }
.yr .ticks button.cur { color: var(--gold); }
.event { border-left: 2px solid var(--gold); padding: 4px 0 4px 18px; margin-bottom: 22px; min-height: 6.5em; }
.event h2 { font-size: 28px; margin-bottom: 6px; }

.gaps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.gaps li { background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(184,67,47,.05) 9px 10px), var(--peat); border: 1px dashed #6a4a40; border-radius: 10px; padding: 18px 20px; }
.gaps li.hit { border-color: var(--gold); border-style: solid; }
.gaps h2 { font-size: 21px; margin-bottom: 6px; } .gaps p { margin: 0; color: #d2cbb9; font-size: 15.5px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .brand-sub, #search kbd { display: none; }
  #bar { gap: 8px; padding: 0 10px; } #q { width: 130px; } #nav a { padding: 10px 7px; letter-spacing: .08em; }
  #v-map { grid-template-columns: 1fr; } .map-wrap { position: relative; top: 0; height: 74vh; } .itin { border-left: 0; border-top: 1px solid var(--line); }
  .emp, .york { grid-template-columns: 1fr; }
  .tl::before { left: 8px; } .tl li, .tl li:nth-child(even) { width: auto; margin-left: 34px; }
  .tl li::before, .tl li:nth-child(even)::before { left: -31px; right: auto; } .tl li::after { display: none; }
  #j-rail a span { display: none; } #j-caption { top: calc(var(--bar) + 8px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- added with the landed data contract ---- */
.inscr { font-style: italic; color: #e6dcc0; border-left: 2px solid var(--gold); padding-left: 12px; margin: .5em 0; }
.p-setting p { color: #d2cbb9; }
.m-spur { stroke: rgba(201,163,216,.45); }
.m-lead { fill: none; stroke: rgba(236,228,210,.4); stroke-width: .8; }
.m-pin { fill: var(--bone); }
.m-tip rect { fill: rgba(10,13,19,.94); stroke: var(--gold); stroke-width: 1; }
.m-tip .t1 { font: 600 14px var(--serif); fill: var(--bone); }
.m-tip .t2 { font: 11.5px var(--sans); fill: var(--dim); }
.itin li.hot a { background: #1a1f2c; }
.reasons { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 4px; justify-content: center; }
.reasons button { font: 13px var(--sans); color: var(--bone); background: rgba(10,13,19,.55); border: 1px solid rgba(236,228,210,.35); border-radius: 99px; padding: 6px 13px; cursor: pointer; }
.reasons button[aria-pressed="true"] { background: #c9a3d8; border-color: #c9a3d8; color: #14100a; }
#j-reason { min-height: 2.6em; max-width: 34em; margin: 6px auto 0; font-style: italic; color: #e6dcc0; }
.tl .q { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(127,170,210,.07); font-size: 15px; color: #d2cbb9; }
.tl .q b { font: 600 10.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: block; margin-bottom: 3px; }
.unplaced { margin: 16px 0 0; font: 13px/1.5 var(--sans); color: var(--dim); }
.unplaced button { background: none; border: 0; border-bottom: 1px dotted var(--dim); color: var(--bone); font: inherit; cursor: pointer; padding: 0; }
.york .passage { margin: 12px 0; }
.york .steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.fam { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }

/* ---------- second round: opening, companions, object signs ---------- */
#opening { position: fixed; inset: 0; z-index: 60; background: #150e07; display: grid; place-items: center; transition: opacity .9s ease; }
#opening svg { width: 100%; height: 100%; display: block; }
#opening.out { opacity: 0; pointer-events: none; }
#opening .o-cap { font: italic 22px var(--serif); fill: #4a2f17; letter-spacing: .02em; }
#opening .o-foot { position: absolute; right: 18px; bottom: 16px; }
#opening #o-skip, #opening #o-sound { background: rgba(21,14,7,.82); }
#opening .o-foot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
#opening #o-sound[aria-pressed="true"] { background: var(--gold); }
#opening #o-skip.gold { background: var(--gold); }
body.reduced #opening { transition: none; }
.linkish { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; pointer-events: auto; }
.linkish:hover { color: #fff; }

#j-company { position: absolute; left: clamp(16px, 4vw, 64px); bottom: 22px; z-index: 4; margin: 0; max-width: min(22rem, calc(50vw - 340px)); display: flex; flex-wrap: wrap; gap: 6px 6px; align-items: center; font: 500 12px/1.2 var(--sans); letter-spacing: .04em; color: var(--dim); }
#j-company .lab { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; text-shadow: 0 1px 8px #000; margin-right: 2px; }
#j-company a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; text-decoration: none; color: var(--bone); background: rgba(6,8,13,.62); border: 1px dashed rgba(236,228,210,.35); }
#j-company a:hover, #j-company a:focus-visible { border-color: var(--bone); background: rgba(6,8,13,.85); }
#j-company a.all { border-style: solid; color: var(--gold); border-color: rgba(217,164,65,.5); }
#j-company i, .m-company i { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
body.panel-open #j-company { display: none; }
@media (max-width: 900px) { #j-company { max-width: calc(100vw - 32px); bottom: 78px; } #j-company .lab { width: 100%; } }

.m-comp { stroke: #0b0d12; stroke-width: 1.2; }
.m-company { margin: 22px 0 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.m-company h2 { font-size: 21px; margin: 0 0 .3em; } .m-company p { color: var(--dim); font-size: 14px; margin: 0 0 .7em; }
.m-company ul { list-style: none; margin: 0; padding: 0; }
.m-company a { display: grid; grid-template-columns: 16px 1fr; gap: 0 8px; align-items: baseline; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; text-decoration: none; color: var(--bone); }
.m-company a:hover, .m-company a:focus-visible { background: #1a1f2c; }
.m-company b { font-weight: 500; font-size: 16.5px; } .m-company small { grid-column: 2; font: 12.5px/1.4 var(--sans); color: var(--dim); }

.comps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 26px 0 30px; }
.comp { background: var(--peat); border: 1px dashed color-mix(in srgb, var(--cc) 55%, var(--line)); border-top: 3px solid var(--cc); border-radius: 10px; padding: 18px 20px 8px; }
.comp.hit { box-shadow: 0 0 0 2px var(--cc); }
.comp h2 { font-size: 27px; margin: 2px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comp h2 i { width: 12px; height: 12px; border-radius: 50%; background: var(--cc); }
.comp section { border-top: 1px solid var(--line); padding: 12px 0 10px; margin-top: 10px; }
.comp h3 { font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 .5em; display: flex; align-items: center; gap: 8px; }
.comp h3 span { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--dim); display: inline-grid; place-items: center; font-size: 11px; letter-spacing: 0; }
.comp h3 em { font-style: normal; color: var(--heather); letter-spacing: .08em; }
.comp p, .comp li { font-size: 15.5px; margin: .3em 0; } .comp ul { margin: 0; padding-left: 1.1em; }
.comp .c-story p { font-style: italic; color: #e6dcc6; }
.comp .c-found .none { color: var(--dim); }
.comp .c-limits { background: rgba(155,111,174,.07); margin: 10px -20px 0; padding: 12px 20px 12px; border-radius: 0 0 10px 10px; }

.kicon { width: 20px; height: 20px; vertical-align: -4px; margin-right: 7px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

@media (max-width: 1100px) { #j-company { max-width: none; right: 16px; bottom: 132px; justify-content: center; } }
@media (max-width: 700px) { #j-company a:not(:last-child) { display: none; } }
.comp .c-str { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); border: 1px solid currentColor; border-radius: 99px; padding: 1px 7px; margin-left: 4px; }

/* ---------- third round: scholarly pages, citation, references, footnotes ---------- */
#opening .o-foot { right: max(18px, calc(50vw - min(50vw, 83.33vh) + 18px)); bottom: auto; top: 50%; transform: translateY(-50%); }
@media (max-aspect-ratio: 13/10) { #opening .o-foot { right: auto; left: 50%; top: auto; bottom: 14px; transform: translateX(-50%); } }
#j-company { left: auto; right: clamp(70px, 7vw, 120px); bottom: auto; top: calc(var(--bar) + 18px); justify-content: flex-end; max-width: min(30rem, 42vw); }
@media (max-width: 1100px) { #j-company { top: auto; bottom: 132px; right: 16px; left: 16px; max-width: none; justify-content: center; } }
@media (max-width: 900px) { #j-company { bottom: 132px; } }
.showcase-line a { color: var(--gold); text-decoration: none; border-bottom: 1px dotted currentColor; }
#colophon { max-width: 1240px; margin: 0 auto; padding: 22px clamp(16px, 5vw, 70px) 46px; border-top: 1px solid #3a3628; font: 13px/1.6 var(--sans); color: var(--dim); }
#colophon p { margin: .2em 0; } #colophon a { color: var(--bone); }
body[data-view="journey"] #colophon, body[data-view="map"] #colophon, body.booting #colophon { display: none; }
.page.paper, #v-references, #v-about { max-width: 980px; }
#v-about > header h1, #v-references > header h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: 0; }
.paper section, #v-about section { margin: 0 0 34px; }
#v-about h2, #v-references h2 { font: 600 22px/1.25 var(--serif); margin: 0 0 .5em; padding-bottom: .3em; border-bottom: 1px solid #3a3628; }
#v-about p, #v-about li { max-width: 42em; font-size: 17px; line-height: 1.65; color: #ded7c5; }
.secn { font: 600 12px/1 var(--sans); color: var(--gold); letter-spacing: .1em; margin-right: .7em; }
.rq { border-left: 3px solid var(--gold); margin: 1em 0; padding: .2em 0 .2em 1.1em; font: italic 20px/1.5 var(--serif); color: var(--bone); max-width: 38em; }
.certkey { list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 8px; } .certkey li { font: 14px/1.5 var(--sans); }
.showcase { border: 1px solid rgba(217,164,65,.45); border-radius: 8px; padding: 16px 20px; background: rgba(217,164,65,.06); }
.citegrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 22px; align-items: start; }
@media (max-width: 820px) { .citegrid { grid-template-columns: 1fr; } }
.cite, .decl { border: 1px solid #4a4638; border-radius: 8px; padding: 18px 20px; background: rgba(10,12,18,.5); }
.cite.hit, .refs > li.hit { outline: 2px solid var(--gold); outline-offset: 3px; }
.decl { border-style: dashed; } .decl h2, .decl h3 { font: 600 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); border: 0; margin: 0 0 .6em; padding: 0; }
.decl p { font: 14.5px/1.6 var(--sans); color: #d2cbb9; margin: 0; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: .6em 0 1em; font: 14px/1.5 var(--sans); }
dl.kv dt { color: var(--dim); } dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.citebox { font: 13px/1.55 ui-monospace, Menlo, monospace; background: #0b0d12; border: 1px solid #33301f; border-radius: 6px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; margin: .3em 0 .5em; user-select: all; color: #e6dfcd; }
.btn.sm { padding: 8px 13px; font-size: 11px; }
.btn.sm[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #14100a; }
.vbadge, .utag { font: 600 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; border: 1px solid; white-space: nowrap; }
.vbadge.yes { color: #a9d3a0; border-color: #a9d3a0; } .vbadge.no { color: #e0a878; border-color: #e0a878; border-style: dashed; }
.utag { color: var(--dim); border-color: #5a5546; } .utag.relied { color: var(--bone); border-color: var(--bone); }
.note.caution { border-left: 3px solid #e0a878; padding-left: 10px; }
.r-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0 0 14px; position: sticky; top: var(--bar); z-index: 3; background: rgba(13,15,21,.94); padding: 10px 0; border-bottom: 1px solid #3a3628; }
.r-tools input[type="search"] { flex: 1 1 14rem; min-width: 0; font: 15px var(--sans); color: var(--bone); background: #0b0d12; border: 1px solid #5a5546; border-radius: 6px; padding: 9px 12px; }
.r-f { display: flex; gap: 4px; flex-wrap: wrap; } .r-x { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.r-sum, .r-jump { font: 13px/1.6 var(--sans); color: var(--dim); margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.r-topic { margin: 26px 0 0; } .r-topic[hidden] { display: none; }
.refs { list-style: none; margin: 0; padding: 0; }
.refs > li { display: grid; grid-template-columns: 3.2em 1fr; gap: 0 8px; padding: 12px 0; border-bottom: 1px solid #2a2820; content-visibility: auto; contain-intrinsic-size: auto 96px; scroll-margin-top: calc(var(--bar) + 80px); }
.refs > li[hidden] { display: none; }
.refs > li > * { grid-column: 2; } .refs .r-num { grid-column: 1; grid-row: 1 / span 4; font: 13px/1.7 var(--sans); color: var(--dim); }
.refs .r-cite { font: 16.5px/1.5 var(--serif); margin: 0; padding-left: 1.6em; text-indent: -1.6em; color: #e6dfcd; }
.refs .r-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 6px 0 0; font: 12.5px/1.4 var(--sans); }
.refs .r-tags a, .perma { color: var(--dim); } .refs .note, .refs .at { margin: 5px 0 0; font: 13px/1.5 var(--sans); }
.r-none { color: var(--dim); font: 15px var(--sans); padding: 20px 0; }
/* footnotes, the can and cannot say block, and the soldier's card in the stop panel */
sup.fn { font: 600 10.5px/1 var(--sans); margin-left: 2px; } sup.fn a, sup.fn button { color: var(--gold); text-decoration: none; background: none; border: 0; padding: 0 1px; cursor: pointer; font: inherit; }
sup.fn a::before, sup.fn button::before { content: "["; } sup.fn a::after, sup.fn button::after { content: "]"; }
ol.p-notes { margin: 0; padding-left: 1.6em; font: 13px/1.55 var(--sans); color: #d2cbb9; } ol.p-notes li { margin: 0 0 6px; } ol.p-notes li.hit { color: var(--bone); background: rgba(217,164,65,.14); }
.reflink { color: var(--gold); }
.say { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 560px) { .say { grid-template-columns: 1fr; } }
.say > div { border: 1px solid #4a4638; border-radius: 8px; padding: 10px 14px; } .say > div + div { border-style: dashed; }
.say h4 { font: 600 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 .5em; }
.say ul { margin: 0; padding-left: 1.1em; font: 13.5px/1.5 var(--sans); } .say li { margin: 0 0 5px; }
li.pcard { list-style: none; border: 1px solid rgba(217,164,65,.5); border-radius: 8px; padding: 14px 16px; margin: 10px 0; background: rgba(217,164,65,.05); }
li.pcard dl.kv { grid-template-columns: 1fr; gap: 2px; } li.pcard dl.kv dt { font: 600 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; }
.c-found small { color: var(--dim); } .c-str { font-style: normal; font: 600 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border: 1px solid #5a5546; border-radius: 4px; padding: 2px 5px; margin-left: 4px; }
.r-f button { font: 12px/1 var(--sans); letter-spacing: .06em; color: var(--dim); background: transparent; border: 1px solid #5a5546; border-radius: 999px; padding: 7px 11px; cursor: pointer; }
.r-f button[aria-pressed="true"] { color: #0d0f15; background: var(--gold, #d9a441); border-color: var(--gold, #d9a441); }
.r-f button:focus-visible { outline: 2px solid var(--gold, #d9a441); outline-offset: 2px; }
.refs > li, .r-topic { scroll-margin-top: calc(var(--bar) + 130px); }

/* ---------- story and history: two layers, never mixed ---------- */
.ltag { display: inline-block; font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; border-radius: 3px; padding: 3px 7px; vertical-align: middle; white-space: nowrap; }
.ltag.l-story { color: #e3c8ee; border: 1.5px dashed var(--heather); background: rgba(155,111,174,.16); }
.ltag.l-history { color: #cfe3f5; border: 1.5px solid var(--woad); background: rgba(79,134,184,.2); }
.lframe[data-l="story"] { border-left: 3px dashed var(--heather); padding-left: 14px; background: rgba(155,111,174,.06); }
.lframe[data-l="history"] { border-left: 3px solid var(--woad); padding-left: 14px; background: rgba(79,134,184,.05); }
.p-sec.lframe { padding-top: 12px; padding-bottom: 10px; border-radius: 0 6px 6px 0; }
.p-sec.lframe[data-l="story"] h3 { color: #d8b6e6; } .p-sec.lframe[data-l="history"] h3 { color: #a9cdea; }
body[data-layer="history"] [data-l="story"], body[data-layer="story"] [data-l="history"] { display: none !important; }
#layerbar { position: fixed; left: 12px; bottom: 10px; z-index: 30; max-width: min(24rem, calc(100vw - 24px)); font: 12px/1.4 var(--sans); color: var(--bone); }
#layerbar .lb-row { display: inline-flex; align-items: center; gap: 4px; background: rgba(8,10,14,.9); border: 1px solid var(--line); border-radius: 99px; padding: 4px 6px 4px 12px; }
#layerbar .lb-lab { color: var(--dim); letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; margin-right: 4px; }
#layerbar button { font: 600 11.5px var(--sans); color: var(--bone); background: none; border: 1.5px solid transparent; border-radius: 99px; padding: 5px 10px; cursor: pointer; }
#layerbar button.l-story { border: 1.5px dashed var(--heather); } #layerbar button.l-history { border: 1.5px solid var(--woad); }
#layerbar button[aria-pressed="true"] { background: var(--bone); color: #14100a; }
#layerbar button.l-story[aria-pressed="true"] { background: var(--heather); color: #fff; } #layerbar button.l-history[aria-pressed="true"] { background: var(--woad); color: #fff; }
#layer-why { border: 1px solid var(--line) !important; min-width: 28px; }
#layer-legend, #layer-status:not(:empty) { background: rgba(8,10,14,.94); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 6px; }
#layer-legend p { margin: 0 0 6px; } #layer-legend p:last-child { margin: 0; } #layer-status { margin: 0; }
#fixture-flag { bottom: 52px; }
body.panel-open #layerbar { left: 12px; }
@media (max-width: 700px) { #layerbar { bottom: 72px; left: 8px; } #layerbar .lb-lab { display: none; } #fixture-flag { display: none; } }
/* welcome */
#j-title { overflow-y: auto; justify-content: flex-start; padding-top: calc(var(--bar) + 3vh); }
#j-title h1 { font-size: clamp(90px, min(20vw, 26vh), 260px); }
#j-welcome { max-width: 40em; text-align: left; margin: 0 0 1.4em; padding: 16px 22px; background: rgba(6,8,13,.72); border: 1px solid rgba(236,228,210,.2); border-radius: 8px; }
#j-welcome h2 { font: 500 22px/1.3 var(--serif); margin: 0 0 .4em; color: var(--bone); } #j-welcome p { margin: 0 0 .7em; font-size: 16.5px; } #j-welcome p:last-child { margin: 0; }
/* results, cards, notes */
#results a .rside { display: inline-flex; flex-direction: column; gap: 4px; align-items: flex-start; }
a.res-story { border-left: 3px dashed var(--heather); } a.res-history { border-left: 3px solid var(--woad); }
.pnote { margin: 8px 0; padding: 8px 12px; border-radius: 0 6px 6px 0; } .pnote h4 { font: 600 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .4em; color: var(--dim); } .pnote p { margin: 0 0 .5em; font-size: 15px; }
.odate { font: 13px/1.5 var(--sans); margin: 4px 0; color: #cfe3f5; }
#j-caption p.narr, #j-caption p.hist { padding: 6px 0 6px 12px; margin: 8px 0; } #j-caption p.hist { font-size: 14.5px; font-style: normal; }
.lline { margin: .3em 0 .8em; }
.reflink, sup.fn a, sup.fn button { color: #8fb7dc; }
.datarow { margin: 6px 0 2px; font: 12px var(--sans); } .datarow summary { cursor: pointer; color: var(--dim); letter-spacing: .04em; } .datarow summary:hover { color: var(--bone); } .datarow pre { margin-top: 6px; max-height: 16em; overflow: auto; }
/* map: the route is story (dashed heather), places are history (solid woad); side paths go neutral */
.m-route { stroke: #c79adb; filter: drop-shadow(0 0 5px rgba(155,111,174,.9)); } .m-ghost { stroke: rgba(201,163,216,.35); }
.m-detour { fill: none; stroke: #1d2430; stroke-width: 5; stroke-dasharray: 5 6; }
.m-stop .dot { stroke: var(--woad); } .m-stop .num { fill: #cfe3f5; }
.m-stop.opt .dot { stroke: #8d8672; } .itin li.opt a::before { border-color: #8d8672; color: #b7b09c; } .m-spur { stroke: rgba(163,156,140,.4); } .opt, #j-caption .opt { color: #b7b09c; }
.m-stop.off .dot { stroke: var(--woad); stroke-dasharray: none; fill: #14283a; } .m-stop.off .lbl, .m-place .lbl { fill: #cfe3f5; font-style: italic; }
.m-stop.l-story .dot { stroke: var(--heather); stroke-dasharray: 3 2; }
.m-place rect { fill: #14283a; stroke: var(--woad); stroke-width: 1.6; } .m-place text { font: 600 12px var(--sans); paint-order: stroke; stroke: #0a0d13; stroke-width: 4px; stroke-linejoin: round; }
.itin li a::before { border-color: var(--woad); color: #cfe3f5; } .itin li.off a::before { border-style: solid; background: #14283a; }
.map-note { bottom: 96px; } .map-layers { position: absolute; left: 16px; top: 12px; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; font: 11.5px var(--sans); color: var(--dim); }
.map-layers i { display: inline-block; width: 22px; height: 0; vertical-align: middle; margin-right: 6px; border-top: 2.5px dashed #c79adb; } .map-layers i.k-history { width: 10px; height: 10px; border: 2px solid var(--woad); border-radius: 50%; }
/* a long welcome scrolls inside its own frame, so the buttons below stay in reach */
#j-title h1 { font-size: clamp(80px, min(18vw, 19vh), 240px); }
#j-welcome { max-width: 44em; margin-bottom: 1em; padding: 14px 8px 14px 22px; }
#j-welcome-body { max-height: clamp(6.5em, 23vh, 17em); overflow-y: auto; padding-right: 14px; scrollbar-width: thin; }
#j-welcome-body:focus-visible { outline: 2px solid var(--gold, #e2b04c); outline-offset: 3px; }
.map-note { bottom: 124px; }
@media (max-width: 720px) { #j-title { padding-bottom: 190px; } #j-welcome-body { max-height: 7.5em; } #j-welcome p { font-size: 15px; } }

/* ---- job 5: phone home, search chip, place fact line, road note ---- */
.rtype { width: auto; min-width: 5.6em; padding: 0 6px; white-space: nowrap; overflow: visible; }
.p-fact { margin: 10px 0 2px; padding: 7px 10px 7px 12px; font: 13.5px/1.5 var(--sans); color: var(--bone); border-radius: 0 6px 6px 0; }
.p-fact b { font-weight: 600; } .p-fact .dating { display: block; margin-top: 4px; color: #d9d2c0; }
#j-road { right: clamp(70px, 8vw, 130px); top: calc(var(--bar) + 150px); width: min(25rem, calc(100vw - 100px)); opacity: 0; visibility: hidden; }
#j-road .card, #j-caption .card + .card { padding: 14px 18px 12px 16px; background: rgba(6,8,13,.8); border-radius: 0 8px 8px 0; }
#j-caption .card + .card { margin-top: 10px; border-left: 3px dashed var(--heather); }
#j-road p, #j-caption .card + .card p { margin: 0 0 6px; } #j-road .rnote, #j-caption .card + .card .rnote { font-size: 15px; line-height: 1.5; }
#j-road .counts, #j-caption .card + .card .counts { font: 12px var(--sans); color: var(--dim); margin: 0; }
body.panel-open #j-road { display: none; }
@media (max-width: 720px) {
  #j-road { left: 12px; right: 56px; width: auto; top: calc(var(--bar) + 12px); }
}
@media (max-width: 720px) {
  /* the title page ends above the strand bar and the travel control; the companions strip and the stop rail wait until the journey starts */
  #j-title { inset: 0 0 122px 0; padding: calc(var(--bar) + 10px) 16px 10px; }
  #j-title h1 { font-size: clamp(64px, 20vw, 110px); }
  #j-welcome { padding: 10px 6px 10px 14px; margin-bottom: .8em; }
  #j-welcome-body { max-height: clamp(6em, 17vh, 12em); }
  #v-journey.at-title #j-company, #v-journey.at-title #j-rail { display: none; }
  #j-title .hint { margin-bottom: 0; }
}
#results a .rside { flex: none; width: 6.4rem; }

/* job 6: phone title page keeps every line whole; the welcome text gives way first */
@media (max-width: 720px) {
  #j-title > * { flex-shrink: 0; }
  #j-reason { min-height: 0; }
  #j-welcome { flex-shrink: 1; min-height: 6.5em; display: flex; flex-direction: column; }
  #j-welcome-body { max-height: none; flex: 1 1 auto; min-height: 0; }
}

/* job 7: the data's note on the picture */
.scene-note { margin: 6px 0 8px; padding: 5px 9px 5px 11px; font: 12.5px/1.45 var(--sans); color: #d9d2c0; border-radius: 0 6px 6px 0; }

/* job 8: review round 1 */
.unchk { display: inline-block; margin-left: 4px; padding: 1px 8px 2px; font: 600 10.5px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #f2c98f; border: 1px dashed #e0a878; border-radius: 99px; background: rgba(224,168,120,.1); white-space: nowrap; vertical-align: middle; }
.certdate { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 5px 0 0; padding: 4px 10px 4px 5px; border: 1px solid rgba(236,228,210,.28); border-radius: 14px; background: rgba(6,8,13,.5); }
.p-fact .dating { font-size: 12.5px; }
.rowkeys { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0 4px; font: 12.5px/1.45 var(--sans); color: var(--bone); }
.rowkeys dt, .rowkeys dd { margin: 0; } .rowkeys dd { overflow-wrap: anywhere; } .rowkeys code { font: 11.5px var(--mono); color: var(--dim); } .rowkeys i { color: var(--dim); }
#j-welcome-body { overflow: hidden; }
#j-welcome:not(.open) #j-welcome-body { -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
#j-welcome.open #j-welcome-body, #j-welcome-more[hidden] ~ #j-welcome-body { max-height: none; -webkit-mask-image: none; mask-image: none; }
#j-welcome-more { display: block; margin: 6px 0 0; padding: 4px 0; font: 600 13px var(--sans); color: var(--gold); }
#j-welcome-more[hidden] { display: none; }
#j-welcome { display: flex; flex-direction: column; } #j-welcome-more { order: 3; align-self: flex-start; }
#j-welcome.open { flex-shrink: 0 !important; }
@media (max-width: 720px) {
  :root { --bar: 92px; }
  #bar { flex-wrap: wrap; align-content: center; gap: 2px 10px; padding: 6px 10px 0; }
  #search { flex: 1 1 auto; } #q { width: 100%; max-width: none; padding: 8px 14px; }
  #nav { order: 3; flex: 0 0 100%; padding-right: 30px; -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); }
  #results { width: calc(100vw - 20px); }
  /* the companions keep their chips on the phone title page: one row above the strand bar */
  #j-title { inset: 0 0 158px 0; }
  #v-journey.at-title #j-company { display: flex; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; left: 10px; right: 10px; top: auto; bottom: 116px; max-width: none; scrollbar-width: none; }
  #v-journey.at-title #j-company a, #v-journey.at-title #j-company a:not(:last-child) { display: inline-flex; flex: none; }
  #v-journey.at-title #j-company .lab, #v-journey.at-title #j-company .ltag { display: none; }
  /* the journey caption leaves the picture in view: long notes are cut to a few lines; tap one to read it all */
  #j-caption .scene-note, #j-caption .narr, #j-caption .hist { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
  #j-caption .scene-note { -webkit-line-clamp: 1; line-clamp: 1; } #j-caption .narr { -webkit-line-clamp: 4; line-clamp: 4; } #j-caption .hist { -webkit-line-clamp: 2; line-clamp: 2; }
  #j-caption .scene-note.full, #j-caption .narr.full, #j-caption .hist.full { -webkit-line-clamp: unset; line-clamp: unset; }
  #j-caption .card h2 { font-size: 22px; margin: 2px 0; } #j-caption .card p { margin-top: 4px; margin-bottom: 6px; } #j-caption .counts { display: none; }
}
@media (max-width: 720px) {
  #j-caption .scene-note, #j-caption .narr, #j-caption .hist { padding-bottom: 0; border-bottom: 6px solid transparent; }
  #j-caption .hist { -webkit-line-clamp: 3; line-clamp: 3; }
}
/* a long panel heading (place note, opened data row) scrolls away on a phone and never covers the text below it */
@media (max-width: 720px), (max-height: 900px) { .p-head { position: static; background: none; } }
/* the title page ends above the Travel control, so the buttons and hint lines never sit under it */
@media (min-width: 721px) {
  #j-title { bottom: 74px; padding-bottom: 8px; }
  #j-welcome:not(.open) #j-welcome-body { max-height: clamp(5em, 17vh, 14em); }
  #j-title .hint { margin-top: .8em; }
  #v-journey.at-title #j-company { max-width: min(23rem, 30vw); }
}
@media (max-width: 720px) { .york { grid-template-columns: minmax(0, 1fr); } .york > * { min-width: 0; } .york svg { max-width: 100%; height: auto; } }
@media (max-width: 720px) { .draft { white-space: normal; line-height: 1.5; display: inline-block; max-width: 100%; margin-left: 0; border-radius: 10px; } }
.r-jump button { font: 600 12px var(--sans); color: var(--bone); background: rgba(236,228,210,.05); border: 1px solid rgba(236,228,210,.28); border-radius: 99px; padding: 5px 11px; cursor: pointer; }
.r-jump button:hover, .r-jump button:focus-visible { border-color: var(--gold); color: var(--gold); }
.r-jump button small { color: var(--dim); font-weight: 400; margin-left: 3px; }

/* ---------- round 2 ---------- */
/* the story's date: set apart from the real place it stands beside */
.p-when { margin: .35em 0 0; font: 13.5px/1.6 var(--sans); color: #d8b6e6; }
.when-story { color: #d8b6e6; }
#results .unchk { margin-left: 4px; }
.m-walltxt { font-size: 13px; }
/* phone: the map takes the screen; its note sits under it, off the land */
@media (max-width: 860px) {
  .map-wrap { height: auto; overflow: visible; display: flex; flex-direction: column; }
  .map-wrap svg { height: auto; min-height: 0; aspect-ratio: 615 / 1080; order: 2; }
  .map-layers { position: static; order: 1; padding: 10px 14px 0; }
  .map-note { position: static; order: 3; max-width: none; padding: 6px 14px 12px; }
}

/* ---------- final cleanup: phone switch dock, scroll cues, the who-wrote-this tag ---------- */
.p-sec .draft { white-space: normal; display: inline-block; max-width: 100%; line-height: 1.5; border-radius: 10px; margin-left: 0; }
.p-sec h3 { flex-wrap: wrap; }
@media (max-width: 720px) {
  /* on reading pages the Show switch is a docked strip under the text, so it never sits on the chips */
  body:not([data-view="journey"]):not([data-view="map"]) #layerbar { left: 0; right: 0; bottom: 0; max-width: none; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(6,7,11,.97); border-top: 1px solid var(--line); }
  body:not([data-view="journey"]):not([data-view="map"]) #layerbar .lb-row { border-color: transparent; background: none; padding-left: 0; }
  body:not([data-view="journey"]):not([data-view="map"]) #colophon { padding-bottom: 84px; }
  /* scroll cues: a chevron pinned to the right edge while a row has more to show */
  #v-journey.at-title #j-company::after { content: "\203A"; position: sticky; right: 0; flex: none; align-self: stretch; display: none; align-items: center; justify-content: flex-end; width: 44px; margin-left: -44px; padding-right: 4px; font: 600 20px/1 var(--sans); color: var(--gold); pointer-events: none; background: linear-gradient(90deg, rgba(6,7,11,0), rgba(6,7,11,.96) 62%); }
  #v-journey.at-title #j-company.more-right::after { display: flex; }
  /* the title page fits above the companions: tighter gaps, and the last line is never half hidden */
  #j-title .reasons { margin-top: 14px; } #j-title .hint { margin-top: 8px; } #j-title .showcase-line { margin-top: 6px; }
  #j-title { padding-bottom: 14px; scroll-padding-bottom: 14px; }
}
@media (max-width: 720px) { #j-title #j-sub { margin-bottom: 10px; } }

/* ---------- burger menu: main.js sets html.burger when the links do not fit on one row ---------- */
#nav-toggle { flex: none; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 13px; font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bone); background: rgba(20,24,33,.8); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; }
#nav-toggle[hidden] { display: none; }
#nav-toggle:hover, #nav-toggle[aria-expanded="true"] { border-color: var(--gold); }
#nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nt-bars, .nt-bars::before, .nt-bars::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--gold); }
.nt-bars { position: relative; } .nt-bars::before, .nt-bars::after { content: ""; position: absolute; left: 0; }
.nt-bars::before { top: -5px; } .nt-bars::after { top: 5px; }
html.burger #search { margin-left: auto; }
html.burger #q { width: 250px; max-width: 42vw; }
html.burger #nav { display: none; position: absolute; top: 100%; left: 0; width: min(22rem, 100vw); max-height: calc(100vh - var(--bar)); overflow: auto; flex: none; order: 0; flex-direction: column; gap: 0; padding: 8px; background: #10131b; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; box-shadow: 0 24px 60px rgba(0,0,0,.6); -webkit-mask-image: none; mask-image: none; }
html.burger #nav.open { display: flex; }
html.burger #nav a { padding: 15px 14px; font-size: 13px; letter-spacing: .14em; border-bottom: 0; border-left: 2px solid transparent; border-radius: 6px; }
html.burger #nav a[aria-current] { border-left-color: var(--gold); border-radius: 0 6px 6px 0; background: rgba(255,255,255,.04); }
@media (max-width: 720px) {
  html.burger { --bar: 56px; }
  html.burger #bar { flex-wrap: nowrap; padding: 0 10px; gap: 8px; }
  html.burger #search { flex: 1 1 auto; min-width: 0; }
  html.burger #q { width: 100%; max-width: none; }
  html.burger #nav { width: 100vw; border-left: 0; border-right: 0; border-radius: 0; }
}

/* ---------- feedback form and mailing-list link ---------- */
.fb { max-width: 40rem; }
.fb p { margin: 0 0 18px; }
.fb label { display: block; font: 600 13px/1.4 var(--sans); letter-spacing: .04em; color: var(--bone); margin-bottom: 7px; }
.fb textarea, .fb input[type="email"], .fb input[type="text"] { display: block; width: 100%; box-sizing: border-box; font: 16px/1.5 var(--sans); color: var(--bone); background: rgba(20,24,33,.8); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.fb textarea { resize: vertical; min-height: 9em; }
.fb textarea:focus, .fb input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); background: #141821; }
.fb [aria-invalid="true"] { border-color: #e08a6a; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb .btn:disabled { opacity: .6; cursor: default; transform: none; }
.fb .btn:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.fb-status { min-height: 1.5em; font: 15px/1.5 var(--sans); color: #b9d8a8; }
.fb-status.bad { color: #f0a58a; }
.fb-privacy p { margin: 0 0 .7em; max-width: 40rem; }
.fb-ml { max-width: 40rem; margin-top: 30px; padding-top: 22px; border-top: 1px solid #3a3628; }
.ml a { color: var(--bone); } .ml .note { display: block; margin-top: .25em; }
#colophon .ml { margin-top: .9em; }
body[data-view="feedback"] #layerbar { display: none; } /* nothing on this page belongs to a strand */
.fb textarea { min-height: 7em; } .fb .fb-go { margin-bottom: 16px; } .fb-status { margin: 0 0 10px; }
.fb-status:empty { min-height: 0; margin: 0; }
#v-feedback > header { margin-bottom: 26px; }

/* ---------- early-preview banner: sits above the bar; body.has-preview shifts everything by its height ---------- */
#preview-banner { display: none; }
body.has-preview { --bar: 82px; }
body.has-preview #preview-banner { display: flex; align-items: center; justify-content: center; gap: 10px; position: fixed; inset: 0 0 auto 0; height: 26px; z-index: 40; padding: 0 34px 0 12px; font: 12px var(--sans); color: #e8dfc6; background: #2a2418; border-bottom: 1px solid #5a5546; white-space: nowrap; overflow: hidden; }
body.has-preview #preview-banner a { color: var(--gold); }
body.has-preview #bar { top: 26px; height: 56px; }
#preview-close { position: absolute; right: 6px; top: 0; height: 26px; width: 26px; border: 0; background: none; color: #e8dfc6; font-size: 16px; cursor: pointer; }
@media (max-width: 700px) { body.has-preview #preview-banner { font-size: 11px; padding-right: 30px; } }
.pb-short { display: none; }
@media (max-width: 700px) { body.has-preview .pb-long { display: none; } body.has-preview .pb-short { display: inline; } }

.museum-frame { display: block; width: 100%; height: min(70vh, 640px); border: 1px solid #3a3426; border-radius: 10px; background: #000; margin: 0 0 22px; }

/* nav fix: the welcome text scrolls with wheel, touch and keys; the title page ends above the bottom bars, and on short screens the big R U gives way so the welcome and its buttons are never covered */
#j-title { inset: 0 0 84px 0; padding-bottom: 8px; }
#j-title > * { flex-shrink: 0; }
#j-welcome, #j-welcome * { pointer-events: auto; }
#j-welcome { flex-shrink: 0; min-height: 0; display: flex; flex-direction: column; }
#j-welcome-body { max-height: clamp(5.5em, 17vh, 14em); flex: none; overflow-y: auto; overscroll-behavior: contain; padding-right: 14px; scrollbar-width: thin; }
#j-welcome:not(.open) #j-welcome-body { -webkit-mask-image: none; mask-image: none; }
#j-welcome.open #j-welcome-body { max-height: clamp(10em, 40vh, 30em); overflow-y: auto; }
@media (max-height: 860px) and (min-width: 721px) {
  #j-title { padding-top: calc(var(--bar) + 4px); }
  #j-title h1 { font-size: clamp(48px, 11vh, 90px); line-height: 1; margin: 0; }
  #j-title { inset: 0 0 76px 0; }
  #j-welcome { margin-bottom: .5em; padding-top: 8px; padding-bottom: 8px; }
  #j-welcome:not(.open) #j-welcome-body { max-height: 4.6em; }
  #j-welcome h2 { font-size: 19px; margin-bottom: .2em; }
  #j-title .hint { display: none; }
}

/* the caption on the left scrolls its own text; the journey moves on only after its end (see the wheel handler in journey.js) */
#j-caption { max-height: calc(100vh - var(--bar) - 4vh - 96px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; pointer-events: auto; }
@media (max-width: 700px) { #j-caption { max-height: calc(100vh - var(--bar) - 8px - 150px); } }
/* 4 Dec 2026: on phones the card takes the full width and the height down to the Travel bar, and a long card
   fades at the foot with a "more" cue until the reader has scrolled to the end. */
@media (max-width: 700px) {
  #j-caption { left: 10px; width: calc(100vw - 20px); max-height: calc(100dvh - var(--bar) - 8px - 78px); }
  #j-caption .card { padding: 18px 16px 16px 18px; }
  /* 4 Dec 2026 (Roger, on a phone): the sun showed through the right of the card; an even dark background instead. */
  /* 5 Dec 2026 (Roger): still hard to read over the sun; nearly solid now. */
  #j-caption .card { background: rgba(6,8,13,.93); }
}
#j-caption.more::after {
  content: "more \2193"; position: sticky; bottom: 0; display: block; height: 76px; margin-top: -76px;
  padding: 54px 0 0; box-sizing: border-box; text-align: center; font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); background: linear-gradient(rgba(6,8,13,0), rgba(6,8,13,.97) 62%); pointer-events: none;
}

/* 3 Dec 2026: an opened welcome card used to scroll inside itself while its lower edge sat under the Travel bar, so the end of the text could not be reached. Open, it now grows to full height and the title layer scrolls instead. */
#j-welcome.open #j-welcome-body { max-height: none !important; overflow: visible; }
#j-title { scroll-padding-bottom: 24px; }
#j-welcome.open { margin-bottom: 28px; }

/* 3 Dec 2026, first reader review: the story up front, plainly; the rest waits in closed sections.
   The title page is R U, one line, the first paragraph of the welcome and one button. The companions and the stop rail wait for the story to start. The Show switch is hidden. */
#layerbar { display: none !important; }
#v-journey.at-title #j-company, #v-journey.at-title #j-rail { display: none !important; }
#j-intro { max-width: 34em; margin: .2em auto 1.2em; font: 400 clamp(17px, 2.1vh, 20px)/1.55 var(--serif); color: var(--bone); text-shadow: 0 1px 14px #000, 0 0 2px #000; text-align: center; }
#j-title .j-actions { margin-bottom: 1.2em; }
#j-more { pointer-events: auto; max-width: 44em; width: 100%; text-align: left; }
#j-more > summary { cursor: pointer; text-align: center; font: 600 13px var(--sans); letter-spacing: .08em; color: var(--dim); list-style: none; padding: 6px 0; text-shadow: 0 1px 8px #000; }
#j-more > summary::-webkit-details-marker { display: none; }
#j-more > summary::after { content: " \25BE"; }
#j-more[open] > summary::after { content: " \25B4"; }
#j-more > summary:hover, #j-more > summary:focus-visible { color: var(--bone); }
#j-more[open] { padding: 4px 0 24px; }
#j-more #j-welcome { margin: 8px 0 14px; max-width: none; }
#j-more #j-welcome-body { max-height: none !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; }
#j-more .reasons { justify-content: center; } #j-more #j-reason, #j-more .hint { text-align: center; }
/* an opened "About this story" scrolls the title page by touch as well as by wheel */
#j-title:has(#j-more[open]) { pointer-events: auto; }

/* a stop: the story whole, then the next step, then the sources, closed */
#j-caption .narr { -webkit-line-clamp: unset !important; line-clamp: unset !important; display: block !important; overflow: visible !important; cursor: auto; }
#j-caption .j-next-stop { margin: 4px 0 10px; }
#j-caption .j-end { margin: 6px 0 12px; padding-top: 12px; border-top: 1px solid rgba(217,210,192,.25); }
#j-caption .j-end h3 { font-size: 20px; margin: 0 0 .3em; }
#j-caption .j-end p { margin: 0 0 .8em; }
#j-caption .j-end .btn { display: inline-block; text-decoration: none; }
#j-caption .j-end .note { font: 12px/1.4 var(--sans); color: var(--dim); margin: .7em 0 0; }
#j-caption .j-sources { margin-top: 6px; border-top: 1px solid rgba(236,228,210,.15); padding-top: 8px; }
#j-caption .j-sources > summary { cursor: pointer; font: 600 12.5px var(--sans); letter-spacing: .08em; color: var(--dim); padding: 4px 0; }
#j-caption .j-sources > summary:hover, #j-caption .j-sources > summary:focus-visible { color: var(--bone); }
#j-caption .j-sources[open] .hist { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
#j-caption .j-sources p { margin: 8px 0 0; }
/* on a stop the companions live in the menu (Companions), so nothing sits on the story; on a phone the stop rail goes too */
#v-journey #j-company { display: none !important; }
@media (max-width: 720px) { #v-journey #j-rail { display: none !important; } }

/* 4 Dec 2026: the opening paragraph sat pale on the pale sky; a soft dark panel behind it, as the About panel has. */
#j-intro { background: rgba(8,12,20,.62); padding: .75em 1.2em; border-radius: 10px; }

/* Opening scene readability (Roger, 4 Dec 2026): the welcome text and subtitle sit over the sun and pale sky,
   so give them the same dark panel as the story cards. */
#j-intro, #j-welcome { background: rgba(6,8,13,.85); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#j-sub { display: inline-block; padding: 4px 16px; border-radius: 6px; background: rgba(6,8,13,.7); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

/* How Ru is built (#/built), 4 Dec 2026 */
#v-built .pipeline { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: s; }
#v-built .pipeline .step { position: relative; padding: 12px 14px; background: rgba(6,8,13,.6); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 6px; }
#v-built .pipeline .step b { display: block; font-size: 15px; margin-bottom: .3em; color: var(--bone); }
#v-built .pipeline .step span { font-size: 13.5px; opacity: .85; line-height: 1.45; }
#v-built .pipeline .s-build { border-top-color: #7f9bb5; }
#v-built .built-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
#v-built ul li { margin: .3em 0; }
#v-built .built-example { margin: 1.4em 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(6,8,13,.45); }
#v-built .built-example summary { cursor: pointer; font-weight: 600; }
#v-built figure.code { margin: 1em 0; min-width: 0; }
#v-built figure.code figcaption { font-size: 13px; letter-spacing: .04em; opacity: .8; margin-bottom: .35em; }
#v-built pre { margin: 0; padding: 12px 14px; background: #0b0e15; border: 1px solid var(--line); border-radius: 6px; overflow: auto; max-height: 22em; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 860px) { #v-built .pipeline { grid-template-columns: 1fr; } #v-built .built-two { grid-template-columns: 1fr; } }

/* Sign-up form (5 Dec 2026): Buttondown, on the site */
.ml-form { margin: .8em 0 0; }
.ml-form .ml-lead { margin: 0 0 .4em; font-weight: 600; }
.ml-form .ml-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.ml-form input[type=email] { flex: 1 1 14em; min-width: 0; padding: .6em .8em; border-radius: 999px; border: 1px solid rgba(236,228,210,.35); background: rgba(6,8,13,.6); color: var(--bone); font: inherit; font-size: 15px; }
.ml-form .ml-status { min-height: 1.2em; margin: .4em 0 0; font: 13px/1.4 var(--sans); }
.ml-form .ml-status.bad { color: #f0a08a; }
.ml-form .note { font: 12px/1.4 var(--sans); color: var(--dim); margin: .3em 0 0; }
#j-caption .j-coming { margin: 0 0 .6em; padding-left: 1.2em; } #j-caption .j-coming li { margin: .15em 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#j-caption .j-end .ml-lead { display: none; }   /* the card title already says sign up */
.ml-form .ml-substack { margin: .6em 0 0; font: 13px/1.45 var(--sans); } .ml-form .ml-substack a { color: var(--bone); }
