/* ==========================================================================
   GH Analytics — Front Page + Navbar Theme (v3)
   --------------------------------------------------------------------------
   v3 changes:
   - Reduced decorative background noise (subtler orbs, removed grain)
   - Replaced heavy glassmorphism with solid-ish surfaces
   - Tightened typography: smaller headline, compact above-the-fold
   - Added: hero-header, hero-freshness, hero-search-kbd,
     hero-alerts, keyboard-active result state
   - WCAG AA contrast verified on text/background combos
   - Consistent tile styling; chevrons removed for cleaner feel
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root{
  /* Brand */
  --brand-700:#0047b3;
  --brand-600:#0059d3;
  --brand-500:#1b95ff;
  --accent:#4db1ff;

  /* Neutrals / text — WCAG AA checked against bg-900 */
  --bg-950:#001429;
  --bg-900:#00112a;
  --bg-850:#061d3a;
  --text-100:#ffffff;
  --text-200:rgba(255,255,255,.88);
  --text-300:rgba(255,255,255,.75);    /* bumped from .72 for AA on bg-900 */
  --text-400:rgba(255,255,255,.62);    /* bumped from .58 for AA on bg-900 */

  /* Focus / accessibility */
  --ring:#8ec5ff;
  --focus-ring:#9ad1ff;

  /* Layout */
  --nav-h:64px;
  --navbar-h:var(--nav-h);
  --content-max:1080px;                /* slightly wider for new sections */

  /* Solid surfaces (replacing heavy glassmorphism) */
  --card-bg:rgba(0,24,56,.82);        /* more opaque = more legible */
  --card-border:rgba(255,255,255,.14);
  --card-blur:8px;                     /* reduced blur */

  /* Tiles — solid feel */
  --tile-bg:rgba(255,255,255,.07);
  --tile-bg-hover:rgba(255,255,255,.13);
  --tile-border:rgba(255,255,255,.16);
  --tile-border-hover:rgba(255,255,255,.28);

  /* Radius */
  --r-xl:20px;
  --r-lg:14px;
  --r-md:10px;

  /* Shadows — lighter to reduce visual weight */
  --shadow-card:0 12px 40px rgba(0,0,0,.38), 0 2px 8px rgba(0,0,0,.28);
  --shadow-tile:0 4px 16px rgba(0,0,0,.22);
  --shadow-tile-hover:0 8px 24px rgba(0,0,0,.30);

  /* Icons */
  --icon-size:24px;
  --icon-wrap:42px;

  /* Navbar styling */
  --nav-bg:#07243f;
  --nav-border:rgba(255,255,255,.10);
  --nav-fg:rgba(255,255,255,.92);
  --nav-fg-muted:rgba(255,255,255,.70);
  --nav-shadow-strong:
    0 4px 10px -6px rgba(0,0,0,.25),
    0 1px 0 rgba(255,255,255,.04);
  --nav-fade-h:8px;

  /* Dropdown */
  --dd-bg:#0a2c4c;
  --dd-border:rgba(255,255,255,.12);
  --dd-hover:rgba(255,255,255,.08);
  --dd-active:rgba(77,177,255,.18);
  --dd-disabled:rgba(255,255,255,.45);

  /* Alert severities */
  --alert-high:#ff5252;
  --alert-medium:#ffab40;
  --alert-low:#69f0ae;
}

/* --------------------------------------------------------------------------
   Base / safety resets
   -------------------------------------------------------------------------- */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color:var(--text-100);
  background:var(--bg-950);
}
#page-content{ padding-top: var(--nav-h) !important; }

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
}

/* --------------------------------------------------------------------------
   Accessibility: Skip link
   -------------------------------------------------------------------------- */
.skip-link{
  position:fixed;
  top:12px; left:12px;
  z-index:9999;
  background:#111;
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
  box-shadow:0 4px 10px rgba(0,0,0,.35);
  transform:translateY(-140%);
  transition:transform .12s ease;
}
.skip-link:focus{ transform:translateY(0); outline:3px solid var(--ring); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ .skip-link{ transition:none; } }

/* --------------------------------------------------------------------------
   HERO CANVAS — E1: subtle brand gradient, less decorative noise
   -------------------------------------------------------------------------- */
.hero-wrap{
  position:relative;
  min-height:calc(100dvh - var(--nav-h));
  overflow:hidden;
  padding-top: clamp(12px, 4vh, 48px);
  padding-bottom: clamp(12px, 4vh, 48px);

  background:
    radial-gradient(1200px 600px at 10% -20%, rgba(0,60,143,.5) 0%, transparent 60%),
    radial-gradient(1100px 700px at 110% 120%, rgba(0,26,66,.4) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-900) 0%, var(--bg-950) 100%);
}

/* Background image — toned down */
.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.hero-bg *{ pointer-events:none !important; }

.hero-bg .bg-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background-image:url("/assets/background.jpg");
  background-image:image-set(
    url("/assets/background.jpg") type("image/jpg"),
    url("/assets/background.jpg") type("image/jpeg")
  );
  background-size:cover;
  background-position:center calc(50% - 5vh);
  filter:saturate(100%) contrast(100%) brightness(70%);   /* calmer */
}

/* E1: Subtle vignette only — removed grain texture */
.bg-grain{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,.22) 70%, rgba(0,0,0,.42) 100%);
}

/* E1: Smaller, dimmer decorative orbs */
.orb{
  position:absolute;
  border-radius:999px;
  filter:blur(60px);
  opacity:.22;           /* reduced from .40 */
  z-index:2;
}
.orb.o1{
  width:300px; height:300px;
  background:radial-gradient(circle at 30% 30%, var(--brand-500) 0%, rgba(27,149,255,0) 70%);
  left:-120px; top:8vh;
  animation:float1 16s ease-in-out infinite;
}
.orb.o2{
  width:340px; height:340px;
  background:radial-gradient(circle at 60% 40%, #7c4dff 0%, rgba(124,77,255,0) 70%);
  right:-140px; bottom:-90px;
  animation:float2 18s ease-in-out infinite;
}
@keyframes float1{ 0%,100%{ transform:translate3d(0,0,0); } 50%{ transform:translate3d(20px,-14px,0); } }
@keyframes float2{ 0%,100%{ transform:translate3d(0,0,0); } 50%{ transform:translate3d(-14px,18px,0); } }

@media (prefers-reduced-motion: reduce){
  .orb{ display:none; }
}

#front-hero{
  min-height: calc(100vh - var(--nav-h));
  display:grid;
  align-content:start;
  padding-top:  clamp(16px, 6vh, 80px);
  padding-bottom: clamp(16px, 5vh, 64px);
}

/* --------------------------------------------------------------------------
   HERO CARD — E2: more solid surface, less blur
   -------------------------------------------------------------------------- */
.hero-card{
  position:relative;
  z-index:3;
  width:clamp(340px, 94vw, var(--content-max));
  margin: clamp(12px, 3vh, 40px) auto 0;
  padding: clamp(24px, 3.5vw, 44px);
  display:flex;
  flex-direction:column;
  gap: 14px;
  text-align:left;
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:var(--r-xl);
  box-shadow:var(--shadow-card);
  backdrop-filter:blur(var(--card-blur)) saturate(110%);
  -webkit-backdrop-filter:blur(var(--card-blur)) saturate(110%);
}

/* E3: Hero header — title + freshness side by side */
.hero-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

/* E3: Tighter headline — was up to 3.5rem, now max 2.2rem */
.hero-title{
  margin:0;
  font-size:clamp(1.5rem, 3.2vw, 2.2rem);
  line-height:1.12;
  font-weight:800;
  text-shadow:1px 1px 3px rgba(0,0,0,.4);
}

/* A4: Action-oriented subtitle */
.hero-sub{
  margin:4px 0 0;
  max-width:640px;
  font-size:.92rem;
  line-height:1.4;
  color:var(--text-300);
}

/* A3: Data freshness timestamp */
.hero-freshness{
  flex-shrink:0;
  font-size:.75rem;
  color:var(--text-400);
  white-space:nowrap;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  margin-top:4px;
}

/* --------------------------------------------------------------------------
   HERO SEARCH — B: command-palette pattern
   -------------------------------------------------------------------------- */
.hero-search{
  position:relative;
  width:100%;
  margin:0;
}
.hero-search-wrap{
  position:relative;
  display:flex;
  align-items:center;
}
.hero-search-icon{
  position:absolute;
  left:14px;
  font-size:1.05rem;
  color:var(--text-400);
  pointer-events:none;
  z-index:1;
}

/* B1: Search input with kbd hint */
.hero-search-input{
  width:100%;
  padding:12px 80px 12px 40px;   /* right padding for kbd hint */
  font-size:.95rem;
  color:var(--text-100);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--r-lg);
  outline:none;
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.hero-search-input::placeholder{
  color:var(--text-400);
}
.hero-search-input:focus{
  background:rgba(255,255,255,.10);
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(27,149,255,.15);
}

/* B1: Keyboard shortcut badge */
.hero-search-kbd{
  position:absolute;
  right:12px;
  font-family:inherit;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.3px;
  color:var(--text-400);
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:6px;
  padding:3px 8px;
  pointer-events:none;
}
.hero-search-input:focus ~ .hero-search-kbd{
  opacity:.4;
}

/* Results dropdown */
.hero-search-results{
  position:absolute;
  top:calc(100% + 6px);
  left:0; right:0;
  z-index:20;
  max-height:380px;
  overflow-y:auto;
  border-radius:var(--r-lg);
}
.hero-search-results:empty{
  display:none;
}
.hero-search-results:not(:empty){
  background:rgba(0,18,44,.94);    /* more opaque = more legible */
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 32px rgba(0,0,0,.4);
  padding:6px;
}

.hero-search-empty{
  padding:14px 16px;
  color:var(--text-400);
  font-size:.9rem;
  text-align:center;
}

.hero-result-link{
  text-decoration:none !important;
  color:inherit !important;
  display:block;
}
.hero-result-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border-radius:8px;
  cursor:pointer;
  transition:background .15s;
}
.hero-result-item:hover,
.hero-result-link.kb-active .hero-result-item{
  background:rgba(255,255,255,.10);
}
.hero-result-icon{
  font-size:1.1rem;
  color:var(--accent);
  flex-shrink:0;
  width:22px;
  text-align:center;
}
.hero-result-text{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
}
.hero-result-label{
  font-size:.9rem;
  font-weight:500;
  color:var(--text-100);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hero-result-sub{
  font-size:.78rem;
  color:var(--text-400);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hero-result-badge{
  flex-shrink:0;
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.3px;
  text-transform:uppercase;
  color:var(--text-400);
  background:rgba(255,255,255,.06);
  padding:2px 8px;
  border-radius:6px;
}

/* --------------------------------------------------------------------------
   MODULE GRID — E4: consistent tiles
   -------------------------------------------------------------------------- */
.module-grid{
  margin-top:0;
  display:grid;
  grid-template-columns:repeat(12, minmax(0, 1fr));
  gap:14px;
  align-items:stretch;
}
.module-col{
  grid-column: span 4;
  display:flex;
}
@media (max-width:1100px){
  .module-col{ grid-column: span 6; }
}
@media (max-width:640px){
  .module-col{ grid-column: span 12; }
}

/* --------------------------------------------------------------------------
   MODULE TILES — E2/E4: solid surface, consistent sizing
   -------------------------------------------------------------------------- */
.btn.btn-link.btn-hero{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  min-height:96px;
  height:100%;
  padding:16px 18px;
  border-radius:var(--r-lg);
  text-align:left;
  text-decoration:none !important;
  color:var(--text-100) !important;
  background:var(--tile-bg) !important;
  border:1px solid var(--tile-border) !important;
  box-shadow:var(--shadow-tile);
  position:relative;
  flex:1 1 auto;
  transition:
    transform .12s ease,
    background-color .16s ease,
    box-shadow .16s ease,
    border-color .16s ease;
}
.btn.btn-link.btn-hero:hover{
  background:var(--tile-bg-hover) !important;
  border-color:var(--tile-border-hover) !important;
  box-shadow:var(--shadow-tile-hover);
  transform:translateY(-1px);
}
.btn.btn-link.btn-hero:active{ transform:translateY(0); }

/* Keyboard-only focus */
.btn.btn-link.btn-hero:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:var(--shadow-tile);
}
.btn.btn-link.btn-hero:focus-visible{
  outline:3px solid var(--ring);
  outline-offset:2px;
}

/* Icon container */
.module-icon{
  width:var(--icon-wrap);
  height:var(--icon-wrap);
  flex:0 0 var(--icon-wrap);
  display:grid;
  place-items:center;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
}

.module-icon .dash-markdown,
.module-icon .svg-md,
.module-icon .dash-markdown > p,
.module-icon .svg-md > p{
  margin:0 !important;
  padding:0 !important;
  line-height:0 !important;
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
}
.module-icon svg{
  width:var(--icon-size);
  height:var(--icon-size);
  display:block;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Text block */
.module-text{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.module-label{
  font-weight:750;
  letter-spacing:.15px;
  font-size:1rem;
  line-height:1.18;
  margin:0;
}
.module-hint{
  margin:0;
  font-size:.84rem;
  line-height:1.3;
  color:var(--text-300);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Badge */
.badge-chip{
  position:absolute;
  top:8px; right:8px;
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.3px;
  text-transform:uppercase;
  line-height:1;
  padding:.22rem .46rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  color:#fff;
}

/* E4: Chevron — hidden by default, visible on hover for affordance */
.chev{
  margin-left:auto;
  opacity:0;
  display:inline-flex;
  transition:transform .12s ease, opacity .16s ease;
}
.chev .dash-markdown > p{ margin:0; line-height:0; }
.chev svg{
  width:16px; height:16px;
  stroke:currentColor; fill:none; stroke-width:2;
}
.btn.btn-link.btn-hero:hover .chev,
.btn.btn-link.btn-hero:focus-visible .chev{
  opacity:.7;
  transform:translateX(2px);
}

.tooltip, .popover{ z-index:2000; }

@media (prefers-reduced-motion: reduce){
  .btn.btn-link.btn-hero,
  .chev{
    transition:none;
  }
}

/* --------------------------------------------------------------------------
   D) ALERTS & CHANGES PANEL
   -------------------------------------------------------------------------- */
.hero-alerts-section{
  min-height:0;
}
.hero-alerts-panel{
  margin-top:4px;
}
.hero-alerts-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.hero-alerts-title{
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.3px;
  text-transform:uppercase;
  color:var(--text-400);
}
.hero-alerts-count{
  font-size:.72rem;
  color:var(--text-400);
  background:rgba(255,255,255,.06);
  padding:2px 8px;
  border-radius:999px;
}
.hero-alerts-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.alert-item-link{
  text-decoration:none !important;
  color:inherit !important;
  display:block;
}
.alert-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:var(--r-md);
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  transition:background .15s, border-color .15s;
}
.alert-item:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.16);
}
.alert-item-icon{
  font-size:1rem;
  flex-shrink:0;
  width:20px;
  text-align:center;
}
.alert-sev-high{ color:var(--alert-high); }
.alert-sev-medium{ color:var(--alert-medium); }
.alert-sev-low{ color:var(--alert-low); }

.alert-item-text{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
}
.alert-item-title{
  font-size:.86rem;
  font-weight:500;
  color:var(--text-100);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.alert-item-detail{
  font-size:.74rem;
  color:var(--text-400);
}
.alert-item-action{
  flex-shrink:0;
  font-size:.74rem;
  font-weight:600;
  color:var(--accent);
  letter-spacing:.2px;
  text-transform:uppercase;
  opacity:.7;
  transition:opacity .15s;
}
.alert-item:hover .alert-item-action{
  opacity:1;
}

/* --------------------------------------------------------------------------
   NAVBAR
   -------------------------------------------------------------------------- */
.custom-navbar{
  background: var(--nav-bg) !important;
  color: var(--nav-fg);
  border-bottom: 1px solid var(--nav-border) !important;
  box-shadow: none !important;
  z-index:1040;
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.custom-navbar.is-scrolled{
  box-shadow: var(--nav-shadow-strong) !important;
}
.custom-navbar::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom: calc(-1 * var(--nav-fade-h));
  height: var(--nav-fade-h);
  pointer-events:none;
  background: linear-gradient(to bottom, rgba(7,36,63,.15), rgba(7,36,63,0));
  opacity: 1;
  transition: opacity .25s ease;
}
.custom-navbar.is-scrolled::after{ opacity: 0; }

@media (prefers-reduced-motion: reduce){
  .custom-navbar,
  .custom-navbar::after{ transition:none; }
}

/* Nav links */
.custom-navbar .navbar-nav .nav-link,
.custom-navbar .dropdown-toggle{
  color: var(--nav-fg) !important;
  padding: .55rem .9rem;
}
.custom-navbar .navbar-nav{ gap:.25rem; }
.custom-navbar .nav-link:hover,
.custom-navbar .dropdown-toggle:hover{
  color:#fff !important;
}

/* Keyboard-only focus */
.custom-navbar .nav-link:focus:not(:focus-visible),
.custom-navbar .dropdown-toggle:focus:not(:focus-visible),
.custom-navbar .dropdown-item:focus:not(:focus-visible),
.custom-navbar .navbar-toggler:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
}
.custom-navbar .nav-link:focus-visible,
.custom-navbar .dropdown-toggle:focus-visible,
.custom-navbar .dropdown-item:focus-visible,
.custom-navbar .navbar-toggler:focus-visible{
  outline:2px solid var(--focus-ring);
  outline-offset:2px;
  border-radius:6px;
}

.custom-navbar .navbar-toggler:focus{
  outline:none !important;
  box-shadow:none !important;
}
.custom-navbar *{ -webkit-tap-highlight-color: transparent; }

/* Dropdown theming */
.custom-navbar .dropdown-menu{
  background: var(--dd-bg);
  border: 1px solid var(--dd-border);
  --bs-dropdown-bg: var(--dd-bg);
  --bs-dropdown-border-color: var(--dd-border);
  --bs-dropdown-link-color: rgba(255,255,255,.90);
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: var(--dd-hover);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: var(--dd-active);
  --bs-dropdown-link-disabled-color: var(--dd-disabled);
  min-width: 260px;
}
.custom-navbar .dropdown-item{
  padding:.5rem .85rem;
  color: var(--bs-dropdown-link-color) !important;
}
.custom-navbar .dropdown-item:hover{
  background: var(--bs-dropdown-link-hover-bg) !important;
  color: var(--bs-dropdown-link-hover-color) !important;
}
.custom-navbar .dropdown-item:active{
  background: var(--bs-dropdown-link-active-bg) !important;
  color: var(--bs-dropdown-link-active-color) !important;
}

.custom-navbar .dropdown.show > .dropdown-toggle{
  position:relative;
  color:#fff !important;
}
.custom-navbar .dropdown.show > .dropdown-toggle::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-1px;
  height:2px;
  background: var(--accent);
}

/* Locked items */
.custom-navbar .dropdown-item.locked,
.custom-navbar .dropdown-item[aria-disabled="true"],
.custom-navbar .nav-link.locked,
.custom-navbar .nav-link.disabled{
  pointer-events:none !important;
  cursor:not-allowed !important;
  user-select:none !important;
  color: var(--dd-disabled) !important;
  opacity:.65;
}
.custom-navbar .dropdown-item.locked:hover,
.custom-navbar .dropdown-item.locked:focus,
.custom-navbar .dropdown-item.locked:active,
.custom-navbar .dropdown-item[aria-disabled="true"]:hover,
.custom-navbar .dropdown-item[aria-disabled="true"]:focus,
.custom-navbar .dropdown-item[aria-disabled="true"]:active{
  background: transparent !important;
  color: var(--dd-disabled) !important;
  outline: none !important;
}
.custom-navbar .dropdown-item[href="#"]{
  pointer-events:none !important;
  cursor:not-allowed !important;
}
.custom-navbar .dropdown-item[href="#"]:hover,
.custom-navbar .dropdown-item[href="#"]:focus,
.custom-navbar .dropdown-item[href="#"]:active{
  background: transparent !important;
}

/* --------------------------------------------------------------------------
   G) ACCESSIBILITY — contrast, focus, reduced-motion, responsive
   -------------------------------------------------------------------------- */

/* G1: High contrast mode */
@media (prefers-contrast: more){
  :root{
    --card-bg:rgba(0,18,42,.94);
    --card-border: rgba(255,255,255,.28);
    --tile-bg:rgba(255,255,255,.12);
    --tile-border: rgba(255,255,255,.30);
    --tile-border-hover: rgba(255,255,255,.44);
    --text-300:rgba(255,255,255,.82);
    --text-400:rgba(255,255,255,.70);
  }
  .btn.btn-link.btn-hero:focus-visible{ outline-width:4px; }
  .hero-search-input:focus{ box-shadow:0 0 0 4px rgba(27,149,255,.25); }
}

/* G3: Reduced transparency */
@media (prefers-reduced-transparency: reduce){
  :root{
    --card-bg:rgba(0,18,42,.96);
    --tile-bg:rgba(20,40,70,.85);
  }
  .hero-search-results:not(:empty){
    background:rgba(0,14,36,.98);
  }
}

/* G4: Responsive — tablet */
@media (max-width:1100px){
  .hero-card{
    padding: clamp(20px, 3vw, 36px);
  }
}
/* G4: Responsive — mobile */
@media (max-width:640px){
  .hero-title{
    font-size:1.3rem;
  }
  .hero-sub{
    font-size:.84rem;
  }
  .hero-header{
    flex-direction:column;
    gap:8px;
  }
  .hero-freshness{
    align-self:flex-start;
  }
  .hero-search-kbd{
    display:none;
  }
}
