/* ==========================================================================
   MONTGOMERY v. BEST BUY — bestbuyamicus.com
   Design system for the cert-stage website
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. SELF-HOSTED FONTS (latin subset; regenerate via .fetch-fonts.py)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-600-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-700-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../assets/fonts/inter-900.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-500.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   1. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 180ms ease; }
a:hover { color: var(--accent-dark); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --navy:           #0f1d3a;   /* primary — deep midnight */
  --navy-dark:      #07122a;
  --navy-light:     #1d3160;
  --cabernet:       #7a2d3a;   /* secondary — oxblood */
  --cabernet-dark:  #5a1f29;
  --gold:           #c4a35a;   /* accent — antique gold */
  --gold-dark:      #a78440;
  --gold-light:     #e0c886;
  --parchment:      #faf8f3;   /* background — warm off-white */
  --parchment-dark: #f3eee0;
  --ivory:          #ffffff;
  --charcoal:       #1a1a1a;
  --slate:          #4a5266;
  --slate-light:    #76819a;
  --hairline:       #d9d3c2;
  --hairline-soft:  #ebe6d6;
  --hairline-strong: #a89e87;
  --shadow:         rgba(15, 29, 58, 0.10);
  --shadow-lg:      rgba(15, 29, 58, 0.18);

  /* Semantic */
  --bg:           var(--parchment);
  --bg-alt:       var(--ivory);
  --bg-dark:      var(--navy);
  --text:         var(--charcoal);
  --text-muted:   var(--slate);
  --text-soft:    var(--slate-light);
  --accent:       var(--cabernet);
  --accent-dark:  var(--cabernet-dark);
  --primary:      var(--navy);

  /* Spacing */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.5rem;   --sp-6: 2rem;
  --sp-7: 3rem;     --sp-8: 4rem;     --sp-9: 6rem;
  --sp-10: 8rem;

  /* Layout */
  --container:    1240px;
  --container-narrow: 880px;
  --container-wide:   1440px;
  --radius-sm:    4px;
  --radius:       6px;
  --radius-lg:    12px;

  /* Type */
  --serif:    'Cormorant Garamond', 'EB Garamond', 'Garamond', Georgia, serif;
  --sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:     'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  word-spacing: 0.10em;
  color: var(--cabernet);
  margin-bottom: var(--sp-3);
  display: inline-block;
}
/* En-space word gaps for cert-pool memo section headings only — every
   regular space inside renders ~0.25em wider, matching the visual width
   of a Unicode en space (U+2002). */
.memo-section__heading {
  word-spacing: 0.10em;
}
.eyebrow--gold { color: var(--gold-dark); }
.eyebrow--navy { color: var(--navy); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--slate);
  font-weight: 400;
  margin-bottom: var(--sp-5);
}
.lede em { color: var(--cabernet); font-style: italic; }

.smallcaps {
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin: var(--sp-6) auto;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--hairline-strong), transparent);
  max-width: 120px;
}
.ornament--thin::before, .ornament--thin::after {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--hairline), transparent);
}
.ornament svg { color: var(--gold); width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--sp-5);
  padding-right: var(--sp-5);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section {
  padding: var(--sp-9) 0;
}
.section--tight { padding: var(--sp-7) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--navy);
  color: var(--parchment);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--parchment); }
.section--dark .eyebrow { color: var(--gold-light); }
.section--paper {
  background:
    radial-gradient(circle at 20% 10%, rgba(196, 163, 90, 0.05), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(122, 45, 58, 0.04), transparent 50%),
    var(--parchment);
}

.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-8); }

@media (max-width: 960px) {
  .grid--2, .grid--3, .grid--4, .grid--sidebar { grid-template-columns: 1fr; }
}

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--navy);
  color: var(--parchment);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 16px var(--shadow);
}
.site-header__top {
  border-bottom: 1px solid rgba(196, 163, 90, 0.55);
  padding: var(--sp-2) 0;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--gold-light);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}
.site-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.site-header__top-inner > span:first-child {
  font-weight: 400;
}
.site-header__countdown {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(250, 248, 243, 0.85);
  letter-spacing: 0.04em;
  font-weight: 600;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--cabernet), var(--cabernet-dark));
  border: 1px solid rgba(196, 163, 90, 0.3);
  padding: 2px 10px;
  border-radius: 3px;
}
.site-header__countdown #banner-cd {
  color: var(--gold-light);
  font-weight: 700;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  max-width: var(--container);
  margin: 0 auto;
  gap: var(--sp-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  text-decoration: none;
  color: var(--parchment);
}
.brand:hover { color: var(--gold-light); }
.brand__mark {
  width: 44px; height: 44px;
  flex-shrink: 0;
  color: var(--gold);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__primary {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand__primary em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}
.brand__secondary {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  word-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 4px;
  text-shadow: 0 0 10px rgba(224, 200, 134, 0.35);
}

.nav { display: flex; align-items: center; gap: var(--sp-2); }
.nav a {
  color: var(--parchment);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  transition: all 200ms ease;
  position: relative;
  text-shadow: 0 0 6px rgba(224, 200, 134, 0.15);
}
.nav a:hover {
  color: var(--gold-light);
  background: rgba(196, 163, 90, 0.15);
  text-shadow: 0 0 10px rgba(224, 200, 134, 0.35);
}
.nav a.is-active {
  color: var(--gold-light);
  background: rgba(196, 163, 90, 0.15);
  text-shadow: 0 0 10px rgba(224, 200, 134, 0.35);
}
.nav a.is-active:not(.nav__cta) {
  box-shadow: inset 0 0 0 2px rgba(196, 163, 90, 0.75);
}
.nav a.is-active::after {
  display: none;
}
.nav .nav__cta.is-active {
  background: var(--gold) !important;
  color: var(--navy) !important;
}
.nav .nav__cta.is-active::after {
  display: none;
}

.nav__cta-wrap {
  position: relative;
  display: inline-block;
  margin-left: var(--sp-3);
}
.nav__cta-wrap > .nav__cta {
  margin-left: 0 !important;
  display: block;
}
.nav__cta-wrap:hover > .nav__cta,
.nav__cta-wrap:focus-within > .nav__cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
}
.nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  padding: 0;
  border: none;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav__cta-wrap:hover .nav__dropdown,
.nav__cta-wrap:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav a.nav__dropdown-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: var(--sp-3) var(--sp-5);
  background: var(--cabernet);
  color: var(--parchment);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-align: center;
  text-shadow: none;
  box-shadow: 0 0 10px rgba(196, 163, 90, 0.18);
  white-space: nowrap;
  overflow: hidden;
}
.nav a.nav__dropdown-btn:hover {
  background: var(--gold);
  color: var(--navy);
  text-shadow: none;
}
.nav__dropdown-btn-text {
  display: inline-block;
  transform: translateX(-23px) scaleX(0.8);
  transform-origin: center;
  white-space: nowrap;
  /* Pin letter-spacing on the span itself (rather than letting it
     inherit from the parent button) so the "Cert-Pool Memo" glyphs
     render at the same width whether the span lives in the active
     CTA on cert-pool-memo.html or the dropdown button on amicus.html. */
  letter-spacing: 0.04em;
}

.cert-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px 10px;
  background: var(--cabernet);
  color: var(--parchment);
  border: 1px solid var(--cabernet-dark);
  border-radius: 7px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 12px var(--shadow-lg);
}
.cert-fab:hover {
  background: var(--gold);
  border-color: var(--gold-dark);
  color: var(--navy);
}
.cert-fab svg { width: 16px; height: 16px; stroke-width: 2.5; }
@media (max-width: 720px) {
  .cert-fab { bottom: 16px; left: 16px; padding: 7px 12px; font-size: 0.72rem; }
}

.nav__cta {
  background: var(--cabernet) !important;
  color: var(--parchment) !important;
  padding: var(--sp-3) var(--sp-5) !important;
  border-radius: var(--radius);
  font-weight: 600;
  margin-left: var(--sp-3);
  box-shadow: 0 0 10px rgba(196, 163, 90, 0.18);
}
.nav__cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

/* Lock the CTA wrap to the natural Amicus-button width (~126.6px at
   current Inter rendering) on every page, so the cert-pool page mirrors
   the amicus page pixel-for-pixel with only the text/colors swapped.
   We don't set text-align here: like the dropdown button on amicus.html,
   the active CTA leaves text alignment at its default so the
   .nav__dropdown-btn-text scaleX(0.8) + translateX(-24px) produces the
   same final on-screen position whether the span is in the main CTA
   (cert-pool page) or the dropdown (amicus page). */
.nav__cta-wrap { width: 127px; }
.page-cert-pool .nav__cta-wrap > .nav__cta {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
/* The active CTA on amicus.html applies .nav__cta .cta-arrow {
   margin-left: 0.1em } (about +2px), which gives "Amicus →" its open
   spacing. The cert-pool dropdown's "Amicus →" lives in
   .nav__dropdown-btn, which doesn't get that override and falls through
   to the base .cta-arrow { margin-left: -0.18em } (about -3.7px),
   leaving the arrow visibly tighter against "Amicus". Cancel the
   negative tuck here so both buttons match. (margin-left: 0 — not 2px —
   because text-align: center on this button distributes any margin
   change to BOTH sides, so the effective on-screen shift is half the
   margin delta. 0px lands the arrow within 0.04px of the active-CTA
   target.) */
.page-cert-pool .nav__dropdown-btn .cta-arrow {
  margin-left: 0;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  color: var(--parchment);
  font-size: 1.5rem;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--navy-dark);
    padding: var(--sp-4);
    border-top: 1px solid rgba(196,163,90,0.18);
    align-items: stretch;
    gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: var(--sp-4); border-bottom: 1px solid rgba(196,163,90,0.08); }
  .nav__cta { margin: var(--sp-3) 0 0 0 !important; text-align: center; }

  /* Flyout-right in the collapsed menu — overrides the desktop drop-below */
  .nav__dropdown {
    top: var(--sp-3);
    left: 100%;
    margin-left: 6px;
    transform: translateX(-6px);
  }
  .nav__cta-wrap:hover .nav__dropdown,
  .nav__cta-wrap:focus-within .nav__dropdown {
    transform: translateX(0);
  }
  /* Hover bridge: plug the gap to the left of the flyout (not above it) */
  .nav__dropdown::before {
    top: 0;
    bottom: 0;
    left: -8px;
    right: auto;
    width: 8px;
    height: auto;
  }
}

/* --------------------------------------------------------------------------
   6. CASE CAPTION (decorative)
   -------------------------------------------------------------------------- */
.caption {
  font-family: var(--serif);
  text-align: center;
  padding: calc(var(--sp-8) + 1.25rem) var(--sp-5);
  background: var(--ivory);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-shadow: 0 0 10px rgba(224, 200, 134, 0.35);
  position: relative;
}
.caption__court {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  word-spacing: 0.10em;
  text-transform: uppercase;
  color: #142b50;
  font-weight: 700;
  font-family: var(--sans);
  margin-bottom: var(--sp-2);
}
.caption__address {
  font-size: 1.05rem;
  color: var(--slate);
  font-style: italic;
  margin-bottom: var(--sp-5);
}
.caption__parties {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.caption__party {
  text-align: center;
}
.caption__name {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.caption__role {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--slate);
  margin-top: var(--sp-1);
}
.caption__v {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--cabernet);
  font-weight: 700;
}
.caption__cases {
  position: relative;
  margin-top: var(--sp-7);
  padding-top: var(--sp-7);
  border-top: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-5);
  font-size: 0.92rem;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.caption__cases::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  max-width: 560px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 30%, var(--cabernet) 50%, var(--gold-dark) 70%, transparent 100%);
}
.caption__cases::after {
  content: '\25C6';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-dark);
  background: var(--ivory);
  font-size: 0.72rem;
  line-height: 1;
  padding: 0 10px;
  letter-spacing: 0;
}
.caption__case strong {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--navy);
  background-image: url('../assets/images/hero.webp');
  background-size: cover;
  background-position: center 30%;
  color: var(--parchment);
  padding: var(--sp-10) 0 var(--sp-9);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(196, 163, 90, 0.10), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(122, 45, 58, 0.15), transparent 50%),
    linear-gradient(180deg, rgba(10, 20, 45, 0.78) 0%, rgba(15, 29, 58, 0.85) 100%);
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: center;
}
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-7); }
}
.hero__title {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--parchment);
  margin-bottom: var(--sp-5);
}
.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}
/* Applied by JS only when "trap" wraps to its own line */
.hero__title em.trap--lifted {
  position: relative;
  top: -7px;
  display: inline-block;
  padding-top: 4px;
  padding-bottom: 4px;
}
.hero__title .accent {
  color: var(--gold-light);
  font-style: italic;
}
.hero__lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: rgba(250, 248, 243, 0.98);
  margin-bottom: var(--sp-6);
  font-weight: 400;
}
.hero__lede em { color: var(--gold-light); font-style: italic; font-weight: 600; }
.hero__cta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__scales {
  width: 100%;
  max-width: 380px;
  height: auto;
  color: var(--gold);
  filter: drop-shadow(0 10px 40px rgba(196, 163, 90, 0.28));
}
.hero__scales-arm {
  transform-origin: 200px 120px;
  animation: hero-scales-sway 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes hero-scales-sway {
  0%, 100% { transform: rotate(-0.9deg); }
  50%      { transform: rotate(0.9deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scales-arm { animation: none; }
}

/* --------------------------------------------------------------------------
   8. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: all 200ms ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary {
  background: var(--cabernet);
  color: var(--parchment);
  border-color: var(--cabernet);
}
.btn--primary:hover {
  background: var(--cabernet-dark);
  border-color: var(--cabernet-dark);
  color: var(--parchment);
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy-dark);
}
.btn--hover-red:hover {
  background: var(--cabernet);
  border-color: var(--cabernet);
  color: var(--parchment);
}
.btn--hover-blue:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--parchment);
}
.btn--hover-gold:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.btn--no-lift:hover {
  transform: none;
  box-shadow: none;
}
.cta-arrow {
  font-size: 1.4em;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
  vertical-align: 0;
  margin-left: -0.18em;
}
.card__cta .cta-arrow { margin-left: 0; vertical-align: -2px; }
.nav__cta .cta-arrow { margin-left: 0.1em; vertical-align: -1px; }
.btn--ghost .cta-arrow { transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--parchment);
  border-color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--navy);
}
.btn--ghost {
  background: transparent;
  color: var(--cabernet);
  border-color: var(--cabernet);
}
.btn--ghost:hover {
  background: var(--cabernet);
  color: var(--parchment);
}
.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: 0.85rem; }
.btn--lg { padding: var(--sp-5) var(--sp-7); font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   9. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--ivory);
  padding: var(--sp-6);
  border-radius: var(--radius);
  border: 1px solid var(--hairline-soft);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 220ms ease, box-shadow 400ms ease-in-out;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-lg);
}
.card__cta { color: var(--cabernet); }
.card--hover-accent .card__cta,
.card--hover-accent .card__icon,
.card--hover-accent .card__title,
.card--hover-accent .eyebrow { transition: color 220ms ease; }
.card--hover-accent:hover .card__cta { color: var(--gold-dark); }
.card--hover-accent:hover .card__icon { color: var(--cabernet); }
.card--hover-accent:hover .card__title { color: var(--cabernet); }
.card--hover-accent:hover .eyebrow { color: var(--navy); }
/* Homepage: icons turn navy blue on hover instead of cabernet. */
.page-home .card--hover-accent:hover .card__icon,
.page-home .card--featured-accent:hover svg { color: var(--navy); }
/* Homepage Amicus card: (Unsigned) tag turns gold on hover. */
.unsigned-tag { transition: color 220ms ease; }
.page-home .card--hover-accent:hover .unsigned-tag { color: var(--gold-dark) !important; }
.card--icon-red-hover .card__icon { transition: color 220ms ease; }
.card--icon-red-hover:hover .card__icon { color: var(--cabernet); }
.card--featured-accent {
  border-left: 4px solid var(--cabernet);
  transition: border-left-color 220ms ease;
}
.card--featured-accent svg { color: var(--gold); transition: color 220ms ease; }
.card--featured-accent .eyebrow { color: var(--cabernet); transition: color 220ms ease; }
.card--featured-accent:hover { border-left-color: var(--gold-dark); }
.card--featured-accent:hover svg { color: var(--cabernet); }
.card--featured-accent:hover .eyebrow { color: var(--gold-dark); }
.card__icon {
  width: 48px; height: 48px;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.card__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: var(--sp-3);
  font-weight: 600;
  text-wrap: balance;
}
.card__body {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.6;
  text-wrap: balance;
}

.issue-card {
  background: var(--ivory);
  padding: var(--sp-6);
  border-left: 4px solid var(--cabernet);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 12px var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}
/* Equalize card heights only when in a multi-card grid */
.grid--2 > .issue-card,
.grid--3 > .issue-card,
.grid--4 > .issue-card { height: 100%; }
.issue-card__num {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  opacity: 0.55;
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-5);
  font-style: italic;
  transition: color 220ms ease, opacity 220ms ease;
}
.issue-card__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: var(--sp-3);
  padding-right: var(--sp-7);
  line-height: 1.3;
  text-wrap: balance;
  transition: color 220ms ease;
}
.issue-card__body {
  color: var(--slate);
  font-size: 0.95rem;
  flex-grow: 1;
  text-wrap: balance;
}
.issue-card__cite {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--hairline-strong);
  font-family: var(--serif);
  font-style: italic;
  color: var(--cabernet-dark);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.issue-card__cite > span:first-child { flex: 1; text-wrap: balance; transition: color 220ms ease; }
.issue-card__cite > span:first-child em { transition: color 220ms ease; }

/* Clickable issue card variant (used on homepage) */
a.issue-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 240ms ease, box-shadow 400ms ease-in-out;
}
/* Gold left-edge overlay — fades in on hover. Using an opacity transition
   on a pseudo-element is more reliable than border-left-color, which some
   renderers refuse to interpolate when defined via shorthand on the base. */
a.issue-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  width: 4px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}
a.issue-card:hover::before { opacity: 1; }
a.issue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 29, 58, 0.18);
}
a.issue-card:hover .issue-card__num {
  color: var(--cabernet);
  opacity: 0.85;
}
a.issue-card:hover .issue-card__title { color: var(--cabernet); }
/* Roman numerals in the top-right of each card turn navy (at lower opacity) on hover —
   matching the .path__num hover behavior on amicus.html. */
.page-home a.issue-card:hover .issue-card__num { color: var(--navy); opacity: 0.55; }
/* Bottom citation strip — the "little cases" — sit a touch thicker and
   darker than the surrounding cite text, then turn gold/yellow on hover
   (both the italic case names and the surrounding reporter text). */
.page-home a.issue-card .issue-card__cite > span:first-child { font-weight: 600; color: var(--cabernet); }
.page-home a.issue-card:hover .issue-card__cite > span:first-child,
.page-home a.issue-card:hover .issue-card__cite > span:first-child em { color: var(--gold-dark); }

.issue-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(122, 45, 58, 0.10);
  color: var(--cabernet);
  flex-shrink: 0;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}
.issue-card__arrow svg {
  width: 14px;
  height: 14px;
  transition: transform 220ms ease;
}
a.issue-card:hover .issue-card__arrow {
  background: var(--cabernet);
  color: var(--parchment);
  transform: scale(1.08);
}
a.issue-card:hover .issue-card__arrow svg { transform: translateX(2px); }

/* --------------------------------------------------------------------------
   10. IMPACT BOX (sidebar on home)
   -------------------------------------------------------------------------- */
.impact-box {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--parchment);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.impact-box::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(196,163,90,0.18), transparent 60%);
  pointer-events: none;
}
.impact-box__eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  word-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}
.impact-box__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--parchment);
  margin-bottom: var(--sp-4);
  line-height: 1.2;
  font-weight: 600;
  text-wrap: balance;
}
.impact-stat {
  padding: var(--sp-4) 0 var(--sp-5) 0;
  border-bottom: 1px solid rgba(196, 163, 90, 0.75);
}
.impact-stat:last-child { border-bottom: 0; }
.impact-stat:has(+ .impact-box__note) { border-bottom: 0; }
.impact-stat__value {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.impact-stat__label {
  font-size: 0.85rem;
  color: rgba(250, 248, 243, 0.75);
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.impact-box__note {
  position: relative;
  margin-top: var(--sp-3);
  padding-top: calc(var(--sp-5) + 6px);
  border-top: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(250, 248, 243, 0.85);
  line-height: 1.5;
  text-wrap: balance;
}
.impact-box__note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.85;
}
.impact-box__note::after {
  content: '\2756';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--gold);
  background: var(--navy-dark);
  padding: 0 0.4em;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   11. STATUS PANEL
   -------------------------------------------------------------------------- */
.status-panel {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  position: relative;
}
.status-panel__title {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.status-pulse {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
  top: 1px;
  flex-shrink: 0;
}
.status-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

.status-list { list-style: none; }
.status-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 2px dashed rgba(74, 82, 102, 0.4);
  font-size: 0.93rem;
}
.status-item:last-child { border-bottom: 0; }
.status-item__date {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--slate);
  letter-spacing: 0.02em;
  position: relative;
  top: 3px;
}
.status-item__event { color: var(--text); }
.status-item--current {
  background: linear-gradient(90deg, rgba(196, 163, 90, 0.14), rgba(196, 163, 90, 0.04) 65%, transparent);
  margin: -2px calc(-1 * var(--sp-3)) 0;
  padding: calc(var(--sp-3) + 2px) var(--sp-3) var(--sp-3);
  border-radius: var(--radius-sm);
}
.status-item--current .status-item__event {
  font-weight: 600;
  color: var(--cabernet);
}

/* --------------------------------------------------------------------------
   12. COUNTDOWN BANNER
   -------------------------------------------------------------------------- */
.countdown {
  background: linear-gradient(135deg, var(--cabernet) 0%, var(--cabernet-dark) 100%);
  color: var(--parchment);
  padding: var(--sp-9) var(--sp-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.countdown::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(196,163,90,0.25), transparent 60%);
}
.countdown__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.countdown__eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  word-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: var(--sp-5);
}
.countdown__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin-bottom: var(--sp-6);
  color: var(--parchment);
  text-wrap: balance;
}
.countdown__title em { color: var(--gold-light); font-style: italic; }
.countdown__timer {
  display: flex;
  justify-content: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin: var(--sp-5) 0;
}
.countdown__cell {
  background: rgba(0, 0, 0, 0.18);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  width: 130px;
  flex-shrink: 0;
  border: 1px solid rgba(196, 163, 90, 0.3);
  box-sizing: border-box;
}
.countdown__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.75);
  margin-top: var(--sp-2);
}
.countdown__date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. ARGUMENT SECTIONS (deep-dive on arguments page)
   -------------------------------------------------------------------------- */
.argument {
  padding: var(--sp-7) 0;
  border-bottom: 1px solid var(--hairline-strong);
}
.argument:last-child { border-bottom: 0; }
.argument__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  word-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
/* When .argument__num contains a jump button, lay out as flex row */
.argument__num--with-jump {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.argument__jump {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px var(--sp-4);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cabernet);
  background: transparent;
  border: 1.5px solid var(--cabernet);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.argument__jump:hover {
  background: var(--cabernet);
  color: var(--parchment);
}
.argument__jump svg {
  width: 15px;
  height: 15px;
}
.argument__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: var(--sp-4);
  line-height: 1.2;
  font-weight: 600;
}
.argument__title em { color: var(--cabernet); font-style: italic; }
.argument__body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--charcoal);
  max-width: 760px;
}
.argument__body p { margin-bottom: var(--sp-4); }

.callout {
  background: var(--parchment-dark);
  border-left: 4px solid var(--gold);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-5) 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--navy-dark);
  font-size: 1.05rem;
  line-height: 1.5;
  position: relative;
  font-weight: 500;
}
.callout::before {
  content: '\201C';
  position: absolute;
  top: -10px; left: var(--sp-4);
  font-size: 4rem;
  color: var(--gold);
  font-family: var(--serif);
  line-height: 1;
}
.callout cite {
  display: block;
  margin-top: var(--sp-3);
  font-size: 0.9rem;
  color: var(--slate);
  font-style: normal;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.callout cite::before { content: '— '; }

/* TL;DR collapsible button — small gold pill that expands to show .callout content */
.tldr-toggle {
  margin: 0 0 calc(var(--sp-5) + 0.5rem + 5px);
  text-align: left;
  min-height: 0;
}

/* Desktop only: park the pill in the gutter to the left of the roadmap
   container. When the user expands the pill, the callout takes the
   exact (x, y) top-left position the toc-card occupies when closed —
   so opening the pill visually "swaps in" the callout above the
   pushed-down toc-card. The pill itself stays anchored in the gutter,
   aligned with that shared top edge. */
@media (min-width: 1080px) {
  #roadmap > .container,
  #roadmap > .container--narrow {
    position: relative;
  }
  /* Move the gap from below the toggle wrapper to below the callout,
     so the wrapper takes 0 vertical space when closed and the toc-card
     sits at y=0. When the callout opens, the callout also sits at y=0. */
  #roadmap .tldr-toggle {
    margin: 0;
  }
  #roadmap .tldr-toggle .callout {
    margin: 0 0 calc(var(--sp-5) + 0.5rem + 5px);
  }
  #roadmap .tldr-toggle > summary {
    position: absolute;
    left: calc(-1 * (var(--sp-7) + 3rem + 1px));
    top: 0;
    margin: 0;
  }
}
#roadmap { padding-top: var(--sp-9); }
.tldr-toggle > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45em 0.9em 0.45em 0.75em;
  background: var(--gold);
  color: var(--navy);
  border: 1.5px solid var(--gold-dark);
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  user-select: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.tldr-toggle > summary::-webkit-details-marker { display: none; }
.tldr-toggle > summary::marker { display: none; }
.tldr-toggle > summary::before {
  content: '+';
  font-size: 1.1em;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
  width: 0.7em;
  text-align: center;
  transform: translateY(-1px);
}
.tldr-toggle[open] > summary::before { content: '−'; }
.tldr-toggle > summary:hover,
.tldr-toggle[open] > summary {
  background: var(--cabernet);
  color: var(--parchment);
  border-color: var(--cabernet-dark);
}
/* When already open (red), hovering reverts to the gold/closed palette
   so the user has clear affordance that clicking will collapse it. */
.tldr-toggle[open] > summary:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold-dark);
}
.tldr-toggle .callout {
  margin-top: var(--sp-3);
  margin-bottom: 0;
  border-left-color: var(--cabernet);
}
.tldr-toggle .callout::before { display: none; } /* hide the quote-mark ornament for TL;DR */
#roadmap { padding-bottom: var(--sp-9); }

.controlling-auth {
  background: var(--ivory);
  padding: var(--sp-5);
  border-radius: var(--radius);
  border: 1px solid var(--hairline-strong);
  margin: var(--sp-5) 0;
}
.controlling-auth__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  word-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--cabernet);
  margin-bottom: var(--sp-2);
}
.controlling-auth__cite {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--sp-2);
  font-style: italic;
}
.controlling-auth__quote {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.55;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   14. DOCUMENT TREE
   -------------------------------------------------------------------------- */
.master-download {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--navy);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
  position: relative;
  overflow: hidden;
}
.master-download::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(15, 29, 58, 0.12), transparent 60%);
  border-radius: 50%;
}
.master-download__icon {
  width: 64px; height: 64px;
  color: var(--navy);
  flex-shrink: 0;
  z-index: 1;
}
.master-download__content { flex-grow: 1; z-index: 1; }
.master-download__title {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: var(--sp-1);
  font-weight: 700;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.08),
     1px -1px 0 rgba(255, 255, 255, 0.08),
    -1px  1px 0 rgba(255, 255, 255, 0.08),
     1px  1px 0 rgba(255, 255, 255, 0.08);
}
.master-download__meta {
  font-size: 0.92rem;
  color: var(--navy-dark);
  opacity: 0.85;
}
.master-download__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: var(--navy);
  color: var(--parchment);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 1;
  flex-shrink: 0;
  transition: background 220ms ease, color 220ms ease;
}
/* Download icon (tray + arrow) — SVG via mask so it inherits via background-color */
.master-download__btn::after {
  content: '';
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  background-color: var(--gold-light);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='7 10 12 15 17 10'/><line x1='12' y1='15' x2='12' y2='3'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='7 10 12 15 17 10'/><line x1='12' y1='15' x2='12' y2='3'/></svg>") no-repeat center / contain;
  transition: background-color 220ms ease;
}
.master-download__btn:hover {
  background: var(--cabernet);
  color: var(--gold-light);
}
.master-download__btn:hover::after {
  background-color: #fff;
}
@media (max-width: 720px) {
  .master-download { flex-direction: column; text-align: center; }
}

.doc-tree {
  list-style: none;
}
.doc-court {
  background: var(--ivory);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  margin-bottom: var(--sp-5);
  overflow: hidden;
}
.doc-court__header {
  background: var(--navy);
  color: var(--parchment);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  cursor: pointer;
  user-select: none;
  text-align: left;
  transition: background 180ms ease;
}
.doc-court__header:hover { background: var(--navy-light); }
.doc-court__header[aria-expanded="false"] .doc-court__chevron { transform: rotate(-90deg); }
.doc-court__heading {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-grow: 1;
  min-width: 0;
}
.doc-court__icon {
  width: 44px;
  height: 44px;
  color: var(--gold-light);
  flex-shrink: 0;
  margin-left: calc(-1 * var(--sp-2));
}
.doc-court__header:hover .doc-court__icon { color: var(--gold); }

.roadmap-link {
  color: var(--navy);
  font-weight: 600;
  transition: color 200ms ease, text-shadow 200ms ease;
}
.roadmap-link:hover {
  color: var(--gold-dark);
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.22);
}
.roadmap-link em,
.roadmap-link span { transition: color 200ms ease; }
.roadmap-link:hover em,
.roadmap-link:hover span { color: var(--gold-dark) !important; }

/* Roadmap list entries — tighten the leading inside each <li> so two-line
   entries don't read as separate items, and use margin-bottom to keep the
   gap between distinct entries close to the original 1.9 line-height rhythm. */
li:has(> .roadmap-link) {
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

/* --------------------------------------------------------------------------
   ROADMAP — TOC CARD (upgraded look, replaces inline-styled lists)
   -------------------------------------------------------------------------- */
.toc-card {
  background: var(--ivory);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-6) var(--sp-7) var(--sp-7);
  box-shadow: 0 2px 8px var(--shadow);
}
.toc-card > .eyebrow { display: block; margin-bottom: var(--sp-1); }
.toc-card__title {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 var(--sp-5);
  line-height: 1.1;
}
.toc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-7);
}
@media (max-width: 720px) {
  .toc-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}
.toc-part {
  margin: 0;
}
.toc-part + .toc-part { margin-top: var(--sp-5); }
.toc-part__heading {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  word-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cabernet);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-3);
  border-bottom: 1.5px solid var(--gold-dark);
  text-wrap: balance;
}
.toc-part__heading a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}
.toc-part__heading a:hover { color: var(--gold-dark); }
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
  counter-reset: toc-counter;
}
.toc-list--two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: var(--sp-7);
}
@media (max-width: 720px) {
  .toc-list--two-col {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
}
.toc-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--charcoal);
  transition: background 180ms ease, color 180ms ease, padding 180ms ease;
  counter-increment: toc-counter;
  position: relative;
}
.toc-item:hover {
  background: rgba(196, 163, 90, 0.10);
  color: var(--cabernet);
  padding-left: var(--sp-3);
}
.toc-item__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--parchment);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  transition: background 180ms ease, transform 180ms ease;
}
.toc-item__num::before { content: counter(toc-counter); }
.toc-list--alpha .toc-item__num::before { content: counter(toc-counter, upper-alpha); }
/* Pages where the roadmap circles don't correspond to numbered sections in
   the body (record.html, about.html). Replace the digit with a section sign
   so the circle reads as a generic "section marker" instead of an index. */
.toc-list--unnumbered .toc-item__num::before { content: "\00a7"; }
/* Part III on arguments.html (the "Grave Consequences" section). Two plain
   exclamation marks "!!" — louder and more direct than the combined ‼
   glyph, which renders inconsistently across fonts. */
.toc-list--emphasis .toc-item__num::before { content: "!!"; }
/* B and D sit slightly high of the optical center in the circle font.
   Nudge just those two letters 1px down (the circle is unaffected). */
.toc-list--alpha > li:nth-child(2) .toc-item__num::before,
.toc-list--alpha > li:nth-child(4) .toc-item__num::before {
  transform: translateY(1px);
}
.toc-item:hover .toc-item__num {
  background: var(--gold-dark);
  color: var(--parchment);
}
.toc-item__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.3;
  text-wrap: balance;
  flex: 1;
  font-weight: 600;
}
.toc-item__title em {
  color: var(--cabernet);
  font-style: italic;
  transition: color 180ms ease;
}
.toc-item:hover .toc-item__title em { color: var(--gold-dark); }
.toc-item__title .toc-accent {
  color: var(--cabernet);
  transition: color 180ms ease;
}
.toc-item:hover .toc-item__title .toc-accent { color: var(--gold-dark); }
.toc-item__arrow {
  flex-shrink: 0;
  opacity: 0;
  color: var(--cabernet);
  font-weight: 700;
  font-size: 1.1rem;
  transform: translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}
.toc-item:hover .toc-item__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold-dark);
}
li:has(> .roadmap-link):last-child {
  margin-bottom: 0;
}
.doc-court__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--parchment);
  font-weight: 600;
  margin-bottom: var(--sp-1);
  line-height: 1.2;
}
.doc-court__case {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}
.doc-court__chevron {
  width: 20px; height: 20px;
  color: var(--gold);
  transition: transform 220ms ease;
  flex-shrink: 0;
  margin-top: var(--sp-2);
  stroke-width: 3;
  position: relative;
  top: 5px;
  left: 5px;
}
.doc-court__body {
  padding: var(--sp-5) var(--sp-6);
}
.doc-section { margin-bottom: var(--sp-5); }
.doc-section:last-child { margin-bottom: 0; }
.doc-section__title {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  word-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--cabernet);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--hairline-strong);
}
.doc-list {
  list-style: none;
}
.doc-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--hairline-strong);
  font-size: 0.95rem;
}
.doc-item:last-child { border-bottom: 0; }
/* Prior-litigation listing: tighten the gap between text and PDF button
   so the button sits immediately to the right of the description rather
   than floating at the far right edge. */
#prior-litigation .doc-item {
  grid-template-columns: 110px minmax(0, 1fr) auto;
}
#prior-litigation .doc-item__name {
  max-width: 95ch;
}
#prior-litigation .doc-item__action {
  justify-self: start;
  margin-left: var(--sp-4);
}
.doc-item__date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.doc-item__date strong {
  display: block;
  color: var(--cabernet);
  font-weight: 700;
}
.doc-item__name {
  color: var(--navy);
  font-weight: 500;
}
.doc-item__name strong { color: var(--navy); font-weight: 600; }
.doc-item__name .meta {
  display: block;
  font-size: 0.82rem;
  color: var(--slate-light);
  font-weight: 400;
  margin-top: 2px;
  font-style: italic;
}
.doc-item__action {
  color: var(--cabernet);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: calc(var(--sp-2) + 1px) var(--sp-3) calc(var(--sp-2) - 1px);
  padding-left: calc(var(--sp-3) + 4px);
  border: 1px solid var(--cabernet);
  border-radius: var(--radius-sm);
  transition: all 180ms ease;
}
.doc-item__action:hover {
  background: var(--cabernet);
  color: var(--parchment);
}
.doc-item__action svg { width: 14px; height: 14px; margin-left: 0; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* The "Watch" (local .mp4) and "Watch on YouTube" buttons read tighter
   between text and arrow than the PDF/ODT buttons because their label
   has no trailing punctuation. Push the arrow further right on these
   two so the gap reads as deliberate spacing rather than a cramped tuck. */
.doc-item__action[href$=".mp4"] svg,
.doc-item__action[href*="youtu.be"] svg {
  margin-left: 4px;
}
/* PDF action buttons get +2px of width vs the ODT button, AND their contents
   sit 2px further right than ODT's. Implementation: shift the 2px of extra
   padding to the LEFT side (vs the base rule's symmetric var(--sp-3)). */
.doc-item__action[href$=".pdf"] {
  padding-left: calc(var(--sp-3) + 6px);
}
/* ODT button is 1px narrower than the base rule (contents stay put — the
   1px comes off the right padding, not the left). */
.doc-item__action[href$=".odt"] {
  padding-right: calc(var(--sp-3) - 1px);
}
/* Only the "PDF" text glyphs (wrapped in a span on PDF action buttons) shift
   1px visually left. The svg arrow's box position is unchanged because
   transform is paint-only — flex layout ignores it. */
.doc-item__action__text {
  transform: translateX(-1px);
}
.doc-item--featured {
  background: linear-gradient(90deg, rgba(196, 163, 90, 0.15), rgba(196, 163, 90, 0.04) 65%, transparent);
  margin: 0 calc(-1 * var(--sp-4));
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
  border-radius: var(--radius-sm);
}
.doc-item--featured .doc-item__name { color: var(--navy); font-weight: 600; }

/* Spotlight: a single, visually loudest emphasis for "the heart of the petition" */
.doc-item.doc-item--spotlight {
  background: linear-gradient(90deg, rgba(122, 25, 49, 0.18), rgba(122, 25, 49, 0.06) 65%, transparent);
  margin-right: calc(-1 * var(--sp-4));
  padding-right: var(--sp-4);
  border-radius: var(--radius-sm);
}
.doc-item.doc-item--spotlight .doc-item__name,
.doc-item.doc-item--spotlight .doc-item__name strong {
  color: var(--cabernet);
  font-weight: 700;
}
.doc-item.doc-item--spotlight .doc-item__name .meta {
  color: var(--cabernet);
  opacity: 0.78;
  font-style: italic;
}

/* Green: forward-looking filings (petition, amicus draft) — pairs with --featured */
.doc-item.doc-item--green {
  background: linear-gradient(90deg, rgba(61, 103, 71, 0.20), rgba(61, 103, 71, 0.05) 65%, transparent);
}
.doc-item.doc-item--green .doc-item__name,
.doc-item.doc-item--green .doc-item__name strong {
  color: #2f5638;
  font-weight: 700;
}

/* Blue: the lead filing — pairs with --featured */
.doc-item.doc-item--blue {
  background: linear-gradient(90deg, rgba(34, 75, 138, 0.215), rgba(34, 75, 138, 0.058) 65%, transparent);
}
.doc-item.doc-item--blue .doc-item__name,
.doc-item.doc-item--blue .doc-item__name strong {
  color: var(--navy);
  font-weight: 700;
}

/* District Court Orders section keeps top-level titles cabernet, but child orders stay navy */
.doc-section--orders .doc-item__name,
.doc-section--orders .doc-item__name strong,
.doc-section--orders .doc-item--featured .doc-item__name,
.doc-section--orders .doc-item--featured .doc-item__name strong { color: var(--cabernet); }
.doc-section--orders .doc-item--child .doc-item__name,
.doc-section--orders .doc-item--child .doc-item__name strong { color: var(--navy); }

/* Court rulings (orders, opinions): cabernet titles regardless of section */
.doc-item.doc-item--ruling .doc-item__name,
.doc-item.doc-item--ruling .doc-item__name strong { color: var(--cabernet); }

/* Hierarchical filing tree — single trunk per parent group, with branches at each child */
.doc-item.doc-item--child,
.doc-item.doc-item--child-2,
.doc-item.doc-item--child-3 {
  position: relative;
  margin-left: var(--sp-4);
}
.doc-item.doc-item--child { padding-left: var(--sp-6); }
.doc-item.doc-item--child-2 { padding-left: 5rem; }
.doc-item.doc-item--child-3 { padding-left: var(--sp-10); }

/* Vertical trunk: full height by default (continues to next sibling) */
.doc-item.doc-item--child::before,
.doc-item.doc-item--child-2::before,
.doc-item.doc-item--child-3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
}
/* Horizontal branch from trunk to item content */
.doc-item.doc-item--child::after,
.doc-item.doc-item--child-2::after,
.doc-item.doc-item--child-3::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 1px;
  background: var(--hairline);
}
.doc-item.doc-item--child::after { width: var(--sp-6); }
.doc-item.doc-item--child-2::after { width: 5rem; }
.doc-item.doc-item--child-3::after { width: var(--sp-10); }

/* Extended branch: reaches across the (empty) date column to meet the text */
.doc-item.doc-item--child.doc-item--child-extended::after {
  width: calc(var(--sp-6) + 110px + var(--sp-4));
}

/* Last child of a group: trunk stops at the branch (forms an L-corner) */
.doc-item.doc-item--child:not(:has(+ .doc-item--child)):not(:has(+ .doc-item--child-2)):not(:has(+ .doc-item--child-3))::before,
.doc-item.doc-item--child-2:not(:has(+ .doc-item--child)):not(:has(+ .doc-item--child-2)):not(:has(+ .doc-item--child-3))::before,
.doc-item.doc-item--child-3:not(:has(+ .doc-item--child)):not(:has(+ .doc-item--child-2)):not(:has(+ .doc-item--child-3))::before {
  bottom: 50%;
}

@media (max-width: 720px) {
  .doc-item { grid-template-columns: 1fr; gap: var(--sp-2); }
  .doc-item__action { justify-self: start; }
  .doc-item.doc-item--child { margin-left: var(--sp-3); padding-left: var(--sp-3); }
  .doc-item.doc-item--child-2 { margin-left: var(--sp-3); padding-left: 2.5rem; }
  .doc-item.doc-item--child-3 { margin-left: var(--sp-3); padding-left: var(--sp-8); }
  .doc-item.doc-item--child::after { width: var(--sp-3); }
  .doc-item.doc-item--child-2::after { width: 2.5rem; }
  .doc-item.doc-item--child-3::after { width: var(--sp-8); }
}

/* --------------------------------------------------------------------------
   15. AMICUS PATHS (3-option call to action)
   -------------------------------------------------------------------------- */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin: var(--sp-7) 0;
}
@media (max-width: 1024px) { .path-grid { grid-template-columns: 1fr; } }
.path {
  background: var(--ivory);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 240ms ease, box-shadow 400ms ease-in-out;
}
.path:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--shadow-lg);
}
.path__num {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-5);
  font-family: var(--serif);
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.55;
  line-height: 1;
  font-style: italic;
  transition: color 220ms ease;
}
.path:hover .path__num { color: var(--navy); }
.path__icon {
  width: 56px; height: 56px;
  color: var(--cabernet);
  margin-bottom: var(--sp-4);
  transition: color 220ms ease;
}
.path:hover .path__icon { color: var(--gold); }
.path__list li::before { transition: color 220ms ease; }
.path:hover .path__list li::before { color: var(--cabernet); }
.path__title { transition: color 220ms ease; }
.path:hover .path__title { color: var(--cabernet); }
.card--logistics-hover h4 {
  transition: color 220ms ease, border-bottom-color 220ms ease;
  border-bottom-color: var(--gold-dark) !important;
}
.card--logistics-hover:hover .path__list li::before { color: var(--cabernet); }
.card--logistics-hover:hover h4 {
  color: var(--gold-dark) !important;
  border-bottom-color: var(--cabernet) !important;
}
.card--eyebrow-red-hover .eyebrow { transition: color 220ms ease; }
.card--eyebrow-red-hover:hover .eyebrow { color: var(--cabernet); }
.path__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: var(--sp-4);
  font-weight: 600;
  text-wrap: balance;
}
.path__body {
  color: var(--slate);
  margin-bottom: var(--sp-4);
  font-size: 0.96rem;
  line-height: 1.6;
  text-wrap: balance;
}
.path__list {
  list-style: none;
  margin-bottom: var(--sp-5);
}
.path > .btn { margin-top: auto; }
.path__list li {
  position: relative;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-6);
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.5;
  text-wrap: balance;
  break-inside: avoid;
}
.path__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: calc(var(--sp-2) - 1px);
  color: var(--gold-dark);
  font-size: 1.4em;
  font-weight: 900;
  line-height: 1;
}
.path__list--loose li { padding-top: calc(var(--sp-3) * 0.81); padding-bottom: calc(var(--sp-3) * 0.81); }
.path__list--loose li::before { top: calc(var(--sp-3) * 0.81 - 1px); }

/* --------------------------------------------------------------------------
   16. RECORD-STRAIGHTENING SECTION (about page)
   -------------------------------------------------------------------------- */
.record-section {
  background: var(--parchment-dark);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  margin: var(--sp-7) 0;
  border-left: 4px solid var(--cabernet);
}
.record-section__title {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: var(--sp-4);
  font-weight: 600;
  text-wrap: balance;
}
.record-point {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.record-point:last-child { border-bottom: 0; }
.record-point__q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cabernet);
  margin-bottom: var(--sp-2);
  font-weight: 600;
}
.record-point__a {
  color: var(--charcoal);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   17. CONTACT BLOCK
   -------------------------------------------------------------------------- */
.contact-block {
  background: var(--navy);
  color: var(--parchment);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  border-top: 4px solid var(--gold);
}
.contact-block h3 { color: var(--parchment); margin-bottom: var(--sp-5); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid rgba(196, 163, 90, 0.55);
}
.contact-item__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  word-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-2);
  font-weight: 600;
}
.contact-item__value {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--parchment);
  line-height: 1.45;
  font-weight: 600;
}
.contact-item__value a { color: var(--parchment); text-decoration: none; transition: color 220ms ease; }
.contact-item__value a:hover { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   18. BREADCRUMB / PAGE HEADER
   -------------------------------------------------------------------------- */
.page-head {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--parchment);
  padding: var(--sp-9) 0;
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(196, 163, 90, 0.08), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(122, 45, 58, 0.18), transparent 50%);
}
.page-head::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-head__inner { position: relative; z-index: 1; }
.page-head__eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  word-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--sp-4);
}
.page-head__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  color: var(--parchment);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: var(--sp-4);
}
.page-head__title em { font-style: italic; color: var(--gold-light); }
.page-head__lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(250, 248, 243, 0.98);
  max-width: 760px;
  line-height: 1.55;
  font-weight: 400;
}
.page-head__reflex {
  margin: calc(var(--sp-5) + 9px) 0 0;
  padding: calc(var(--sp-4) + 19px) 0 0;
  max-width: 710px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  border-top: 1.5px solid rgba(196, 163, 90, 0.6);
}
.page-head__reflex-item { margin: 0; }
.page-head__reflex-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}
.page-head__reflex-value {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--parchment);
  margin: 0;
  line-height: 1.45;
}
.page-head__reflex-value em { color: var(--gold-light); font-style: italic; }
@media (max-width: 600px) {
  .page-head__reflex {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
}

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--navy-dark);
  background-image:
    radial-gradient(ellipse 70% 45% at 15% 0%, rgba(196, 163, 90, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 100%, rgba(122, 45, 58, 0.06), transparent 70%);
  color: rgba(250, 248, 243, 0.92);
  padding: var(--sp-9) 0 var(--sp-5);
  border-top: 3px solid var(--gold);
  overflow: hidden;
}
/* Centered diamond ornament breaking the top gold border */
.site-footer::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--navy-dark), 0 0 0 5px rgba(196, 163, 90, 0.45);
  z-index: 2;
}
/* Faint horizontal hairline just below the top gold border */
.site-footer::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(196, 163, 90, 0.22) 20%,
    rgba(196, 163, 90, 0.22) 80%,
    transparent 100%);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-7);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  position: relative;
  z-index: 1;
}
@media (max-width: 960px) { .site-footer__inner { grid-template-columns: 1fr; gap: var(--sp-6); } }
.site-footer__brand {
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 600;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.005em;
  color: var(--gold-light);
  width: fit-content;
}
.site-footer__brand em {
  font-style: italic;
  color: var(--parchment);
}
.site-footer__tag {
  font-style: italic;
  color: rgba(250, 248, 243, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  font-family: var(--serif);
  font-weight: 600;
  max-width: calc(42ch + 100px);
}
.site-footer__tag strong {
  font-style: normal;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.01em;
}
.site-footer h5 {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  word-spacing: 0.10em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.site-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: var(--sp-2); }
.site-footer ul a {
  color: rgba(250, 248, 243, 0.85);
  font-size: 0.93rem;
  transition: color 220ms ease;
  position: relative;
  display: inline-block;
  padding-bottom: 1px;
}
.site-footer ul a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-footer ul a:hover { color: var(--gold-light); }
.site-footer ul a:hover::after { width: 100%; }
.site-footer__bottom {
  max-width: var(--container);
  margin: var(--sp-7) auto 0;
  padding: var(--sp-6) var(--sp-5) var(--sp-4);
  font-size: 0.98rem;
  color: var(--gold);
  text-align: center;
  font-style: italic;
  font-family: var(--serif);
  letter-spacing: 0.01em;
  position: relative;
}
/* Gradient divider with center gap for an ornament */
.site-footer__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--sp-5));
  max-width: 720px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(196, 163, 90, 0.22) 18%,
    rgba(196, 163, 90, 0.22) 44%,
    transparent 50%,
    rgba(196, 163, 90, 0.22) 56%,
    rgba(196, 163, 90, 0.22) 82%,
    transparent 100%);
}
/* Centered ornament glyph sitting on the divider gap */
.site-footer__bottom::after {
  content: '◆';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 0.6rem;
  color: var(--gold);
  background: var(--navy-dark);
  padding: 0 8px;
  line-height: 1;
  font-style: normal;
  letter-spacing: 0;
  opacity: 0.9;
}
.site-footer__bottom em {
  color: var(--gold-light);
  font-style: italic;
}

/* Optional epigraph block at the top of the footer */
.site-footer__epigraph {
  max-width: 760px;
  margin: 0 auto var(--sp-8);
  padding: 0 var(--sp-5) var(--sp-7);
  text-align: center;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(196, 163, 90, 0.16);
}
.site-footer__quote-mark {
  width: 28px;
  height: 28px;
  color: var(--gold);
  opacity: 0.6;
  margin: 0 auto var(--sp-3);
  display: block;
}
.site-footer__quote {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
  color: rgba(250, 248, 243, 0.92);
  font-style: italic;
  margin: 0 auto var(--sp-3);
  max-width: 640px;
  text-wrap: balance;
}
.site-footer__cite {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-family: var(--sans);
  text-transform: uppercase;
}
.site-footer__cite em {
  color: var(--gold-light);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--serif);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   20. UTILITIES
   -------------------------------------------------------------------------- */
.center-text { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--sp-3); }
.mt-5 { margin-top: var(--sp-5); }
.mt-7 { margin-top: var(--sp-7); }
.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-7 { margin-bottom: var(--sp-7); }
.text-cabernet { color: var(--cabernet); }
.text-gold { color: var(--gold-dark); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--slate); }
.font-serif { font-family: var(--serif); }
.italic { font-style: italic; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
  margin: var(--sp-7) 0;
  border: 0;
}

/* Scroll-margin for anchor links under sticky header */
[id] { scroll-margin-top: 100px; }

/* Balanced variant of path__list — used for the preserved-arguments bullets on record.html */
.path__list--balanced li { text-wrap: balance; padding-left: var(--sp-6); }
.path__list--balanced li::before {
  content: '→';
  color: var(--cabernet);
  font-size: 1.4em;
  font-weight: 900;
  line-height: 1;
  top: calc(var(--sp-2) - 1px);
}

/* Record page — darker lede text under each section header */
.page-record .lede { color: #000; font-weight: 500; }
.page-record .section--dark .lede { color: rgba(250, 248, 243, 0.92); font-weight: 400; }

/* About page — darker lede text under each section header */
.page-about .lede { color: #000; font-weight: 500; }
.page-about .section--dark .lede { color: rgba(250, 248, 243, 0.92); font-weight: 400; }

/* Home page — darker lede text + darker case-caption sub-lines */
.page-home .lede { color: var(--text); }
.page-home .section--dark .lede { color: rgba(250, 248, 243, 0.92); }
.page-home .caption__name,
.page-home .caption__address,
.page-home .caption__role,
.page-home .caption__cases { color: #000; }
.page-home .caption__role,
.page-home .caption__address,
.page-home .caption__cases { font-size: 1.15rem; }
.page-home .caption__role { font-size: 1.3rem; }
.page-home .caption__cases { gap: var(--sp-7); }

/* Amicus page — darker lede text under each section header */
.page-amicus .lede { color: #000; font-weight: 500; }
.page-amicus .section--dark .lede { color: rgba(250, 248, 243, 0.92); font-weight: 400; }

/* --------------------------------------------------------------------------
   NUMBERS-IN-CONTEXT cards (record.html): hover the card to brighten the
   cabernet-colored number / eyebrow heading to gold-light yellow.
   -------------------------------------------------------------------------- */
#numbers-in-context .card div[style*="cabernet"],
#numbers-in-context .card h5[style*="cabernet"] {
  transition: color 280ms ease;
}
#numbers-in-context .card:hover div[style*="cabernet"],
#numbers-in-context .card:hover h5[style*="cabernet"] {
  color: var(--gold-light) !important;
}

/* --------------------------------------------------------------------------
   CF REF LINK — `CF at <page>` references that page-jump into the master
   case file PDF. Subtle at rest, brightens on hover.
   -------------------------------------------------------------------------- */
.cf-ref,
.opinion-ref,
.crcp-ref {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(122, 45, 58, 0.35);
  cursor: pointer;
  transition: color 220ms ease, border-color 220ms ease, text-shadow 220ms ease;
}
.crcp-ref { border-bottom: none !important; }
.cf-ref:hover,
.cf-ref:focus-visible,
.opinion-ref:hover,
.opinion-ref:focus-visible,
.crcp-ref:hover,
.crcp-ref:focus-visible {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35);
  outline: none;
}
.section--dark .cf-ref,
.callout .cf-ref,
.hero .cf-ref,
.page-head .cf-ref,
.site-footer .cf-ref,
.section--dark .opinion-ref,
.callout .opinion-ref,
.hero .opinion-ref,
.page-head .opinion-ref,
.site-footer .opinion-ref,
.section--dark .crcp-ref,
.callout .crcp-ref,
.hero .crcp-ref,
.page-head .crcp-ref,
.site-footer .crcp-ref {
  border-bottom-color: rgba(196, 163, 90, 0.45);
}
/* Yellow-at-rest contexts: hover to ivory/white instead of staying yellow */
.hero__lede .cf-ref:hover,
.hero__lede .cf-ref:focus-visible,
.countdown__title .cf-ref:hover,
.countdown__title .cf-ref:focus-visible,
.page-head__title .cf-ref:hover,
.page-head__title .cf-ref:focus-visible,
.hero__lede .opinion-ref:hover,
.hero__lede .opinion-ref:focus-visible,
.countdown__title .opinion-ref:hover,
.countdown__title .opinion-ref:focus-visible,
.page-head__title .opinion-ref:hover,
.page-head__title .opinion-ref:focus-visible,
.hero__lede .crcp-ref:hover,
.hero__lede .crcp-ref:focus-visible,
.countdown__title .crcp-ref:hover,
.countdown__title .crcp-ref:focus-visible,
.page-head__title .crcp-ref:hover,
.page-head__title .crcp-ref:focus-visible {
  color: var(--ivory) !important;
  border-bottom-color: var(--ivory);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   CASE-LAW LINK — sitewide; case names link to CaseMine search
   Neutral at rest (no underline / no color shift); subtle hover hint only
   -------------------------------------------------------------------------- */
.case-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 220ms ease, text-shadow 220ms ease;
}
.case-link em { transition: color 220ms ease, text-shadow 220ms ease; }
.case-link:hover,
.case-link:focus-visible {
  color: var(--gold-light);
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35);
  outline: none;
}
.case-link:hover em,
.case-link:focus-visible em {
  color: var(--gold-light);
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35);
}
/* Variant: case-link that hovers to gold-light instead of cabernet-dark.
   Used where the surrounding palette favors a gold accent on hover. */
.case-link--gold-hover:hover em,
.case-link--gold-hover:focus-visible em {
  color: var(--gold-light) !important;
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35) !important;
}

/* Collateral case-number links (BB II / III / IV) appearing in dark-bg
   impact-stat boxes on index.html and arguments.html. Static: gold-light bold,
   no underline. Hover: turns crisp white for clear interactive affordance. */
.collateral-case-link {
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: none;
  transition: color 220ms ease;
}
.collateral-case-link:hover,
.collateral-case-link:focus-visible {
  color: #fff;
  outline: none;
}

/* (Amada-specific yellow-hover rule retired — Amada links now use the color-aware
   default rules below, just like every other case-link.) */

/* Color-aware hover override: when a case-link sits inside a red/cabernet container
   (and thus inherits a red rest color), its hover should resolve to gold-light (yellow)
   instead of the default cabernet — preserving visible contrast.
   The default rule (red on hover) still applies for blue/dark contexts. */
.emphasis-strong .case-link:hover,
.emphasis-strong .case-link:focus-visible,
.accent-red .case-link:hover,
.accent-red .case-link:focus-visible,
[style*="cabernet"] .case-link:hover,
[style*="cabernet"] .case-link:focus-visible,
[style*="#c45658"] .case-link:hover,
[style*="#c45658"] .case-link:focus-visible,
[style*="#c4566c"] .case-link:hover,
[style*="#c4566c"] .case-link:focus-visible {
  color: var(--gold-light) !important;
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35);
}
.emphasis-strong .case-link:hover em,
.emphasis-strong .case-link:focus-visible em,
.accent-red .case-link:hover em,
.accent-red .case-link:focus-visible em,
[style*="cabernet"] .case-link:hover em,
[style*="cabernet"] .case-link:focus-visible em,
[style*="#c45658"] .case-link:hover em,
[style*="#c45658"] .case-link:focus-visible em,
[style*="#c4566c"] .case-link:hover em,
[style*="#c4566c"] .case-link:focus-visible em {
  color: var(--gold-light) !important;
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35) !important;
}

/* Contexts where em is automatically cabernet via CSS class rules:
   case-link em inside .argument__title, .lede, .toc-accent, etc. — hover to gold-light. */
.argument__title .case-link:hover,
.argument__title .case-link:focus-visible,
.argument__title .case-link:hover em,
.argument__title .case-link:focus-visible em,
.lede .case-link:hover,
.lede .case-link:focus-visible,
.lede .case-link:hover em,
.lede .case-link:focus-visible em,
.toc-accent .case-link:hover,
.toc-accent .case-link:focus-visible,
.toc-accent .case-link:hover em,
.toc-accent .case-link:focus-visible em {
  color: var(--gold-light) !important;
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35) !important;
}

/* "White text" contexts: case-links sitting on dark backgrounds (parchment-colored
   text) should also hover to gold-light (yellow). Covers the hero, page-head, footer,
   countdown, any .section--dark, and any inline parchment-colored container. */
.site-footer .case-link:hover,
.site-footer .case-link:focus-visible,
.hero .case-link:hover,
.hero .case-link:focus-visible,
.page-head .case-link:hover,
.page-head .case-link:focus-visible,
.countdown .case-link:hover,
.countdown .case-link:focus-visible,
[style*="parchment"] .case-link:hover,
[style*="parchment"] .case-link:focus-visible,
[style*="rgba(250, 248, 243"] .case-link:hover,
[style*="rgba(250, 248, 243"] .case-link:focus-visible,
[style*="rgba(250,248,243"] .case-link:hover,
[style*="rgba(250,248,243"] .case-link:focus-visible {
  color: var(--gold-light) !important;
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35);
}
.site-footer .case-link:hover em,
.site-footer .case-link:focus-visible em,
.hero .case-link:hover em,
.hero .case-link:focus-visible em,
.page-head .case-link:hover em,
.page-head .case-link:focus-visible em,
.countdown .case-link:hover em,
.countdown .case-link:focus-visible em,
[style*="parchment"] .case-link:hover em,
[style*="parchment"] .case-link:focus-visible em,
[style*="rgba(250, 248, 243"] .case-link:hover em,
[style*="rgba(250, 248, 243"] .case-link:focus-visible em,
[style*="rgba(250,248,243"] .case-link:hover em,
[style*="rgba(250,248,243"] .case-link:focus-visible em {
  color: var(--gold-light) !important;
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35) !important;
}
.section--dark .case-link:hover,
.section--dark .case-link:focus-visible,
.callout .case-link:hover,
.callout .case-link:focus-visible {
  color: var(--gold-light);
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35);
}
/* Inherit-styled case-link variant: blends with surrounding text by default,
   transitions to gold-light on hover. Used on dark backgrounds where the
   regular cabernet hover would clash with the surrounding palette. */
.case-link--inherit { color: inherit !important; text-decoration: none; transition: color 220ms ease, text-shadow 220ms ease; }
.case-link--inherit em { color: inherit !important; transition: color 220ms ease, text-shadow 220ms ease; }
.case-link--inherit:hover,
.case-link--inherit:focus-visible,
.case-link--inherit:hover em,
.case-link--inherit:focus-visible em {
  color: var(--gold-light) !important;
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35);
}
/* Cert-issues case-link: rose-tinted by default (matches the dark-section
   surrounding tone), transitions to gold-light on hover. */
.case-link--rose { color: #c45658 !important; text-decoration: none; transition: color 220ms ease, text-shadow 220ms ease; }
.case-link--rose em { color: #c45658 !important; transition: color 220ms ease, text-shadow 220ms ease; }
.case-link--rose:hover,
.case-link--rose:focus-visible,
.case-link--rose:hover em,
.case-link--rose:focus-visible em {
  color: var(--gold-light) !important;
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35);
}
/* Yellow-at-rest contexts: when the case-link em is gold-light by default
   (.hero__lede em, .countdown__title em, .page-head__title em), the hover
   should transition to ivory/white instead of staying yellow. */
.hero__lede .case-link em { transition: color 220ms ease, text-shadow 220ms ease; }
.hero__lede .case-link:hover,
.hero__lede .case-link:focus-visible,
.hero__lede .case-link:hover em,
.hero__lede .case-link:focus-visible em,
.countdown__title .case-link:hover,
.countdown__title .case-link:focus-visible,
.countdown__title .case-link:hover em,
.countdown__title .case-link:focus-visible em,
.page-head__title .case-link:hover,
.page-head__title .case-link:focus-visible,
.page-head__title .case-link:hover em,
.page-head__title .case-link:focus-visible em {
  color: var(--ivory) !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35) !important;
}

/* --------------------------------------------------------------------------
   RECORD EXHIBIT LINK — small inline link used in compare-table cells
   -------------------------------------------------------------------------- */
.record-exhibit-link {
  color: var(--cabernet);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(122, 25, 49, 0.4);
  padding-bottom: 1px;
  transition: color 200ms ease, border-bottom-color 200ms ease, text-shadow 200ms ease;
}
.record-exhibit-link:hover,
.record-exhibit-link:focus-visible {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35);
  outline: none;
}

/* --------------------------------------------------------------------------
   COMPARISON TABLE — used on record.html for diametric distinctions
   -------------------------------------------------------------------------- */
.compare-table {
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ivory);
  margin: var(--sp-6) 0;
}
.compare-table__row {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr 1.6fr;
  border-bottom: 1px solid var(--hairline-strong);
}
.compare-table__row:last-child { border-bottom: 0; }
.compare-table__row--header {
  background: var(--navy);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  word-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
}
.compare-table__cell {
  padding: var(--sp-5) var(--sp-6);
  border-right: 1px solid var(--hairline-strong);
  font-size: 0.98rem;
  line-height: 1.5;
  text-wrap: balance;
  min-width: 0;
}
.compare-table__cell:last-child { border-right: 0; }
.compare-table__cell--label {
  background: rgba(196, 163, 90, 0.08);
  font-family: var(--sans);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}
.compare-table__cell--walmart {
  color: var(--cabernet);
  font-weight: 500;
}
.compare-table__cell--bestbuy {
  color: var(--text);
  font-weight: 600;
}
.compare-table__row--header .compare-table__cell--label,
.compare-table__row--header .compare-table__cell--walmart,
.compare-table__row--header .compare-table__cell--bestbuy {
  background: transparent;
  color: var(--gold-light);
  font-weight: 700;
}
@media (max-width: 720px) {
  .compare-table__row { grid-template-columns: 1fr; }
  .compare-table__cell {
    border-right: 0;
    border-bottom: 1px solid var(--hairline-strong);
  }
  .compare-table__cell:last-child { border-bottom: 0; }
  .compare-table__cell--label {
    background: var(--navy);
    color: var(--parchment);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    word-spacing: 0.10em;
    text-transform: uppercase;
  }
  .compare-table__row--header { display: none; }
}

/* --------------------------------------------------------------------------
   TIMELINE — used on record.html for the Walmart litigation chronology
   -------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--hairline);
}
.timeline__entry {
  position: relative;
  padding-left: 44px;
  padding-bottom: var(--sp-6);
}
.timeline__entry:last-child { padding-bottom: 0; }
#walmart-timeline .timeline__entry { padding-bottom: var(--sp-7); }
#walmart-timeline .timeline__entry:last-child { padding-bottom: 0; }
.timeline__entry::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--gold-dark);
}
.timeline__case {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--cabernet);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.timeline__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  line-height: 1.35;
}
.timeline__meta {
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: var(--sp-2);
  font-style: italic;
}
.timeline__body {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text);
}
.timeline__ignored {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(122, 25, 49, 0.06);
  border-left: 3px solid var(--cabernet);
  font-size: 0.92rem;
  color: var(--cabernet);
}
.timeline__ignored strong {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  word-spacing: 0.10em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--sp-1);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Emphasis utility (C5 — heavier-without-halo variant)
   Inter 900 (Black) is now loaded via the Google Fonts URL in every page's
   <head>, so font-weight: 900 actually renders at Black instead of falling
   back to Bold (700). The 0.6px text-shadow halo from the original design
   is intentionally omitted; the heavier weight delivers visual emphasis
   on its own.

   Other revert paths:
     - back to "shouty"      → font-weight: 900; text-shadow: 0 0 0.6px currentColor;
     - back to "just bold"   → font-weight: 700; text-shadow: none;
     - lighter (semibold)    → font-weight: 600; text-shadow: none;
   -------------------------------------------------------------------------- */
.emphasis-strong {
  font-weight: 900;
  text-shadow: none;
}
/* Serif-context variant: Cormorant Garamond only loads up to weight 700,
   so font-weight 900 falls back to 700 and looks too light without help.
   Use .emphasis-strong-halo for emphasized words inside serif paragraphs. */
.emphasis-strong-halo {
  font-weight: 900;
  text-shadow: 0 0 0.6px currentColor;
}

/* Anchor scroll offset — site-header is position:sticky, so anchor targets
   land underneath it without this. Use enough offset to clear the banner +
   main nav row. */
:target,
h1[id], h2[id], h3[id], h4[id],
section[id], article[id], li[id], div[id] {
  scroll-margin-top: 130px;
}

/* Part II heading sits directly under an .ornament (icon + flanking hairlines)
   that should remain visible above the heading after a jump. Add the ornament's
   visual height (~90px) so the icon and lines clear the sticky banner. */
#part-2 {
  scroll-margin-top: 230px;
}

/* Accent-red: the unified red color used for emphasis on dark navy backgrounds.
   To restyle every red emphasis word/phrase sitewide, change this one rule.
   !important is intentional — this is a utility class meant to override
   container-specific color rules (e.g. .hero__lede em). */
.accent-red {
  color: #c4566c !important;
}

/* Scoped override: in the "From the Record Itself" section, accent-red reads
   as a true red rather than the section-default pink-rose tone. */
#from-the-record .accent-red {
  color: #c43838 !important;
}

/* The Record link — animated hover (color shift + transition).
   Two variants for light vs. dark backgrounds. */
.the-record-link {
  color: var(--cabernet);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 220ms ease, text-decoration-color 220ms ease;
}
.the-record-link:hover,
.the-record-link:focus {
  color: var(--gold-light);
  text-shadow: 0 0 8px rgba(196, 163, 90, 0.35);
}
.the-record-link--dark {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 220ms ease, text-decoration-color 220ms ease;
}
.the-record-link--dark:hover,
.the-record-link--dark:focus {
  color: var(--ivory);
}

/* Scroll-to-top button — fixed bottom-right, fades in past ~400px scroll */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 21px 10px 16px;
  background: var(--cabernet);
  color: var(--parchment);
  border: 1px solid var(--cabernet-dark);
  border-radius: 7px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 12px var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease, background 180ms ease;
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--gold); border-color: var(--gold-dark); color: var(--navy); }
.scroll-top svg { width: 16px; height: 16px; stroke-width: 2.5; position: relative; top: 1px; }
@media (max-width: 720px) {
  .scroll-top { bottom: 16px; right: 16px; padding: 7px 12px; font-size: 0.72rem; }
}

/* arguments.html — "Access to Justice" h3: force two lines on desktop 2-col
   layout, no effect when the grid stacks below 960 px (single column). */
@media (min-width: 961px) {
  #access-justice-h3 { max-width: 15em; }
}

/* --------------------------------------------------------------------------
   FLOATING SHARE RAIL  (built by main.js, mounted on every page)
   -------------------------------------------------------------------------- */
.share-rail {
  position: fixed;
  left: 24px;
  top: 24px; /* refined by JS to sit below the sticky header */
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 2px 11px 7px;
  background: var(--gold);
  border: 1px solid var(--hairline-strong);
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(15, 29, 58, 0.12);
}
.share-rail__buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.28s ease, margin-top 0.28s ease;
}
.share-rail:hover .share-rail__buttons {
  max-height: 200px;
  margin-top: 11px;
}
.share-rail__label {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0;
  transform: scaleX(0.90) scaleY(1.25);
  transform-origin: left center;
}
.share-rail__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  text-decoration: none;
  padding: 0;
}
.share-rail__btn svg { width: 17px; height: 17px; display: block; }
.share-rail__btn--linkedin svg,
.share-rail__btn--x svg { fill: currentColor; }
.share-rail__btn--linkedin:hover { background: #0a66c2; color: #fff; }
.share-rail__btn--x:hover        { background: #000;     color: #fff; }
.share-rail__btn--email:hover    { background: var(--cabernet); color: var(--parchment); }
.share-rail__btn--copy:hover     { background: var(--parchment); color: var(--navy); }
.share-rail__btn.is-copied       { background: var(--parchment); color: var(--navy); }
.share-rail__toast {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.share-rail__toast::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 7px;
  height: 7px;
  background: var(--navy);
}
.share-rail__btn.is-copied .share-rail__toast { opacity: 1; }
@media (max-width: 1200px) { .share-rail { display: none; } }

/* --------------------------------------------------------------------------
   HOME-PAGE HERO  ·  "Now Verifying" strip
   -------------------------------------------------------------------------- */
.hero__lede:has(+ .hero__verifying) { margin-bottom: calc(var(--sp-4) + 21px); }
.hero__verifying {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  max-width: calc(92% - 5px);
  margin: 0 0 calc(var(--sp-5) + 16px);
  padding-top: calc(var(--sp-4) + 21px);
  border-top: 1.5px solid rgba(196, 163, 90, 0.6);
}
.hero__verifying-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}
.hero__verifying p {
  font-family: var(--serif);
  font-size: 0.97rem;
  line-height: 1.55;
  color: rgba(250, 248, 243, 0.78);
  margin: 0;
  font-style: italic;
  font-weight: 500;
  text-wrap: balance;
}
.hero__verifying p strong {
  color: var(--ivory);
  font-weight: 600;
  font-style: normal;
}
.hero__verifying .the-record-link:hover,
.hero__verifying .the-record-link:focus {
  color: var(--ivory) !important;
  text-shadow: none;
}

/* Cite-suggestion link (issues.html footer callout) */
.cite-suggest-link {
  color: var(--cabernet);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
.cite-suggest-link:hover,
.cite-suggest-link:focus {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   PRINT STYLES
   Optimized for an amicus-brief audience: full URLs for citation, controlled
   page breaks for arguments and authorities, and serif-friendly typography.
   -------------------------------------------------------------------------- */
@media print {
  @page { margin: 0.75in; }

  /* Universal: hide site chrome on every page */
  .site-header, .site-footer, .nav-toggle, .countdown, .scroll-top,
  .cert-fab, .nav, .site-header__countdown, #banner-cd,
  .share-rail { display: none !important; }

  /* ------------------------------------------------------------------
     All rules below apply to every page EXCEPT body.page-cert-pool.
     The cert-pool memo is a print-ready document by design — its
     printed output should match its on-screen rendering exactly.
     ------------------------------------------------------------------ */

  body:not(.page-cert-pool),
  body:not(.page-cert-pool) .hero,
  body:not(.page-cert-pool) .page-head,
  body:not(.page-cert-pool) .section,
  body:not(.page-cert-pool) .section--dark,
  body:not(.page-cert-pool) .section--paper,
  body:not(.page-cert-pool) .toc-card,
  body:not(.page-cert-pool) .callout,
  body:not(.page-cert-pool) .controlling-auth,
  body:not(.page-cert-pool) .contact-block,
  body:not(.page-cert-pool) .card {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  body:not(.page-cert-pool) * { color: black !important; }

  /* Force <details> open */
  body:not(.page-cert-pool) details { display: block !important; }
  body:not(.page-cert-pool) details > *:not(summary) { display: revert !important; }
  body:not(.page-cert-pool) details > summary { display: none !important; }

  /* Typography */
  body:not(.page-cert-pool) { font-size: 11pt; line-height: 1.5; }
  body:not(.page-cert-pool) h1,
  body:not(.page-cert-pool) .page-head__title { font-size: 22pt; line-height: 1.2; }
  body:not(.page-cert-pool) h2 { font-size: 16pt; line-height: 1.25; }
  body:not(.page-cert-pool) h3 { font-size: 13pt; line-height: 1.3; }
  body:not(.page-cert-pool) p,
  body:not(.page-cert-pool) li,
  body:not(.page-cert-pool) blockquote { font-size: 11pt; }

  /* Links */
  body:not(.page-cert-pool) a,
  body:not(.page-cert-pool) a:visited {
    color: black !important;
    text-decoration: underline;
  }

  /* Expand external URLs after the link text */
  body:not(.page-cert-pool) a[href^="http"]::after,
  body:not(.page-cert-pool) a[href^="https"]::after {
    content: " <" attr(href) ">";
    font-family: var(--sans);
    font-size: 8.5pt;
    font-weight: 400;
    font-style: normal;
    color: #444 !important;
    word-break: break-all;
  }
  body:not(.page-cert-pool) a[href^="#"]::after,
  body:not(.page-cert-pool) a[href^="mailto:"]::after,
  body:not(.page-cert-pool) a[href^="tel:"]::after,
  body:not(.page-cert-pool) a[href$=".pdf"]::after,
  body:not(.page-cert-pool) .nav a::after,
  body:not(.page-cert-pool) .site-footer a::after { content: ""; }

  /* Page-break control */
  body:not(.page-cert-pool) h1,
  body:not(.page-cert-pool) h2,
  body:not(.page-cert-pool) h3,
  body:not(.page-cert-pool) h4,
  body:not(.page-cert-pool) h5,
  body:not(.page-cert-pool) h6,
  body:not(.page-cert-pool) .argument__num,
  body:not(.page-cert-pool) .argument__title,
  body:not(.page-cert-pool) .controlling-auth__label,
  body:not(.page-cert-pool) .controlling-auth__cite {
    page-break-after: avoid;
    break-after: avoid;
  }
  body:not(.page-cert-pool) .argument,
  body:not(.page-cert-pool) .callout,
  body:not(.page-cert-pool) .controlling-auth,
  body:not(.page-cert-pool) .toc-card,
  body:not(.page-cert-pool) .page-head__reflex,
  body:not(.page-cert-pool) .card,
  body:not(.page-cert-pool) figure,
  body:not(.page-cert-pool) blockquote,
  body:not(.page-cert-pool) .contact-block {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  body:not(.page-cert-pool) p,
  body:not(.page-cert-pool) li { orphans: 3; widows: 3; }

  /* Trim screen-only spacing */
  body:not(.page-cert-pool) .section { padding: 0.5em 0 !important; }
  body:not(.page-cert-pool) .container,
  body:not(.page-cert-pool) .container--narrow { max-width: none !important; padding: 0 !important; }
  body:not(.page-cert-pool) .argument { margin-top: 1.25em; }

  /* Buttons read as plain links */
  body:not(.page-cert-pool) .btn { padding: 0 !important; background: none !important; border: none !important; }

  /* ------------------------------------------------------------------
     CERT-POOL MEMO  ·  print = screen
     Hide only the on-screen action bar + the page-level shell; let the
     memo paper render at its full design size.
     ------------------------------------------------------------------ */
  .page-cert-pool .memo-actions,
  .page-cert-pool .memo-stage::before,
  .page-cert-pool .memo-stage__inner > :not(.memo-paper) { display: none !important; }
  .page-cert-pool .memo-stage,
  .page-cert-pool .memo-stage__inner { background: white !important; padding: 0 !important; margin: 0 !important; }
  .page-cert-pool .memo-paper { box-shadow: none !important; margin: 0 auto !important; }
}
