/* === CrawlReady shared components (single source) === */
/* ==========================================================================
   CrawlReady shared component stylesheet — single source of truth for:
   design tokens, base type, header/nav/footer + hamburger, buttons,
   content primitives, auth screens, report modules, GBP/NAP tools,
   competitor compare, admin panels.
   build.py stamps this in front of each property's own stylesheet at
   build time: dist/*.css = components/shared.css + <site>/<site>.css
   Brand: teal #1e5f7b (primary), orange #ff7e00 (secondary). NO BLUE.
   ========================================================================== */

:root {
  color-scheme: light;
  --teal: #1e5f7b;
  --teal-dark: #164a61;
  --teal-ink: #0f3c50;
  --orange: #ff7e00;
  --orange-dark: #e56f00;
  --ink: #1a2b33;
  --muted: #5a6f78;
  --bg: #ffffff;
  --bg-soft: #f4f7f8;
  --bg-sage: #eef3f1;
  --border: #dde5e8;
  --red: #c0392b;
  --red-bg: #fde8e8;
  --amber: #b7791f;
  --amber-bg: #fef3e2;
  --green: #1e7e34;
  --green-bg: #e6f4ea;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; }

/* ---------- Header / nav / hamburger ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.home-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--muted); }
.home-icon-link svg { width: 22px; height: 22px; }
.home-icon-link:hover { color: var(--teal); background: var(--bg-soft); }
.brand-mark { width: 30px; height: 30px; color: var(--teal); }
.brand-word { font-size: 23px; font-weight: 800; letter-spacing: -0.5px; color: var(--teal); }
.brand-word em { font-style: normal; color: var(--orange); }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { font-size: 15px; color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--teal); }
.nav-cta { background: var(--orange); color: #fff !important; padding: 10px 22px; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--orange-dark); }
.nav-toggle { display: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--teal); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* slim app header (logo + token pill + auth nav) */
.app-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.app-header-inner { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.app-head-right { display: flex; align-items: center; gap: 14px; }
.token-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 700; color: var(--teal); }
.token-pill svg { width: 15px; height: 15px; color: var(--orange); }
.token-pill a { color: var(--orange-dark); font-weight: 700; }
.admin-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; background: var(--teal-ink); color: #fff; padding: 6px 14px; border-radius: 999px; }

/* auth pages: logo only */
body.auth-page .token-pill, body.auth-page .admin-tag,
body.auth-page .site-nav, body.auth-page .hamburger { display: none !important; }
body.admin-mode .nav-app, body.admin-mode .token-pill { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-ink); color: #cfe0e7; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 24px 28px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-mark { color: var(--orange); }
.footer-brand p { margin-top: 10px; font-size: 14.5px; color: #9fb8c2; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { font-size: 14.5px; color: #cfe0e7; }
.footer-nav a:hover { color: #fff; }
.footer-fine { border-top: 1px solid rgba(255,255,255,.14); text-align: center; padding: 16px 24px; font-size: 13px; color: #9fb8c2; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 32px; border-radius: 999px; font-weight: 600; font-size: 16px; cursor: pointer; border: none; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-orange:disabled { opacity: .55; cursor: not-allowed; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-outline { background: #fff; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }

/* ---------- Content primitives ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.12; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 12px; }
.lede { font-size: 18px; color: var(--muted); max-width: 620px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 40px; }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; margin-bottom: 14px; }
.prose ul { padding-left: 22px; }
.prose pre { background: #0f2b3a; color: #d9e8ef; border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 18px 0 22px; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: 14.5px; color: var(--teal-ink); }
.page-hero { padding: 64px 0 24px; }

/* ---------- Severity / impact badges ---------- */
.sev { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 3px 12px; border-radius: 999px; margin-left: 10px; vertical-align: 2px; }
.sev-high { background: var(--red-bg); color: var(--red); }
.sev-med { background: var(--amber-bg); color: var(--amber); }
.sev-low { background: var(--green-bg); color: var(--green); }
.severity { flex-shrink: 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 5px 12px; border-radius: 6px; margin-top: 2px; }

/* ---------- Auth screens ---------- */
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg-soft); min-height: calc(100vh - 120px); }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 44px 40px; width: 100%; max-width: 440px; box-shadow: 0 12px 40px rgba(30,95,123,.08); }
.auth-card h1 { font-size: 26px; letter-spacing: -0.5px; margin-bottom: 8px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.auth-error { display: none; background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.field { position: relative; margin-bottom: 18px; }
.field input { width: 100%; padding: 24px 16px 10px; border: 2px solid var(--border); border-radius: 10px; font-size: 15px; outline: none; transition: border-color .15s; background: #fff; font-family: inherit; }
.field input:focus { border-color: var(--teal); }
.field label { position: absolute; left: 16px; top: 16px; font-size: 15px; color: var(--muted); pointer-events: none; transition: all .15s ease; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 8px; font-size: 12px; font-weight: 600; color: var(--teal); }
.show-pw { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 2px 0 18px; cursor: pointer; user-select: none; }
.show-pw input { width: 16px; height: 16px; accent-color: var(--teal); }
.auth-btn { display: block; width: 100%; padding: 15px; border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer; border: none; text-align: center; background: var(--orange); color: #fff; margin-top: 8px; }
.auth-btn:hover { background: var(--orange-dark); }
.auth-btn:disabled { opacity: .5; cursor: not-allowed; }
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; background: #fff; border: 2px solid var(--border); color: var(--ink); }
.btn-google:hover { border-color: #bbb; }
.btn-google svg { width: 20px; height: 20px; }
.switch { text-align: center; margin-top: 24px; font-size: 14.5px; color: var(--muted); }
.switch a { color: var(--teal); font-weight: 600; }

/* ---------- Report ---------- */
.report-wrap { max-width: 880px; margin: 0 auto; padding: 36px 24px 80px; }
.score-hero { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 40px; text-align: center; margin-bottom: 24px; }
.score-hero .url { font-size: 15px; color: var(--muted); }
.score-hero .date { font-size: 13px; color: var(--muted); margin-top: 2px; }
.score-ring { width: 150px; height: 150px; border-radius: 50%; margin: 20px auto; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--ringc, var(--orange)) 0% var(--pct, 0%), #e8eef0 var(--pct, 0%) 100%); }
.score-ring .inner { width: 118px; height: 118px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.score-ring .num { font-size: 44px; font-weight: 800; line-height: 1; }
.score-ring .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.verdict { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.verdict-sub { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 15.5px; }
.section-label { font-size: 22px; font-weight: 800; margin: 40px 0 6px; letter-spacing: -0.3px; }
.section-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.cat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 8px; }
.cat-chip { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px; text-align: center; }
.cat-chip .s { font-size: 20px; font-weight: 800; }
.cat-chip .n { font-size: 11.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.viz-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 16px; }
.viz-card h3 { font-size: 17px; margin-bottom: 4px; }
.viz-card .viz-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
/* horizontal bar chart */
.hbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hbar-row:last-child { margin-bottom: 0; }
.hbar-name { flex: 0 0 150px; font-size: 13.5px; font-weight: 600; text-align: right; }
.hbar-track { flex: 1; background: #eef2f3; border-radius: 999px; height: 22px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; }
.hbar-fill.teal { background: var(--teal); }
.hbar-fill.orange { background: var(--orange); }
.hbar-fill.red { background: var(--red); }
.hbar-score { flex: 0 0 34px; font-size: 14px; font-weight: 800; text-align: right; }
/* vertical bar chart (local stacking) */
.vbar-chart { display: flex; align-items: flex-end; justify-content: center; gap: 18px; height: 220px; padding-top: 30px; }
.vbar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; flex: 1; max-width: 110px; }
.vbar-score { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.vbar { width: 100%; border-radius: 8px 8px 0 0; }
.vbar.teal { background: var(--teal); }
.vbar.gray { background: #b9c8cd; }
.vbar.orange { background: var(--orange); }
.vbar-name { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.35; min-height: 32px; }
.vbar-name strong { color: var(--ink); }
/* ranked fix cards */
.rank-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px 28px; margin-bottom: 16px; display: flex; gap: 20px; }
.rank-num { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.rank-card.impact-high .rank-num { background: var(--orange); }
.rank-body { flex: 1; min-width: 0; }
.rank-body h3 { font-size: 18px; margin-bottom: 2px; }
.rank-cat { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; font-weight: 700; margin-bottom: 10px; }
.rank-body .why { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.fix { background: var(--bg-soft); border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; padding: 14px 18px; font-size: 14.5px; }
.fix strong { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--teal); margin-bottom: 6px; }
.fix code, .snippet code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.snippet { background: var(--teal-ink); color: #d9e8ee; border-radius: 8px; padding: 14px 18px; margin-top: 10px; overflow-x: auto; white-space: pre; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.report-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.callout-note { background: #eef5f8; border: 1px solid #cfe0e8; border-radius: var(--radius); padding: 14px 18px; font-size: 14px; color: var(--ink); margin-bottom: 18px; }
.callout-note strong { color: var(--teal); }

/* ---------- GBP checklist ---------- */
.meter-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.meter-label { font-size: 14px; font-weight: 700; color: var(--teal); }
.meter-count { font-size: 14px; font-weight: 700; color: var(--ink); }
.meter-bar { height: 10px; background: #e8eef0; border-radius: 999px; overflow: hidden; }
.meter-fill { height: 100%; width: 0%; background: var(--teal); border-radius: 999px; transition: width .3s ease; }
.gbp-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 24px 16px; margin-bottom: 16px; }
.gbp-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.gbp-row:last-child { border-bottom: none; }
.gbp-q { font-size: 15px; font-weight: 600; }
.gbp-q small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.yn-toggle { display: flex; border: 2px solid var(--border); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.yn-toggle button { border: none; background: #fff; padding: 8px 20px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--muted); }
.yn-toggle button:first-child { border-right: 2px solid var(--border); }
.yn-toggle button.on-yes { background: var(--green-bg); color: var(--green); }
.yn-toggle button.on-no { background: var(--red-bg); color: var(--red); }
.gbp-fix { display: none; background: #fff8f2; border: 1px solid #f3d9b8; border-radius: 10px; padding: 14px 18px; margin: 4px 0 12px; font-size: 14px; }
.gbp-fix.show { display: block; }
.gbp-fix strong { color: var(--orange-dark); }
.gbp-fix ol, .gbp-fix ul { margin: 8px 0 0 20px; }
.gbp-fix li { margin-bottom: 6px; }

/* ---------- NAP consistency check ---------- */
.consist-grid { display: grid; grid-template-columns: 130px 1fr 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; margin-bottom: 18px; }
.consist-grid .cg-head { background: var(--teal); color: #fff; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 12px 14px; }
.consist-grid .cg-label { background: var(--bg-soft); font-size: 14px; font-weight: 700; padding: 12px 14px; border-top: 1px solid var(--border); display: flex; align-items: center; }
.consist-grid .cg-cell { padding: 8px 10px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.consist-grid input { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--ink); }
.consist-grid input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.consist-result-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.consist-result-row:last-child { border-bottom: none; }
.cr-icon { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.cr-icon svg { width: 14px; height: 14px; }
.cr-pass { background: var(--green-bg); } .cr-pass svg { stroke: var(--green); }
.cr-fail { background: var(--red-bg); } .cr-fail svg { stroke: var(--red); }
.cr-empty { background: var(--bg-soft); } .cr-empty svg { stroke: var(--muted); }
#consist-results { display: none; }
#consist-results.show { display: block; }
.consist-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }

/* ---------- Competitor compare ---------- */
.compare-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 16px; }
.compare-note { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.compare-note strong { color: var(--orange-dark); }
.comp-add { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.comp-add input { flex: 1; min-width: 200px; border: 2px solid var(--border); border-radius: 999px; padding: 12px 20px; font-size: 15px; font-family: inherit; }
.comp-add input:focus { outline: none; border-color: var(--teal); }
.comp-add select { border: 2px solid var(--border); border-radius: 999px; padding: 12px 16px; font-size: 14px; font-family: inherit; color: var(--muted); max-width: 220px; }
.comp-list { list-style: none; margin-bottom: 18px; }
.comp-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bg-soft); font-size: 15px; }
.comp-list li:last-child { border-bottom: none; }
.comp-list .comp-status { font-size: 13px; color: var(--muted); }
.comp-list .comp-status.scanning { color: var(--orange-dark); font-weight: 600; }
.comp-list .comp-status.done { color: var(--green); font-weight: 700; }
.comp-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }

/* ---------- Scan history ---------- */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.hist-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; color: inherit; }
.hist-row:hover { border-color: var(--teal); }
.hist-score { font-size: 26px; font-weight: 800; min-width: 64px; text-align: center; }
.hist-score.hist-queued, .hist-score.hist-running { font-size: 13px; font-weight: 600; color: var(--orange-dark); }
.hist-score.hist-error { font-size: 13px; font-weight: 600; color: var(--red); }
.hist-url { flex: 1; font-size: 16px; font-weight: 600; }
.hist-date { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.hist-arrow { color: var(--teal); font-size: 20px; }

/* ---------- Settings ---------- */
.settings-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.settings-card h2 { font-size: 18px; margin-bottom: 14px; }
.settings-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--bg-soft); font-size: 15px; }
.settings-row:last-child { border-bottom: none; }
.settings-label { min-width: 140px; color: var(--muted); }
.field-label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 6px; }
.field-input { width: 100%; max-width: 380px; border: 2px solid var(--border); border-radius: 12px; padding: 11px 16px; font-size: 15px; font-family: inherit; }
.field-input:focus { outline: none; border-color: var(--teal); }
.pw-ok { color: var(--green); font-weight: 600; font-size: 14px; margin: 10px 0; }

/* ---------- Billing & invoices ---------- */
.inv-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.inv-sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.inv-meta { text-align: right; display: flex; flex-direction: column; gap: 8px; }
.inv-meta span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.inv-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 20px; }
.inv-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid var(--border); }
.inv-table td { padding: 14px 8px; border-bottom: 1px solid var(--border); }
.inv-total { display: flex; justify-content: space-between; font-size: 18px; padding: 12px 8px; }
.invoice-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; margin-top: 16px; }
@media print {
  .app-header, .report-actions, #invoice-back, .btn-link { display: none !important; }
  .invoice-card { border: none; padding: 0; }
}
.step-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.comp-add-row { display: flex; gap: 10px; margin: 18px 0 6px; }
.comp-add-row input { flex: 1; border: 2px solid var(--border); border-radius: 999px; padding: 12px 20px; font-size: 15px; font-family: inherit; }
.comp-add-row input:focus { outline: none; border-color: var(--teal); }
.comp-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bg-soft); font-size: 15px; }
.comp-item .comp-remove { font-size: 20px; text-decoration: none; line-height: 1; padding: 4px 8px; }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.btn-link { background: none; border: none; color: var(--teal); font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 8px 0; }
.btn-link:hover { text-decoration: underline; }
.skip-row { text-align: center; margin-top: 10px; }

/* ---------- Scan progress steps (Siftly-style) ---------- */
.pulse-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 6px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.scan-steps { list-style: none; margin: 0 0 20px; padding: 0; }
.scan-steps li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; color: var(--muted); }
.scan-steps li .st-ic { width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.scan-steps li.done { color: var(--ink); }
.scan-steps li.done .st-ic { color: var(--green); }
.scan-steps li.active { color: var(--ink); font-weight: 600; }
.scan-steps li.active .st-ic { color: var(--orange-dark); }
.scan-steps li.active .st-ic .mini-spin { width: 16px; height: 16px; border: 2.5px solid var(--border); border-top-color: var(--orange-dark); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-steps li.todo .st-ic { color: var(--border); }
.scan-progress { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.scan-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal), var(--orange)); border-radius: 999px; transition: width .6s ease; }
.scan-progress-label { font-size: 13px; color: var(--muted); }

/* ---------- Local query test ---------- */
.query-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.query-row { display: flex; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.query-row:last-child { border-bottom: none; }
.query-row .q { font-weight: 700; display: block; margin-bottom: 2px; }
.query-row .a { color: var(--muted); }
.query-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.query-ic svg { width: 14px; height: 14px; }
.query-ic.bad { background: var(--red-bg); } .query-ic.bad svg { stroke: var(--red); }
.query-ic.good { background: var(--green-bg); } .query-ic.good svg { stroke: var(--green); }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1120px; margin: 0 auto; padding: 36px 24px 80px; }
.admin-wrap h1 { font-size: 30px; letter-spacing: -0.8px; margin-bottom: 6px; }
.admin-sub { color: var(--muted); margin-bottom: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stat .v { font-size: 32px; font-weight: 800; color: var(--teal); }
.stat .l { font-size: 13px; color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 20px; overflow-x: auto; }
.panel h2 { font-size: 19px; margin-bottom: 14px; }
.panel table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.panel th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--border); }
.panel td { padding: 10px; border-bottom: 1px solid var(--bg-soft); }
.panel tr:last-child td { border-bottom: none; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.tag.ok { background: var(--green-bg); color: var(--green); }
.tag.err { background: var(--red-bg); color: var(--red); }
.tag.warn { background: var(--amber-bg); color: var(--amber); }
.delta-pos { color: var(--green); font-weight: 700; }
.delta-neg { color: var(--red); font-weight: 700; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.inline-form input[type="email"] { flex: 1 1 260px; max-width: 340px; }
.inline-form input[type="number"] { width: 110px; }
.inline-form input { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fff; }
.inline-form input:focus { outline: none; border-color: var(--teal); }
.inline-form .btn { padding: 12px 24px; font-size: 15px; }
.form-msg { font-size: 14px; font-weight: 600; color: var(--muted); }
.form-msg.form-ok { color: var(--green); }
.form-msg.form-err { color: var(--red); }
.admin-login-row { display: flex; align-items: center; gap: 12px; }

/* ---------- Service-unavailable / empty states ---------- */
.service-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 48px 40px; text-align: center; max-width: 560px; margin: 80px auto; }
.service-card h1 { font-size: 26px; margin-bottom: 10px; }
.service-card p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Nav dropdown (Resources) ---------- */
.nav-drop { position: relative; }
.nav-drop-btn { font-size: 15px; color: var(--muted); font-weight: 500; cursor: default; white-space: nowrap; }
.nav-drop-btn:hover { color: var(--teal); }
.nav-drop-btn .caret { font-size: 11px; }
.nav-drop-menu { display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px; min-width: 260px; box-shadow: 0 16px 40px rgba(30,95,123,.12); z-index: 60; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 15px; }
.nav-drop-menu a:hover { background: var(--bg-soft); }
.nav-drop-menu a strong { display: block; font-size: 15px; }
.nav-drop-menu a small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .hamburger { display: flex; }
  .header-inner, .app-header-inner { position: relative; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 24px 20px; border-bottom: 1px solid var(--border); gap: 0; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--bg-soft); font-size: 16px; }
  .site-nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .section { padding: 52px 0; }
  .token-pill { padding: 6px 12px; font-size: 13px; }
  /* dropdown becomes an inline section on mobile */
  .nav-drop-btn { display: block; padding: 13px 0; border-bottom: 1px solid var(--bg-soft); font-size: 16px; color: var(--ink); font-weight: 700; cursor: default; }
  .nav-drop-btn .caret { display: none; }
  .nav-drop-menu { display: block; position: static; transform: none; border: none; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .nav-drop-menu a { border-bottom: 1px solid var(--bg-soft); border-radius: 0; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .rank-card { padding: 20px; gap: 14px; }
  .hbar-name { flex: 0 0 108px; font-size: 12px; }
  .vbar-chart { gap: 10px; height: 190px; }
  .vbar-name { font-size: 10px; }
  .gbp-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .consist-grid { grid-template-columns: 1fr; }
  .consist-grid .cg-head { display: none; }
  .consist-grid .cg-label { border-left: none; }
  .consist-grid .cg-cell { border-left: none; }
  .consist-grid .cg-cell::before { content: attr(data-src); display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 36px 28px; }
}

/* ---------- Person account menu (app header) ---------- */
.profile-menu { position: relative; }
.profile-toggle { display: none; }
.profile-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; color: var(--teal); cursor: pointer; transition: border-color .15s, background .15s; }
.profile-btn svg { width: 21px; height: 21px; }
.profile-btn:hover { border-color: var(--teal); background: var(--bg-soft); }
.profile-toggle:checked + .profile-btn { border-color: var(--teal); background: var(--bg-soft); }
.profile-drop { display: none; position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--border); border-radius: 14px; min-width: 230px; box-shadow: 0 16px 40px rgba(30,95,123,.14); padding: 8px; z-index: 200; }
.profile-toggle:checked ~ .profile-drop { display: block; }
.profile-drop-email { font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 14px 10px; border-bottom: 1px solid var(--bg-soft); margin-bottom: 6px; word-break: break-all; }
.profile-drop a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink); }
.profile-drop a:hover { background: var(--bg-soft); color: var(--teal); }
.profile-drop-div { border-top: 1px solid var(--bg-soft); margin: 6px 0; }
body.admin-mode .profile-menu { display: none !important; }
.admin-only { display: none !important; }
body.admin-mode .admin-only { display: block !important; }
@media (min-width: 821px) {
  .acct-link { display: none !important; }
}

/* ---------- Account area: left sidebar layout ---------- */
.acct-layout { display: flex; gap: 44px; max-width: 1120px; margin: 0 auto; padding: 40px 24px 88px; align-items: flex-start; }
.side-nav { flex: none; width: 240px; position: sticky; top: 92px; }
.side-nav-title { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 10px; padding: 0 12px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); }
.side-nav a svg { width: 18px; height: 18px; flex: none; }
.side-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.side-nav a.active { background: var(--bg-soft); color: var(--teal); font-weight: 700; }
.acct-content { flex: 1; min-width: 0; }
.acct-content > h1 { font-size: 28px; letter-spacing: -0.6px; margin-bottom: 20px; }
@media (max-width: 820px) {
  .acct-layout { flex-direction: column; gap: 20px; padding-top: 28px; }
  .side-nav { width: 100%; position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .side-nav-title { display: none; }
  .side-nav a { white-space: nowrap; font-size: 14.5px; }
}

/* ---------- Profile cards (Cloudflare-style) ---------- */
.pf-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 6px 24px; margin-bottom: 20px; }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--bg-soft); }
.pf-row:last-child { border-bottom: none; }
.pf-label { font-size: 16px; font-weight: 700; }
.pf-value { color: var(--muted); font-size: 14.5px; margin-top: 2px; word-break: break-all; }
.pf-hint { color: var(--muted); font-size: 14px; margin-top: 2px; }
.btn-sm { padding: 10px 22px; font-size: 14.5px; flex: none; }

/* ---------- Modals ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,44,58,.52); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 500; }
.modal-backdrop[hidden] { display: none; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 460px; padding: 28px; box-shadow: 0 24px 64px rgba(0,0,0,.25); max-height: calc(100vh - 60px); overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-head h2 { font-size: 21px; letter-spacing: -0.4px; margin: 0; }
.modal-x { background: none; border: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; }
.modal-x:hover { color: var(--ink); }
.modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.modal-sub strong { color: var(--ink); }
.modal .field-input { max-width: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal-actions .btn { padding: 11px 28px; font-size: 15px; }
.req { color: var(--red); }

/* === marketing property styles === */
/* CrawlReady marketing + help site-specific styles.
   Shared system (tokens, header/footer, buttons, hamburger, type) comes
   from components/shared.css, prepended at build time. */

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); padding: 88px 0 72px; text-align: center; }
.hero .lede { margin: 18px auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.score-strip { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.score-strip .pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; color: var(--teal); }
.score-strip .pill svg { width: 16px; height: 16px; color: var(--orange); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.step-card { background: var(--bg-soft); border-radius: var(--radius); padding: 32px 28px; }
.step-card .step-num { width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 18px; }
.step-card h2, .step-card h3 { font-size: 19px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 15.5px; }
.step-card .art-icon { width: 34px; height: 34px; color: var(--teal); margin-bottom: 14px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; align-items: stretch; }
.price-card { background: #fff; border: 2px solid var(--border); border-radius: 16px; padding: 36px 30px; text-align: center; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--orange); box-shadow: 0 12px 40px rgba(255,126,0,.16); position: relative; }
.price-card .flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 4px 16px; border-radius: 999px; white-space: nowrap; }
.price-card .tokens { font-size: 15px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.price-card .price { font-size: 44px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; }
.price-card .per { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 28px; flex: 1; }
.price-card li { font-size: 15px; color: var(--muted); padding: 7px 0 7px 30px; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 14px; height: 8px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
.pricing-note { text-align: center; color: var(--muted); margin-top: 24px; font-size: 14.5px; }

/* ---------- FAQ (details/summary, zero JS) ---------- */
.faq-list { max-width: 760px; margin: 32px 0 0; }
.faq-list details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-list summary { padding: 18px 22px; font-weight: 600; font-size: 16.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { display: inline; font-size: inherit; font-weight: inherit; margin: 0; }
.faq-list summary .chev { flex: none; width: 20px; height: 20px; color: var(--teal); transition: transform .2s; }
.faq-list details[open] summary .chev { transform: rotate(180deg); }
.faq-list .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq-body code { background: var(--bg-soft); padding: 2px 7px; border-radius: 6px; font-size: 14px; color: var(--teal-dark); }

/* ---------- Sample report strip ---------- */
.sample-band { background: var(--teal-ink); color: #eaf3f6; }
.sample-band h2 { color: #fff; }
.sample-band .lede { color: #a9c3cd; }
.report-mini { background: #fff; color: var(--ink); border-radius: 16px; max-width: 860px; margin: 36px auto 0; padding: 32px; text-align: left; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.rank-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.rank-row:last-child { border-bottom: none; }
.rank-badge { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rank-badge.low { background: var(--teal); }
.rank-row h3 { font-size: 16px; margin-bottom: 4px; }
.rank-row p { font-size: 14.5px; color: var(--muted); }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .steps, .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- Help center (shared with help.crawlready.ai) ---------- */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
a.help-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.help-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(30,95,123,.12); border-color: var(--teal); }
.help-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--bg-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.help-ic svg { width: 25px; height: 25px; }
a.help-card h3 { font-size: 17.5px; font-weight: 800; letter-spacing: -0.2px; margin-bottom: 6px; color: var(--teal-ink); }
a.help-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.help-more { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--orange-dark); display: flex; align-items: center; gap: 6px; }
.help-more svg { width: 16px; height: 16px; }
.help-section-title { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; margin: 44px 0 18px; }
.help-section-title:first-child { margin-top: 0; }

/* article pages */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 56px 24px 88px; }
.crumb { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--teal); }
.crumb a:hover { text-decoration: underline; }
.article-wrap h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -1px; margin-bottom: 12px; }
.article-lede { font-size: 18px; color: var(--muted); margin-bottom: 8px; max-width: 640px; }
.article-body { margin-top: 32px; }
.article-body h2 { font-size: 23px; letter-spacing: -0.4px; margin: 40px 0 12px; }
.article-body h3 { font-size: 18px; margin: 28px 0 8px; }
.article-body p, .article-body li { color: var(--muted); font-size: 16.5px; margin-bottom: 14px; line-height: 1.65; }
.article-body p strong, .article-body li strong { color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: 14.5px; color: var(--teal-ink); }
.article-body pre { background: #0f2b3a; color: #d9e8ef; border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 18px 0 22px; }
.article-body pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

/* step-by-step */
.howto { counter-reset: step; list-style: none; padding: 0 !important; margin: 20px 0 28px; }
.howto li { counter-increment: step; position: relative; padding: 0 0 20px 52px; }
.howto li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.howto li strong { color: var(--ink); display: block; font-size: 16.5px; margin-bottom: 2px; }
.howto li p { margin-bottom: 6px; }

/* callouts */
.callout { border-radius: 12px; padding: 16px 20px; margin: 24px 0; font-size: 15px; line-height: 1.6; }
.callout p { margin: 0; font-size: 15px; }
.callout strong { display: block; margin-bottom: 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; }
.callout.tip { background: var(--green-bg); border: 1px solid #bfe3c9; }
.callout.tip strong { color: var(--green); }
.callout.info { background: #eef5f8; border: 1px solid #cfe0e8; }
.callout.info strong { color: var(--teal); }
.callout.warn { background: var(--amber-bg); border: 1px solid #f0d9a8; }
.callout.warn strong { color: var(--amber); }

/* inline graphics */
.figure { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px; padding: 36px 28px; margin: 32px 0; }
.figure svg { width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.figure figcaption { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* check/score table */
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 15.5px; }
.spec-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--border); }
.spec-table td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.spec-table td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.spec-table tr:last-child td { border-bottom: none; }

/* related articles */
.related { border-top: 1px solid var(--border); margin-top: 52px; padding-top: 28px; }
.related h2 { font-size: 19px; margin-bottom: 14px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.related li a { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 600; color: var(--teal); }
.related li a:hover { text-decoration: underline; }
.related li a svg { width: 16px; height: 16px; color: var(--orange); flex: none; }

@media (max-width: 820px) {
  .help-grid { grid-template-columns: 1fr; }
  .article-wrap { padding: 40px 20px 64px; }
  .figure { padding: 24px 16px; }
}
