:root {
  --ink: #e4ecec;
  --ink-2: #b8c6c9;
  --navy: #04090d;
  --navy-2: #081117;
  --paper: #050a0e;
  --paper-2: #0b1217;
  --white: #f4f7f2;
  --line: rgba(193, 214, 218, .14);
  --muted: #89999d;
  --muted-dark: #7d8b90;
  --amber: #c89343;
  --amber-bright: #e7b15b;
  --green: #3d9a82;
  --green-soft: rgba(49, 137, 113, .14);
  --red: #c0615c;
  --red-soft: rgba(166, 68, 63, .15);
  --blue-soft: rgba(72, 126, 145, .14);
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 77% 8%, rgba(36, 93, 105, .16), transparent 28rem),
    radial-gradient(circle at 12% 38%, rgba(200, 147, 67, .07), transparent 24rem),
    linear-gradient(rgba(153, 185, 190, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 185, 190, .035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  font-family: var(--sans);
  min-width: 320px;
  overflow-x: clip;
}

button, select, input { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(217, 154, 52, .55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 78px;
  padding: 0 clamp(20px, 5vw, 78px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--white);
  background: rgba(7, 20, 34, .98);
  border-bottom: 1px solid rgba(240, 184, 84, .35);
}
.brand { color: inherit; text-decoration: none; display: inline-flex; flex-direction: column; justify-self: start; }
.brand-mark { color: var(--amber-bright); font-weight: 900; font-size: 20px; letter-spacing: .19em; line-height: 1; }
.brand-name { color: #8997a7; font-size: 10px; letter-spacing: .1em; margin-top: 4px; }
.archive-stamp { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .15em; color: #8f9bab; }
.archive-stamp span { border: 1px solid rgba(240, 184, 84, .5); color: var(--amber-bright); padding: 6px 8px; }
.archive-stamp b { font-weight: 500; }
.exit-link { justify-self: end; color: #b7c0cb; text-decoration: none; font-size: 13px; font-weight: 700; }
.exit-link span { color: var(--amber-bright); margin-left: 6px; }

main { width: min(1420px, calc(100% - 40px)); margin: 0 auto; }
.intro { padding: clamp(66px, 9vw, 130px) 0 clamp(48px, 7vw, 86px); max-width: 980px; }
.eyebrow, .results-kicker {
  color: var(--amber);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 800;
}
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(22, 112, 95, .12); margin-right: 10px; }
.intro h1 { margin: 14px 0 14px; color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 8vw, 112px); line-height: .92; letter-spacing: -.055em; }
.intro h1 span { font-style: italic; color: var(--amber); }
.intro > p { max-width: 780px; font-family: var(--serif); font-size: clamp(19px, 2.3vw, 28px); line-height: 1.42; color: #475364; margin: 0; }
.source-line { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.source-line span { display: flex; align-items: center; gap: 8px; }
.source-line span::before { content: ""; width: 4px; height: 4px; background: var(--amber); transform: rotate(45deg); }

.compare-deck {
  position: relative;
  margin-bottom: 48px;
  padding: clamp(24px, 4vw, 58px);
  color: var(--white);
  background:
    radial-gradient(circle at 13% 10%, rgba(217, 154, 52, .12), transparent 25%),
    radial-gradient(circle at 88% 94%, rgba(41, 87, 114, .2), transparent 28%),
    var(--navy);
  border: 1px solid rgba(217, 154, 52, .26);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.compare-deck::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, black, transparent 86%); }
.deck-heading, .results-header { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.deck-heading > div, .results-header > div { display: flex; align-items: center; gap: 16px; }
.step-number { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid rgba(217, 154, 52, .45); color: var(--amber-bright); font-family: var(--mono); font-size: 11px; }
.deck-heading h2, .results-header h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 3vw, 39px); }
.deck-heading p { max-width: 460px; margin: 0; text-align: right; color: var(--muted-dark); font-family: var(--mono); font-size: 11px; line-height: 1.6; }

.comparison-builder { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); gap: 20px; align-items: stretch; padding: 36px 0 28px; }
.edition-card { position: relative; min-height: 320px; padding: clamp(22px, 3vw, 36px); background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.13); }
.historical-card { border-top: 2px solid var(--amber); }
.current-card { border-top: 2px solid #4b8da2; }
.edition-label { margin-bottom: 28px; color: var(--amber-bright); font-family: var(--mono); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.current-card .edition-label { color: #81bed0; }
.edition-card label { display: block; margin: 17px 0 8px; color: #c5cdd6; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.edition-card select { width: 100%; min-height: 52px; padding: 0 42px 0 15px; color: var(--white); background: #102338; border: 1px solid #394b60; border-radius: 0; }
.edition-card select:disabled { color: #8d98a6; cursor: wait; }
.field-help { display: block; margin-top: 7px; color: #758395; font-size: 11px; line-height: 1.4; }
.compare-rail { display: grid; grid-template-rows: 1fr auto 1fr; align-items: center; justify-items: center; color: var(--amber-bright); font-family: var(--mono); font-size: 11px; }
.compare-rail span { width: 1px; height: 100%; background: linear-gradient(transparent, rgba(217,154,52,.65)); }
.compare-rail span:last-child { background: linear-gradient(rgba(217,154,52,.65), transparent); }
.compare-rail b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(217,154,52,.65); background: var(--navy); }
.current-lock { display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 18px; background: rgba(34, 88, 107, .18); border: 1px solid rgba(91, 154, 177, .3); }
.current-lock svg { width: 27px; stroke: #7fb4c7; stroke-width: 1.5; fill: none; }
.current-lock span { display: block; color: #8796a7; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.current-lock strong { display: block; margin-top: 6px; color: var(--white); font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); font-weight: 400; }
.current-card p { margin: 22px 0; color: #9aa6b5; font-size: 13px; line-height: 1.65; }
.current-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(62, 142, 117, .35); color: #74bba4; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.current-badge span { width: 6px; height: 6px; border-radius: 50%; background: #54b394; }
.builder-actions { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.data-health { display: flex; align-items: center; gap: 11px; color: #8d9baa; font-family: var(--mono); font-size: 10px; line-height: 1.4; }
.health-light { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(217,154,52,.1); flex: 0 0 auto; }
.data-health.ready .health-light { background: #4bb18f; box-shadow: 0 0 0 5px rgba(75,177,143,.1); }
.data-health.error .health-light { background: #d9665c; box-shadow: 0 0 0 5px rgba(217,102,92,.1); }
.primary-action { min-width: 220px; min-height: 56px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 20px; color: var(--navy); background: var(--amber-bright); border: 0; font-weight: 900; }
.primary-action svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.primary-action:hover:not(:disabled) { background: #ffd174; }
.primary-action:disabled { cursor: not-allowed; opacity: .42; }

.loading-panel, .error-panel { margin: 34px 0 50px; padding: 30px 34px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(16,27,43,.07); }
.loading-panel { display: flex; align-items: center; gap: 22px; }
.loading-panel[hidden], .error-panel[hidden], .results[hidden] { display: none; }
.loader-ring { position: relative; width: 42px; height: 42px; flex: 0 0 auto; }
.loader-ring span { position: absolute; inset: 0; border: 2px solid var(--paper-2); border-top-color: var(--amber); border-radius: 50%; animation: spin 1.1s linear infinite; }
.loader-ring span:last-child { inset: 8px; border-top-color: var(--green); animation-direction: reverse; animation-duration: .8s; }
.loading-panel strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.loading-panel p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.error-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; border-left: 4px solid var(--red); }
.error-code { color: var(--red); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.error-panel h2 { margin: 0 0 7px; font-family: var(--serif); font-weight: 400; font-size: 25px; }
.error-panel p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.error-panel button, .new-comparison { padding: 11px 15px; color: var(--ink); background: transparent; border: 1px solid var(--line); font-weight: 800; }

.results { margin: 70px 0 100px; scroll-margin-top: 20px; }
.results-header { color: var(--ink); border-color: var(--line); }
.results-header > div > div { display: block; }
.results-header h2 { margin-top: 5px; }
.new-comparison:hover { border-color: var(--amber); }
.summary-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 1px; margin: 30px 0; background: var(--line); border: 1px solid var(--line); }
.summary-card { min-height: 135px; padding: 22px; background: var(--white); }
.summary-card > span { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.summary-card strong { display: block; margin: 10px 0 5px; font-family: var(--serif); font-size: 37px; font-weight: 400; }
.primary-summary strong { font-size: clamp(22px, 2.4vw, 34px); }
.summary-card small { color: var(--muted); font-size: 11px; }
.changed-summary { box-shadow: inset 0 3px 0 var(--amber); }
.added-summary { box-shadow: inset 0 3px 0 var(--green); }
.removed-summary { box-shadow: inset 0 3px 0 var(--red); }
.results-toolbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 14px; background: var(--ink); color: var(--white); }
.view-switch { display: flex; gap: 4px; }
.view-switch button { min-height: 42px; padding: 0 17px; border: 0; color: #94a1b0; background: transparent; font-size: 12px; font-weight: 800; }
.view-switch button.active { color: var(--navy); background: var(--amber-bright); }
.change-filter { display: flex; align-items: center; gap: 10px; padding-right: 10px; color: #b4bec8; font-size: 11px; cursor: pointer; }
.change-filter input { position: absolute; opacity: 0; pointer-events: none; }
.filter-track { position: relative; display: inline-block; width: 38px; height: 20px; background: #344154; border-radius: 20px; }
.filter-track span { position: absolute; width: 14px; height: 14px; top: 3px; left: 3px; border-radius: 50%; background: #95a0ae; transition: transform .2s ease; }
.change-filter input:checked + .filter-track { background: var(--green); }
.change-filter input:checked + .filter-track span { background: white; transform: translateX(18px); }
.record-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 650px; background: var(--white); border: 1px solid var(--line); border-top: 0; }
.section-index { border-right: 1px solid var(--line); background: #ede7dc; }
.index-heading { padding: 27px 22px 20px; border-bottom: 1px solid var(--line); }
.index-heading span { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.index-heading h3 { margin: 7px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 400; }
#section-list { position: sticky; top: 0; max-height: 78vh; overflow: auto; padding: 10px; }
#section-list button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 11px 12px; text-align: left; border: 0; border-bottom: 1px solid rgba(16,27,43,.08); color: #4e5967; background: transparent; font-family: var(--mono); font-size: 10px; }
#section-list button:hover { color: var(--ink); background: rgba(255,255,255,.55); }
#section-list button[hidden] { display: none; }
.nav-state { width: 6px; height: 6px; margin-top: 3px; border-radius: 50%; background: #98a1ab; }
.nav-state.changed { background: var(--amber); }
.nav-state.added { background: var(--green); }
.nav-state.removed { background: var(--red); }
.record { min-width: 0; padding: clamp(24px, 4vw, 64px); background: var(--white); }
.record-empty { padding: 75px 25px; text-align: center; }
.record-empty > div { color: var(--green); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; }
.record-empty h3 { margin: 12px 0; font-family: var(--serif); font-size: 36px; font-weight: 400; }
.record-empty p { color: var(--muted); }
.far-section { scroll-margin-top: 20px; padding: 0 0 45px; margin: 0 0 45px; border-bottom: 1px solid var(--line); }
.far-section:last-child { border-bottom: 0; }
.far-section[hidden] { display: none; }
.section-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.section-cite { color: var(--amber); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.section-state { padding: 5px 8px; font-family: var(--mono); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; border: 1px solid var(--line); }
.section-state.changed { color: #9a650d; border-color: rgba(217,154,52,.42); background: #fff4df; }
.section-state.added { color: var(--green); border-color: rgba(22,112,95,.28); background: var(--green-soft); }
.section-state.removed { color: var(--red); border-color: rgba(164,62,62,.28); background: var(--red-soft); }
.far-section h3 { margin: 0 0 25px; font-family: var(--serif); font-size: clamp(23px, 2.6vw, 34px); line-height: 1.2; font-weight: 400; }
.redline-body, .edition-copy { color: #2f3946; font-family: var(--serif); font-size: 16px; line-height: 1.7; }
.redline-body p, .edition-copy p { margin: 0 0 16px; }
.redline-body del { color: #782f2f; background: var(--red-soft); text-decoration-thickness: 1px; text-decoration-color: rgba(120,47,47,.45); }
.redline-body ins { color: #0d5b4d; background: var(--green-soft); text-decoration: none; box-shadow: inset 0 -1px 0 rgba(13,91,77,.35); }
.split-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.split-column { min-width: 0; padding: 22px; background: var(--white); }
.split-column.old { box-shadow: inset 0 3px 0 rgba(164,62,62,.65); }
.split-column.new { box-shadow: inset 0 3px 0 rgba(22,112,95,.65); }
.edition-heading { margin-bottom: 17px; color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .11em; }
.missing-copy { color: var(--muted); font-style: italic; }
.record[data-view="redline"] .split-body { display: none; }
.record[data-view="split"] .redline-body { display: none; }

footer { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px clamp(20px, 5vw, 78px); color: #778596; background: var(--navy); font-family: var(--mono); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }

/* Secure archive treatment */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 48%, rgba(126, 189, 196, .025) 50%, transparent 52% 100%);
  background-size: 240px 100%;
}
.site-header {
  position: relative;
  min-height: 82px;
  background: rgba(3, 8, 12, .82);
  border-bottom-color: rgba(195, 218, 221, .12);
  backdrop-filter: blur(20px) saturate(125%);
  box-shadow: 0 12px 44px rgba(0, 0, 0, .22);
}
.site-header::after {
  content: "";
  position: absolute;
  left: clamp(20px, 5vw, 78px);
  right: clamp(20px, 5vw, 78px);
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent 30%, rgba(95, 169, 178, .58) 72%, transparent);
}
.brand-mark { text-shadow: 0 0 24px rgba(231, 177, 91, .22); }
.archive-stamp span { background: rgba(231, 177, 91, .06); }
.intro {
  position: relative;
  max-width: 1080px;
  padding-top: clamp(72px, 10vw, 148px);
}
.intro::after {
  content: "ARCHIVE // 48-CFR // VERIFIED SOURCE";
  position: absolute;
  top: clamp(70px, 9vw, 128px);
  right: 0;
  color: rgba(190, 210, 213, .18);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
}
.eyebrow { color: #84adb3; }
.live-dot {
  background: #69bea6;
  box-shadow: 0 0 0 5px rgba(61, 154, 130, .1), 0 0 18px rgba(79, 195, 164, .3);
}
.intro h1 {
  color: var(--white);
  font-family: var(--sans);
  font-weight: 820;
  font-size: clamp(54px, 8.4vw, 118px);
  line-height: .86;
  letter-spacing: -.072em;
  text-transform: uppercase;
}
.intro h1 span {
  display: block;
  color: transparent;
  font-style: normal;
  font-weight: 760;
  -webkit-text-stroke: 1px rgba(231, 177, 91, .82);
  text-shadow: 0 0 34px rgba(200, 147, 67, .1);
}
.intro > p {
  max-width: 730px;
  color: #aebdc0;
  font-family: var(--sans);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.55;
}
.source-line { color: #66777c; }
.compare-deck {
  border-color: rgba(164, 198, 202, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(200, 147, 67, .11), transparent 30%),
    radial-gradient(circle at 98% 100%, rgba(44, 112, 124, .2), transparent 34%),
    linear-gradient(145deg, rgba(15, 26, 33, .94), rgba(5, 11, 15, .97));
  box-shadow: 0 38px 100px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255,255,255,.05);
}
.compare-deck::before {
  opacity: .68;
  background-size: 36px 36px;
}
.compare-deck::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -30%;
  width: 28%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(128, 202, 209, .025), transparent);
  transform: skewX(-12deg);
  animation: archive-scan 12s ease-in-out infinite;
}
.deck-heading, .results-header { border-color: rgba(193, 214, 218, .12); }
.deck-heading h2, .results-header h2 {
  font-family: var(--sans);
  font-weight: 720;
  letter-spacing: -.035em;
}
.step-number {
  border-color: rgba(231, 177, 91, .48);
  background: rgba(231, 177, 91, .06);
  box-shadow: inset 0 0 18px rgba(231, 177, 91, .05);
}
.edition-card {
  border-color: rgba(193, 214, 218, .14);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 18px 46px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}
.historical-card { border-top-color: rgba(231, 177, 91, .72); }
.current-card { border-top-color: rgba(100, 170, 181, .68); }
.edition-card select {
  border-color: rgba(160, 190, 195, .26);
  border-radius: 8px;
  background: rgba(4, 12, 17, .82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.edition-card select:hover { border-color: rgba(160, 190, 195, .48); }
.current-lock {
  border-color: rgba(100, 170, 181, .26);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(35, 86, 99, .2), rgba(18, 50, 59, .08));
}
.current-lock strong { font-family: var(--sans); font-weight: 650; }
.current-badge { border-radius: 100px; background: rgba(61, 154, 130, .06); }
.primary-action {
  border-radius: 8px;
  background: linear-gradient(135deg, #edbd6f, #c78c37);
  box-shadow: 0 12px 34px rgba(198, 139, 52, .19), inset 0 1px 0 rgba(255,255,255,.38);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.primary-action:hover:not(:disabled) {
  background: linear-gradient(135deg, #f5ca85, #d79a43);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(198, 139, 52, .25), inset 0 1px 0 rgba(255,255,255,.45);
}
.loading-panel, .error-panel {
  border-color: rgba(193, 214, 218, .14);
  border-radius: 14px;
  background: rgba(11, 19, 24, .94);
  box-shadow: var(--shadow);
}
.error-panel button, .new-comparison { color: var(--ink); border-color: var(--line); }
.results { position: relative; }
.results::before {
  content: "VERIFIED COMPARISON RECORD";
  display: block;
  margin-bottom: 14px;
  color: #56676b;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .17em;
  text-align: right;
}
.results-header { color: var(--ink); }
.summary-grid {
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
}
.summary-card {
  border: 1px solid rgba(193, 214, 218, .13);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(17, 29, 36, .92), rgba(8, 15, 20, .96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 16px 36px rgba(0,0,0,.2);
}
.summary-card strong { color: var(--white); font-family: var(--sans); font-weight: 650; letter-spacing: -.045em; }
.changed-summary, .added-summary, .removed-summary { box-shadow: inset 0 2px 0 currentColor, 0 16px 36px rgba(0,0,0,.2); }
.changed-summary { color: var(--amber); }
.added-summary { color: var(--green); }
.removed-summary { color: var(--red); }
.results-toolbar {
  border: 1px solid rgba(193, 214, 218, .13);
  border-radius: 13px 13px 0 0;
  background: rgba(8, 15, 20, .94);
  backdrop-filter: blur(16px);
}
.view-switch button { border-radius: 7px; }
.view-switch button.active { background: linear-gradient(135deg, #edbd6f, #c78c37); }
.record-layout {
  border-color: rgba(193, 214, 218, .13);
  border-radius: 0 0 16px 16px;
  background: #091015;
  box-shadow: 0 28px 70px rgba(0,0,0,.34);
  overflow: clip;
}
.section-index {
  border-color: rgba(193, 214, 218, .11);
  background: linear-gradient(180deg, #0d171d, #091015);
}
.index-heading { border-color: rgba(193, 214, 218, .1); }
.index-heading h3 { color: var(--white); font-family: var(--sans); font-weight: 650; }
#section-list button { color: #849397; border-color: rgba(193, 214, 218, .08); }
#section-list button:hover { color: var(--white); background: rgba(116, 170, 179, .07); }
.record { background: linear-gradient(145deg, #0c151a, #080e12); }
.far-section { border-color: rgba(193, 214, 218, .11); }
.far-section h3 { color: var(--white); font-family: var(--sans); font-weight: 620; letter-spacing: -.025em; }
.section-state.changed { color: #edba69; border-color: rgba(217,154,52,.3); background: rgba(217,154,52,.08); }
.section-state.added { color: #70c1a9; border-color: rgba(61,154,130,.3); background: rgba(61,154,130,.08); }
.section-state.removed { color: #df827d; border-color: rgba(192,97,92,.3); background: rgba(192,97,92,.08); }
.redline-body, .edition-copy { color: #c0cbcd; }
.redline-body del { color: #e39a95; background: rgba(176, 68, 63, .17); text-decoration-color: rgba(227,154,149,.44); }
.redline-body ins { color: #99d7c5; background: rgba(49,137,113,.17); box-shadow: inset 0 -1px 0 rgba(103,194,169,.32); }
.split-body { border-color: rgba(193, 214, 218, .12); background: rgba(193, 214, 218, .12); }
.split-column { background: rgba(12, 22, 27, .97); }
footer { border-top: 1px solid rgba(193, 214, 218, .1); background: #03070a; }

@keyframes archive-scan {
  0%, 18% { left: -34%; opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  82%, 100% { left: 112%; opacity: 0; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .archive-stamp { display: none; }
  .comparison-builder { grid-template-columns: 1fr; }
  .compare-rail { grid-template: 1px 42px 1px / 1fr auto 1fr; gap: 14px; }
  .compare-rail span { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,154,52,.65)); }
  .compare-rail span:last-child { background: linear-gradient(90deg, rgba(217,154,52,.65), transparent); }
  .summary-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
  .record-layout { grid-template-columns: 210px minmax(0, 1fr); }
}

@media (max-width: 680px) {
  main { width: min(100% - 24px, 1420px); }
  .site-header { min-height: 66px; padding: 0 16px; }
  .exit-link { font-size: 11px; }
  .intro { padding-top: 58px; }
  .intro h1 { font-size: clamp(52px, 20vw, 78px); }
  .intro > p { font-size: 19px; }
  .source-line { display: grid; }
  .compare-deck { margin-left: -12px; margin-right: -12px; padding: 24px 17px; border-left: 0; border-right: 0; }
  .deck-heading, .results-header { align-items: flex-start; }
  .deck-heading p { display: none; }
  .edition-card { min-height: 0; padding: 22px 18px; }
  .edition-label { margin-bottom: 18px; }
  .builder-actions { align-items: stretch; flex-direction: column; }
  .primary-action { width: 100%; }
  .loading-panel { padding: 22px; align-items: flex-start; }
  .error-panel { grid-template-columns: 1fr; gap: 14px; padding: 23px; }
  .error-panel button { justify-self: start; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .primary-summary { grid-column: 1 / -1; }
  .removed-summary { grid-column: auto; }
  .results-toolbar { align-items: stretch; flex-direction: column; padding: 10px; }
  .view-switch { display: grid; grid-template-columns: 1fr 1fr; }
  .view-switch button { width: 100%; }
  .change-filter { min-height: 42px; justify-content: space-between; padding: 0 6px; }
  .record-layout { display: block; }
  .section-index { border-right: 0; border-bottom: 1px solid var(--line); }
  .index-heading { padding: 18px; }
  #section-list { position: static; display: flex; max-height: none; overflow-x: auto; padding: 8px; }
  #section-list button { flex: 0 0 auto; width: auto; min-width: 88px; border: 1px solid var(--line); margin-right: 6px; }
  .record { padding: 28px 18px; }
  .split-body { grid-template-columns: 1fr; }
  .split-column { padding: 18px; }
  .far-section { margin-bottom: 34px; padding-bottom: 34px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
