:root {
  --bg: #f6f8fc;
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --surface: #ffffff;
  --surface-hover: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.16);
  --chip-bg: rgba(255, 255, 255, 0.86);
  --code-bg: rgba(15, 23, 42, 0.05);
  --header-bg: rgba(246, 248, 252, 0.84);

  --shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.05);
  --radius: 18px;
  --radius-sm: 13px;
  --max: 1140px;

  /* WebOptimization precision blue + cyan + indigo palette */
  --a1: #2563eb; /* cobalt blue */
  --a2: #0891b2; /* cyan */
  --a3: #4f46e5; /* indigo */
  --a4: #0284c7; /* sky */
  --a5: #0d9488; /* teal */

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #070b14;
  --bg-elevated: rgba(14, 21, 36, 0.86);
  --surface: #0e1628;
  --surface-hover: #142038;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --subtle: #64748b;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.24);
  --chip-bg: rgba(24, 34, 56, 0.74);
  --code-bg: rgba(24, 34, 56, 0.85);
  --header-bg: rgba(7, 11, 20, 0.84);

  --shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.32);

  --a1: #60a5fa;
  --a2: #22d3ee;
  --a3: #818cf8;
  --a4: #38bdf8;
  --a5: #2dd4bf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 720px at 14% -8%, rgba(37, 99, 235, 0.15), transparent 55%),
    radial-gradient(880px 640px at 88% 4%, rgba(8, 145, 178, 0.12), transparent 58%),
    radial-gradient(820px 620px at 68% 106%, rgba(79, 70, 229, 0.11), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  transition: background-color 0.2s ease, color 0.2s ease;
}

[data-theme="dark"] body {
  background:
    radial-gradient(1100px 720px at 14% -8%, rgba(96, 165, 250, 0.14), transparent 55%),
    radial-gradient(880px 640px at 88% 4%, rgba(34, 211, 238, 0.10), transparent 58%),
    radial-gradient(820px 620px at 68% 106%, rgba(129, 140, 248, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
code, .mono { font-family: var(--font-mono); }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.3) blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
}

.logoImg {
  display: block;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.brand strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.navlinks a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.navlinks a:hover {
  background: rgba(37, 99, 235, 0.12);
  color: var(--text);
}

.navright {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.btn.primary {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.btn.primary:hover {
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
}

.btn.iconOnly {
  padding: 9px;
  width: 36px;
  height: 36px;
}

.btn.iconOnly.sm {
  width: 32px;
  height: 32px;
  padding: 7px;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--code-bg);
  color: var(--muted);
}

.themeIconDark { display: none; }
[data-theme="dark"] .themeIconLight { display: none; }
[data-theme="dark"] .themeIconDark { display: inline-flex; }

.icon { width: 16px; height: 16px; display: inline-block; flex-shrink: 0; }

/* Mobile Nav */
.burger { display: none; }
.mobilePanel { display: none; padding: 0 0 14px 0; }
.mobilePanel .stack {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.mobilePanel a {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font-size: 14px;
  font-weight: 500;
}

/* Hero & Cards */
.hero { padding: 32px 0 20px 0; }
.heroGrid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
  align-items: stretch;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.heroCard {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.heroCard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 440px at 8% 8%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(640px 360px at 92% 28%, rgba(8, 145, 178, 0.11), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.heroCard > * { position: relative; z-index: 1; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  width: max-content;
  max-width: 100%;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  flex-shrink: 0;
}

h1 {
  margin: 16px 0 12px 0;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.10;
  letter-spacing: -0.025em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 60ch;
}

.heroActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items: center;
}

.search {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.searchbar {
  display: flex;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  align-items: center;
}

.searchbar:focus-within {
  border-color: var(--a1);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.searchbar input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
}

.clearBtn {
  border: 1px solid var(--line);
  background: var(--code-bg);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
}

.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.fbtn {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  color: var(--muted);
  white-space: nowrap;
}

.fbtn:hover {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.10);
  color: var(--text);
}

.fbtn.active {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.42);
  color: var(--a1);
  font-weight: 600;
}

/* Side card: 2x2 Core Web Vitals grid */
.sideCard {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sideTop, .sideTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sideTop strong, .sideTitle strong { font-size: 14px; font-weight: 650; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
}

.stackGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
  flex: 1;
}

.stackItem {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.stackItem::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background: radial-gradient(220px 160px at 20% 20%, var(--glow), transparent 65%);
  pointer-events: none;
}

.stackItem > * { position: relative; z-index: 1; }

.stackItem:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.stackItem .meta { font-size: 11.5px; font-weight: 500; color: var(--a1); }
.stackItem .title { margin-top: 3px; font-size: 14px; font-weight: 650; }
.stackItem .desc { margin-top: 5px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.stackItem .desc code {
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--code-bg);
}

/* Sections */
section { padding: 26px 0; }
.sectionHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sectionHead h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.sectionHead p { margin: 4px 0 0 0; color: var(--muted); font-size: 13.5px; max-width: 72ch; }
.sectionHead code {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--code-bg);
  border: 1px solid var(--line);
}

/* Tiles & Cards */
.tiles, .featured {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.tile, .featureCard {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#vitalCards .featureCard,
#guideCards .featureCard {
  grid-column: span 6;
}

.tile:hover, .featureCard:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--surface-hover);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background: radial-gradient(320px 200px at 18% 15%, var(--glow), transparent 65%);
  pointer-events: none;
}

.tile > * { position: relative; z-index: 1; }

.tileTop, .featureTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.badge, .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
}

.tile h3, .featureCard h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.tile p, .featureCard p {
  margin: 8px 0 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.tile p code, .featureCard p code {
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--code-bg);
}

.links, .metaRow {
  margin-top: 14px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.chip {
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.chip:hover {
  background: rgba(37, 99, 235, 0.12);
  color: var(--text);
}

.kpi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  font-size: 12px;
  color: var(--muted);
}

/* Newsletter Strip */
.strip {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 220px at 10% 50%, rgba(37, 99, 235, 0.12), transparent 70%),
    radial-gradient(520px 220px at 90% 40%, rgba(8, 145, 178, 0.10), transparent 70%),
    var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  flex-wrap: wrap;
}

.strip strong { font-size: 15px; font-weight: 650; }
.strip span { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; }
.stripForm { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stripForm input {
  width: min(300px, 100%);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  outline: none;
  font-size: 13.5px;
}
.stripForm input:focus { border-color: var(--a1); }

/* Article / Reference Layout */
.articleWrap { padding: 28px 0 44px 0; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--a1); text-decoration: underline; }
.crumbCurrent { color: var(--text); font-weight: 500; }

.articleGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}

.articleMain { padding: 32px; }

.articleHeader {
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.articleMetaTop {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.articleHeader h1 {
  margin: 0 0 12px 0;
  font-size: clamp(26px, 3vw, 36px);
}

.articleLead {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.articleTags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Prose Typography */
.prose {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text);
}

.prose h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 30px 0 12px 0;
  padding-top: 8px;
  scroll-margin-top: 84px;
}

.prose h2:first-child { margin-top: 0; padding-top: 0; }

.prose h3 {
  font-size: 17px;
  font-weight: 650;
  margin: 22px 0 8px 0;
  scroll-margin-top: 84px;
}

.prose p { margin: 0 0 16px 0; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 18px 0; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li strong { color: var(--text); }

.prose a {
  color: var(--a1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--a1);
  background: var(--code-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}

.prose blockquote p { margin: 0; }

.prose code {
  font-size: 13.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--code-bg);
  border: 1px solid var(--line);
}

.prose pre {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}

.prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.prose th, .prose td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.prose th {
  background: var(--code-bg);
  font-weight: 600;
}

.prose tr:last-child td { border-bottom: none; }

/* Article Sidebar */
.stickyBox {
  position: sticky;
  top: 82px;
  padding: 18px;
}

.tocNav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.tocNav a {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.tocNav a:hover {
  background: rgba(37, 99, 235, 0.10);
  color: var(--text);
}

.tocNav a.tocSub {
  padding-left: 20px;
  font-size: 12.5px;
}

.tocEmpty { font-size: 12.5px; color: var(--subtle); }

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.relatedList {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.relatedLink {
  display: block;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.relatedLink:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.relatedType {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--a1);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.relatedName {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
}

/* Command Palette Search Modal */
.cmdOverlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.58);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 16px 16px;
}

.cmdOverlay[hidden] { display: none; }

.cmdDialog {
  width: min(620px, 100%);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.cmdTop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.cmdTop input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
}

.cmdMeta {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 11.5px;
  color: var(--subtle);
  background: var(--code-bg);
  border-bottom: 1px solid var(--line);
}

.cmdResults {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.cmdItem {
  display: block;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cmdItem:hover {
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.28);
}

.cmdItemTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cmdItemTitle { font-size: 14px; font-weight: 650; }
.cmdItemBadge { font-size: 11px; color: var(--a1); font-weight: 600; }
.cmdItemDesc { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* Footer */
.siteFooter { padding: 26px 0 38px 0; color: var(--muted); }
.footerGrid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.9fr;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}
.footTitle { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--text); }
.footTitle strong { font-size: 14.5px; }
.foot p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.footLinks { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.footLinks a {
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  transition: transform 0.15s ease, background 0.15s ease;
}
.footLinks a:hover {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.12);
  color: var(--text);
}

.copyright {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--subtle);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity 0.55s ease, transform 0.55s ease; }

/* Responsive */
@media (max-width: 980px) {
  .heroGrid { grid-template-columns: 1fr; }
  .tile, .featureCard, #vitalCards .featureCard, #guideCards .featureCard { grid-column: span 6; }
  .navlinks { display: none; }
  .burger { display: inline-flex; }
  .articleGrid { grid-template-columns: 1fr; }
  .stickyBox { position: static; }
}

@media (max-width: 640px) {
  .tile, .featureCard, #vitalCards .featureCard, #guideCards .featureCard { grid-column: span 12; }
  .stackGrid { grid-template-columns: 1fr; }
  .brand { min-width: auto; }
  .hideMobile, .searchTriggerText, .kbd { display: none; }
  .footerGrid { grid-template-columns: 1fr; }
  .articleMain { padding: 20px; }
}
