/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.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: -999px; top: 0;
  background: #111; color: #fff; padding: 0.75em 1em; z-index: 100;
}
.skip-link:focus { left: 0.5em; top: 0.5em; }

/* ---------- Theme tokens ----------
   Brand palette sampled directly from the logo:
   blue #0154B0 ("Print"), near-black #0B0F15 ("TestPage"),
   green #398217 (".site"). Blue is primary (nav, links, CTAs),
   green is the secondary accent (badges, icons, secondary CTAs). */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f5f7;
  --text: #0b0f15;
  --text-muted: #5b6167;
  --border: #e2e5e8;

  --accent: #1465d8;       /* primary blue - links, nav, CTAs */
  --accent-dark: #0154b0;  /* exact logo blue - hover/pressed */
  --accent-alt: #398217;      /* secondary green - badges, icons, alt CTAs */
  --accent-alt-dark: #2c6512; /* green hover/pressed */

  /* Header background is intentionally NOT a theme token: it stays white
     in both light and dark mode because the logo's own colors (black
     "TestPage" text, gray tagline) were drawn for a white backdrop and
     would go illegible on a dark bar. */
  --header-bg: #ffffff;
  --header-text: #0b0f15;
  --footer-bg: #0b0f15;
  --footer-text: #ffffff;
  --max-width: 1100px;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 20px;

  --warning: #b45309;
  --warning-bg: rgba(217,119,6,0.1);
  --warning-border: rgba(217,119,6,0.3);
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05), 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md: 0 8px 20px rgba(15,23,42,0.07), 0 2px 6px rgba(15,23,42,0.05);
  --shadow-lg: 0 20px 48px rgba(15,23,42,0.12), 0 6px 16px rgba(15,23,42,0.06);

  /* Site is light-only by design. This tells the browser not to apply its
     own forced-dark rendering (e.g. Android Chrome's auto-dark, form
     control/scrollbar dark styling) on top of our light palette. */
  color-scheme: light only;
}

/* Respect reduced-motion preference site-wide: kill scroll-reveal and
   hover-lift transitions rather than force them on everyone. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.25rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  color: var(--header-text); font-weight: 600; font-size: 0.95rem;
  padding: 0.35em 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--accent); text-decoration: none; border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--header-text); display: block; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--header-bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 0.6rem 0; border-top: 1px solid var(--border); border-bottom: 0; }
  .site-nav a:hover, .site-nav a.active { border-top-color: var(--border); }
  .site-header { position: sticky; }
}

/* ---------- Hero / sections ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hero .lede { font-size: 1.1rem; color: var(--text-muted); max-width: 62ch; }

.section { padding: 2.75rem 0; }
.section h2 { font-size: 1.5rem; }
.section-alt { background: var(--bg-alt); }

.grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--accent-alt); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.05rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Badge (secondary/green accent) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  background: rgba(57,130,23,0.1); color: var(--accent-alt-dark);
  border: 1px solid rgba(57,130,23,0.3);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.35em 0.8em; border-radius: 999px; margin-bottom: 1rem;
}
.btn-alt { background: var(--accent-alt); color: #fff; }
.btn-alt:hover { background: var(--accent-alt-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 0.7em 1.3em; border-radius: 8px; border: 0; cursor: pointer;
  font-size: 0.98rem;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 0.45em 0.9em; font-size: 0.85rem; }

/* ---------- Callout / note ---------- */
.callout {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: 0.95rem;
}

/* ---------- Printable test-page preview ----------
   One reusable card (.print-preview) used identically on the General,
   Color, and Black & White test pages: a "before you print" notice, a
   toolbar (paper size + print button), then the sheet preview on a neutral
   backdrop. Colors inside .print-sheet itself are fixed (not theme tokens)
   so the printed output is always correct regardless of site theme. */
.print-preview {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 1.5rem;
}
.print-preview-notice {
  display: flex; align-items: flex-start; gap: 0.65rem;
  background: rgba(20,101,216,0.07); border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.25rem; font-size: 0.9rem;
}
.print-preview-notice svg { flex-shrink: 0; color: var(--accent); margin-top: 0.2em; }
.print-preview-notice p { margin: 0; }

.print-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem; padding: 1rem 1.25rem;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.paper-toggle-group { display: flex; align-items: center; gap: 0.65rem; }
.paper-toggle-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-muted);
}
.paper-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--bg); }
.paper-toggle button {
  background: transparent; border: 0; padding: 0.5em 1.1em; cursor: pointer;
  color: var(--text); font-size: 0.85rem; font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.paper-toggle button.active { background: var(--accent); color: #fff; }
.print-toolbar .btn[data-print] {
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.print-toolbar .btn[data-print]:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.print-sheet-wrap {
  position: relative; background: linear-gradient(180deg, #5b6472, #454d5a);
  padding: 2.25rem 1.5rem; display: flex; justify-content: center; overflow-x: auto;
}
.print-preview-label {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(15,23,42,0.55); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35em 0.85em; border-radius: 999px;
}
/* Width is fixed to real paper width (8.5in / A4) so it reads as an actual
   sheet of paper. Height is intentionally auto, not the full 11in/11.69in -
   the on-screen preview only needs to be as tall as its content; forcing
   full paper height left a large blank gap below the (shorter) content. */
.print-sheet {
  background: #ffffff; color: #111111;
  width: 8.5in; height: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35), 0 4px 14px rgba(0,0,0,0.2);
  padding: 0.5in; flex-shrink: 0;
}
.print-sheet.a4 { width: 8.27in; }
.print-sheet * { color: #111111; }

@media (max-width: 760px) {
  .print-preview-notice { padding: 0.8rem 1rem; }
  .print-toolbar { padding: 0.85rem 1rem; flex-direction: column; align-items: stretch; }
  .paper-toggle-group { justify-content: space-between; }
  .print-toolbar .btn[data-print] { width: 100%; justify-content: center; }
  .print-preview-label { top: 0.65rem; left: 0.65rem; font-size: 0.62rem; }
  .print-sheet-wrap { overflow-x: visible; padding: 1.5rem 0.75rem 1.75rem; }
  .print-sheet, .print-sheet.a4 {
    width: 100%;
    padding: 0.35in 0.3in;
  }
}

/* ---------- Test pattern elements (fixed colors, print-accurate) ---------- */
.tp-header {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid #111; padding-bottom: 6px; margin-bottom: 14px;
  font-size: 11px;
}
.tp-header strong { font-size: 13px; }

.tp-colorbars { display: flex; height: 46px; margin-bottom: 10px; }
.tp-colorbars > div { flex: 1; }
.tp-colorbars .cyan { background: #00AEEF; }
.tp-colorbars .magenta { background: #EC008C; }
.tp-colorbars .yellow { background: #FFF200; }
.tp-colorbars .black { background: #000000; }
.tp-colorbars .red { background: #ED1C24; }
.tp-colorbars .green { background: #00A651; }
.tp-colorbars .blue { background: #2E3192; }

.tp-swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 10px; }
.tp-swatch-grid div { height: 30px; border: 1px solid #ddd; }

.tp-grayscale { display: flex; height: 42px; margin-bottom: 10px; }
.tp-grayscale > div { flex: 1; }
.tp-grayscale .g0 { background:#000; } .tp-grayscale .g1 { background:#1a1a1a; }
.tp-grayscale .g2 { background:#333; } .tp-grayscale .g3 { background:#4d4d4d; }
.tp-grayscale .g4 { background:#666; } .tp-grayscale .g5 { background:#808080; }
.tp-grayscale .g6 { background:#999; } .tp-grayscale .g7 { background:#b3b3b3; }
.tp-grayscale .g8 { background:#ccc; } .tp-grayscale .g9 { background:#e6e6e6; }
.tp-grayscale .g10 { background:#fff; border:1px solid #ccc; }

.tp-solid-black { background:#000; height: 60px; margin-bottom: 10px; }

.tp-text-sample { border: 1px solid #ccc; padding: 10px; margin-bottom: 10px; }
.tp-text-sample .s1 { font-size: 22px; font-weight: 700; }
.tp-text-sample .s2 { font-size: 14px; }
.tp-text-sample .s3 { font-size: 9px; }
.tp-text-sample .s4 { font-size: 6px; }

.tp-grid-pattern {
  background-image:
    linear-gradient(to right, #000 1px, transparent 1px),
    linear-gradient(to bottom, #000 1px, transparent 1px);
  background-size: 0.5in 0.5in;
  height: 2.5in; border: 1px solid #000; margin-bottom: 10px;
  position: relative;
}
.tp-grid-pattern::before, .tp-grid-pattern::after {
  content: ""; position: absolute; background: #000;
}
.tp-grid-pattern::before { left: 0; right: 0; top: 50%; height: 1px; }
.tp-grid-pattern::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.tp-crop-marks { position: relative; height: 1.6in; border: 1px dashed #999; margin-bottom: 10px; }
.tp-crop-marks span { position: absolute; width: 16px; height: 16px; border: 2px solid #000; }
.tp-crop-marks .tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.tp-crop-marks .tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.tp-crop-marks .bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.tp-crop-marks .br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.tp-crop-marks .center { top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; border: 1px solid #000; border-radius: 50%;
}

.tp-nozzle { margin-bottom: 10px; }
.tp-nozzle .row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tp-nozzle .label { width: 60px; font-size: 9px; }
.tp-nozzle .lines { flex: 1; height: 14px;
  background-image: repeating-linear-gradient(to right, var(--c) 0 1px, transparent 1px 4px);
}
.tp-nozzle .lines.k { --c:#000; } .tp-nozzle .lines.c { --c:#00AEEF; }
.tp-nozzle .lines.m { --c:#EC008C; } .tp-nozzle .lines.y { --c:#FFF200; }

.tp-footer { margin-top: 12px; font-size: 9px; color: #555; border-top: 1px solid #ccc; padding-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,0.85); margin-top: 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2.5rem; padding: 2.5rem 1.25rem 1.5rem; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-social { display: flex; gap: 0.9rem; margin-top: 1rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85);
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.logo-text { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo-text .lg-print { color: #5b9bef; }
.logo-text .lg-testpage { color: #ffffff; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-links h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); margin-bottom: 0.75em; }
.footer-links a { display: block; color: rgba(255,255,255,0.85); padding: 0.25em 0; font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent-alt); }
.footer-brands { columns: 2; column-gap: 1.5rem; }
.footer-brands h2 { column-span: all; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 1.25rem; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ---------- Blog ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.post-meta { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0; }
.card .post-meta { margin-bottom: 0.2rem; }

/* Blog index: category filter buttons */
.post-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.post-filter button {
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.5em 1.1em; cursor: pointer; color: var(--text); font-size: 0.85rem; font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.post-filter button:hover { border-color: var(--accent); color: var(--accent); }
.post-filter button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.post-filter-empty { color: var(--text-muted); padding: 2rem 0; }

/* Blog index: card grid, thumbnail on top / content below */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.post-list-item {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.post-list-item:hover { border-color: var(--accent-alt); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-list-item[hidden] { display: none; }
.post-list-thumb { display: block; aspect-ratio: 16 / 10; }
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-list-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-list-body h3 { font-size: 1.15rem; line-height: 1.35; margin-bottom: 0.6rem; }
.post-list-excerpt {
  color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-list-readmore {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.post-list-readmore:hover { color: var(--accent-dark); }
.post-list-body .post-meta { margin-top: auto; margin-bottom: 0; padding-top: 1rem; border-top: 1px solid var(--border); }
@media (max-width: 900px) {
  .post-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-list { grid-template-columns: 1fr; }
}

/* Post page featured image (shown once, above the body copy) */
.post-featured-image { margin-bottom: 1.5rem; }
.post-featured-image img { width: 100%; height: auto; border-radius: 12px; display: block; }

.post-body { max-width: 72ch; }
.post-body h2 { font-size: 1.4rem; margin-top: 2rem; }
.post-body h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.post-body p, .post-body ul, .post-body ol { color: var(--text); margin-bottom: 1rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }
.post-body blockquote {
  border-left: 4px solid var(--accent); margin: 1.25rem 0; padding: 0.5rem 1.2rem;
  color: var(--text-muted); font-style: italic;
}
.post-body a { text-decoration: underline; }
.post-body figure { margin: 1.5rem 0; }
.post-body figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table-wrap th, .table-wrap td { border: 1px solid var(--border); padding: 0.6em 0.9em; text-align: left; }
.table-wrap th { background: var(--bg-alt); font-weight: 700; }

/* ---------- Programmatic pages: calculator embed ---------- */
.calculator-embed { max-width: 640px; margin: 0 auto 0.75rem; }
.calculator-embed iframe { width: 100%; height: 615px; border: 0; border-radius: 8px; display: block; }
.calculator-caption { max-width: 640px; margin: 0 auto; font-size: 0.85rem; color: var(--text-muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-item summary {
  font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform 0.2s ease; margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item p {
  margin-top: 0.6rem; color: var(--text-muted);
  animation: faq-reveal 0.2s ease;
}
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ======================================================================
   Homepage sections: hero illustration, category/popular/troubleshooting
   cards, brand strip, features, timeline, back-to-top, scroll-reveal.
   ====================================================================== */

/* Eyebrow label above section headings */
.eyebrow {
  display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem;
}

/* Scroll-reveal: fades/lifts sections in as they enter the viewport.
   Starts visible (no [hidden]-style flash) if JS never runs. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Hero: two-column with illustration + trust bar ---------- */
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center;
}
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

.trust-bar {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 1.5rem; padding: 0; list-style: none;
}
.trust-bar li {
  display: flex; align-items: center; gap: 0.45em;
  font-size: 0.88rem; font-weight: 600; color: var(--text-muted);
}
.trust-bar svg { flex-shrink: 0; color: var(--accent-alt); }

.hero-art { display: flex; justify-content: center; }
.hero-art-photo {
  max-width: 100%; height: auto;
  filter: drop-shadow(0 20px 40px rgba(15,23,42,0.16));
}

/* ---------- Category cards ---------- */
.cat-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cat-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.cat-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: rgba(20,101,216,0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.cat-card h3 { font-size: 1.05rem; margin-bottom: 0; }
.cat-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; flex-grow: 1; }
.cat-card-link {
  display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; font-size: 0.9rem;
  color: var(--accent);
}
.cat-card-link svg { transition: transform 0.2s ease; }
.cat-card:hover .cat-card-link svg { transform: translateX(4px); }

/* ---------- Popular test pages ---------- */
.popular-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.popular-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.popular-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.popular-thumb { background: #6b7280; padding: 1.25rem; }
.popular-thumb-sheet { background: #fff; border-radius: 6px; padding: 8px 10px; }
.popular-thumb-bars { display: flex; height: 16px; border-radius: 2px; overflow: hidden; margin-bottom: 5px; }
.popular-thumb-bars span { flex: 1; }
.popular-thumb-gray { display: flex; height: 9px; border-radius: 2px; overflow: hidden; }
.popular-thumb-gray span { flex: 1; }
.popular-body { padding: 1.25rem; }
.popular-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.03em; }
.popular-body h3 { font-size: 1.05rem; }
.popular-actions { display: flex; gap: 0.6rem; margin-top: 1rem; }

/* ---------- Brand strip ---------- */
.brand-strip { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.brand-badge {
  display: inline-flex; align-items: center; padding: 0.6em 1.2em;
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  font-weight: 700; font-size: 0.92rem; color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.brand-badge:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); text-decoration: none; }

/* ---------- Troubleshooting cards ---------- */
.trouble-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trouble-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.35rem; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.trouble-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.trouble-card-icon { color: var(--accent-dark); margin-bottom: 0.6rem; }
.trouble-card h3 { font-size: 1rem; }
.trouble-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.trouble-card a { font-size: 0.88rem; font-weight: 600; }

/* ---------- Features grid ---------- */
.features-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.feature-item { display: flex; align-items: flex-start; gap: 0.85rem; }
.feature-item-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(57,130,23,0.1); color: var(--accent-alt-dark);
  display: flex; align-items: center; justify-content: center;
}
.feature-item h3 { font-size: 0.98rem; margin-bottom: 0.15rem; }
.feature-item p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }

/* ---------- How it works: 4-step timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }
.timeline-step { position: relative; text-align: center; }
@media (max-width: 760px) { .timeline-step { text-align: left; display: flex; gap: 1rem; align-items: flex-start; } }
.timeline-step-num {
  counter-increment: step;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.85rem; flex-shrink: 0;
}
.timeline-step-num::before { content: counter(step); }
@media (max-width: 760px) { .timeline-step-num { margin: 0; } }
.timeline-step h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.timeline-step p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }
.timeline-step:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: calc(50% + 34px); right: calc(-50% + 34px);
  height: 2px; background: var(--border);
}
@media (max-width: 760px) { .timeline-step:not(:last-child)::after { display: none; } }

/* ---------- From the Blog (featured post card) ---------- */
.blog-feature {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
@media (max-width: 700px) { .blog-feature { grid-template-columns: 1fr; } }
.blog-feature-visual {
  aspect-ratio: 16/10; border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.blog-feature-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; font-size: 0.82rem; color: var(--text-muted); }
.blog-feature h3 { font-size: 1.3rem; }
.blog-feature p { color: var(--text-muted); }

/* ---------- Sticky glass header on scroll ---------- */
.site-header {
  transition: background-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.15s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); }

/* ======================================================================
   Article template + shared page components (breadcrumbs already defined
   under Blog; this adds callout variants, step cards, TOC, reading
   progress, author card, sidebar, and share buttons) used site-wide so
   every page - core pages, blog post, and the 11ty-generated programmatic
   pages - draws from the same component set.
   ====================================================================== */

/* Reading progress bar - fixed under the sticky header, fills via JS as
   the user scrolls through an article. */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 70; transition: width 0.1s linear;
}

/* ---------- Callout variants ---------- */
.callout-tip {
  background: rgba(57,130,23,0.08); border-color: rgba(57,130,23,0.25);
  border-left-color: var(--accent-alt);
}
.callout-warning {
  background: var(--warning-bg); border-color: var(--warning-border); border-left-color: var(--warning);
}
.callout-label {
  display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.35em; color: inherit;
}

/* ---------- Step cards (numbered, vertical - for in-article how-to steps) ---------- */
.step-cards { display: flex; flex-direction: column; gap: 1rem; counter-reset: article-step; }
.step-card {
  display: flex; gap: 1rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.step-card-num {
  counter-increment: article-step; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step-card-num::before { content: counter(article-step); }
.step-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Article layout: content + sticky sidebar/TOC ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }
.article-sidebar { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 1.5rem; }
@media (max-width: 900px) { .article-sidebar { position: static; } }

.sidebar-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.sidebar-box h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.85rem; }
.sidebar-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.sidebar-box a { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.sidebar-box a:hover { color: var(--accent); }

.toc-box nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.toc-box a {
  font-size: 0.88rem; color: var(--text-muted); display: block;
  border-left: 2px solid var(--border); padding-left: 0.75em;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.toc-box a:hover, .toc-box a.is-active { color: var(--accent); border-left-color: var(--accent); text-decoration: none; }

/* ---------- Author card ---------- */
.author-card {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.25rem; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-md); margin: 1.5rem 0;
}
.author-card-avatar {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
}
.author-card strong { display: block; font-size: 0.95rem; }
.author-card span { display: block; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Share buttons ---------- */
.share-buttons { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.share-buttons span { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.share-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.share-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.share-btn.is-copied { background: var(--accent-alt); border-color: var(--accent-alt); color: #fff; }

/* ---------- Simple hero-style header for utility pages (no illustration) ---------- */
.page-hero-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; flex-wrap: wrap; }

/* ---------- Print media: hide chrome, show only the sheet ---------- */
@media print {
  .site-header, .site-footer, .print-toolbar, .back-to-top, .reading-progress, .no-print { display: none !important; }
  body { background: #fff; }
  .print-preview { background: none; border: 0; box-shadow: none; border-radius: 0; }
  .print-sheet-wrap { background: none; padding: 0; }
  .print-sheet {
    box-shadow: none; width: 100%; height: 100%; padding: 0.4in;
    margin: 0;
  }
  /* Force background colors/gradients to print by default instead of
     relying on the user finding "Background graphics" in print settings. */
  .print-sheet, .print-sheet * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  @page { margin: 0; }
  main { padding: 0 !important; }
  .section, .hero { padding: 0 !important; display: none; }
  .section.print-only-section { display: block !important; }
}
