/* index theme — a case file. Cool grey-white paper, slate ink, petrol accent, reference codes everywhere. Space Grotesk headings, Literata body, JetBrains Mono codes. Light only. */
:root {
  --paper: #f5f6f4; --paper-2: #ffffff; --band: #e9ecea;
  --ink: #1e2428; --ink-2: #48525a; --muted: #75808a; --rule: #d3d9dc; --rule-2: #b3bcc2;
  --accent: #0f5c6e; --accent-ink: #0b4756; --accent-bg: #e3f0f3; --tag: #8a6d1f; --tag-bg: #f6efdc; --focus: #f2b632; --green: #2f9e6e;
  --dark: #1e2428; --dark-text: #d3d9dc; --dark-muted: #8f9aa3;
  --max: 80rem; --measure: 66ch;
  --display: "Space Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.02rem; line-height: 1.65; }
a { color: var(--accent-ink); text-underline-offset: .15em; text-decoration-thickness: 1px; } a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; } .skip:focus { left: 1rem; z-index: 10; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.mono { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mono.small, .small { font-size: .62rem; }
.muted { color: var(--muted); }
.code { font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; color: var(--accent-ink); background: var(--accent-bg); border: 1px solid var(--accent); border-radius: 3px; padding: 0 .35rem; white-space: nowrap; }

/* topline + masthead */
.topline { background: var(--dark); color: var(--dark-text); }
.topline-grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .4rem 1.25rem; } .topline .mono { color: var(--dark-text); margin: 0; }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); margin-right: .45rem; vertical-align: middle; }
.masthead { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.masthead-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.5rem; padding: .9rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: var(--accent); color: #fff; font-family: var(--mono); font-weight: 600; font-size: .9rem; border-radius: 4px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1; letter-spacing: -.01em; }
.wordmark em { font-style: normal; color: var(--accent); }
.wordmark small { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; font-weight: 400; }
.sitenav { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.sitenav a { font-family: var(--display); font-weight: 500; font-size: .9rem; color: var(--ink-2); text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.sitenav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 64rem) { .sitenav { width: 100%; } }

/* file strip */
.strip { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; padding: .5rem .8rem; border: 1px solid var(--rule-2); border-left: 4px solid var(--accent); background: var(--paper-2); margin: 0 0 1.4rem; color: var(--ink-2); }
.strip b { font-weight: 600; color: var(--muted); margin-right: .3rem; }

/* front */
.front { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.front .wrap { padding-top: 2rem; padding-bottom: 2.4rem; }
.kicker { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .8rem; }
.claim { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 .8rem; max-width: 22ch; text-wrap: balance; }
.frame { margin: 0 0 1.1rem; }
.lead { font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); max-width: 64ch; margin: 0; }
.status { background: var(--band); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 1.6rem; }
.status .wrap { padding-top: 1.8rem; padding-bottom: 1.8rem; }
.status h2 { font-family: var(--display); font-size: 1.7rem; letter-spacing: -.02em; line-height: 1.15; margin: .3rem 0 .6rem; }
.status-lead { max-width: var(--measure); margin: 0 0 1.2rem; }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-bottom: .8rem; }
@media (max-width: 56rem) { .status-grid { grid-template-columns: 1fr 1fr; } }
.status-grid div { background: var(--paper-2); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: .8rem 1rem; }
.status-grid b { display: block; font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--accent); margin-bottom: .35rem; }
.status-grid span { font-size: .88rem; color: var(--ink-2); line-height: 1.4; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem; padding-top: 2rem; padding-bottom: 4rem; align-items: start; }
@media (max-width: 60rem) { .layout { grid-template-columns: 1fr; } }
.entry { max-width: var(--measure); min-width: 0; }
.file-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 1rem; text-wrap: balance; }
.capsule { border: 1px solid var(--rule-2); border-left: 4px solid var(--accent); background: var(--paper-2); padding: .9rem 1.2rem .7rem; margin: 0 0 1.4rem; }
.capsule .mono { margin: 0 0 .4rem; color: var(--accent); }
.capsule-text { margin: 0 0 .5rem; font-size: 1.08rem; line-height: 1.55; }
.file-record { margin: 0 0 1.4rem; background: var(--paper-2); border: 1px solid var(--rule); padding: .8rem 1rem .4rem; }
.file-record .mono { margin: 0 0 .4rem; }
.file-record dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1.2rem; margin: 0; }
@media (max-width: 40rem) { .file-record dl { grid-template-columns: 1fr; } }
.file-record dl div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--rule); font-size: .9rem; }
.file-record dt { font-family: var(--mono); font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.file-record dd { margin: 0; }
.contents { margin: 0 0 1.4rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .7rem 0; }
.contents .mono { margin: 0 0 .3rem; }
.contents ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; font-size: .9rem; line-height: 1.7; }
.contents li { break-inside: avoid; } .contents a { color: var(--ink-2); text-decoration: none; } .contents a:hover { color: var(--accent); }
@media (max-width: 40rem) { .contents ol { columns: 1; } }
.body h2, .faq h2, .sources-sec h2, .related h2, .exhibits h2, #triples h2 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.015em; line-height: 1.2; margin: 2rem 0 .6rem; }
.body h2::before, .exhibits h2::before { content: "§ "; color: var(--accent); font-weight: 500; }
.body h3, .faq h3 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin: 1.3rem 0 .35rem; }
.body p, .faq p { margin: 0 0 1rem; } .body ul, .body ol { padding-left: 1.3rem; margin: 0 0 1rem; } .body li { margin-bottom: .3rem; }
.body blockquote { margin: 1.2rem 0; padding: .8rem 1rem; border-left: 3px solid var(--tag); background: var(--tag-bg); } .body blockquote p { margin: 0; }
.body table, .triples { border-collapse: collapse; width: 100%; font-size: .88rem; display: block; overflow-x: auto; margin: 1rem 0 1.4rem; border-right: 1px solid var(--rule); }
.body th, .body td, .triples th, .triples td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid var(--rule); }
.body thead th, .triples thead th { font-family: var(--mono); font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.tablewrap { overflow-x: auto; }
.body code { font-family: var(--mono); font-size: .82em; background: var(--band); padding: .05rem .3rem; border-radius: 3px; }
.label { display: inline-block; font-family: var(--mono); font-size: .58rem; letter-spacing: .04em; text-transform: uppercase; color: var(--tag); background: var(--tag-bg); border: 1px solid var(--tag); padding: .05rem .4rem; vertical-align: middle; margin-left: .3rem; border-radius: 3px; }

/* exhibits */
.exhibit { border: 1px solid var(--rule-2); background: var(--paper-2); padding: .9rem 1.1rem .5rem; margin: 0 0 .9rem; }
.ex-head { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .3rem; }
.exhibit h3 { font-family: var(--display); font-size: 1.08rem; margin: 0 0 .4rem; }
.exhibit > p:not(.mono) { margin: 0 0 .6rem; font-size: .96rem; }
.ex-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 1rem; margin: 0; }
@media (max-width: 40rem) { .ex-meta { grid-template-columns: 1fr; } }
.ex-meta div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--rule); font-size: .84rem; }
.ex-meta dt { font-family: var(--mono); font-size: .58rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; } .ex-meta dd { margin: 0; word-break: break-word; }

/* sources, related, foot of entry */
.sources { padding-left: 1.2rem; font-size: .94rem; } .sources li { margin-bottom: .4rem; }
.related ul { list-style: none; padding: 0; margin: 0; } .related li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--rule); font-size: .95rem; }
.related li a { text-decoration: none; color: var(--ink); font-weight: 600; } .related li a:hover { color: var(--accent); }
.entry-foot { margin-top: 2rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.cite { padding: .2rem 0 .6rem; } .cite p { margin: .3rem 0 .6rem; font-size: .9rem; word-break: break-word; }
button { font-family: var(--display); font-weight: 700; font-size: .84rem; background: var(--ink); color: #fff; border: 1px solid var(--ink); padding: .38rem .85rem; cursor: pointer; border-radius: 3px; } button:hover { background: var(--accent); border-color: var(--accent); }
.disclosure { margin: .8rem 0 0; padding: .8rem 1rem; border: 1px dashed var(--tag); background: var(--tag-bg); font-size: .9rem; }

/* rail: the file index */
.rail { position: sticky; top: 1rem; display: grid; gap: 1.2rem; } @media (max-width: 60rem) { .rail { position: static; } }
.file-index { background: var(--paper-2); border: 1px solid var(--rule); padding: .8rem .9rem; max-height: calc(100vh - 2rem); overflow: auto; }
.fi-head { margin: 0 0 .4rem; color: var(--ink); } .fi-sec { margin: .7rem 0 .2rem; color: var(--accent); }
.file-index ol { list-style: none; margin: 0; padding: 0; font-size: .8rem; }
.file-index li a { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; padding: .22rem 0 .22rem .5rem; margin-left: -.5rem; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; line-height: 1.3; }
.file-index li a:hover { color: var(--accent); } .file-index li.current a { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }
.file-index .code { font-size: .56rem; }
.rail-entity { border-left: 3px solid var(--accent); padding: .1rem 0 .1rem .8rem; font-size: .88rem; } .rail-entity p { margin: 0 0 .4rem; }

/* footer */
.sitefoot { background: var(--dark); color: var(--dark-text); border-top: 4px solid var(--accent); padding: 2.4rem 0 2rem; margin-top: 1rem; }
.sitefoot a { color: #fff; } .sitefoot .mono { color: var(--dark-muted); margin: 0 0 .5rem; line-height: 1.7; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) 19rem; gap: 3rem; } @media (max-width: 62rem) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }
.foot-claim { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: #fff; margin: 0 0 .5rem; line-height: 1.15; letter-spacing: -.01em; }
.foot-desc { font-size: .92rem; margin: 0 0 .8rem; }
.foot-h { color: #fff !important; font-weight: 600; margin-bottom: .6rem !important; }
.foot-sec { color: var(--dark-text) !important; margin: .6rem 0 .1rem !important; }
.foot-index ul { list-style: none; margin: 0; padding: 0; font-size: .82rem; line-height: 1.55; columns: 2; column-gap: 1.5rem; } .foot-index li { break-inside: avoid; }
.foot-index li a { color: var(--dark-text); text-decoration: none; } .foot-index li a:hover { color: #fff; text-decoration: underline; }
.foot-pub .pub-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0 0 .3rem; color: #fff; }
.foot-pub .pub-nap { font-size: .9rem; line-height: 1.55; margin: 0 0 .6rem; }
.foot-legal { margin-top: 1.8rem; border-top: 1px solid #343c42; padding-top: .9rem; } .foot-legal .mono { text-transform: none; letter-spacing: .02em; }

/* The question this site answers (per-domain query block) */
.question { background: var(--paper-2); border: 1px solid var(--rule-2); border-left: 4px solid var(--accent); padding: 1.3rem 1.5rem 1.2rem; margin: 1.6rem 0 0; }
.question h2 { font-family: var(--display); font-size: 1.7rem; letter-spacing: -.02em; line-height: 1.15; margin: .3rem 0 .5rem; }
.q-label { color: var(--muted); margin: 0; }
.q-answer { font-size: 1.3rem; margin: 0 0 .6rem; font-family: var(--display); }
.q-answer strong { color: var(--accent); }
.q-answer .mono { font-size: .8rem; color: var(--muted); font-family: var(--mono); }
.question p:last-child { margin: 0; max-width: var(--measure); }

@media print { .topline, .masthead, .rail, button, .skip, .sitefoot { display: none !important; } .layout { display: block; } body { background: #fff; color: #000; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* long domain strings must not widen the rail */
.infobox td, .record td, .file-record dd, .reading dd, .demand dd, .money dd, .chan dd { overflow-wrap: anywhere; }
