/* Spider Report — Concept #3 design system */
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Wordmark"; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url("/fonts/ibm-plex-sans-condensed-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url("/fonts/ibm-plex-sans-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url("/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #071017;
  --surface: #0B151E;
  --surface-2: #0F1C27;
  --white: #F6F7FA;
  --text: #D6DDE5;
  --smoke: #8A99A9;
  --signal: #0EA5FF;
  --line: rgba(138, 153, 169, .25);
  --line-strong: rgba(138, 153, 169, .45);
  --alert: #E44848;
  --positive: #63C29B;
  --caution: #D8A84E;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui: "Plex Condensed", "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;

  --wrap: 72rem;
  --narrow: 42rem;
  --gap: clamp(1rem, 3vw, 2rem);
  --ease: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--white); text-decoration-color: var(--line-strong); text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color var(--ease), text-decoration-color var(--ease); }
a:hover { color: var(--signal); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 1px; }
::selection { background: rgba(14, 165, 255, .35); color: var(--white); }
h1, h2, h3, h4 { color: var(--white); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gap), var(--narrow)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--signal); color: var(--ink); padding: .5rem 1rem; font-family: var(--ui); z-index: 100; }
.skip:focus { top: 1rem; }

/* ---------- preview banner ---------- */
.preview-banner { background: #2A1517; color: #F2C9C9; font-family: var(--ui); font-size: .875rem; text-align: center; padding: .5rem var(--gap); border-bottom: 1px solid rgba(228, 72, 72, .4); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 16, 23, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 3.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--white); flex-shrink: 0; }
.brand:hover { color: var(--white); }
.mark { width: 2.4rem; height: 2.4rem; flex-shrink: 0; }
.wordmark, .brand__name, .masthead__title, .site-footer__name {
  font-family: "Wordmark", "Arial Narrow", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  background: linear-gradient(180deg, #FFFFFF 15%, #C9D3DD 55%, #8E9EAF 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__name { font-size: 1.35rem; line-height: 1; }
.site-nav { display: flex; gap: 1.5rem; margin-left: auto; font-family: var(--ui); font-size: .95rem; }
.site-nav a { color: var(--smoke); text-decoration: none; padding: .25rem 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--signal); }
.search-link { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; color: var(--smoke); }
.search-link svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.search-link:hover { color: var(--signal); }

@media (max-width: 760px) {
  .site-header__inner { flex-wrap: wrap; gap: 0 .75rem; padding-top: .4rem; }
  .brand__name { font-size: 1.05rem; }
  .search-link { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: .95rem; font-size: .9rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .45rem; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .site-nav::-webkit-scrollbar { display: none; }
}

/* ---------- shared bits ---------- */
.cat { font-family: var(--ui); font-size: .9rem; color: var(--smoke); text-decoration: none; }
a.cat:hover { color: var(--white); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-family: var(--ui); font-size: .875rem; color: var(--smoke); margin-bottom: .75rem; }
.status {
  --tone: var(--smoke);
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--ui); font-weight: 600; font-size: .72rem; letter-spacing: .09em;
  color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
  padding: .12rem .5rem .1rem; border-radius: 2px; line-height: 1.5; white-space: nowrap; cursor: help;
}
.status::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.status--signal { --tone: var(--signal); }
.status--positive { --tone: var(--positive); }
.status--caution { --tone: var(--caution); }
.status--alert { --tone: var(--alert); }
.status--neutral { --tone: #B4C0CC; }
.status--open { --tone: var(--white); }
.status--open::before { background: transparent; border: 1px solid currentColor; }
.status--small { font-size: .66rem; }
.status-change { font-family: var(--ui); font-size: .875rem; color: var(--smoke); margin: .25rem 0 .75rem; }

.on-today { display: inline-flex; align-items: center; gap: .45rem; color: var(--signal); font-size: .85rem; }
.pulse { position: relative; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--signal); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--signal); opacity: 0; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--ui); font-weight: 500; font-size: 1rem; background: var(--white); color: var(--ink); border: 1px solid var(--white); padding: .65rem 1.25rem; border-radius: 2px; cursor: pointer; text-decoration: none; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; color: var(--signal); border-color: var(--signal); }

.section-head { display: grid; gap: .4rem; margin-bottom: 1.5rem; }
.section-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.section-note { color: var(--smoke); font-size: 1rem; max-width: 46rem; }
.section-note a { color: var(--text); }
.fine { font-family: var(--ui); font-size: .875rem; color: var(--smoke); margin-top: 1.25rem; }
.fine a { color: var(--text); }

/* ---------- web backgrounds ---------- */
.web-lines line { stroke: var(--smoke); stroke-width: .6; opacity: .14; }
.web-nodes circle { fill: var(--smoke); opacity: .3; }

/* ---------- masthead (Today) ---------- */
.masthead { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; background: radial-gradient(ellipse 60% 80% at 15% 0%, rgba(14, 165, 255, .07), transparent 70%); }
.masthead__web { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent); }
.masthead__inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.masthead__brand { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.75rem); }
.mark--large { width: clamp(6rem, 16vw, 10rem); height: auto; aspect-ratio: 1; }
.masthead__title { font-size: clamp(3rem, 9vw, 6rem); line-height: .9; padding-bottom: .05em; }
.masthead__tagline { position: relative; color: var(--text); letter-spacing: .05em; font-size: clamp(1rem, 2.1vw, 1.3rem); margin-top: 1.1rem; padding-top: .9rem; }
.masthead__tagline::before { content: ""; position: absolute; left: 0; top: 0; width: 3rem; height: 2px; background: var(--signal); }
.masthead__edition { font-family: var(--ui); text-align: right; color: var(--smoke); font-size: .95rem; line-height: 1.5; }
.edition-mark { display: inline-flex; align-items: center; gap: .55rem; color: var(--white); font-weight: 500; margin: 0; }
.edition-date, .edition-count { margin: 0; }
.masthead__promise { position: relative; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--text); font-size: 1.05rem; }
@media (max-width: 640px) { .masthead__edition { text-align: left; } }

/* ---------- lead story ---------- */
.lead { padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--line); }
.lead__story { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.lead__headline { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 1rem; }
.lead__headline a { text-decoration: none; }
.lead__headline a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--signal); }
.lead__dek { font-size: 1.25rem; color: var(--text); max-width: 40rem; }
.lead .card__foot { margin: 1rem 0 1.5rem; }
@media (max-width: 860px) { .lead__story { grid-template-columns: 1fr; } }

/* ---------- Why Spider noticed (signature) ---------- */
.noticed { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 1.5rem 1.5rem 1.4rem 1.5rem; }
.noticed::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 1px; background: linear-gradient(90deg, var(--signal), transparent); }
.noticed__title { display: flex; align-items: center; gap: .6rem; font-family: var(--ui); font-weight: 500; font-size: .95rem; color: var(--signal); margin-bottom: .75rem; }
.noticed__title::before { content: ""; width: 1.3rem; height: .8rem; flex-shrink: 0; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 16' fill='none' stroke='%230EA5FF' stroke-linecap='round'%3E%3Cpath d='M5 14a8 8 0 0 1 16 0' stroke-dasharray='9 3 13'/%3E%3Cpath d='M1 14a12 12 0 0 1 24 0' opacity='.5' stroke-dasharray='6 5 14 8'/%3E%3Ccircle cx='13' cy='14' r='1.6' fill='%230EA5FF' stroke='none'/%3E%3C/svg%3E"); }
.noticed p { font-style: italic; font-size: 1.15rem; color: var(--white); line-height: 1.55; }
.noticed .noticed__note { font-style: normal; font-family: var(--ui); font-size: .8rem; color: var(--smoke); margin-top: .9rem; }
.noticed--lead { margin-top: .25rem; }

/* ---------- cards ---------- */
.signals { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 1.4rem 1.4rem 1.2rem; transition: border-color var(--ease); }
.card:hover, .card:focus-within { border-color: var(--line-strong); }
.card__headline { font-size: 1.35rem; line-height: 1.22; margin-bottom: .65rem; }
.card__headline a { text-decoration: none; }
.card__headline a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__headline a:hover { color: var(--white); }
.card:hover .card__headline a { text-decoration: underline; text-decoration-color: var(--signal); }
.card__dek { font-size: 1rem; color: var(--text); line-height: 1.5; }
.card__noticed { font-size: .95rem; font-style: italic; color: var(--smoke); line-height: 1.5; border-top: 1px solid var(--line); padding-top: .8rem; margin-top: auto; }
.noticed-label { font-style: normal; font-family: var(--ui); font-size: .8rem; color: var(--signal); margin-right: .3rem; }
.card__foot { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-family: var(--ui); font-size: .82rem; color: var(--smoke); margin-top: .9rem; }
.card .card__meta, .card .card__foot, .card .status { position: relative; z-index: 1; }

/* Archive register: quieter, permanent */
.card--archive { background: transparent; }
.card--archive .card__headline { font-size: 1.2rem; color: var(--text); }
.card--archive .card__headline a { color: #E3E8EE; }
.card--archive .card__dek { color: var(--smoke); font-size: .97rem; }
.card--archive .card__foot { margin-top: auto; padding-top: .9rem; }

/* ---------- today's thread ---------- */
.thread-feature { padding: clamp(2rem, 5vw, 3.5rem) 0; background: var(--surface); border-block: 1px solid var(--line); }
.thread-feature .section-title a { text-decoration-color: var(--signal); }
.thread-feature .btn { margin-top: 1.75rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline__item { position: relative; padding: 0 0 1.75rem 1.75rem; }
.timeline__item::before { content: ""; position: absolute; left: 4px; top: .55rem; bottom: -.55rem; width: 1px; background: var(--line-strong); }
.timeline__item:last-child::before { display: none; }
.timeline__item::after { content: ""; position: absolute; left: 0; top: .4rem; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid var(--smoke); }
.timeline__item--signal::after { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 4px rgba(14, 165, 255, .15); }
.timeline__date { display: block; font-family: var(--ui); font-size: .85rem; color: var(--smoke); }
.timeline__text { margin: .15rem 0 .35rem; color: var(--text); }
.timeline__src { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-family: var(--ui); font-size: .85rem; }
.timeline__src a { color: var(--smoke); }
.timeline__src a:hover { color: var(--signal); }

/* compact = horizontal on wide screens */
@media (min-width: 900px) {
  .timeline--compact { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.5rem; }
  .timeline--compact .timeline__item { padding: 1.5rem 0 0; }
  .timeline--compact .timeline__item::before { left: 0; right: -1.5rem; top: 4px; bottom: auto; width: auto; height: 1px; }
  .timeline--compact .timeline__item:last-child::before { display: block; right: 0; background: linear-gradient(90deg, var(--line-strong), transparent); }
  .timeline--compact .timeline__item::after { top: 0; }
}
.timeline--compact .timeline__text { font-size: 1rem; }

/* ---------- resurface + newsletter ---------- */
.resurface { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.newsletter { border-top: 1px solid var(--line); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: end; }
.newsletter__copy { color: var(--smoke); margin-top: .4rem; }
.newsletter__form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: .75rem; align-items: end; }
@media (max-width: 860px) { .newsletter__inner, .newsletter__form { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--ui); font-size: .95rem; color: var(--white); }
.opt, .hint { font-family: var(--ui); color: var(--smoke); font-size: .85rem; font-weight: 400; margin: 0; }
input, select, textarea {
  font: inherit; font-family: var(--ui); font-size: 1rem; color: var(--white);
  background: var(--ink); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: .6rem .75rem; width: 100%; transition: border-color var(--ease);
}
textarea { font-family: var(--serif); font-size: 1.05rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--smoke); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--signal); margin: 0; flex-shrink: 0; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--smoke) 50%), linear-gradient(135deg, var(--smoke) 50%, transparent 50%); background-position: calc(100% - 1rem) 55%, calc(100% - .7rem) 55%; background-size: .3rem .3rem; background-repeat: no-repeat; padding-right: 2rem; }
.hp { position: absolute; left: -9999px; }
.form { display: grid; gap: 1.5rem; margin-top: 2rem; }
.form .btn { justify-self: start; }
.field--check label { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; line-height: 1.45; color: var(--text); }
.field--check input { margin-top: .2rem; }
.warning { border: 1px solid rgba(228, 72, 72, .5); background: rgba(228, 72, 72, .06); padding: 1rem 1.25rem; font-size: 1rem; }
.warning strong { color: #F2C9C9; font-weight: 600; }

/* ---------- page heads ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; position: relative; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 400; letter-spacing: -.01em; margin-bottom: .75rem; }
.page-intro { font-size: 1.2rem; color: var(--text); max-width: 42rem; }
.crumb { font-family: var(--ui); font-size: .9rem; margin-bottom: .75rem; }
.crumb a { color: var(--smoke); }
.page-head--thread { overflow: hidden; }
.page-head--thread > *:not(svg) { position: relative; }
.thread-web { position: absolute; right: 0; top: 0; width: min(55%, 600px); height: 100%; -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent); mask-image: linear-gradient(270deg, #000 30%, transparent); }
.page-head--thread .card__meta { margin-top: 1.25rem; }

/* ---------- story ---------- */
.story__header { padding: clamp(2rem, 6vw, 4rem) 0 2rem; }
.story__headline { font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; letter-spacing: -.012em; line-height: 1.1; margin-bottom: 1rem; }
.story__dek { font-size: 1.3rem; line-height: 1.5; color: var(--text); }
.story__facts { display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-family: var(--ui); font-size: .9rem; color: var(--text); border-block: 1px solid var(--line); padding: .85rem 0; margin-top: 1.5rem; }
.story__facts p { margin: 0; }
.story__facts .k { color: var(--smoke); margin-right: .3rem; }
.share { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.share__btn { font-family: var(--ui); font-size: .85rem; color: var(--smoke); background: none; border: 1px solid var(--line); border-radius: 2px; padding: .3rem .7rem; cursor: pointer; text-decoration: none; transition: color var(--ease), border-color var(--ease); }
.share__btn:hover { color: var(--white); border-color: var(--smoke); }

/* The spine: every module hangs off one thread */
.story__body { position: relative; padding: 1rem 0 3rem 2.25rem; font-size: 1.1875rem; }
.story__body::before { content: ""; position: absolute; left: 4px; top: 1.6rem; bottom: 3rem; width: 1px; background: linear-gradient(180deg, var(--signal), var(--line-strong) 12%, var(--line-strong) 88%, transparent); }
.module { position: relative; margin-bottom: 2.75rem; }
.module__title { position: relative; font-family: var(--ui); font-weight: 500; font-size: 1rem; color: var(--smoke); margin-bottom: .8rem; }
.module__title::before, .module--noticed::before { content: ""; position: absolute; left: calc(-2.25rem + 0px); top: .4rem; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid var(--smoke); }
.module:first-child .module__title::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 4px rgba(14, 165, 255, .15); }
.module--noticed::before { top: 1.75rem; background: var(--signal); border-color: var(--signal); }
.module--noticed .noticed__title::before { display: inline-block; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--white); }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { position: relative; padding-left: 1.25rem; margin-bottom: .8rem; }
.facts li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: 1px; background: var(--smoke); }
.facts--open li::before { width: .4rem; height: .4rem; top: .55em; border: 1px solid var(--smoke); border-radius: 50%; background: none; }
.module--gaps .facts li { color: var(--text); }

.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.source { border: 1px solid var(--line); padding: 1rem 1.15rem; font-size: 1rem; }
.source--primary { border-color: rgba(14, 165, 255, .45); background: rgba(14, 165, 255, .04); }
.source p { margin: 0; }
.source__type { font-family: var(--ui); font-size: .8rem; color: var(--smoke); margin-bottom: .3rem !important; }
.source--primary .source__type { color: var(--signal); font-weight: 500; }
.source__title { font-size: 1.08rem; line-height: 1.35; }
.source__title a { word-break: break-word; }
.source__pub { font-family: var(--ui); font-size: .9rem; color: var(--text); margin-top: .2rem !important; }
.source__note { font-size: .95rem; color: var(--smoke); margin-top: .45rem !important; }
.source__accessed { font-family: var(--ui); font-size: .78rem; color: var(--smoke); margin-top: .45rem !important; }

.current-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-family: var(--ui); font-size: .95rem; }
.status-def { color: var(--smoke); }
.updates { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.updates li { border-top: 1px solid var(--line); padding: .9rem 0; display: grid; gap: .35rem; font-size: 1rem; }
.updates time { font-family: var(--ui); font-size: .85rem; color: var(--smoke); }
.updates p { margin: 0; }
.update-src { font-family: var(--ui); font-size: .85rem; color: var(--smoke); }
.update-src a { color: var(--smoke); }
.updates__story { font-size: 1.1rem; }

.related { padding: 2.5rem 0 1rem; border-top: 1px solid var(--line); display: grid; gap: 1.5rem; }
.related__thread { max-width: 42rem; }
.related__label { font-family: var(--ui); font-size: .85rem; color: var(--smoke); margin: 0; }
.related__title { font-size: 1.4rem; margin: .1rem 0 .4rem; }

@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .story__body { padding-left: 1.6rem; font-size: 1.125rem; }
  .module__title::before, .module--noticed::before { left: -1.6rem; }
}

/* ---------- archive ---------- */
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: .9rem; align-items: end; padding: 1.25rem; border: 1px solid var(--line); background: var(--surface); }
.field--search input { font-size: 1.05rem; }
.checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-family: var(--ui); font-size: .95rem; }
.checks label { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; }
.results { font-family: var(--ui); font-size: .9rem; color: var(--smoke); margin: 1.25rem 0 .75rem; }
.empty { border: 1px dashed var(--line-strong); padding: 2rem; text-align: center; color: var(--text); }
.empty .btn { margin-top: 1rem; }
.archive { padding-bottom: 3rem; }
@media (max-width: 960px) { .filters { grid-template-columns: 1fr 1fr; } .field--search { grid-column: 1 / -1; } }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr; } }

/* ---------- threads ---------- */
.thread-list { display: grid; gap: 1rem; padding-bottom: 3rem; }
.thread-card { border: 1px solid var(--line); background: var(--surface); padding: 1.5rem; }
.thread-card__title { font-size: 1.6rem; margin-bottom: .5rem; }
.thread-card__title a { text-decoration: none; }
.thread-card > p { color: var(--text); max-width: 46rem; margin-bottom: 1.5rem; }
.thread-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding: 1rem 0 2rem; }
.thread-layout .section-title, .thread-side .section-title { margin-bottom: 1.25rem; font-size: 1.25rem; }
.thread-side { display: grid; gap: 2rem; align-content: start; }
.doc-list, .entity-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; font-size: 1rem; }
.doc-list span { display: block; font-family: var(--ui); font-size: .85rem; color: var(--smoke); }
.entity-list li { font-family: var(--ui); font-size: .95rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
@media (max-width: 860px) { .thread-layout { grid-template-columns: 1fr; } }

/* ---------- prose (method etc.) ---------- */
.prose { padding-bottom: 4rem; font-size: 1.15rem; }
.prose h2 { font-size: 1.45rem; margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.status-defs { display: grid; gap: .75rem; margin: 1.25rem 0; }
.status-defs div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: baseline; border-top: 1px solid var(--line); padding-top: .75rem; }
.status-defs dd { margin: 0; font-size: 1.05rem; }
.hierarchy { padding-left: 1.5rem; }
.hierarchy li { margin-bottom: .35rem; padding-left: .25rem; }
.hierarchy li::marker { font-family: var(--ui); color: var(--smoke); }
@media (max-width: 520px) { .status-defs div { grid-template-columns: 1fr; gap: .35rem; } }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); margin-top: 2rem; padding: 3rem 0 4.5rem; background: var(--surface); }
.site-footer__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.site-footer__brand p { margin: 0; color: var(--smoke); }
.site-footer__brand .site-footer__name { font-size: 1.5rem; color: transparent; }
.site-footer__process { font-family: var(--ui); font-size: .9rem; margin-top: .75rem !important; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-family: var(--ui); align-content: flex-start; }
.site-footer__nav a { color: var(--text); text-decoration: none; }
.site-footer__nav a:hover { color: var(--signal); }
.footer-web { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; pointer-events: none; -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
