/* ==========================================================================
   TreadHabit — Walk while you work.
   Modern, minimalist, fully responsive. Light + dark mode.
   Optimized for Core Web Vitals (~12KB critical, no render-blocking JS)
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}

/* ---------- Design Tokens ---------- */
:root {
  --bg: #fafaf7;
  --bg-elevated: #ffffff;
  --bg-subtle: #f3f3ee;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --text-soft: #888;
  --border: #e6e6dd;
  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-soft: #dcfce7;
  --warning: #d97706;
  --danger: #dc2626;
  --link: #16a34a;
  --link-hover: #15803d;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1180px;
  --content-width: 720px;
  --header-height: 64px;
}

[data-theme="dark"] {
  --bg: #0f1115;
  --bg-elevated: #1a1d23;
  --bg-subtle: #232830;
  --text: #e8e8e8;
  --text-muted: #a8acb3;
  --text-soft: #71757d;
  --border: #2a2f37;
  --accent: #4ade80;
  --accent-hover: #86efac;
  --accent-soft: #14352a;
  --link: #4ade80;
  --link-hover: #86efac;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.6);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-height) + 20px);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 2em 0 0.5em; padding-top: 0.5em; border-top: 1px solid var(--border); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin: 1.6em 0 0.4em; }
h4 { font-size: 1.05rem; margin: 1.4em 0 0.4em; }
p { margin: 0 0 1.2em; }
a { color: var(--link); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--link-hover); text-decoration: underline; }
strong { font-weight: 700; color: var(--text); }
em { font-style: italic; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: 0.5em; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace; font-size: 0.92em; }
code { background: var(--bg-subtle); padding: 0.1em 0.4em; border-radius: 4px; }
pre { background: var(--bg-subtle); padding: 1em; border-radius: var(--radius); overflow-x: auto; margin: 1.5em 0; }
blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5em 0;
  padding: 0.5em 1.2em;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
}
hr { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }

/* ---------- Layout ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.content { max-width: var(--content-width); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background-color: color-mix(in srgb, var(--bg) 88%, transparent);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; color: var(--text); }
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: grid; place-items: center; color: white; font-size: 18px; font-weight: 900;
}
.logo-text { color: var(--text); }
.logo-text span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.theme-toggle {
  background: var(--bg-subtle); border: 1px solid var(--border);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--text); transition: all .2s ease;
}
.theme-toggle:hover { background: var(--accent-soft); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }

.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--text); }
.menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-height); left: 0; right: 0;
    background: var(--bg-elevated); border-bottom: 1px solid var(--border);
    padding: 20px; gap: 14px; box-shadow: var(--shadow);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--bg-subtle), var(--bg));
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 0.3em; letter-spacing: -0.04em;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted); max-width: 620px; margin: 0 auto 1.8em;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 600px) { .hero { padding: 50px 0 40px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); color: white; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--bg-subtle); border-color: var(--accent); color: var(--text); }
.btn-amazon {
  background: #ff9900; color: #0f1111; border-color: #ff9900;
  font-weight: 700;
}
.btn-amazon:hover { background: #e88b00; color: #0f1111; }

/* ---------- Card Grid ---------- */
.grid { display: grid; gap: 24px; }
.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-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }

/* ---------- Article card ---------- */
.article-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.article-card .category {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent);
}
.article-card h3 { font-size: 1.15rem; margin: 4px 0 6px; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--accent); text-decoration: none; }
.article-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 12px; flex: 1; }
.article-card .meta { font-size: 0.82rem; color: var(--text-soft); }

/* ---------- Section heading ---------- */
.section { padding: 60px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); border: none; padding: 0; margin: 0; }
.section-head p { color: var(--text-muted); margin: 4px 0 0; font-size: 0.95rem; }
.section-head a { font-size: 0.9rem; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ---------- Article layout ---------- */
.article-layout {
  display: block;
  max-width: var(--max-width); margin: 0 auto; padding: 40px 20px 80px;
}
@media (max-width: 980px) { .article-layout { padding: 30px 20px 60px; } }

.article-main { max-width: var(--content-width); margin: 0 auto; }
.article-main h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.article-meta { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.article-meta span::before { content: "·"; margin-right: 12px; }
.article-meta span:first-child::before { display: none; }

/* Lead paragraph */
.lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.6em; line-height: 1.6; }

/* Article body styling */
.article-body p { margin-bottom: 1.2em; }
.article-body h2 { padding-top: 1em; margin-top: 2em; }
.article-body h3 { margin-top: 1.6em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; }
.article-body li { margin-bottom: 0.5em; }
.article-body img { border-radius: var(--radius); margin: 1.6em auto; box-shadow: var(--shadow); }
.article-body a { font-weight: 500; }

/* ---------- Table of Contents (sidebar) ---------- */
.toc {
  position: sticky; top: calc(var(--header-height) + 24px);
  align-self: start;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  font-size: 0.88rem; max-height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
}
.toc h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); margin-bottom: 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text-muted); display: block; padding: 4px 8px; border-radius: 4px; line-height: 1.4; }
.toc a:hover { background: var(--bg-subtle); color: var(--accent); text-decoration: none; }
.toc a.level-3 { padding-left: 16px; font-size: 0.84rem; }
@media (max-width: 980px) { .toc { display: none; } }

/* ---------- Inline TOC (mobile) ---------- */
.toc-inline { background: var(--bg-subtle); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.toc-inline h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); margin-bottom: 10px; }
.toc-inline ul { list-style: none; padding: 0; margin: 0; }
.toc-inline li { margin-bottom: 4px; }
.toc-inline a { color: var(--accent); font-weight: 500; }

/* ---------- Product card ---------- */
.product-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all .2s ease;
}
.product-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card .product-title { font-weight: 700; font-size: 1.05rem; line-height: 1.35; color: var(--text); }
.product-card .product-meta { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.product-card .stars { color: #f59e0b; letter-spacing: 1px; }
.product-card .price { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.product-card .badge {
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  align-self: flex-start;
}
.product-card .badge.best { background: var(--accent-soft); color: var(--accent-hover); }
.product-card .badge.budget { background: #fef3c7; color: #92400e; }
.product-card .badge.quiet { background: #dbeafe; color: #1e40af; }
.product-card .badge.premium { background: #f3e8ff; color: #6b21a8; }
.product-card .badge.smart { background: #cffafe; color: #155e75; }
.product-card .badge.incline { background: #fed7aa; color: #9a3412; }
.product-card .badge.foldable { background: #d1fae5; color: #065f46; }
.product-card .badge.compact { background: #e0e7ff; color: #3730a3; }
.product-card .badge.safe { background: #fee2e2; color: #991b1b; }
.product-card .badge.desk { background: #fef9c3; color: #854d0e; }
.product-card .badge.converter { background: #f5d0fe; color: #86198f; }
.product-card .badge.floor { background: #d9f99d; color: #365314; }
.product-card .badge.cable { background: #fed7aa; color: #9a3412; }
.product-card .badge.eco { background: #d1fae5; color: #065f46; }
.product-card .badge.training { background: #fef3c7; color: #92400e; }
.product-card .badge.electrolytes { background: #dbeafe; color: #1e40af; }
.product-card .badge.gps { background: #e0e7ff; color: #3730a3; }
.product-card .badge.must-have { background: var(--accent-soft); color: var(--accent-hover); }
.product-card .badge.replacement { background: #f1f5f9; color: #475569; }
.product-card .badge.alternative { background: #fce7f3; color: #9f1239; }
[data-theme="dark"] .product-card .badge.budget { background: #422006; color: #fbbf24; }
[data-theme="dark"] .product-card .badge.quiet { background: #0c1f3d; color: #60a5fa; }
[data-theme="dark"] .product-card .badge.premium { background: #3b0764; color: #d8b4fe; }
[data-theme="dark"] .product-card .badge.smart { background: #083344; color: #67e8f9; }
[data-theme="dark"] .product-card .badge.incline { background: #431407; color: #fdba74; }
[data-theme="dark"] .product-card .badge.foldable { background: #022c22; color: #6ee7b7; }
[data-theme="dark"] .product-card .badge.compact { background: #1e1b4b; color: #a5b4fc; }
[data-theme="dark"] .product-card .badge.safe { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .product-card .badge.desk { background: #422006; color: #fde047; }
[data-theme="dark"] .product-card .badge.converter { background: #500724; color: #f9a8d4; }
[data-theme="dark"] .product-card .badge.floor { background: #1a2e05; color: #bef264; }
[data-theme="dark"] .product-card .badge.cable { background: #431407; color: #fdba74; }
[data-theme="dark"] .product-card .badge.eco { background: #022c22; color: #6ee7b7; }
[data-theme="dark"] .product-card .badge.training { background: #422006; color: #fbbf24; }
[data-theme="dark"] .product-card .badge.electrolytes { background: #0c1f3d; color: #60a5fa; }
[data-theme="dark"] .product-card .badge.gps { background: #1e1b4b; color: #a5b4fc; }
[data-theme="dark"] .product-card .badge.must-have { background: #14352a; color: #86efac; }
[data-theme="dark"] .product-card .badge.replacement { background: #1e293b; color: #cbd5e1; }
[data-theme="dark"] .product-card .badge.alternative { background: #500724; color: #f9a8d4; }

/* Product comparison table */
.compare-table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.92rem; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table th { background: var(--bg-subtle); font-weight: 700; color: var(--text); }
.compare-table tr:hover { background: var(--bg-subtle); }
.compare-table .row-label { font-weight: 600; color: var(--text); background: var(--bg-subtle); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem;
  list-style: none; position: relative; padding-right: 30px; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-size: 1.4rem; color: var(--accent); font-weight: 300;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--accent); margin-bottom: 10px; }
.faq-item p { color: var(--text-muted); margin: 0; }

/* ---------- Callout ---------- */
.callout {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.6em 0; font-size: 0.95rem;
}
.callout strong { color: var(--accent-hover); }
.callout.tip { background: var(--accent-soft); border-color: var(--accent); }
.callout.warning { background: #fef3c7; border-color: var(--warning); }
.callout.warning strong { color: #92400e; }
[data-theme="dark"] .callout.warning { background: #422006; }
.callout.danger { background: #fee2e2; border-color: var(--danger); }
.callout.danger strong { color: #991b1b; }
[data-theme="dark"] .callout.danger { background: #450a0a; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--text-soft); margin: 20px 0 0; padding: 0; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs span { margin: 0 6px; }

/* ---------- Ad slots (reserved for future display ad network integration) ---------- */
/* Note: Ad sections are removed from pages per user request. The .ad-slot class is
   preserved here so display ads can be added back later by inserting divs with this class. */
.ad-slot { display: none; }
.ad-slot.inline { display: none; }
.ad-slot.leaderboard { display: none; }
.ad-slot.sidebar { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-elevated); border-top: 1px solid var(--border);
  padding: 60px 0 30px; margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 12px; max-width: 320px; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-soft);
}
.footer-disclosure { background: var(--bg-subtle); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Page hero (small) ---------- */
.page-hero {
  background: var(--bg-subtle);
  padding: 60px 0 50px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Featured strip ---------- */
.featured-strip {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin: 24px 0;
}
.featured-strip h3 { margin-top: 0; font-size: 1.05rem; }
.featured-strip ul { margin: 8px 0 0; padding-left: 1.2em; }
.featured-strip li { font-size: 0.92rem; margin-bottom: 4px; }

/* ---------- Quick stats ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 24px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 24px 0; }
.stats-strip .stat { text-align: center; }
.stats-strip .stat .num { font-size: 1.8rem; font-weight: 800; color: var(--accent); display: block; }
.stats-strip .stat .label { font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 600px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tag chips ---------- */
.chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-subtle); color: var(--text-muted);
  font-size: 0.78rem; font-weight: 500; margin: 0 4px 4px 0;
  border: 1px solid var(--border);
}
.chip:hover { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent); text-decoration: none; }

/* ---------- Related articles ---------- */
.related {
  margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--border);
  max-width: var(--content-width); margin-left: auto; margin-right: auto;
}
.related h2 { font-size: 1.4rem; border: none; padding: 0; margin: 0 0 20px; text-align: center; }
.related-columns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-bottom: 24px;
}
.related-col h3 { font-size: 1rem; margin: 0 0 10px; }
.related-col ul { margin: 0; padding-left: 1.2em; font-size: 0.92rem; }
.related-col li { margin-bottom: 6px; }
@media (max-width: 600px) { .related-columns { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5em 0; }
.steps li {
  counter-increment: step; padding: 14px 0 14px 56px;
  position: relative; border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: white;
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
}
.steps li strong { display: block; margin-bottom: 4px; color: var(--text); }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toc, .ad-slot, .nav, .menu-btn, .theme-toggle { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .article-layout { padding: 0; }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: white; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; color: white; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
