/* ORIVEGA Auto Gear — Responsive UI patch V2.3 (TASK-007, staging only)
   Additive overrides loaded AFTER editorial.css and commerce-v22.css.
   Palette: white / blue (primary #1a5fb4), navy text (#0f2a4a).
   Amber (#ffc26b) is kept only as a small accent, not as the primary action color.
   Preserves all existing classes, ids, and JS hooks. No products, prices,
   reviews, images, or affiliate links are added by this file. */

:root{
  --blue:#1a5fb4;
  --blue-dark:#144a8c;
  --blue-soft:#e8f1fb;
  --ink:#0f2a4a;
  --accent:#1a5fb4;
  --gold:#ffc26b;
}

/* Prevent page-level horizontal overflow; tables keep their own contained scroll. */
html,body{overflow-x:clip}
@supports not (overflow:clip){html,body{overflow-x:hidden}}

/* ---- White/blue header ---- */
.mast{background:#fff;color:var(--ink);border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(15,42,74,.04)}
.mast .brand{color:var(--ink)}
.mast .brand small{color:var(--blue)}
.mast nav{border-top:1px solid var(--line)}
.mast .tabs a{color:var(--ink)}
.mast .tabs a:hover,.mast .tabs a[aria-current=page]{border-color:var(--blue);color:var(--blue)}
.global-search button,.menu-toggle{background:var(--blue);color:#fff}
.global-search button:hover,.menu-toggle:hover{background:var(--blue-dark)}
.global-search input:focus,.menu-toggle:focus-visible{outline-color:var(--blue)}
a:focus-visible{outline-color:var(--blue)}

/* ---- Buttons / links ---- */
.discover-link{color:var(--blue)}
.og-save{background:var(--blue-soft);color:var(--ink)}
.og-save[aria-pressed=true]{background:#cfe3f8}
.feature{border-top-color:var(--blue)}
.feature .label{color:#9ec3ea}

/* ---- Touch targets: every nav link and button is at least 44px tall ---- */
.mast .tabs a,.discover .discovery-tabs a,.footer nav a{min-height:44px;display:inline-flex;align-items:center}
.footer nav a{padding:6px 4px}
button,.global-search button,.menu-toggle{min-height:44px}

/* ---- Footer disclosure ---- */
.disclosure{border-top:1px solid #ffffff26;padding:14px 0;color:#c0ccda;font-size:.875rem;line-height:1.6}
.disclosure strong{color:#eff4fb;font-weight:700}

/* ---- Comparison table: visible scroll affordance, sticky first column kept ---- */
.og-compare-scroll{scrollbar-width:thin}
.og-compare-scroll.is-scrolled{box-shadow:inset -12px 0 12px -12px rgba(15,42,74,.35)}

/* ---- Empty states (reusable components, no product data) ---- */
.empty-state{padding:28px 24px;border:1px dashed #8a9aae;border-radius:10px;background:#fff;color:var(--muted);text-align:left}
.empty-state h3{margin:0 0 .4em;color:var(--ink)}
.empty-state p:last-child{margin-bottom:0}
.compare-empty{padding:20px;border:1px dashed #8a9aae;border-radius:10px;background:#fff;color:var(--muted)}

/* ---- Product detail: specs stack cleanly on narrow screens ---- */
@media(max-width:480px){
  .specs{grid-template-columns:1fr}
  .specs dt{border-bottom:0;padding-bottom:2px}
  .specs dd{padding-top:0}
}

/* ---- Breakpoints ---- */

/* 1440px and wider: roomier container, slightly larger display type. */
@media(min-width:1440px){
  .wrap{width:min(1200px,calc(100% - 48px))}
  h1{font-size:clamp(2.6rem,4.5vw,4.6rem)}
}

/* 1024–1439px: desktop layout as designed (3-col grid, 2-col intro). */
@media(min-width:1024px){
  .grid{grid-template-columns:repeat(3,1fr)}
  .intro{grid-template-columns:1.8fr 1fr}
}

/* 768–1023px (tablet): 2-col grid, intro stacks, filters stay 2-col. */
@media(min-width:768px) and (max-width:1023px){
  .intro{grid-template-columns:1fr}
  .grid{grid-template-columns:repeat(2,1fr)}
  .discover .filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .feature{padding:24px}
}

/* 390–767px (large phones / small tablets): 1-col grid and filters. */
@media(max-width:767px){
  .intro{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .discover .filters{grid-template-columns:1fr}
  h1{font-size:clamp(2.2rem,8vw,3rem)}
  .dek{font-size:1.05rem}
  .footer{flex-direction:column}
}

/* 360–389px (small phones): single column everywhere, no cramped 2-col filters. */
@media(max-width:390px){
  .wrap{width:calc(100% - 24px)}
  .discover .filters{grid-template-columns:1fr}
  .discover .discovery-tabs{grid-template-columns:1fr 1fr;gap:6px}
  .discover .discovery-tabs a{font-size:.88rem;padding:8px 9px;line-height:1.25}
  .mast .tabs{grid-template-columns:1fr 1fr}
  .mast .tabs a{padding:10px 8px;min-height:44px}
  .tile{padding:18px}
  .feature{padding:18px}
  .og-spec-table th,.og-spec-table td{padding:8px;min-width:140px}
  .og-spec-table th:first-child{min-width:100px;max-width:100px}
  .specs dt,.specs dd{padding:9px 12px}
}

/* Reduced motion: no smooth scrolling or transitions from this patch. */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
