/* guides.css — standalone article styling for /guides/ (SEO pages).
 * Matches the app's visual identity (see css/style.css): same warm
 * "1a Bright & friendly" palette, webfonts via css/fonts.css, light
 * default + dark via prefers-color-scheme.
 * Self-contained on purpose — guide pages must not depend on app CSS. */

:root {
  --bg: #FFFBF6;
  --surface: #FFFFFF;
  --surface-2: #F6F4EF;
  --ink: #211F1D;
  --text: #39342C;
  --text-muted: #6C665B;
  --border: #F0EBE2;
  --border-strong: #E6DFD2;

  --accent: #EF4E23;
  --accent-strong: #C23D18;
  --accent-contrast: #ffffff;
  --accent-soft: #FFF7F0;
  --accent-soft-2: #FCE9E1;

  --warn-bg: #FBF0DC;
  --warn-border: #C68A2E;
  --warn-text: #8A5A14;

  --chip-bg: #F0EBE2;

  --shadow-sm: 0 1px 2px rgba(60, 50, 35, 0.05);
  --shadow-md: 0 8px 24px rgba(60, 50, 35, 0.05);
  --shadow-cta: 0 10px 24px rgba(239, 78, 35, 0.28);
  --card-hover-border: #F0C7B4;

  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 12px;
  --speed: 150ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140F;
    --surface: #201C15;
    --surface-2: #29241B;
    --ink: #F5F1E8;
    --text: #E9E4DA;
    --text-muted: #A69C8C;
    --border: #332D22;
    --border-strong: #463D2E;

    --accent: #FF7A45;
    --accent-strong: #FFA07E;
    --accent-contrast: #201207;
    --accent-soft: #33231A;
    --accent-soft-2: #47301F;

    --warn-bg: #362A12;
    --warn-border: #C68A2E;
    --warn-text: #EDD3A0;

    --chip-bg: #2C261D;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-cta: 0 10px 24px rgba(0, 0, 0, 0.45);
    --card-hover-border: #5C4430;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

/* handoff typography: headings in Space Grotesk, tight tracking, ink */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- header: moved to css/header.css (shared header) ---------- */

/* ---------- article layout ---------- */

/* Owner requirement: page frame = 1240px like the rest of the site.
   Long prose blocks keep a readable measure via .article p/li below. */
.article {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.article > p,
.article > ul,
.article > ol,
.article h2 + p {
  max-width: 860px;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.article h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.article .lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 1.6rem;
}

.article h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 2.2rem 0 0.7rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--accent-soft-2);
}

.article h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.5rem;
}

.article p { margin: 0 0 1rem; }
.article ul, .article ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.article li { margin-bottom: 0.45rem; }

.article a { color: var(--accent); }
.article a:hover { color: var(--accent-strong); }

.article strong { font-weight: 700; }

/* setting values as inline chips */
.article code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--chip-bg);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  white-space: nowrap;
}

/* "where to find it" path — same voice as the tool's .fix-where line */
.where {
  display: block;
  font-size: 0.83rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.15rem;
}
.where::before { content: "Where: "; font-weight: 600; }

/* fix cards: one recommendation per card — same family as the tool's
 * .fix-card / .feedback-card (white surface, 16px radius, soft shadow,
 * orange accent edge, gentle hover) */
.fix {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1.05rem;
  margin: 0 0 0.8rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--speed) ease;
}
.fix:hover { box-shadow: var(--shadow-md); }
.fix p { margin: 0; }
.fix p + p { margin-top: 0.4rem; }

/* warning / caution box */
.callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}
.callout p { margin: 0; color: inherit; }

/* tables */
.table-scroll { overflow-x: auto; margin: 0 0 1rem; }

.article table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.article th, .article td {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.article td:last-child, .article th:last-child { white-space: normal; }

.article th {
  background: var(--surface-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.article tr:last-child td { border-bottom: none; }

/* ---------- CTA box ---------- */

.cta {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin: 2.2rem 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta h2, .cta .cta-title {
  border: none;
  margin: 0 0 0.35rem;
  padding: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta p { margin: 0 0 1rem; color: var(--text-muted); }

.cta .btn {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 13px;
  box-shadow: var(--shadow-cta);
}

.cta .btn:hover { background: var(--accent-strong); color: var(--accent-contrast); }

.cta .cta-sub {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- related guides (internal-linking cluster block) ---------- */

.related-guides {
  margin: 2.2rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
}
.related-guides h2 {
  border: none;
  padding: 0;
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.related-guides ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.6rem;
}
.related-guides li { margin: 0; }
.related-guides a {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--speed) ease, border-color var(--speed) ease;
}
.related-guides a:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

/* ---------- sources ---------- */

.sources {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.sources h2 {
  border: none;
  font-size: 1rem;
  margin: 0 0 0.5rem;
  padding: 0;
}

/* ---------- guide index cards (match the landing's .guide-card look:
 * mono category label, ink title, muted blurb, hover lift) ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.9rem;
  margin: 1.1rem 0 2rem;
}

.guide-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 18px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease,
              transform var(--speed) ease;
}

.guide-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--text);
}

.guide-card h3 {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.guide-card p {
  margin: 0;
  font-size: 0.845rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.guide-card .guide-cat, .guide-cat {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

/* section eyebrow above each card grid — mono, like the landing eyebrows */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 2.2rem 0 0.2rem;
}

/* section heading row: label + live count badge */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.section-head .section-label { margin: 2.2rem 0 0.2rem; }
.count-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--chip-bg);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  margin: 2.2rem 0 0.2rem;
}

.guide-card.hidden { display: none; }

.empty-state {
  display: none;
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1rem 0;
  margin: 0;
}

/* ---------- printer picker ---------- */

.picker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.4rem 0 1rem;
  box-shadow: var(--shadow-sm);
}

.picker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}
.picker-row + .picker-row { margin-top: 0.9rem; }

.picker label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
  white-space: nowrap;
}

.picker-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex: 1 1 auto;
}

.picker select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  min-width: 160px;
  max-width: 100%;
}
.picker select:disabled { opacity: 0.6; }

.picker-reset {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: background var(--speed) ease;
}
.picker-reset:hover { background: var(--accent-soft-2); }

.chips-row { align-items: flex-start; }

.chips-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 0.4rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1 1 auto;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background var(--speed) ease, border-color var(--speed) ease, color var(--speed) ease;
}
.chip:hover { border-color: var(--card-hover-border); }
.chip.active {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: var(--accent);
}

.picker-status {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .picker-row { flex-direction: column; align-items: stretch; }
  .picker select { min-width: 0; flex: 1 1 auto; }
  .chips-label { padding-top: 0; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer p { margin: 0.2rem 0; }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- instant guide search (v2.17.0) ----------
 * Only the guides-index page FIELD lives here; the shared results-dropdown
 * styles moved to header.css (v2.19.0) because the header search on every
 * page reuses them. */
.guide-search-wrap { position: relative; margin: 1rem 0 1.2rem; }
#guide-search {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  border: 2px solid var(--border, #e2dbd0);
  border-radius: 12px;
  background: var(--card-bg, #fff);
  color: inherit;
}
#guide-search:focus {
  outline: none;
  border-color: #ef4e23;
  box-shadow: 0 0 0 3px rgba(239, 78, 35, 0.15);
}
@media (prefers-color-scheme: dark) {
  #guide-search { background: #211d16; border-color: #3a342a; }
}

/* ---------- inline screenshots in guides (v2.32.0) ---------- */
figure.guide-shot { margin: 1.2rem 0; }
figure.guide-shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
figure.guide-shot figcaption { margin-top: 0.45rem; font-size: 0.82rem; color: var(--text-muted, #6C665B); }
@media (prefers-color-scheme: dark) {
  figure.guide-shot img { border-color: rgba(255, 255, 255, 0.12); }
}

/* ---------- guide progress tracker (v2.34.1, guide-progress.js) ----------
 * Wide screens: sticky sidebar in the article's right gutter.
 * Small screens: fixed bottom pill that flips open a checklist sheet. */
body.gp-active { padding-bottom: 84px; }

h2.gp-done { color: #7C766A; }
h2.gp-done::after { content: " \2713"; color: #1B9E4E; font-weight: 700; }

/* -- shared checklist (sidebar + sheet) -- */
.gp-side, .gp-sheet {
  background: var(--hdr-solid, #FFFBF6);
  border: 1px solid var(--hdr-border, #F0EBE2);
}
.gp-l-head { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.45rem; }
.gp-l-title { font-size: 0.86rem; }
.gp-l-pct { margin-left: auto; font-weight: 700; font-size: 0.8rem; color: #1B9E4E; font-variant-numeric: tabular-nums; }
.gp-l-meter { height: 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.08); overflow: hidden; margin-bottom: 0.6rem; }
.gp-l-fill { height: 100%; background: #1B9E4E; border-radius: 4px; transition: width 0.3s ease; }
.gp-row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  border-radius: 8px;
}
.gp-row:hover { background: rgba(27, 158, 78, 0.08); }
.gp-box-btn {
  border: 0;
  background: none;
  padding: 0.4rem 0.35rem;
  cursor: pointer;
  display: inline-flex;
}
.gp-row-label {
  flex: 1;
  border: 0;
  background: none;
  padding: 0.4rem 0.3rem 0.4rem 0.1rem;
  font: inherit;
  font-size: 0.84rem;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.gp-row-label:hover { color: #1B9E4E; }
.gp-box {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  border: 2px solid #C9C2B4;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}
.gp-box-mark { color: transparent; font-size: 0.8rem; font-weight: 800; line-height: 1; }
.gp-row-done .gp-box { background: #1B9E4E; border-color: #1B9E4E; }
.gp-row-done .gp-box-mark { color: #fff; }
.gp-row-done .gp-row-label { color: var(--text-muted, #6C665B); text-decoration: line-through; text-decoration-color: rgba(27, 158, 78, 0.5); }
.gp-l-foot { display: flex; justify-content: flex-end; margin-top: 0.5rem; }
.gp-l-reset {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.75rem;
  color: var(--text-muted, #6C665B);
  text-decoration: underline;
  cursor: pointer;
}
.gp-l-reset:hover { color: #1B9E4E; }

/* -- sidebar: only where the gutter exists -- */
.gp-side {
  display: none;
  position: fixed;
  top: 130px;
  right: max(18px, calc((100vw - 1240px) / 2));
  width: 232px;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  z-index: 40;
}
.gp-side.gp-complete { border-color: #1B9E4E; }
.gp-side.gp-complete .gp-l-title { color: #1B9E4E; }

/* -- bottom pill + sheet: small screens only -- */
.gp-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 880;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: min(560px, calc(100vw - 24px));
  padding: 0.55rem 0.95rem;
  border-radius: 99px;
  background: var(--hdr-solid, #FFFBF6);
  border: 1px solid var(--hdr-border, #F0EBE2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font: inherit;
  font-size: 0.8rem;
  color: inherit;
  cursor: pointer;
}
.gp-bar-title { font-weight: 700; white-space: nowrap; }
.gp-segs { display: flex; gap: 4px; }
.gp-seg { width: 22px; height: 9px; border-radius: 5px; background: #E3DDD0; transition: background 0.2s; }
.gp-seg-done { background: #1B9E4E; }
.gp-frac { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-muted, #6C665B); white-space: nowrap; }
.gp-chev { color: var(--text-muted, #6C665B); font-size: 0.75rem; }
.gp-bar.gp-complete { border-color: #1B9E4E; box-shadow: 0 8px 24px rgba(27, 158, 78, 0.35); }
.gp-bar.gp-complete .gp-bar-title { color: #1B9E4E; }
.gp-sheet {
  position: fixed;
  left: 50%;
  bottom: 66px;
  transform: translateX(-50%);
  z-index: 879;
  width: min(420px, calc(100vw - 24px));
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
@media (prefers-reduced-motion: no-preference) {
  .gp-bar.gp-complete { animation: gp-pop 0.45s ease; }
  @keyframes gp-pop {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.06); }
    100% { transform: translateX(-50%) scale(1); }
  }
}
@media (max-width: 560px) {
  .gp-bar-title { display: none; }
  .gp-bar.gp-complete .gp-bar-title { display: inline; }
}
/* wide screens: sidebar in (with REAL room carved out of the article),
 * bottom UI out */
@media (min-width: 1240px) {
  .gp-side { display: block; }
  .gp-bar, .gp-sheet { display: none !important; }
  body.gp-active { padding-bottom: 0; }
  body.gp-active .article { padding-right: 285px; }
}
@media (prefers-color-scheme: dark) {
  .gp-box { border-color: #57503F; }
  .gp-seg { background: #3A3426; }
  .gp-seg-done, .gp-row-done .gp-box, .gp-l-fill { background: #27B95F; }
  .gp-row-done .gp-box { border-color: #27B95F; }
  .gp-l-meter { background: rgba(255, 255, 255, 0.1); }
  h2.gp-done { color: #97907F; }
  .gp-side.gp-complete, .gp-bar.gp-complete { border-color: #27B95F; }
}
@media print { .gp-bar, .gp-sheet, .gp-side { display: none !important; } }

/* ---------- inline screenshots in guides (v2.32.0) ---------- */
figure.guide-shot { margin: 1.2rem 0; }
figure.guide-shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
figure.guide-shot figcaption { margin-top: 0.45rem; font-size: 0.82rem; color: var(--text-muted, #6C665B); }
@media (prefers-color-scheme: dark) {
  figure.guide-shot img { border-color: rgba(255, 255, 255, 0.12); }
}

/* ---------- inline pop quiz (v2.34.0, guide-progress.js) ---------- */
.gquiz {
  margin: 1.4rem 0;
  padding: 1rem 1.15rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(27, 158, 78, 0.35);
  background: rgba(27, 158, 78, 0.05);
}
.gquiz-q { margin: 0 0 0.7rem; }
.gquiz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.gquiz-opt {
  position: relative;
  padding: 0;
  border: 2.5px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.15s;
}
.gquiz-opt:hover { transform: translateY(-2px); }
.gquiz-opt img { display: block; width: 100%; height: auto; }
.gquiz-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gquiz-opt.gquiz-chosen, .gquiz-opt.gquiz-right { border-color: #1B9E4E; }
.gquiz-opt.gquiz-wrong { border-color: #D64545; }
.gquiz-result { margin: 0.7rem 0 0; font-size: 0.88rem; }
.gquiz-result-ok { color: #157B3C; font-weight: 600; }
@media (max-width: 560px) { .gquiz-opts { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) {
  .gquiz { border-color: rgba(39, 185, 95, 0.4); background: rgba(39, 185, 95, 0.07); }
  .gquiz-opt.gquiz-chosen, .gquiz-opt.gquiz-right { border-color: #27B95F; }
  .gquiz-result-ok { color: #27B95F; }
}

/* ---------- guide FAQ (v2.36.0, schema via gen-faq-schema.mjs) ---------- */
.gfaq { margin: 1.6rem 0 0.4rem; }
.gfaq h2 { margin-bottom: 0.6rem; }
.gfaq-item {
  border: 1px solid var(--border, #E7E1D4);
  border-radius: 10px;
  background: var(--card-bg, #FFFBF6);
  margin: 0 0 0.5rem;
  padding: 0;
}
.gfaq-item summary {
  padding: 0.7rem 0.95rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.gfaq-item summary::-webkit-details-marker { display: none; }
.gfaq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--accent, #EF4E23);
}
.gfaq-item[open] summary::after { content: "\2212"; }
.gfaq-item[open] summary { border-bottom: 1px solid var(--border, #E7E1D4); }
.gfaq-item p { margin: 0.65rem 0.95rem 0.8rem; font-size: 0.9rem; }
@media (prefers-color-scheme: dark) {
  .gfaq-item { background: rgba(255, 255, 255, 0.03); border-color: #332D22; }
  .gfaq-item[open] summary { border-color: #332D22; }
}

/* ---- clearance & fit guide (v2.40.0): diagrams + interactive visualizer ---- */
.fit-diagram { margin: 1.6rem 0; }
.fit-diagram svg text { user-select: none; }
.fit-diagram figcaption { text-align: center; font-size: 0.85rem; color: var(--text-muted, #6C665B); margin-top: 0.5rem; }
@media (prefers-color-scheme: dark) {
  .fit-diagram svg [fill="#F0EBE2"] { fill: #332D22; }
  .fit-diagram svg [fill="#211F1D"], .fit-diagram svg text[fill="#211F1D"] { fill: #F5F1E8; }
  .fit-diagram svg [stroke="#211F1D"] { stroke: #F5F1E8; }
  .fit-diagram svg [stroke="#F0EBE2"] { stroke: #463D2E; }
  .fit-diagram svg [stroke="#1E63D6"] { stroke: #5B9BFF; }
  .fit-diagram svg text[fill="#EF4E23"], .fit-diagram svg [fill="#EF4E23"] { fill: #FF7A45; }
}
.clr-viz {
  border: 1.5px solid var(--border-strong, #E6DFD2);
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1rem;
  margin: 1.6rem 0;
  background: var(--card-bg, #fff);
}
.clr-viz-controls { max-width: 520px; margin: 0.8rem auto 0; text-align: center; }
.clr-viz input[type="range"] { width: 100%; accent-color: #1E63D6; cursor: pointer; }
.clr-viz-read { margin: 0.5rem 0 0; font-size: 0.95rem; }
.clr-viz-read span:first-child { font-family: var(--font-mono, monospace); font-weight: 700; color: #1E63D6; }
@media (prefers-color-scheme: dark) {
  .clr-viz svg [fill="#F0EBE2"] { fill: #332D22; }
  .clr-viz svg [fill="#E6DFD2"] { fill: #463D2E; }
  .clr-viz svg [fill="#DCE7FA"] { fill: #24385C; }
  .clr-viz svg [fill="#FCE9E1"] { fill: #47301F; }
  .clr-viz svg [stroke="#211F1D"] { stroke: #F5F1E8; }
  .clr-viz svg [stroke="#F0EBE2"] { stroke: #463D2E; }
  .clr-viz svg [stroke="#1E63D6"] { stroke: #5B9BFF; }
  .clr-viz svg text[fill="#211F1D"] { fill: #F5F1E8; }
  .clr-viz svg text[fill="#1E63D6"] { fill: #5B9BFF; }
  .clr-viz svg text[fill="#EF4E23"] { fill: #FF7A45; }
  .clr-viz input[type="range"] { accent-color: #5B9BFF; }
  .clr-viz-read span:first-child { color: #5B9BFF; }
}
.cheat-links { margin: 1rem 0 0; }
