/* ============================================================
   PADDOCK GARAGE: FLOATING GLASS SYSTEM
   Ported from the ACC glass spec: three depth-graded elevations
   (e0 recedes, e1 rests, e2 commands), dual inner bevels, film
   grain, one command surface per view. Adapted to the Paddock
   palette: ignition orange is the command ring.
   Loads after each page's inline styles; the cascade does the
   restyle so page copy is never touched.
   ============================================================ */

:root{
  --page-bg: none;                    /* each page sets its plate */
  --g-black:  #05070D;
  --g-fill-1: rgba(13, 18, 32, 0.58);   /* e1 resting glass  */
  --g-fill-0: rgba(10, 14, 25, 0.36);   /* e0 receding glass */
  --g-fill-2: rgba(13, 18, 32, 0.66);   /* e2 command glass  */
  --hairline:        rgba(229, 231, 235, 0.10);
  --hairline-strong: rgba(229, 231, 235, 0.20);
  --hairline-soft:   rgba(229, 231, 235, 0.06);
  --bevel-top:    inset 0 1px 0 0 rgba(229, 231, 235, 0.10);
  --bevel-bottom: inset 0 -1px 0 0 rgba(0, 0, 0, 0.35);
  --drop-1: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --drop-2: 0 36px 90px -30px rgba(0, 0, 0, 0.92);
  --ring-ignition: 0 0 0 1px rgba(244, 81, 30, 0.22);
  --glow-ignition: 0 18px 70px -18px rgba(244, 81, 30, 0.30);
  --dur: 200ms;
  --ease: cubic-bezier(.2,.7,.25,1);

  /* retune the shared page tokens onto glass */
  --surface-0: var(--g-black);
  --surface-1: var(--g-fill-1);
  --surface-2: rgba(19, 26, 44, 0.42);
  --surface-3: rgba(255, 255, 255, 0.05);
  --s0: var(--g-black); --s1: var(--g-fill-1);
  --s2: rgba(19,26,44,.42); --s3: rgba(255,255,255,.05);
  --border: var(--hairline);
  --border-strong: var(--hairline-strong);
  --bd: var(--hairline); --bds: var(--hairline-strong);
  --shadow: var(--drop-1);
}

/* ---------- backdrop: plate, scrim, vignette ---------- */
html{ background: var(--g-black); }
body{ background: var(--g-black) !important; }
body::before{
  content:''; position:fixed; inset:0; z-index:0;
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgba(5,7,13,0) 40%, rgba(5,7,13,.55) 100%),
    linear-gradient(180deg, rgba(5,7,13,.66) 0%, rgba(5,7,13,.48) 30%, rgba(5,7,13,.82) 72%, var(--g-black) 100%),
    var(--page-bg);
  background-size: cover, cover, cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: var(--g-black);
}
/* ~4.5% film grain: kills gradient banding so the field reads
   photographic, not rendered (ACC Motion Spec §2) */
body::after{
  content:''; position:fixed; inset:-50%; z-index:2; pointer-events:none;
  opacity:.045;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > *{ position:relative; z-index:3; }

/* ============================================================
   ELEVATIONS
   ============================================================ */

/* e1: resting glass, the workhorse container */
.card, .tile, .kpi, .stat-tile,
details.topic,
.tbl-wrap, .signal, .budget, .rec,
.illo-photo-frame, .quicknav-wrap{
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 38%),
    var(--g-fill-1);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: var(--bevel-top), var(--bevel-bottom), var(--drop-1);
}

/* keep the brand accent bars riding on top of the glass */
.tile, .kpi, .stat-tile{ border-top: 3px solid var(--c, var(--hairline-strong)); }
.card{ border-left-width: 1px; }
a.card, .rec{ border-left: 4px solid var(--c, var(--ignition, #F4511E)); }

/* bare tables on editorial pages become glass slabs */
.tbl-wrap{ padding: 6px 14px; }
.tbl-wrap table{ margin: 6px 0; }
th, td{ border-bottom: 1px solid var(--hairline-soft); }
thead th{ border-bottom: 1px solid var(--hairline); }

/* e0: receding glass, nested context, callouts, code, chips */
.nugget, .flag, .good, .note, .val, .drill td,
.meta-line, .legend, .tools{
  background: var(--g-fill-0);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
}
.nugget{ border: 1px dashed var(--hairline-strong); }
.flag, .good, .note{ border-radius: 0 10px 10px 0; }
.pill, .tag{
  background: rgba(19,26,44,.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-soft);
}

/* e2: command surface, ONE per view, ignition ring */
a.card[href="/case-study/"],
.glass-e2{
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 42%),
    var(--g-fill-2);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  border-color: rgba(244, 81, 30, 0.40);
  box-shadow:
    inset 0 1px 0 0 rgba(229,231,235,.12),
    inset 0 -1px 0 0 rgba(0,0,0,.35),
    var(--ring-ignition), var(--glow-ignition), var(--drop-2);
}

/* ---------- interaction: glass lifts, never slides ---------- */
a.card, tr.clk, button, .tile, .kpi, .stat-tile{
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
a.card:hover{
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
  box-shadow: var(--bevel-top), var(--bevel-bottom), var(--drop-2);
}
a.card[href="/case-study/"]:hover{
  border-color: rgba(244,81,30,.6);
  box-shadow: inset 0 1px 0 0 rgba(229,231,235,.12), inset 0 -1px 0 0 rgba(0,0,0,.35),
    0 0 0 1px rgba(244,81,30,.35), 0 24px 90px -18px rgba(244,81,30,.38), var(--drop-2);
}

/* ---------- page furniture ---------- */
.rule, hr{ background: linear-gradient(90deg, var(--hairline-strong), rgba(229,231,235,0)); border:0; height:1px; }
footer{ border-top: 1px solid var(--hairline-soft) !important; }
.theme-toggle{ display:none !important; }   /* the site commits to the dark editorial look */

/* the model-y hero keeps its photograph; seat it into the field */
.hero{ border-bottom: 1px solid var(--hairline-soft); }

/* deep-page readability: the long-form doc floats on one wide slab */
.container{ position:relative; }

/* ---------- honesty fallbacks ---------- */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))){
  .card,.tile,.kpi,.stat-tile,details.topic,.tbl-wrap,.signal,.budget,.rec,
  .illo-photo-frame,.quicknav-wrap{ background:#10162A; }
  .nugget,.flag,.good,.note,.val{ background:#0C1120; }
}
@media (prefers-reduced-motion: reduce){
  a.card, tr.clk, button, .tile, .kpi, .stat-tile{ transition:none; }
  a.card:hover{ transform:none; }
}

/* ============================================================
   NAVBAR: ported from the paddock20.com header spec
   (60px, blur 24/160, #1A2740 hairline), hamburger top right
   ============================================================ */
body{ padding-top:60px; }
.pg-nav{ position:fixed; top:0; left:0; right:0; z-index:60; height:60px;
  background:rgba(7,11,20,.92);
  -webkit-backdrop-filter:blur(24px) saturate(160%); backdrop-filter:blur(24px) saturate(160%);
  border-bottom:1px solid rgba(26,39,64,.95); }
.pg-nav-inner{ max-width:1120px; margin:0 auto; height:100%; padding:0 20px;
  display:flex; align-items:center; gap:16px; }
.pg-nav-logo{ display:flex; align-items:center; min-height:44px; }
.pg-nav-logo img{ height:26px; width:auto; display:block; }
.pg-nav-sp{ flex:1; }
.pg-menu-t{ position:absolute; opacity:0; pointer-events:none; }
.pg-burger{ width:44px; height:44px; display:flex; flex-direction:column;
  justify-content:center; align-items:center; gap:5px; cursor:pointer; border-radius:10px; }
.pg-burger span{ display:block; width:20px; height:2px; background:#F0F2F5; border-radius:2px;
  transition:transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.pg-burger:hover span{ background:#F4511E; }
.pg-menu-t:checked ~ .pg-burger span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.pg-menu-t:checked ~ .pg-burger span:nth-child(2){ opacity:0; }
.pg-menu-t:checked ~ .pg-burger span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
.pg-menu{ position:fixed; top:68px; right:16px; min-width:236px; display:none;
  flex-direction:column; padding:10px; z-index:59;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 40%), rgba(13,18,32,.92);
  -webkit-backdrop-filter:blur(28px) saturate(140%); backdrop-filter:blur(28px) saturate(140%);
  border:1px solid var(--hairline); border-radius:16px;
  box-shadow:var(--bevel-top), var(--bevel-bottom), var(--drop-2); }
.pg-menu-t:checked ~ .pg-menu{ display:flex; }
.pg-menu a{ display:flex; align-items:center; min-height:44px; padding:0 14px;
  font-weight:700; font-size:.78rem; letter-spacing:.1em; text-transform:uppercase;
  color:#F0F2F5; text-decoration:none; border-radius:10px; }
.pg-menu a:hover{ background:rgba(255,255,255,.06); color:#F4511E; }
.pg-menu a.ext{ color:var(--ink-faint, #8A93A0); border-top:1px solid var(--hairline-soft); margin-top:6px; }

/* ============================================================
   FOOTER: ported from the paddock20.com footer design
   ============================================================ */
.pg-footer{ margin-top:76px; background:rgba(7,11,20,.86);
  -webkit-backdrop-filter:blur(24px) saturate(160%); backdrop-filter:blur(24px) saturate(160%);
  border-top:1px solid rgba(255,255,255,.08) !important; padding:64px 20px 40px;
  font-family:Arial,"Helvetica Neue",Helvetica,sans-serif; }
.pg-footer-inner{ max-width:1120px; margin:0 auto; }
.pg-f-cols{ display:flex; flex-wrap:wrap; align-items:flex-start;
  justify-content:space-between; gap:44px; margin-bottom:52px; }
.pg-f-brand{ display:flex; flex-direction:column; gap:1.1rem; max-width:22rem; }
.pg-f-brand p{ font-size:.88rem; line-height:1.72; color:rgba(255,255,255,.48);
  max-width:19rem; margin:0; }
.pg-f-nav{ display:flex; flex-direction:column; gap:.2rem; }
.pg-f-nav a{ display:flex; align-items:center; min-height:44px; font-weight:700;
  font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  color:rgba(255,255,255,.36); text-decoration:none; transition:color .2s; }
.pg-f-nav a:hover{ color:#fff; }
.pg-f-h{ font-weight:700; font-size:.62rem; letter-spacing:.26em; text-transform:uppercase;
  color:rgba(255,255,255,.22); margin:0 0 .35em; }
.pg-f-col{ display:flex; flex-direction:column; gap:.1rem; }
.pg-f-col a{ display:flex; align-items:center; gap:.55rem; min-height:44px;
  font-weight:600; font-size:.78rem; color:rgba(255,255,255,.38);
  text-decoration:none; transition:color .2s; }
.pg-f-col a:hover{ color:#fff; }
.pg-f-connect a{ font-weight:700; font-size:.72rem; letter-spacing:.14em;
  text-transform:uppercase; color:rgba(255,255,255,.55); }
.pg-f-community a{ font-weight:700; font-size:.65rem; letter-spacing:.12em;
  text-transform:uppercase; color:rgba(255,255,255,.25); }
.pg-f-community a:hover{ color:rgba(255,255,255,.55); }
.pg-f-row{ display:flex; flex-wrap:wrap; align-items:flex-start; gap:2.5rem;
  padding:2.4rem 0; border-top:1px solid rgba(255,255,255,.05);
  border-bottom:1px solid rgba(255,255,255,.05); margin-bottom:1.4rem; }
.pg-f-bottom{ display:flex; flex-wrap:wrap; align-items:center;
  justify-content:space-between; gap:1rem; font-size:.8rem;
  color:rgba(255,255,255,.22); letter-spacing:.04em; }
.pg-f-live{ display:flex; align-items:center; gap:.6rem; }
.pg-f-live i{ width:7px; height:7px; border-radius:50%; background:#4ade80;
  box-shadow:0 0 6px #4ade80; display:inline-block; }
.pg-f-legend{ margin-top:1.4rem; font-size:.72rem; line-height:1.7;
  color:rgba(255,255,255,.2); max-width:60rem; }
.pg-f-legend a{ color:rgba(255,255,255,.4); text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.14); }

/* ============================================================
   REVIEW-PANEL FIXES
   ============================================================ */
/* hover was wiping the left accent bar: strengthen only three sides */
a.card:hover{ border-top-color:var(--hairline-strong);
  border-right-color:var(--hairline-strong); border-bottom-color:var(--hairline-strong); }
/* nested tables do not need their own blur pass (perf on the 1MB page) */
.tbl-wrap{ -webkit-backdrop-filter:none; backdrop-filter:none;
  background:rgba(13,18,32,.5); }
/* AA contrast: dark ink on ignition buttons */
button{ color:#1B0E05; }
.pg-burger{ color:inherit; }
/* keyboard parity with hover states */
a:focus-visible, button:focus-visible, summary:focus-visible,
.pg-burger:focus-visible, [tabindex]:focus-visible{
  outline:2px solid #F4511E; outline-offset:2px; border-radius:10px; }
