/* ==========================================================================
   Office of the Owner, Mars | Site Styles
   The joke only works if the site is dead serious, so the design borrows
   from government registry sites: paper ground, plain type, an official
   banner, ruled tables, case numbers in mono. Rust is the only accent and
   it always means "the property." Status colors encode case state.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --paper: #FAF7F2;
    --paper-2: #F2ECE3;
    --paper-3: #E8DFD2;
    --ink: #1C1714;
    --ink-2: #4A413B;
    --ink-3: #7A6F66;
    --rule: #DDD3C5;
    --rule-2: #C7B9A6;

    --rust: #A8401F;
    --rust-2: #C4552F;
    --rust-dark: #6E2512;
    --night: #1C110D;
    --night-2: #2A1A14;
    --gold: #C9A36A;
    --bone: #EFE6D8;

    --active: #C4332A;
    --idle: #C98A1B;
    --abandoned: #6F6258;
    --destroyed: #2F2925;

    --sans: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
    --serif: 'Source Serif 4', Georgia, serif;
    --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1240px;
    --section: clamp(56px, 8vw, 104px);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--rust); text-underline-offset: 3px; }
a:hover { color: var(--rust-dark); }
b, strong { font-weight: 700; }
.mono { font-family: var(--mono); }

:focus-visible { outline: 3px solid var(--idle); outline-offset: 2px; }

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--ink);
    color: var(--paper);
    padding: 8px 12px;
    z-index: 100;
}
.skip-link:focus { left: 8px; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; }
h3 { font-size: 20px; }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

p + p { margin-top: 1em; }

.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--ink); }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 20px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 16px;
}
.eyebrow-index {
    border: 1px solid var(--rust);
    padding: 1px 6px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 15px 22px;
    background: var(--rust);
    color: #fff;
    border: 2px solid var(--rust);
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--rust); }
.btn--ghost:hover { background: var(--rust); color: #fff; }
.btn--light { background: var(--paper); color: var(--rust-dark); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--block { width: 100%; }

/* ---------- Official banner ---------- */
.official-banner {
    background: var(--paper-3);
    font-size: 13px;
    color: var(--ink-2);
}
.official-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.how-you-know summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.how-you-know summary::-webkit-details-marker { display: none; }
.flag {
    width: 18px;
    height: 12px;
    background: linear-gradient(90deg, var(--rust) 0 50%, var(--night) 50%);
    display: inline-block;
}
.how-link { color: var(--rust); text-decoration: underline; text-underline-offset: 2px; }
.how-link::after { content: " ▾"; text-decoration: none; display: inline-block; margin-left: 2px; }
.how-you-know[open] .how-link::after { content: " ▴"; }
.how-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 16px 0 10px;
    max-width: 820px;
}
.how-body p { margin-top: 4px; }
.property-clock {
    font-family: var(--mono);
    font-size: 12px;
    white-space: nowrap;
    display: flex;
    gap: 14px;
    padding-top: 1px;
}
.property-clock b { color: var(--ink); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
    background: var(--night);
    color: var(--bone);
    position: relative;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--bone);
}
.brand:hover { color: var(--bone); }
.brand-seal { width: 72px; height: 72px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}
.brand-text strong {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 6px 0 4px;
}
.brand-text em {
    font-style: normal;
    font-size: 13px;
    letter-spacing: .06em;
    color: #BCA994;
}

.nav { background: var(--night-2); border-top: 1px solid #3A2820; }
.nav-inner { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav a {
    color: var(--bone);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 14px 12px;
    border-bottom: 3px solid transparent;
}
.nav a:first-child { margin-left: -14px; }
.nav a:hover { color: #fff; border-bottom-color: var(--rust-2); }
.nav a.active { border-bottom-color: var(--rust-2); color: #fff; }
.nav a.nav-cta {
    margin-left: auto;
    background: var(--rust);
    border-radius: 3px;
    padding: 8px 14px;
    border-bottom: 0;
}
.nav a.nav-cta:hover { background: var(--rust-2); }

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #5A4337;
    color: var(--bone);
    font: 600 14px var(--sans);
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
}

/* ---------- Alert strip ---------- */
.alert-strip {
    background: #FBEBD9;
    border-bottom: 1px solid #EACBA8;
    border-left: 8px solid var(--idle);
    font-size: 15px;
    padding: 10px 0;
}
.alert-strip b { margin-right: 4px; }
.alert-strip a { margin-left: 6px; font-weight: 700; }

/* ---------- Announcement ---------- */
.announce { display: block; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 15px; }
.announce:hover { color: #fff; background: #000; }
.announce-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 12px; padding-bottom: 12px; }
.announce-tag { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--rust); color: #fff; padding: 3px 8px; }
.announce-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.announce-link::after { content: " →"; }

.statement-wrap { max-width: 860px; }
.statement .letter-body p:first-child { font-size: 22px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--rule); }
.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede { margin-bottom: 16px; }
.hero-copy > p:not(.lede) { color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.status-panel {
    background: #fff;
    border: 1px solid var(--rule-2);
    border-top: 6px solid var(--rust);
    box-shadow: 0 1px 0 var(--rule), 0 12px 32px -18px rgba(60, 30, 15, .35);
}
.status-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--active); }
.live i {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--active);
    animation: blink 1.6s infinite;
}
@keyframes blink { 50% { opacity: .25; } }
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--rule);
}
.status-row dt { font-size: 15px; color: var(--ink-2); }
.status-row dd {
    font-size: 26px;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.status-row dd.mono { font-size: 19px; font-weight: 600; }
.status-row--hot dd { color: var(--active); font-size: 34px; }
.status-foot { padding: 12px 20px; font-size: 13px; color: var(--ink-3); font-style: italic; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding: 40px 0 0; }
.section--ruled { border-top: 1px solid var(--rule); }
.section--map { background: var(--paper-2); border-top: 1px solid var(--rule); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-sub { margin-top: 12px; color: var(--ink-2); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--rule-2);
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--rust); color: var(--ink); transform: translateY(-2px); }
.card p { color: var(--ink-2); flex: 1; }
.card-kicker {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rust);
}
.card-link { font-weight: 700; color: var(--rust); }
.card-link::after { content: " →"; }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}
.split h2 { margin-bottom: 20px; }
.split .lede { margin-bottom: 16px; }
.split .btn { margin-top: 24px; }

.pull {
    border-left: 6px solid var(--rust);
    padding: 8px 0 8px 28px;
    font-family: var(--serif);
    font-size: clamp(24px, 2.8vw, 32px);
    line-height: 1.3;
    font-style: italic;
}
.pull cite {
    display: block;
    margin-top: 16px;
    font-family: var(--mono);
    font-style: normal;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.pull cite::before { content: "- "; }

.band { background: var(--rust-dark); color: var(--bone); padding: clamp(48px, 6vw, 72px) 0; }
.band h2 { color: #fff; }
.band p { margin-top: 10px; max-width: 640px; color: #EBD4C4; }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }

.prose p { color: var(--ink-2); }
.prose .lede { color: var(--ink); }
.prose h3 { margin: 32px 0 8px; }
.prose h3:first-child { margin-top: 0; }
.prose--narrow { max-width: 760px; }
.prose .punch { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--rust); margin: 20px 0; }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(48px, 6vw, 80px) 0 clamp(36px, 5vw, 56px); }
.page-hero h1 { max-width: 900px; }
.page-hero-sub { margin-top: 18px; max-width: 760px; font-size: 19px; color: var(--ink-2); }

.plain-page { padding: 96px 0 120px; }
.plain-page h1 { margin-bottom: 16px; }
.plain-page p { max-width: 620px; color: var(--ink-2); margin-bottom: 28px; }

/* ---------- Map ---------- */
.property-map svg {
    width: 100%;
    height: auto;
    border: 1px solid var(--rule-2);
    background: #A5543A;
}
.property-map .grid { stroke: rgba(255, 240, 225, .22); stroke-width: .75; }
.property-map .grid--eq { stroke: rgba(255, 240, 225, .45); stroke-dasharray: 4 4; }
.property-map .landmark {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .12em;
    fill: rgba(255, 240, 225, .7);
    text-anchor: middle;
}
.property-map .pin circle { stroke: #fff; stroke-width: 1.5; }
.property-map .pin--active circle { fill: var(--active); }
.property-map .pin--idle circle { fill: var(--idle); }
.property-map .pin--abandoned circle { fill: #F2E8DA; stroke: var(--ink); }
.property-map .pin--destroyed circle { fill: var(--destroyed); }
.property-map .pin .pulse {
    fill: none;
    stroke: var(--active);
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    0% { transform: scale(.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}
.property-map .pin-label {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    fill: #fff;
    paint-order: stroke;
    stroke: rgba(40, 18, 10, .75);
    stroke-width: 3px;
}
.property-map .pin--planned circle { fill: rgba(255, 255, 255, .15); stroke: #fff; stroke-width: 2; stroke-dasharray: 3 3; }
.property-map .pin-label--planned { font-family: var(--mono); font-size: 9px; }
.dot--planned { background: transparent; border: 1.5px dashed var(--ink-2); box-shadow: none; }

.property-map figcaption {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--ink-2);
}
.legend { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--rule-2); }
.dot--active { background: var(--active); }
.dot--idle { background: var(--idle); }
.dot--abandoned { background: #F2E8DA; }
.dot--destroyed { background: var(--destroyed); }
.map-source { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* ---------- Pills ---------- */
.pill {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 2px;
    white-space: nowrap;
}
.pill--active { background: var(--active); color: #fff; }
.pill--idle { background: #F6E3BD; color: #6B4808; }
.pill--abandoned { background: var(--paper-3); color: var(--ink-2); }
.pill--destroyed { background: var(--destroyed); color: var(--bone); }

/* ---------- Registry ---------- */
.registry-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.toolbar-label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    font: 600 14px var(--sans);
    padding: 7px 12px;
    background: #fff;
    border: 1px solid var(--rule-2);
    border-radius: 3px;
    color: var(--ink-2);
    cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.registry { border: 1px solid var(--rule-2); background: #fff; }
.registry-head, .case summary {
    display: grid;
    grid-template-columns: 130px 1.3fr 1.1fr 170px;
    gap: 16px;
    align-items: center;
    padding: 14px 20px;
}
.registry-head {
    background: var(--paper-2);
    border-bottom: 1px solid var(--rule-2);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.case { border-bottom: 1px solid var(--rule); }
.case:last-child { border-bottom: 0; }
.case summary { list-style: none; cursor: pointer; }
.case summary::-webkit-details-marker { display: none; }
.case summary:hover { background: #FDFBF8; }
.case[open] summary { background: var(--paper-2); }
.case:target summary { box-shadow: inset 6px 0 0 var(--rust); }
.case-no { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--rust); }
.case-entrant, .case-entry { display: flex; flex-direction: column; }
.case-entrant small, .case-entry small { font-size: 13px; color: var(--ink-3); }
.case-status { text-align: right; }
.case-body { padding: 8px 20px 24px 166px; }
.case-body > p { max-width: 760px; color: var(--ink-2); }
.case-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 20px; }
.case-meta h4 { margin-bottom: 8px; color: var(--ink-3); }
.violations { list-style: none; }
.violations li { padding: 4px 0 4px 22px; position: relative; font-size: 15px; }
.violations li::before {
    content: "§";
    position: absolute;
    left: 0;
    font-family: var(--mono);
    font-weight: 600;
    color: var(--rust);
}
.case-facts > div, .record > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--rule);
    font-size: 15px;
}
.case-facts dt, .record dt { color: var(--ink-3); }
.case-facts dd, .record dd { font-weight: 600; text-align: right; }

/* ---------- Nations ---------- */
.nations { border: 1px solid var(--rule-2); background: #fff; }
.nations-head, .nation-row {
    display: grid;
    grid-template-columns: 1fr 170px 110px 100px 80px;
    gap: 20px;
    align-items: start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rule);
}
.nation-row:last-child { border-bottom: 0; }
.nations-head {
    background: var(--paper-2);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    align-items: end;
}
.nations-head span:nth-child(n+3) { text-align: right; }
.nation-name { display: flex; gap: 14px; align-items: flex-start; }
.nation-name strong { display: block; font-size: 17px; }
.nation-name p { font-size: 14px; color: var(--ink-2); margin-top: 2px; max-width: 620px; }
.nation-class { font-size: 14px; font-weight: 600; padding-top: 3px; }
.nation-row--surfaceentry .nation-class { color: var(--active); }
.nation-row--orbitalonly .nation-class { color: var(--idle); }
.nation-row--approachonly .nation-class { color: var(--ink-3); }
.nation-num { text-align: right; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.nation-num a { text-decoration: underline; text-decoration-thickness: 2px; }
.nation-num.hot { color: var(--active); }
.nation-row--orbitalonly, .nation-row--approachonly { background: #FDFBF8; }

.cc {
    flex: none;
    display: inline-block;
    min-width: 40px;
    text-align: center;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    padding: 4px 6px;
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    color: var(--ink);
    background: var(--paper);
}
.cc--sm { min-width: 0; font-size: 10px; padding: 0 4px; border-width: 1px; margin-right: 4px; vertical-align: 1px; }

/* ---------- Pending violations ---------- */
.pending { display: flex; flex-direction: column; gap: 24px; }
.pv {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    background: #fff;
    border: 1px solid var(--rule-2);
    border-left: 6px solid var(--rule-2);
    padding: 28px;
    scroll-margin-top: 24px;
}
.pv--active { border-left-color: var(--active); }
.pv--idle { border-left-color: var(--idle); }
.pv-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pv-ref { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--rust); }
.pv-codes { display: flex; gap: 4px; }
.pv h3 { font-size: 24px; margin-bottom: 4px; }
.pv-op { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.pv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin-bottom: 16px; font-size: 15px; }
.pv-facts dt { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pv-facts dd { font-weight: 600; }
.pv-notes { color: var(--ink-2); max-width: 760px; }
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 20px; }
.pv-grid h4 { margin-bottom: 8px; color: var(--ink-3); }
.pv-position {
    border-left: 3px solid var(--ink);
    padding-left: 16px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    line-height: 1.45;
}

/* ---------- Debris inventory ---------- */
.unclaimed {
    border: 2px solid var(--ink);
    padding: 20px 24px;
    margin-bottom: 32px;
    background: #fff;
    max-width: 860px;
}
.unclaimed strong {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.unclaimed p { margin-top: 6px; color: var(--ink-2); }

.inventory { border: 1px solid var(--rule-2); background: #fff; }
.inventory-head, .inventory-row {
    display: grid;
    grid-template-columns: 1.1fr .8fr .9fr 1.8fr;
    gap: 20px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--rule);
}
.inventory-row:last-child { border-bottom: 0; }
.inventory-head {
    background: var(--paper-2);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.inv-item { font-weight: 700; }
.inv-loc { color: var(--ink-2); font-size: 15px; }
.inv-note { color: var(--ink-2); font-size: 15px; }

/* ---------- Notices ---------- */
.notices-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.notice-index { position: sticky; top: 24px; }
.notice-index h4 { color: var(--ink-3); margin-bottom: 12px; }
.notice-index ol { list-style: none; }
.notice-index a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 14px;
    color: var(--ink-2);
    text-decoration: none;
}
.notice-index a:hover { color: var(--rust); }
.notice-index a span { display: block; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--rust); }

.notices { display: flex; flex-direction: column; gap: 40px; }
.letter {
    position: relative;
    background: #FFFEFB;
    border: 1px solid var(--rule-2);
    padding: clamp(24px, 4vw, 48px);
    box-shadow: 0 16px 36px -24px rgba(60, 30, 15, .45);
    font-family: var(--serif);
    scroll-margin-top: 24px;
    overflow: hidden;
}
.letterhead {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 3px double var(--ink);
    font-family: var(--sans);
}
.letter-seal { width: 64px; height: 64px; flex: none; }
.letterhead strong { display: block; font-size: 20px; letter-spacing: .02em; }
.letterhead span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.letter-meta { margin: 20px 0 24px; font-size: 15px; }
.letter-meta > div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 3px 0; }
.letter-meta dt { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.letter-meta div:last-child dd { font-weight: 700; }
.letter-body p { font-size: 18px; line-height: 1.65; color: var(--ink); }
.letter-sign { margin-top: 28px; font-size: 17px; }
.letter-sign p + p { margin-top: 0; }
.signature {
    font-family: var(--serif);
    font-style: italic;
    font-size: 30px;
    color: #243A6B;
    margin: 6px 0 2px;
}
.stamp {
    position: absolute;
    right: clamp(16px, 4vw, 44px);
    bottom: clamp(24px, 4vw, 48px);
    transform: rotate(-9deg);
    border: 3px solid var(--active);
    color: var(--active);
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 8px 14px;
    opacity: .78;
    mix-blend-mode: multiply;
}
.stamp--quiet { border-color: var(--abandoned); color: var(--abandoned); }

/* ---------- Rules ---------- */
.rules { list-style: none; max-width: 900px; }
.rules li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
    scroll-margin-top: 24px;
}
.rule-no { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); padding-top: 3px; }
.rules h3 { margin-bottom: 6px; }
.rules p { color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 900px; }
.faq { border-bottom: 1px solid var(--rule); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 40px 22px 0;
    font-size: 20px;
    font-weight: 700;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 18px;
    font-family: var(--mono);
    font-size: 24px;
    color: var(--rust);
}
.faq[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 24px; max-width: 760px; }
.faq-a p { color: var(--ink-2); }

/* ---------- Owner ---------- */
.owner { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.portrait img { width: 100%; height: auto; border: 1px solid var(--rule-2); background: var(--paper-2); filter: grayscale(.15) contrast(1.02); }
.portrait figcaption { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.record { margin-top: 36px; border-top: 2px solid var(--ink); padding-top: 8px; max-width: 560px; }

/* ---------- Report form ---------- */
.report-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.report-aside p { color: var(--ink-2); }
.report-aside .lede { color: var(--ink); margin-bottom: 12px; }
.fit-note { margin-top: 28px; padding: 20px; border-left: 4px solid var(--idle); background: #FBEBD9; }
.fit-note h3 { font-size: 16px; margin-bottom: 6px; }
.report-form { background: #fff; border: 1px solid var(--rule-2); border-top: 6px solid var(--rust); padding: clamp(20px, 3vw, 36px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-weight: 700; font-size: 15px; }
.opt { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-left: 4px; }
.form-input {
    font: 16px var(--sans);
    padding: 11px 12px;
    border: 1px solid var(--ink-3);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    width: 100%;
}
.form-input:focus { outline: 3px solid var(--idle); outline-offset: 0; border-color: var(--ink); }
.form-textarea { resize: vertical; min-height: 120px; }
.validation-message { color: var(--active); font-size: 14px; font-weight: 600; }
.form-error { background: #F9E1DE; border-left: 4px solid var(--active); padding: 12px 16px; margin-bottom: 20px; }
.form-submit .fine { margin-top: 12px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 17, 13, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 50;
}
.modal-content {
    background: var(--paper);
    border-top: 6px solid var(--rust);
    max-width: 480px;
    width: 100%;
    padding: 32px;
}
.modal-content h2 { margin: 6px 0 12px; font-size: 28px; }
.modal-content p { color: var(--ink-2); margin-bottom: 24px; }
.modal-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #CDBBA8; padding: 64px 0 28px; font-size: 15px; }
.site-footer h4 { color: var(--bone); margin-bottom: 14px; }
.site-footer a { color: var(--bone); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr 1.3fr; gap: 40px; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-seal { width: 64px; height: 64px; flex: none; }
.footer-mono { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.footer-col ul { list-style: none; }
.footer-col li { padding: 3px 0; }
.footer-email-form { display: flex; margin-top: 14px; }
.footer-email-input {
    flex: 1;
    min-width: 0;
    font: 15px var(--sans);
    padding: 11px 12px;
    background: var(--night-2);
    border: 1px solid #5A4337;
    color: var(--bone);
    border-radius: 2px 0 0 2px;
}
.footer-email-btn {
    font: 700 15px var(--sans);
    padding: 0 16px;
    background: var(--rust);
    color: #fff;
    border: 0;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
}
.footer-email-btn:hover { background: var(--rust-2); }
.footer-base {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid #3A2820;
    font-size: 13px;
    color: #9C8A78;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid, .split, .report-grid, .owner { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .notices-layout { grid-template-columns: 1fr; }
    .notice-index { position: static; }
    .owner .portrait { max-width: 360px; }
}

@media (max-width: 820px) {
    .official-inner { flex-direction: column; gap: 4px; }
    .how-body { grid-template-columns: 1fr; gap: 12px; }
    .brand-seal { width: 56px; height: 56px; }
    .brand-text strong { font-size: 30px; }
    .menu-toggle { display: inline-block; }
    .nav { display: none; }
    body.menu-open .nav { display: block; }
    .nav-inner { flex-direction: column; align-items: stretch; padding-top: 8px; padding-bottom: 12px; }
    .nav a, .nav a:first-child { margin-left: 0; padding: 12px 0; border-bottom: 1px solid #3A2820; }
    .nav a.nav-cta { margin: 12px 0 0; padding: 12px 14px; text-align: center; }

    .registry-head, .inventory-head { display: none; }
    .case summary { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px; }
    .case-no { grid-column: 1; }
    .case-status { grid-column: 2; grid-row: 1; }
    .case-entrant, .case-entry { grid-column: 1 / -1; }
    .case-body { padding: 4px 16px 20px; }
    .case-meta { grid-template-columns: 1fr; gap: 20px; }
    .inventory-row { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
    .nations-head { display: none; }
    .pv { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
    .pv-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .pv-facts, .pv-grid { grid-template-columns: 1fr; }
    .nation-row { grid-template-columns: repeat(3, 1fr); gap: 10px 12px; padding: 16px; }
    .nation-name { grid-column: 1 / -1; }
    .nation-class { grid-column: 1 / -1; padding-top: 0; }
    .nation-num { text-align: left; font-size: 18px; }
    .nation-num::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

    .band-inner { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .rules li { grid-template-columns: 1fr; gap: 6px; }
    .map-source { margin-left: 0; }
    .stamp { position: static; display: inline-block; margin-top: 24px; }
    .status-row { flex-direction: column; gap: 2px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .live i, .property-map .pin .pulse { animation: none; }
    html { scroll-behavior: auto; }
}
