/* ---------- Wire bar ---------- */
#bar { background: var(--bar); color: var(--bar-ink); font: 500 12px/1 var(--f-mono); }
.bar-in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 36px; display: flex; align-items: center; gap: 22px; }
.live { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--flash); box-shadow: 0 0 0 0 var(--flash); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.clock { white-space: nowrap; opacity: .8; font-variant-numeric: tabular-nums; }
.bar-last { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; opacity: .92; }
.bar-last span { color: var(--flash); text-transform: uppercase; letter-spacing: .1em; margin-right: 6px; }
.bar-ic { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; }
.bar-ic:hover { color: var(--flash); }

/* ---------- Masthead + desk tabs ---------- */
#mast { border-bottom: 3px solid var(--rule); background: var(--paper); }
.mast-in { max-width: var(--wrap); margin: 0 auto; padding: 22px 24px 18px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-w { font: 900 34px/1 var(--f-head); letter-spacing: -0.04em; }
.brand:hover { color: inherit; }
.brand:hover .brand-w { color: var(--flash); }
.brand-t { margin: 0; padding-left: 20px; border-left: 1px solid var(--line); font-size: 14px; line-height: 1.35; color: var(--mute); }
.mast-sub { margin-left: 0; white-space: nowrap; }
.seek { position: relative; margin-left: auto; width: min(420px, 100%); display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; background: var(--sheet); border-radius: var(--r); border: 1.5px solid transparent; }
.seek:focus-within { border-color: var(--ink); background: var(--paper); }
.seek svg { flex: none; color: var(--mute); }
.seek input { flex: 1; min-width: 0; border: 0; background: none; outline: none; height: 100%; font-size: 15px; }
.seek input::-webkit-search-cancel-button { display: none; }
.seek kbd { font: 500 11px/1 var(--f-mono); border: 1px solid var(--line); border-radius: 2px; padding: 4px 6px; color: var(--mute); }
.seek-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); z-index: 40; box-shadow: 0 18px 40px rgba(16, 19, 26, .16); overflow: hidden; }
.seek-list a { display: grid; grid-template-columns: 4px auto 1fr; gap: 4px 12px; align-items: baseline; padding: 11px 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.seek-list a i { grid-row: span 2; align-self: stretch; border-radius: 2px; background: var(--routine); }
.seek-list a i.f-flash { background: var(--flash); } .seek-list a i.f-urgent { background: var(--urgent); }
.seek-list a small { font: 500 11px/1 var(--f-mono); color: var(--mute); grid-column: 2 / 4; }
.seek-list a span { grid-column: 2 / 4; font: 700 15px/1.3 var(--f-head); }
.seek-list a:hover, .seek-list a:focus { background: var(--sheet); color: inherit; outline: none; }
.seek-list .seek-all { display: block; font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--flash); border: 0; }
.seek-none { margin: 0; padding: 14px; color: var(--mute); font-size: 15px; }

.desks { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.desks ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.desks ul::-webkit-scrollbar { display: none; }
.desks li { flex: none; }
.desks .desks-sp { flex: 1; }
.desks a { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 0; margin-right: 12px; text-decoration: none; font: 700 15px/1 var(--f-head); position: relative; white-space: nowrap; }
.desks a i { font: 600 10px/1 var(--f-mono); font-style: normal; letter-spacing: .08em; color: var(--mute); padding: 4px 5px; border: 1px solid var(--line); border-radius: 2px; }
.desks a::after { content: ''; position: absolute; left: 0; right: 14px; bottom: -3px; height: 3px; background: transparent; }
.desks a.on::after { background: var(--flash); }
.desks a.on i { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.desks a:hover i { color: var(--flash); border-color: var(--flash); }

/* ---------- Shell: content + wire column ---------- */
.shell { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) var(--col); gap: 44px; align-items: start; }
#main { padding: 32px 0 72px; min-width: 0; }
body.staff .shell { grid-template-columns: minmax(0, 1fr); }
body.staff #wirecol, body.staff #wire-fab { display: none; }

#wirecol { border-left: 1px solid var(--line); padding: 32px 0 72px 24px; min-height: 100%; }
.wc-h { padding-bottom: 14px; border-bottom: 3px solid var(--rule); margin-bottom: 4px; position: relative; }
.wc-h h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .02em; }
.wc-h h2 i { width: 10px; height: 10px; background: var(--flash); border-radius: 50%; animation: pulse 2s infinite; box-shadow: 0 0 0 0 var(--flash); }
.wc-h p { margin: 0 0 12px; font: 500 12px/1.4 var(--f-mono); color: var(--mute); }
.wc-h p b { color: var(--flash); font-weight: 600; }
.wc-x { display: none; position: absolute; top: -4px; right: 0; background: none; border: 0; cursor: pointer; padding: 6px; }
.wc-f { display: flex; gap: 4px; }
.wc-f button { flex: 1; height: 30px; border: 1.5px solid var(--line); background: var(--paper); border-radius: 2px; cursor: pointer; font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.wc-f button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.wc-l { list-style: none; margin: 0; padding: 0; }
.wc-m { font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mute); padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.wc-i { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 0 12px 10px; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; }
.wc-i::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--line); }
.wc-i.p-flash::before { background: var(--flash); }
.wc-i.p-urgent::before { background: var(--urgent); }
.wc-i time { font: 500 11px/1.45 var(--f-mono); color: var(--mute); font-variant-numeric: tabular-nums; }
.wc-i span { font: 700 15px/1.3 var(--f-head); }
.wc-i small { display: block; font: 600 10px/1 var(--f-mono); letter-spacing: .1em; color: var(--mute); margin-bottom: 5px; }
.wc-i.p-flash small { color: var(--flash); }
.wc-i.p-urgent small { color: var(--urgent); }
.wc-i.here { background: var(--sheet); }
.wc-i:hover span { color: var(--flash); }
.wc-all { display: flex; align-items: center; gap: 8px; margin-top: 16px; font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
#wire-fab { display: none; }

/* ---------- Section heads ---------- */
.sec { margin-top: 56px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; border-top: 3px solid var(--rule); padding-top: 12px; margin-bottom: 22px; }
.sec-h h2 { font-size: 22px; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
.sec-h p { margin: 0; color: var(--mute); font-size: 15px; }
.sec-h > a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.dek { font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.dl { font: 500 13px/1.4 var(--f-mono); color: var(--mute); margin: 0; }
.dl b { color: var(--ink); font-weight: 600; letter-spacing: .04em; margin-right: 6px; text-transform: uppercase; }
.dl-s { font: 500 12px/1.4 var(--f-mono); color: var(--mute); margin: 6px 0 0; }

/* ---------- Lead ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'copy fig' 'num fig' 'triad triad'; gap: 0 32px; }
.lead-copy { grid-area: copy; }
.lead-h { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.02; margin: 0 0 16px; }
.lead-h a { text-decoration: none; }
.lead-fig { grid-area: fig; align-self: start; border: 1px solid var(--line); }
.lead-num { grid-area: num; align-self: end; margin-top: 22px; }
.keynum { border-top: 3px solid var(--flash); padding-top: 12px; }
.keynum b { display: block; font: 900 clamp(48px, 5vw, 76px)/0.95 var(--f-head); letter-spacing: -0.02em; color: var(--flash); }
.keynum span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--ink-2); max-width: 36ch; }
.keynum.inline { margin-top: 18px; }
.keynum.inline b { font-size: 44px; }
.triad { grid-area: triad; list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); counter-reset: t; }
.triad li { padding: 14px 20px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); counter-increment: t; }
.triad li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.triad span { display: block; font: 800 15px/1.2 var(--f-head); color: var(--ink); margin-bottom: 6px; }
.triad span::before { content: '0' counter(t) '  '; font: 600 11px/1 var(--f-mono); color: var(--flash); }

/* ---------- Secondaries ---------- */
.seconds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.second { display: grid; gap: 12px; align-content: start; }
.second-fig { border: 1px solid var(--line); }
.second h3 { font-size: 19px; line-height: 1.22; margin: 0; }
.second h3 a { text-decoration: none; }
.second .slugline { margin-bottom: 8px; }

/* ---------- Briefing ---------- */
.brief { margin-top: 56px; background: var(--ink); color: var(--paper); padding: 28px 30px 12px; border-radius: var(--r); }
.brief header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-bottom: 8px; }
.brief header .eyebrow { width: 100%; color: var(--flash); }
.brief header h2 { margin: 0; font-size: 26px; flex: 1; }
.brief ol { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: b; }
.brief li { counter-increment: b; border-top: 1px solid rgba(255, 255, 255, .16); }
.brief li a { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 14px 0; text-decoration: none; font-size: 17px; line-height: 1.45; }
.brief li a::before { content: counter(b); grid-row: span 2; font: 900 30px/1 var(--f-head); color: var(--flash); }
.brief li small { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; opacity: .65; }
.brief li a:hover { color: var(--flash); }
.brief.done ol { display: none; }
.brief.done { padding-bottom: 28px; }
:root[data-theme='dark'] .brief { background: var(--sheet); color: var(--ink); }
:root[data-theme='dark'] .brief li { border-color: var(--line); }

/* ---------- Number tiles ---------- */
.ntiles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ntile { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; min-height: 220px; }
.ntile b { font: 900 46px/1 var(--f-head); letter-spacing: -0.02em; }
.ntile.p-flash b { color: var(--flash); }
.ntile.p-urgent b { color: var(--urgent); }
.ntile-l { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.ntile-h { margin-top: auto; font: 500 12px/1.45 var(--f-mono); color: var(--mute); }
.ntile:hover { background: var(--sheet); color: inherit; }
.ntile:hover .ntile-h { color: var(--ink); }

/* ---------- Thread tracks ---------- */
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tr-card { display: flex; flex-direction: column; padding: 20px; background: var(--sheet); border-radius: var(--r); text-decoration: none; }
.tr-card h3 { font-size: 22px; margin: 0 0 6px; }
.tr-q { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.tr-line { position: relative; height: 26px; margin: 8px 6px 4px; }
.tr-line::before { content: ''; position: absolute; left: -6px; right: -6px; top: 12px; height: 2px; background: var(--ink); }
.tr-line i { position: absolute; top: 6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--routine); }
.tr-line i.p-flash { border-color: var(--flash); background: var(--flash); }
.tr-line i.p-urgent { border-color: var(--urgent); }
.tr-ends { display: flex; justify-content: space-between; font: 500 11px/1 var(--f-mono); color: var(--mute); margin: 0 0 14px; }
.tr-last { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line); }
.tr-last li { padding: 10px 0 0; font: 700 14px/1.3 var(--f-head); }
.tr-last small { display: block; font: 500 11px/1 var(--f-mono); color: var(--mute); margin-bottom: 4px; }
.tr-card:hover { color: inherit; box-shadow: inset 0 0 0 1.5px var(--ink); }
.tr-card:hover h3 { color: var(--flash); }

/* ---------- Desk fronts ---------- */
.fronts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.front { padding: 14px 16px 6px 0; }
.front + .front { padding-left: 16px; border-left: 1px solid var(--line); }
.front-h { display: grid; grid-template-columns: 1fr auto; text-decoration: none; margin-bottom: 8px; }
.front-h b { font: 900 30px/1 var(--f-head); letter-spacing: -0.02em; }
.front-h span { grid-row: 2; font: 600 12px/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.front-h small { grid-row: span 2; font: 600 12px/1 var(--f-mono); color: var(--mute); }
.front-h:hover b { color: var(--flash); }
.front ul { list-style: none; margin: 0; padding: 0; }
.front li { padding: 10px 0; border-top: 1px solid var(--line); font: 700 15px/1.3 var(--f-head); }
.front li .flag { margin-bottom: 6px; }
.front li a { text-decoration: none; display: block; }

/* ---------- Source mix ---------- */
.mix-bar { display: flex; height: 56px; gap: 3px; }
.mix-bar span { background: var(--s); display: flex; align-items: flex-end; padding: 8px; min-width: 38px; }
.mix-bar b { font: 600 12px/1 var(--f-mono); color: var(--ink); background: var(--paper); padding: 3px 5px; border-radius: 2px; }
.mix-key { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.mix-key li { display: flex; align-items: center; gap: 8px; }
.mix-key i { width: 12px; height: 12px; background: var(--s); border-radius: 2px; }
.mix-key b { font: 600 13px/1 var(--f-mono); color: var(--mute); }

/* ---------- Page heads, filters, rows ---------- */
.page-h { padding-bottom: 22px; border-bottom: 3px solid var(--rule); margin-bottom: 24px; }
.page-h h1 { max-width: 20ch; }
.filters { display: grid; grid-template-columns: auto 190px 150px 1fr; gap: 10px; align-items: center; margin-bottom: 18px; }
.filters .count { grid-column: 1 / -1; margin: 0; font: 500 12px/1 var(--f-mono); color: var(--mute); }
.seg { display: flex; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; height: 42px; }
.seg button { border: 0; background: var(--paper); padding: 0 14px; cursor: pointer; font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button.f-flash, .seg button.f-urgent { background: var(--paper); color: var(--ink); }
.seg button.on { background: var(--ink); color: var(--paper); }
.seg button.f-flash.on { background: var(--flash); color: #fff; }
.seg button.f-urgent.on { background: var(--urgent); color: #fff; }
.day { font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin: 26px 0 0; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row-t { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.row-t b { display: block; font-size: 20px; font-weight: 600; }
.row-t small { font-size: 11px; color: var(--mute); }
.row.p-flash .row-t b { color: var(--flash); }
.row.p-urgent .row-t b { color: var(--urgent); }
.row h3 { font-size: 22px; margin: 0 0 6px; }
.row h3 a { text-decoration: none; }
.row p { margin: 0; color: var(--ink-2); font-size: 16px; }
.row .slugline { margin-bottom: 8px; }
.row p.dl-s { font-size: 12px; color: var(--mute); margin-top: 6px; }
.row-n b { font: 900 30px/1 var(--f-head); letter-spacing: -0.02em; color: var(--mute); white-space: nowrap; }
.rows { min-height: 120px; }

/* ---------- Desk page ---------- */
.desk-h { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; padding-bottom: 24px; border-bottom: 3px solid var(--rule); }
.desk-code { font: 900 clamp(80px, 11vw, 150px)/0.8 var(--f-head); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.desk-h h1 { margin: 0 0 8px; }
.desk-h .lede { margin-bottom: 6px; }
.desk-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.desk-top h2 { font-size: 30px; }
.desk-top h2 a { text-decoration: none; }
.desk-fig { border: 1px solid var(--line); align-self: start; }
.other-desks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.other-desks a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--sheet); border-radius: var(--r); text-decoration: none; font: 700 15px/1 var(--f-head); }
.other-desks a b { font: 600 11px/1 var(--f-mono); background: var(--ink); color: var(--paper); padding: 4px 6px; border-radius: 2px; }
.other-desks a small { font: 500 12px/1 var(--f-mono); color: var(--mute); }

/* ---------- Thread page ---------- */
.thr-q { display: grid; gap: 6px; padding: 16px 18px; background: var(--flash-tint); border-left: 4px solid var(--flash); font: 800 21px/1.3 var(--f-head); max-width: 60ch; }
.thr-q span { font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--flash); }
.thr-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 40px; margin: 22px 0 0; }
.thr-stats dt { font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.thr-stats dd { margin: 6px 0 0; font: 800 20px/1 var(--f-head); }
.spine { list-style: none; margin: 0; padding: 0; position: relative; }
.spine::before { content: ''; position: absolute; left: 150px; top: 6px; bottom: 6px; width: 2px; background: var(--ink); }
.spine li { display: grid; grid-template-columns: 130px 1fr; gap: 44px; padding: 22px 0; position: relative; }
.spine li::before { content: ''; position: absolute; left: 143px; top: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--routine); }
.spine li.p-flash::before { background: var(--flash); border-color: var(--flash); }
.spine li.p-urgent::before { border-color: var(--urgent); }
.spine time { font: 600 13px/1.6 var(--f-mono); text-align: right; padding-top: 2px; }
.spine h2 { font-size: 24px; margin: 0 0 8px; }
.spine h2 a { text-decoration: none; }
.spine article > p { color: var(--ink-2); margin: 0; }
.spine-s { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; }
.spine-s i { font: 600 11px/1 var(--f-mono); font-style: normal; border: 1.5px solid var(--ink); padding: 2px 5px; border-radius: 2px; }
.spine-s em { font: 500 12px/1 var(--f-mono); font-style: normal; color: var(--mute); }
.spine-n { margin-top: 12px !important; font-size: 15px; }
.spine-n b { font: 900 26px/1 var(--f-head); color: var(--flash); margin-right: 6px; }

/* ---------- Story page ---------- */
.story-h { max-width: 900px; }
.story-h h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.04; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font: 500 13px/1.4 var(--f-mono); color: var(--mute); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.byline b { color: var(--ink); letter-spacing: .04em; text-transform: uppercase; }
.byline .link-btn { font: inherit; }
.story-fig { margin: 24px 0 0; }
.story-fig img { border: 1px solid var(--line); }
.story-fig figcaption { font: 500 12px/1.4 var(--f-mono); color: var(--mute); padding-top: 8px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 40px; margin-top: 30px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--rule); border-radius: var(--r); margin-bottom: 30px; }
.three div { padding: 16px 18px; }
.three div + div { border-left: 1px solid var(--line); }
.three h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--flash); margin: 0 0 8px; }
.three p { margin: 0; font-size: 15px; line-height: 1.5; }
.source-note { margin-top: 36px; padding: 18px 0 0; border-top: 3px solid var(--rule); max-width: 68ch; }
.source-note p { margin: 0 0 8px; }
.story-side { display: grid; gap: 30px; align-content: start; }
.keynum.big b { font-size: 60px; }
.log h2, .in-thr h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 3px solid var(--rule); padding-bottom: 8px; margin: 0 0 4px; }
.log ol, .in-thr ol { list-style: none; margin: 0; padding: 0; }
.log li { padding: 12px 0 12px 16px; border-left: 2px solid var(--line); position: relative; }
.log li::before { content: ''; position: absolute; left: -5px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.log li:first-child::before { background: var(--flash); }
.log time { font: 500 11px/1.3 var(--f-mono); color: var(--mute); }
.log p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.in-thr li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 700 14px/1.3 var(--f-head); }
.in-thr li small { display: block; font: 500 11px/1 var(--f-mono); color: var(--mute); margin-bottom: 4px; }
.in-thr li.here a { color: var(--flash); }
.in-thr li.here small::after { content: ' · you are here'; }
.compacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.compact { display: grid; gap: 8px; text-decoration: none; align-content: start; }
.compact img { border: 1px solid var(--line); }
.compact-s { display: flex; align-items: center; gap: 6px; }
.compact-s i { font: 600 10px/1 var(--f-mono); font-style: normal; color: var(--mute); }
.compact b { font: 700 16px/1.25 var(--f-head); }
.compact small { font: 500 11px/1 var(--f-mono); color: var(--mute); }

/* ---------- Standards ---------- */
.std { max-width: 760px; margin-top: 40px; }
.std h2 { font-size: 22px; text-transform: uppercase; letter-spacing: .01em; border-top: 3px solid var(--rule); padding-top: 12px; }
.std-p { list-style: none; margin: 0; padding: 0; }
.std-p li { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.std-p p { margin: 0; }
.std-p small { font: 500 12px/1 var(--f-mono); color: var(--mute); }
.std-list { padding-left: 1.2em; }
.std-list li { margin: 8px 0; }
.std-list li::marker { color: var(--flash); font-family: var(--f-mono); }
.std-src { margin: 0; }
.std-src div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.std-src dd { margin: 0; }

/* ---------- Staff ---------- */
.auth { display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: min(420px, 100%); padding: 30px; border: 1.5px solid var(--rule); border-radius: var(--r); }
.admin-table td a { text-decoration: none; font-weight: 600; }
.admin-table .actions { white-space: nowrap; }
.subs { list-style: none; margin: 0; padding: 0; }
.subs li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
.ed-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.preview { border: 1px dashed var(--line); padding: 16px; max-width: none; font-size: 16px; }

/* ---------- Footer ---------- */
#foot { background: var(--sheet); border-top: 3px solid var(--rule); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 28px; }
.foot-sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-sub .eyebrow { grid-column: 1 / -1; color: var(--flash); }
.foot-sub h2 { font-size: 30px; margin: 0; }
.foot-sub > p.small { grid-column: 2; margin: 8px 0 0; }
.sub { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-self: center; }
.sub input { min-height: 46px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper); }
.sub .btn { min-height: 46px; }
.sub-msg { grid-column: 1 / -1; margin: 0; font-size: 14px; min-height: 1em; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 30px 0; }
.foot-cols h3 { font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { padding: 5px 0; font-size: 15px; }
.foot-cols a { text-decoration: none; }
.foot-cols a i { font: 600 10px/1 var(--f-mono); font-style: normal; color: var(--mute); margin-right: 8px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.foot-legal span:first-child { display: inline-flex; align-items: center; gap: 8px; font: 900 15px/1 var(--f-head); color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  #wirecol {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 82vh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--paper); border: 0; border-top: 3px solid var(--rule); padding: 20px 20px 32px; min-height: 0;
    transform: translateY(105%); transition: transform .28s ease; box-shadow: 0 -20px 50px rgba(16, 19, 26, .2);
  }
  body.wire-open #wirecol { transform: none; }
  .wc-x { display: block; }
  #wire-fab {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: 16px; z-index: 55;
    height: 46px; padding: 0 16px; border: 0; border-radius: 23px; background: var(--ink); color: var(--paper); cursor: pointer;
    font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; box-shadow: 0 8px 24px rgba(16, 19, 26, .25);
  }
  #wire-fab i { width: 8px; height: 8px; border-radius: 50%; background: var(--flash); }
  #wire-fab b { background: var(--flash); color: #fff; padding: 4px 7px; border-radius: 10px; }
  body.wire-open #wire-fab { display: none; }
  .fronts { grid-template-columns: repeat(3, 1fr); }
  .front:nth-child(4) { padding-left: 0; border-left: 0; }
  .front:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .brand-t, .mast-sub { display: none; }
  .mast-in { gap: 16px; }
  .lead { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'fig' 'copy' 'num' 'triad'; }
  .lead-fig { margin-bottom: 20px; }
  .seconds, .tracks, .compacts { grid-template-columns: repeat(2, 1fr); }
  .ntiles { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .editor { grid-template-columns: minmax(0, 1fr); }
  .story-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-side .keynum { grid-column: 1 / -1; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .seg { grid-column: 1 / -1; }
  .filters #wf-q { grid-column: 1 / -1; }
  .desk-top { grid-template-columns: minmax(0, 1fr); }
  .foot-sub { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .foot-sub > p.small { grid-column: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar-in, .mast-in, .desks, .shell, .foot-in { padding-left: 16px; padding-right: 16px; }
  .bar-in { gap: 12px; }
  .bar-last, .bar-ic span { display: none; }
  .clock { margin-right: auto; }
  .mast-in { flex-wrap: wrap; padding-top: 16px; padding-bottom: 14px; }
  .brand-w { font-size: 28px; }
  .seek { width: 100%; margin-left: 0; }
  .seek kbd { display: none; }
  #main { padding-top: 22px; }
  .seconds, .tracks, .compacts, .ntiles, .fronts, .triad, .three, .story-side, .foot-cols, .ed-3 { grid-template-columns: minmax(0, 1fr); }
  .front, .front + .front { padding-left: 0; border-left: 0; }
  .front + .front { border-top: 1px solid var(--line); }
  .triad li + li, .three div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .three div + div { padding-left: 18px; }
  .ntile { min-height: 0; }
  .brief { padding: 22px 18px 6px; margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .row { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; }
  .row-n { display: none; }
  .row h3 { font-size: 19px; }
  .desk-h { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .spine::before { left: 7px; }
  .spine li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 34px; }
  .spine li::before { left: 0; top: 24px; }
  .spine time { text-align: left; }
  .thr-stats { grid-template-columns: repeat(2, auto); }
  .std-p li { grid-template-columns: 1fr; gap: 8px; }
  .std-src div { grid-template-columns: 1fr; gap: 6px; }
  .sub { grid-template-columns: minmax(0, 1fr); }
  .admin-table { min-width: 720px; }
}

/* Long reads (lib/reading.js): cover kept to a reading width, lede, "In this story" list, numbered section heads. */
.story-fig { max-width: 720px; }
.story-fig img { width: 100%; height: auto; }
.prose { counter-reset: sec; }
.prose .lede { font-size: 21px; line-height: 1.6; color: var(--ink); }
.prose h2 { padding-top: 16px; border-top: 3px solid var(--ink); scroll-margin-top: 96px; }
.prose h2:not(#conclusion) { counter-increment: sec; }
.prose h2:not(#conclusion)::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 8px; font: 600 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--flash); }
.in-story { margin: 1.5em 0 2em; padding: 16px 20px; background: var(--sheet); border-left: 4px solid var(--flash); }
.in-story-h { margin: 0 0 10px; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.in-story ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 7px; }
.in-story li { counter-increment: toc; display: flex; gap: 12px; margin: 0; font: 600 16px/1.4 var(--f-head); }
.in-story li::before { content: counter(toc, decimal-leading-zero); flex: none; font: 600 12px/1.7 var(--f-mono); color: var(--flash); }
.in-story li.end::before { content: '·'; }
.in-story a { color: var(--ink); text-decoration: none; }
.in-story a:hover, .in-story a:focus-visible { text-decoration: underline; text-decoration-color: var(--flash); }
