/* ============================================================
   FixSupport — style.css
   Design system: "Utilitarian Diagnostics Console"
   Palette : workshop paper + slate ink + steel-blue + blaze-orange
   Type    : Space Grotesk (display) / IBM Plex Sans (body)
             IBM Plex Mono (codes, step numbers, severity tags)
   Grid    : 12-col hairline grid, small radii, flat cards
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Core palette */
  --ink:        #11161d;   /* slate ink */
  --ink-soft:   #273442;   /* softened ink for body prose */
  --paper:      #f4f5f7;   /* workshop paper (page bg) */
  --panel:      #eceef2;   /* recessed panel */
  --card:       #ffffff;
  --grey:       #5b6b7a;   /* cool grey — secondary text */
  --grey-2:     #7b8896;   /* muted */
  --line:       #dbe2e8;   /* hairline */
  --line-2:     #c7d1da;

  /* Brand */
  --steel:      #1f5f8b;   /* primary */
  --steel-700:  #184d72;
  --steel-tint: #e7eff5;
  --blaze:      #ef6c2d;   /* signal / CTA / active */
  --blaze-700:  #d4551a;
  --blaze-tint: #fdeee4;

  /* Severity status dots */
  --sev-critical: #d64545;
  --sev-high:     #e0a100;
  --sev-medium:   #1f5f8b;
  --sev-low:      #2e9e5b;
  --ok:           #2e9e5b;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Radius + shadow + spacing */
  --r-sm: 4px;
  --r:    6px;
  --r-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(17,22,29,.05);
  --shadow:    0 10px 30px -18px rgba(17,22,29,.28);
  --ring: 0 0 0 3px rgba(239,108,45,.4);

  --wrap: 1200px;
  --col-gap: 24px;

  /* Compatibility aliases for inline styles in templates */
  --coral: #d64545;
  --slate: #5b6b7a;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--steel-700); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--blaze); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r) var(--r);
  transition: top .2s ease; font-family: var(--font-mono); font-size: .82rem;
}
.skip-link:focus { top: 0; color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: none; box-shadow: var(--ring); border-radius: var(--r-sm);
}

/* ---------- Monospace labels ---------- */
.mono-code {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .02em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; background: var(--blaze); border-radius: 1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: .72rem 1.3rem; border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap; line-height: 1.1;
}
.btn-primary { background: var(--blaze); color: #fff; }
.btn-primary:hover { background: var(--blaze-700); color: #fff; }
.btn-steel, .btn-dark { background: var(--steel); color: #fff; }
.btn-steel:hover, .btn-dark:hover { background: var(--steel-700); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--steel); color: var(--steel); }
.btn-light { background: var(--card); color: var(--steel); border-color: var(--line-2); }
.btn-light:hover { border-color: var(--steel); color: var(--steel-700); }
.btn-sm { padding: .5rem .95rem; font-size: .84rem; }
.ic, .ic-sm { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 17px; height: 17px; }

/* ============================================================
   TOP BAR / HEADER / NAV
   ============================================================ */
.top-bar { background: var(--ink); color: #c2ccd6; font-size: .78rem; line-height: 1.4; text-align: center; padding: .5rem 1rem; }
.top-bar p { margin: 0; display: inline-flex; gap: .55rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.top-bar .tb-tag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; background: var(--blaze); color: #fff; padding: .08rem .4rem; border-radius: 2px; }
.top-bar .tb-dot { color: var(--grey-2); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,245,247,.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--steel); border-radius: var(--r); color: #fff;
}
.brand-mark .brand-ic { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -.02em; }
.brand-sub { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-2); margin-top: 2px; }

.primary-nav { display: flex; align-items: center; gap: 1rem; }
.primary-nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  color: var(--grey); font-weight: 500; font-size: .92rem;
  padding: .5rem .7rem; border-radius: var(--r-sm); position: relative;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a.is-active { color: var(--ink); }
.primary-nav a.is-active::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .05rem; height: 2px;
  background: var(--blaze); border-radius: 1px;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--steel); color: #fff !important; padding: .5rem .95rem; border-radius: var(--r);
  font-family: var(--font-display); font-weight: 600; font-size: .88rem;
}
.nav-cta:hover { background: var(--steel-700); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle-bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: .2rem; background: var(--card); border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1rem,4vw,2rem) 1.4rem; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .primary-nav a { padding: .8rem .6rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .primary-nav a.is-active::after { display: none; }
  .primary-nav a.is-active { color: var(--blaze); }
  .nav-cta { justify-content: center; margin-top: .7rem; }
}

/* ============================================================
   HERO — light diagnostics console
   ============================================================ */
.hero {
  position: relative;
  background:
    linear-gradient(0deg, var(--paper), var(--paper)),
    repeating-linear-gradient(90deg, transparent, transparent 99px, var(--line) 99px, var(--line) 100px);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2.8rem, 6vw, 4.4rem);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero h1 .accent { color: var(--blaze); }
.hero-sub { color: var(--grey); font-size: 1.1rem; max-width: 44ch; margin-bottom: 1.6rem; }

/* Search console */
.search-console {
  background: var(--card);
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: .4rem .4rem .4rem .2rem; margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .3rem;
  box-shadow: var(--shadow-sm);
}
.search-console .sc-icon { color: var(--steel); padding-left: .8rem; display: grid; place-items: center; }
.search-console input {
  flex: 1; background: transparent; border: 0; color: var(--ink); font-family: var(--font-body);
  font-size: 1rem; padding: .75rem .4rem; min-width: 0;
}
.search-console input::placeholder { color: var(--grey-2); }
.search-console input:focus { outline: none; box-shadow: none; }
.search-console button { flex: none; }

.pop-searches { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.pop-searches .pl { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-2); margin-right: .15rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--card); border: 1px solid var(--line-2);
  color: var(--grey); padding: .36rem .7rem; border-radius: var(--r-sm); font-size: .82rem;
  transition: border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--blaze); color: var(--blaze-700); }

.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* Hero trust stats strip */
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero-stat { padding-right: 2rem; margin-right: 2rem; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stat .n { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--ink); }
.hero-stat .l { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-2); }

/* Console readout panel */
.console {
  background: var(--ink); color: #d6e2ec; border-radius: var(--r-lg);
  border: 1px solid #2a3a48; box-shadow: var(--shadow);
  font-family: var(--font-mono); font-size: .8rem; overflow: hidden;
}
.console-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid #28343f; background: #0d1319; }
.console-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.console-bar .d1 { background: var(--sev-critical); }
.console-bar .d2 { background: var(--sev-high); }
.console-bar .d3 { background: var(--ok); }
.console-bar .ttl { margin-left: .5rem; color: #8aa0b2; letter-spacing: .08em; font-size: .72rem; text-transform: uppercase; }
.console-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; }
.console-line { display: flex; gap: .7rem; align-items: baseline; }
.console-line .k { color: #6f8698; min-width: 92px; }
.console-line .v { color: #e7eef4; }
.console-line .v.ok { color: #58d08a; }
.console-line .v.warn { color: #f2b63c; }
.console-scan { margin-top: .5rem; height: 6px; border-radius: 3px; background: #1c2731; overflow: hidden; position: relative; }
.console-scan::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--blaze), transparent); animation: scan 2.4s linear infinite; }
.console-foot { color: #6f8698; font-size: .72rem; margin-top: .3rem; }
.console-foot .blink { color: var(--blaze); animation: blink 1.1s steps(1) infinite; }
@keyframes scan { to { left: 100%; } }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .console { order: -1; }
  .hero-sub { max-width: none; }
  .hero-stat { padding-right: 1.3rem; margin-right: 1.3rem; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(2.8rem, 6vw, 4.6rem) 0; }
.section--tint { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--grey); font-size: 1.02rem; margin: 0; }
.section-flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.section-flex .section-head { margin-bottom: 0; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--blaze-700); }
.link-more:hover { color: var(--blaze-700); gap: .55rem; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: var(--col-gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid-4{grid-template-columns:repeat(2,1fr)} .grid-3{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 600px){ .grid-4,.grid-3,.grid-2{grid-template-columns:1fr} }

/* ---------- Problem card (flat + severity top border) ---------- */
.p-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-top: 3px solid var(--line-2); border-radius: var(--r);
  padding: 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .7rem;
  transition: border-color .15s ease, box-shadow .15s ease; color: var(--ink);
}
.p-card:hover { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.p-card.sev-critical { border-top-color: var(--sev-critical); }
.p-card.sev-high { border-top-color: var(--sev-high); }
.p-card.sev-medium { border-top-color: var(--sev-medium); }
.p-card.sev-low { border-top-color: var(--sev-low); }
.p-card .p-top { display: flex; align-items: center; justify-content: space-between; }
.p-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--steel-tint); color: var(--steel); flex: none;
}
.p-icon .ic { width: 22px; height: 22px; }
.p-card h3 { font-size: 1rem; margin: 0; position: relative; z-index: 1; font-weight: 600; }
.p-tag { display: flex; align-items: center; gap: .5rem; }
.p-tag .mono-code { color: var(--grey); text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--line-2); }
.sev-critical .status-dot, .dot-critical { background: var(--sev-critical); }
.sev-high .status-dot, .dot-high { background: var(--sev-high); }
.sev-medium .status-dot, .dot-medium { background: var(--sev-medium); }
.sev-low .status-dot, .dot-low { background: var(--sev-low); }
.p-arrow { color: var(--grey-2); transition: transform .15s ease, color .15s ease; }
.p-card:hover .p-arrow { color: var(--blaze); transform: translateX(3px); }

/* ---------- Category card ---------- */
.c-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.2rem; display: flex; flex-direction: column; gap: .55rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.c-card:hover { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.c-icon { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--ink); color: #fff; margin-bottom: .2rem; }
.c-icon .ic { width: 23px; height: 23px; }
.c-card h3 { font-size: 1.04rem; margin: 0; color: var(--ink); }
.c-card p { color: var(--grey); font-size: .9rem; margin: 0; }
.c-card .c-foot { margin-top: auto; padding-top: .5rem; display: flex; align-items: center; gap: .4rem; color: var(--blaze-700); font-family: var(--font-display); font-weight: 600; font-size: .85rem; }
.c-card:hover .c-foot { gap: .6rem; }

/* Category group label */
.cat-group { grid-column: 1 / -1; display: flex; align-items: center; gap: .9rem; margin-top: .6rem; }
.cat-group:first-child { margin-top: 0; }
.cat-group h3 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.cat-group h3::before { content: ""; width: 16px; height: 3px; background: var(--blaze); border-radius: 1px; }
.cat-group .line { flex: 1; height: 1px; background: var(--line); }

/* ---------- Featured / article card ---------- */
.f-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.f-card:hover { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.f-thumb { position: relative; aspect-ratio: 16/8; display: grid; place-items: center; color: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.f-thumb .ic { width: 42px; height: 42px; opacity: .96; position: relative; z-index: 2; }
.f-thumb::after { content:""; position:absolute; inset:0; background-image:
  linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px; }
.thumb-1 { background: var(--steel); }
.thumb-2 { background: var(--ink); }
.thumb-3 { background: var(--blaze); }
.thumb-4 { background: var(--steel-700); }
.thumb-5 { background: #3a4a58; }
.thumb-6 { background: var(--blaze-700); }
.f-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.f-meta { display: flex; align-items: center; gap: .7rem; }
.badge {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--steel-tint); color: var(--steel-700); padding: .22rem .5rem; border-radius: var(--r-sm);
}
.f-date { font-family: var(--font-mono); font-size: .7rem; color: var(--grey-2); }
.f-card h3 { font-size: 1.05rem; margin: 0; }
.f-card h3 a { color: var(--ink); }
.f-card h3 a:hover { color: var(--steel); }
.f-card p { color: var(--grey); font-size: .9rem; margin: 0; }
.f-read { margin-top: auto; padding-top: .3rem; font-family: var(--font-display); font-weight: 600; font-size: .85rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--blaze-700); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: .6rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s ease; }
.faq-item[open] { border-color: var(--steel); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.05rem 1.2rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { width: 24px; height: 24px; flex: none; position: relative; border-radius: var(--r-sm); background: var(--steel-tint); transition: background .15s ease; }
.faq-plus::before, .faq-plus::after { content:""; position:absolute; top:50%; left:50%; width:11px; height:2px; background: var(--steel); transform: translate(-50%,-50%); border-radius: 1px; transition: transform .2s ease; }
.faq-plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--blaze); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: #fff; }
.faq-item[open] .faq-plus::after { transform: translate(-50%,-50%) rotate(0); }
.faq-answer { padding: 0 1.2rem 1.1rem; color: var(--grey); }
.faq-answer p { margin: 0; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--ink); color: #e7eef4; padding: clamp(2rem, 5vw, 3.4rem); border: 1px solid #28343f; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blaze); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #aebccb; max-width: 56ch; margin: 0 0 1.5rem; font-size: 1.02rem; }
.cta-band .pill-note { background: rgba(239,108,45,.16); color: #f6a877; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ============================================================
   BREADCRUMBS + page header (light panel, orange rule)
   ============================================================ */
.page-hero { background: var(--card); border-bottom: 1px solid var(--line); padding: clamp(2rem,4vw,3rem) 0 clamp(2rem,4vw,2.6rem); position: relative; }
.page-hero::before { content:""; position:absolute; left:0; top:0; height:100%; width: 4px; background: var(--blaze); opacity: 0; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: .45rem; }
.page-hero > .container > h1 { position: relative; }
.page-hero p { color: var(--grey); max-width: 62ch; margin: 0; font-size: 1.04rem; }

.crumbs { margin-bottom: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; font-family: var(--font-mono); font-size: .74rem; }
.crumbs li { display: flex; align-items: center; gap: .5rem; color: var(--grey-2); }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--grey); }
.crumbs a:hover { color: var(--steel); }
.crumbs li[aria-current] { color: var(--blaze-700); }

/* ============================================================
   CONTENT LAYOUT (guides / legal / static)
   ============================================================ */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(1.6rem, 3vw, 2.6rem); align-items: start; }
.layout--narrow { max-width: 820px; margin-inline: auto; }
@media (max-width: 940px){ .layout { grid-template-columns: 1fr; } }

.prose { color: var(--ink-soft); font-size: 1.02rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; font-size: 1.15rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--blaze); }
.prose strong { color: var(--ink); }

/* Guide article card wrapper */
.article-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.3rem, 4vw, 2.4rem); }

/* Guide meta bar */
.guide-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; padding: 0 0 1.3rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.guide-meta .gm { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .76rem; color: var(--grey); }
.guide-meta .ic-sm { color: var(--steel); }

/* Symptom / cause list boxes */
.info-box { border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: var(--r); padding: 1.2rem 1.3rem; margin: 1.5rem 0; background: var(--card); }
.info-box h3 { display: flex; align-items: center; gap: .6rem; margin-top: 0; font-size: 1.05rem; }
.info-box ul { margin: 0; padding-left: 1.2rem; }
.info-box li { margin-bottom: .5rem; }
.box-symptom { border-left-color: var(--blaze); background: var(--blaze-tint); }
.box-symptom h3 { color: var(--blaze-700); }
.box-cause { border-left-color: var(--steel); background: var(--steel-tint); }
.box-cause h3 { color: var(--steel-700); }

/* Step list — numbered "procedure" (strong visual element) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: .7rem; }
.steps > li {
  position: relative; counter-increment: step; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem 1.1rem 4.2rem;
  transition: border-color .15s ease;
}
.steps > li:hover { border-color: var(--line-2); }
.steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -1px; bottom: -1px;
  width: 3rem; display: grid; place-items: center;
  background: var(--steel); color: #fff; border-radius: var(--r) 0 0 var(--r);
  font-family: var(--font-mono); font-weight: 600; font-size: .9rem;
}
.steps h3 { margin: 0 0 .3rem; font-size: 1.04rem; }
.steps p { margin: 0; color: var(--grey); font-size: .96rem; }

/* Prevention / tips list with checks */
.check-list { list-style: none; padding: 0; margin: 1.3rem 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .ic-sm { color: var(--ok); background: #e6f4ec; border-radius: var(--r-sm); padding: 3px; width: 24px; height: 24px; flex: none; margin-top: 1px; }

/* Callout */
.callout { display: flex; gap: .9rem; background: var(--blaze-tint); border: 1px solid #f6cdb4; border-left: 3px solid var(--blaze); border-radius: var(--r); padding: 1.05rem 1.15rem; margin: 1.5rem 0; }
.callout .ic { color: var(--blaze-700); flex: none; }
.callout p { margin: 0; color: #7a3c18; font-size: .95rem; }
.callout strong { color: #5f2d10; }

/* Related guides */
.related-guides { display: grid; gap: .8rem; grid-template-columns: repeat(3,1fr); margin-top: 1rem; }
@media (max-width: 700px){ .related-guides { grid-template-columns: 1fr; } }
.rel-card { border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; background: var(--card); display: flex; align-items: center; gap: .8rem; transition: border-color .15s ease; }
.rel-card:hover { border-color: var(--steel); }
.rel-card .p-icon { width: 38px; height: 38px; }
.rel-card span { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 940px){ .side { position: static; } }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; }
.side-title { display: flex; align-items: center; gap: .5rem; font-size: .92rem; margin: 0 0 .9rem; }
.side-title .ic-sm { color: var(--steel); }
.side-form { display: flex; gap: .4rem; }
.side-form input { flex: 1; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .6rem .8rem; font: inherit; min-width: 0; }
.side-form button { background: var(--steel); color: #fff; border: 0; border-radius: var(--r-sm); width: 42px; display: grid; place-items: center; cursor: pointer; }
.side-form button:hover { background: var(--steel-700); }
.side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.side-list li { border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; }
.side-list a { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; color: var(--grey); font-size: .92rem; }
.side-list a:hover { color: var(--ink); }
.side-list .mono-code { color: var(--steel); background: var(--steel-tint); padding: .1rem .35rem; border-radius: 2px; font-size: .66rem; }
.side-tip { background: var(--ink); color: #c2ccd6; border-color: #28343f; }
.side-tip .side-title { color: #fff; }
.side-tip .side-title .ic-sm { color: var(--blaze); }
.side-tip strong { color: #fff; }
.side-steps { color: var(--blaze); font-size: .74rem; line-height: 1.8; margin: 0; }

/* ============================================================
   FORMS (contact)
   ============================================================ */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.3rem, 4vw, 2.2rem); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .88rem; margin-bottom: .4rem; }
.field .req { color: var(--blaze); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .75rem .9rem;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--steel); box-shadow: var(--ring); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--grey-2); margin: .35rem 0 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .83rem; color: var(--grey-2); }

.alert { border-radius: var(--r); padding: 1rem 1.1rem; margin-bottom: 1.3rem; display: flex; gap: .7rem; align-items: flex-start; font-size: .94rem; border: 1px solid; }
.alert .ic-sm { flex: none; margin-top: 2px; }
.alert-success { background: #e6f4ec; border-color: #b9e0c8; color: #1d6b40; }
.alert-error { background: var(--blaze-tint); border-color: #f6cdb4; color: #a13f16; }

/* Contact info tiles */
.contact-info { display: grid; gap: 1rem; }
.ci-tile { display: flex; gap: .9rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
.ci-tile .p-icon { width: 42px; height: 42px; }
.ci-tile h3 { font-size: .98rem; margin: 0 0 .2rem; }
.ci-tile p { margin: 0; color: var(--grey); font-size: .92rem; }
.ci-tile a { color: var(--steel); }

/* ============================================================
   VALUE / feature rows (about, support)
   ============================================================ */
.feature-row { display: flex; gap: 1rem; align-items: flex-start; }
.feature-row .p-icon { width: 46px; height: 46px; }
.feature-row h3 { font-size: 1.08rem; margin: .1rem 0 .35rem; }
.feature-row p { color: var(--grey); margin: 0; }

/* Stat tiles */
.stat-tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--col-gap); }
@media (max-width:820px){ .stat-tiles{ grid-template-columns: repeat(2,1fr);} }
.stat-tile { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--steel); border-radius: var(--r); padding: 1.3rem; }
.stat-tile .n { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--ink); }
.stat-tile .l { color: var(--grey); font-size: .86rem; font-family: var(--font-mono); letter-spacing: .02em; }

/* Table of contents (guides) */
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; margin-bottom: 1.6rem; }
.toc h2 { font-size: .8rem !important; margin: 0 0 .6rem !important; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--grey); }
.toc ol { margin: 0; padding-left: 1.4rem; columns: 2; column-gap: 2rem; font-family: var(--font-mono); font-size: .86rem; }
.toc li { margin-bottom: .3rem; }
.toc a { color: var(--steel); }
@media (max-width:560px){ .toc ol { columns: 1; } }

/* Sitemap page */
.sitemap-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
@media (max-width:820px){ .sitemap-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:560px){ .sitemap-grid{grid-template-columns:1fr} }
.sitemap-col h3 { font-size: .95rem; padding-bottom: .5rem; border-bottom: 2px solid var(--blaze); display: inline-block; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.sitemap-col ul { list-style: none; padding: 0; margin: .8rem 0 0; }
.sitemap-col li { padding: .28rem 0; }
.sitemap-col a { color: var(--grey); }
.sitemap-col a:hover { color: var(--steel); }

/* ============================================================
   Cookie bar + back-to-top
   ============================================================ */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150; max-width: 760px; margin-inline: auto;
  background: var(--ink); color: #c2ccd6; border-radius: var(--r); padding: 1rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  box-shadow: var(--shadow); border: 1px solid #28343f;
}
.cookie-bar p { margin: 0; font-size: .88rem; }
.cookie-bar a { color: var(--blaze); }
.cookie-actions { display: flex; gap: .6rem; }
.cookie-bar .btn-ghost { background: transparent; color: #c2ccd6; border-color: #3a4a58; }
.cookie-bar .btn-ghost:hover { color: #fff; border-color: #fff; }

.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 44px; height: 44px; border-radius: var(--r);
  background: var(--steel); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px) rotate(-90deg);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background .15s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) rotate(-90deg); }
.to-top:hover { background: var(--blaze); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #9fb0bf; padding: clamp(2.6rem,5vw,4rem) 0 2rem; margin-top: 2.5rem; border-top: 3px solid var(--blaze); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px solid #28343f; }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; gap:1.6rem;} .footer-brand{ grid-column: 1 / -1; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand .brand--footer { color: #fff; margin-bottom: .9rem; }
.footer-brand .brand--footer .brand-mark { background: var(--steel); }
.footer-brand .brand-name { color: #fff; }
.footer-blurb { font-size: .9rem; max-width: 42ch; margin-bottom: 0; line-height: 1.6; }
.footer-head { color: #fff; font-size: .72rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; margin-bottom: .9rem; }
.footer-independent { text-align: left; max-width: 90ch; margin: 1.8rem 0 0; padding-top: 1.6rem; border-top: 1px solid #28343f; }
.footer-independent h3 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin: 0 0 .4rem; }
.footer-independent p { color: #8395a4; font-size: .85rem; line-height: 1.6; margin: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: #9fb0bf; font-size: .9rem; }
.footer-col a:hover { color: var(--blaze); }
.footer-disclaimer { display: flex; gap: .8rem; align-items: flex-start; padding: 1.5rem 0; border-bottom: 1px solid #28343f; }
.footer-disclaimer .ic-sm { color: var(--blaze); flex: none; margin-top: 2px; }
.footer-disclaimer p { margin: 0; font-size: .82rem; color: #8395a4; max-width: 94ch; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; gap: 1.2rem; }
.footer-bottom-links a { color: #9fb0bf; }
.footer-bottom-links a:hover { color: var(--blaze); }

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.divider { height: 1px; background: var(--line); border: 0; margin: 1.8rem 0; }
.lead { font-size: 1.12rem; color: var(--grey); }
.pill-note { display:inline-flex; align-items:center; gap:.5rem; background: var(--steel-tint); color: var(--steel-700); font-family: var(--font-mono); font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; padding:.38rem .7rem; border-radius:var(--r-sm); }

/* Reveal-on-scroll (progressive; visible by default if JS/motion off) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .console-scan::after { animation: none; left: 0; width: 100%; opacity: .5; }
}
