:root {
  --bg: #1b1f27;
  --grid: #242a35;
  --panel: #232934;
  --panel-2: #2b3240;
  --line: #3a4352;
  --text: #e6e9ef;
  --muted: #a3acbb;
  --focus: #ffd166;
  --display: "Chakra Petch", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font: 17px/1.6 var(--body);
}
a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }

/* Header */
.site-head {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 16px max(16px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(27, 31, 39, 0.92);
  position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px var(--display); }
.site-nav { display: flex; gap: 6px 15px; flex-wrap: wrap; font-size: 14.5px; }
.site-nav a { text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; padding: 2px 0; }
.site-nav a:hover { color: var(--text); border-bottom-color: var(--cat); }

main { max-width: 1160px; margin: 0 auto; padding: 0 16px 64px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 56px 0 32px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -0.01em; max-width: 14em; }
.lede { color: var(--muted); font-size: 19px; max-width: 38em; margin: 18px 0 0; }
.hero-graph { width: 100%; height: auto; }
.hero-graph .gt { fill: #e6e9ef; font: 600 15px var(--display); }
.hero-graph .gt-h { fill: #a3acbb; font: 600 11px var(--body); }
.hero-graph .gt-h.dark { fill: #1b1f27; }

.finder { margin-top: 28px; max-width: 34em; }
.finder label { display: block; font: 600 15px var(--display); margin-bottom: 8px; }
.finder input {
  width: 100%; padding: 14px 16px; font: 17px var(--body); color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.finder input::placeholder { color: #7d8697; }
.count { color: var(--muted); font-size: 15px; margin: 12px 0 0; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 24px; }
.chip {
  font: 600 15px var(--display); color: var(--text); cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--cat, var(--text));
  border-radius: 8px; padding: 8px 14px;
}
.chip[aria-pressed="true"] { background: var(--panel-2); border-color: var(--cat, var(--text)); }

/* Sponsor slot */
.sponsor-slot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; margin: 0 0 32px;
  color: var(--muted); font-size: 15px;
}
.sponsor-slot p { margin: 0; flex: 1 1 22em; }
.sponsor-tag { font: 700 13px var(--display); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }

/* Category blocks */
.cat-block { margin: 0 0 56px; }
.cat-head { border-left: 4px solid var(--cat); padding-left: 16px; margin-bottom: 20px; }
.cat-head h2 { font-size: 30px; }
.cat-head h2 a { text-decoration: none; }
.cat-head p { color: var(--muted); margin: 8px 0 0; max-width: 46em; }

/* Nodes: Blueprint-style cards */
.node-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.node {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.node-head { background: var(--cat); color: #14171d; padding: 10px 16px 9px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.node-title { font-size: 20px; font-weight: 700; }
.node-title a { text-decoration: none; }
.node-title a:hover { text-decoration: underline; text-decoration-color: #14171d; }
.node-maker { font-size: 13px; font-weight: 700; opacity: 0.8; white-space: nowrap; }
.node-body { padding: 14px 16px 4px; flex: 1; }
.pin { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-weight: 700; }
.pin-dot { flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; border: 2px solid var(--cat); background: var(--cat); }
.pin-label { color: var(--muted); font-weight: 400; }
.verdict { margin: 0 0 14px; color: #d3d8e1; }
.facts { margin: 0 0 12px; display: grid; gap: 6px; font-size: 15px; }
.facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.node-foot { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-size: 14px; }
.visit { font: 600 15px var(--display); text-decoration: none; border-bottom: 2px solid var(--cat); }
.checked { color: var(--muted); }

.empty { color: var(--muted); padding: 24px 0; }

/* Callout */
.callout { border: 1px solid var(--line); border-left: 4px solid #3dd6d0; background: var(--panel); border-radius: 12px; padding: 24px; margin-top: 16px; }
.callout h2 { font-size: 26px; }
.callout p { color: var(--muted); max-width: 44em; }
.callout a { font: 600 16px var(--display); }

/* Inner pages */
.page-head { padding: 48px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); max-width: 20em; border-left: 6px solid var(--cat, var(--text)); padding-left: 16px; }
.crumb { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.solo { max-width: 720px; }
.related { margin-top: 40px; max-width: 720px; }
.related h2 { font-size: 24px; margin-bottom: 12px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.related li span { color: var(--muted); display: block; font-size: 15px; }

.prose { max-width: 42em; }
.prose h2 { font-size: 24px; margin: 32px 0 8px; }
.prose p, .prose li { color: #d3d8e1; }
.prose li { margin-bottom: 8px; }
.source-line { font-size: 15px; color: var(--muted) !important; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg); padding: 32px max(16px, calc((100vw - 1160px) / 2)) 40px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.foot-grid a { display: block; margin-bottom: 6px; }
.foot-brand { font: 700 20px var(--display); color: var(--text); margin: 0 0 6px; }
.fine { margin-top: 24px; font-size: 14px; max-width: 60em; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 24px; }
  .hero-graph { max-width: 460px; }
  .node-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .site-nav { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (max-width: 820px) { .site-head { position: static; } }

/* Newsletter signup */
.signup {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; align-items: center;
  margin-top: 56px; padding: 28px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); border-top: 4px solid #5cc98b;
}
.signup h2 { font-size: 26px; }
.signup p { color: var(--muted); margin: 8px 0 0; }
.signup-form label { display: block; font: 600 15px var(--display); margin-bottom: 8px; }
.signup-row { display: flex; gap: 8px; }
.signup-row input {
  flex: 1; min-width: 0; padding: 12px 14px; font: 17px var(--body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.signup-row button {
  font: 700 16px var(--display); padding: 12px 18px; border-radius: 10px; cursor: pointer;
  background: #5cc98b; color: #14171d; border: 0;
}
.signup-row button:disabled { opacity: 0.7; cursor: wait; }
.signup-note { font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 820px) {
  .signup { grid-template-columns: 1fr; padding: 20px; }
  .signup-row { flex-direction: column; }
}

/* Guides */
.guide-date { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.guide h2 { margin-top: 40px; }
.guide h3 { font-size: 20px; margin: 28px 0 6px; }
.guide a { color: #9ccaff; }
.guide blockquote { margin: 20px 0; padding: 12px 18px; border-left: 4px solid #5cc98b; background: var(--panel); border-radius: 0 10px 10px 0; }
.guide blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 10px; }
.guide table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
.guide th, .guide td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide th { background: var(--panel-2); font-family: var(--display); font-weight: 600; }
.guide tr:last-child td { border-bottom: 0; }
.guide-list { list-style: none; padding: 0; margin: 0; max-width: 46em; }
.guide-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.guide-list a { font: 600 21px var(--display); text-decoration: none; }
.guide-list a:hover { text-decoration: underline; }
.guide-list p { color: var(--muted); margin: 6px 0 4px; }
.guide-list span { color: var(--muted); font-size: 14px; }

/* Comparisons */
.compare-table td, .compare-table th { vertical-align: top; }
.compare-table thead th a { font: 600 18px var(--display); }
.compare-table tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }

/* Maker badge */
.badge-box { margin-top: 40px; max-width: 720px; border: 1px dashed var(--line); border-radius: 12px; padding: 20px 24px; background: var(--panel); }
.badge-box h2 { font-size: 22px; margin: 0 0 8px; }
.badge-box p { color: var(--muted); margin: 0 0 14px; }
.badge-box img { display: block; margin-bottom: 14px; }
.badge-box label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.badge-code { width: 100%; box-sizing: border-box; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.copy-btn { margin-top: 10px; font: 600 15px var(--display); background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; cursor: pointer; }
.copy-btn:hover { border-color: #4a9eff; }


/* Category art (img/cat/<slug>.webp) */
.page-head.has-art { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.cat-art { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 12px 40px -12px var(--cat); aspect-ratio: 16 / 10; }
.cat-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .page-head.has-art { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .page-head.has-art .cat-art { order: -1; }
}

/* 404 */
.lost { text-align: center; padding: 32px 0 24px; }
.lost img { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto 20px; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 12px 40px -14px #f2c14e; }
.lost h1 { font-size: clamp(30px, 4.4vw, 44px); }
.lost .lede { margin: 12px auto 0; }
.lost-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.lost-links a { font: 600 16px var(--display); padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.lost-links a:hover { border-color: #f2c14e; }
.lost-links .lost-main { background: #f2c14e; color: #14171d; border-color: #f2c14e; }
.lost-cats { justify-content: center; margin-top: 20px; }
.lost-cats .chip { text-decoration: none; }

/* Engines */
.filters-eng { padding-top: 0; align-items: center; }
.filters-label { font: 600 14px var(--body); color: var(--muted); margin-right: 4px; }
.eng-h { font-size: 26px; margin: 36px 0 6px; display: flex; align-items: baseline; gap: 12px; }
.eng-h span { font: 500 15px var(--body); color: var(--muted); }
.eng-note { color: var(--muted); margin: 0 0 16px; max-width: 46em; }
.eng-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.eng-list li { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--cat); border-radius: 12px; padding: 18px 20px; }
.eng-list a { font: 700 22px var(--display); text-decoration: none; display: block; }
.eng-list a:hover { text-decoration: underline; }
.eng-list span { color: var(--muted); font-size: 15px; }

/* Affiliate label */
.aff { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 6px; text-decoration: none; white-space: nowrap; }
.aff:hover { color: var(--text); }

/* Build kits */
.kit { margin-top: 44px; max-width: 900px; }
.kit h2 { font-size: 26px; margin-bottom: 6px; }
.kit-note { color: var(--muted); margin: 0 0 14px; }
.kit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.kit-list li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.kit-list li > a { font: 600 18px var(--display); }
.kit-meta { color: var(--muted); font-size: 14px; margin-left: 6px; }
.kit-list p { margin: 6px 0 0; color: var(--muted); }

/* Positioning: "License terms checked at the source" + "Can you ship it?" */
.eyebrow { font-family: var(--display); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #7ee2a8; margin: 0 0 10px; }
.facts .ship dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ship-badge { font-size: 13px; font-weight: 700; border-radius: 6px; padding: 1px 8px; border: 1px solid currentColor; white-space: nowrap; }
.ship-free { color: #7ee2a8; }
.ship-paid { color: #ffd166; }
.ship-no { color: #ff8a8a; }
.ship-varies { color: var(--muted); }
.ship-note { color: var(--muted); font-size: 14px; }
.facts div.ship { grid-template-columns: 6.5em 1fr; }

/* Can you ship it? page */
.ship-group { margin-top: 40px; }
.ship-group h2 { font-size: 26px; }
.ship-count { font: 600 15px var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; vertical-align: middle; }
.ship-sub { color: var(--muted); margin: 6px 0 14px; max-width: 46em; }
.ship-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.ship-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) 2fr minmax(140px, 1fr); gap: 8px 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--cat); }
.ship-row:last-child { border-bottom: 0; }
.ship-tool a { font: 600 18px var(--display); text-decoration: none; }
.ship-tool a:hover { text-decoration: underline; }
.ship-tool span, .ship-price span { display: block; color: var(--muted); font-size: 14px; }
.ship-verdict p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.ship-verdict a { color: #9ccaff; }
.ship-price { font-size: 15px; }
.related-plain { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 720px) { .ship-row { grid-template-columns: 1fr; } }

/* ===== UX pass 2026-10-15: grouped nav, search-first hero, filter panel, scannable cards ===== */
.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; }

/* Header + grouped navigation */
.site-head { padding-top: 10px; padding-bottom: 10px; gap: 28px; flex-wrap: nowrap; }
.brand { min-height: 44px; }
.site-nav { gap: 4px; font-size: 16px; align-items: center; }
.site-nav .nav-link, .nav-drop > summary { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--muted); text-decoration: none; border-bottom: 0; cursor: pointer; font: 600 16px var(--display); }
.site-nav .nav-link:hover, .nav-drop > summary:hover, .nav-drop[open] > summary { color: var(--text); background: var(--panel); }
.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; }
.nav-drop > summary::-webkit-details-marker, .nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-drop[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.nav-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 10; min-width: 270px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); display: grid; }
.nav-menu a, .nav-sheet a { display: flex; align-items: center; min-height: 44px; padding: 0 12px 0 14px; border-radius: 8px; text-decoration: none; color: var(--text); border-left: 4px solid var(--cat); margin: 1px 0; }
.nav-menu a:hover, .nav-sheet a:hover { background: var(--panel-2); }
.nav-menu .menu-extra { margin-top: 6px; color: var(--muted); }
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: 600 16px var(--display); cursor: pointer; }
.nav-mobile > summary::before { content: ""; width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat; }
.nav-sheet { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; max-height: calc(100vh - 70px); overflow-y: auto; padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(0,0,0,.8); }
.nav-group { margin: 14px 0 4px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-mobile { display: block; }
  .site-head { position: relative; }
}

/* Hero: search is the main action */
.hero h1 { max-width: 12.5em; }
.lede { max-width: 30em; }
.finder { margin-top: 26px; max-width: 32em; }
.finder label { font: 600 17px var(--display); margin-bottom: 10px; }
.finder-box { position: relative; color: var(--muted); }
.finder-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.finder input { min-height: 58px; padding: 14px 18px 14px 50px; font-size: 18px; border: 2px solid #4a5568; border-radius: 12px; background: #20252f; box-shadow: 0 10px 30px -14px rgba(0,0,0,.9); }
.finder input:focus { outline: none; border-color: #7ee2a8; box-shadow: 0 0 0 4px rgba(126,226,168,.18); }
.proof { color: var(--muted); font-size: 15px; margin: 14px 0 0; max-width: 34em; }
.proof-mark { display: inline-block; width: 7px; height: 13px; border-right: 2.5px solid #7ee2a8; border-bottom: 2.5px solid #7ee2a8; transform: rotate(40deg); margin: 0 10px 0 4px; vertical-align: 1px; }
.proof a { color: #9fe8be; font-weight: 600; }
.eyebrow { text-transform: none; letter-spacing: 0; font: 600 15px var(--body); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 7px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(40deg) translateY(-2px); }
@media (max-width: 820px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-top: 28px; padding-bottom: 8px; }
  .hero-copy { order: 1; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 17px; margin-top: 12px; }
  .finder { margin-top: 20px; }
}

/* Filter panel */
.filter-panel { margin: 8px 0 40px; padding: 18px 20px 6px; background: rgba(35,41,52,.6); border: 1px solid var(--line); border-radius: 14px; }
.filter-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.filter-row .filters-label { flex: none; width: 4.2em; font: 600 15px var(--display); color: var(--muted); margin: 0; }
.filter-panel .filters { padding: 0; gap: 8px; }
.chip { min-height: 44px; padding: 8px 14px; }
.result-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 10px; color: var(--muted); font-size: 15px; min-height: 44px; }
.clear-btn { min-height: 44px; padding: 0 14px; font: 600 15px var(--display); color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.clear-btn:hover { border-color: #7ee2a8; }
.empty { padding: 8px 0 32px; }
.empty p { margin: 0 0 12px; }
@media (max-width: 760px) {
  .filter-panel { padding: 14px 0 4px 14px; margin-left: 0; margin-right: -16px; border-right: 0; border-radius: 14px 0 0 14px; }
  .filter-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .filter-panel .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 16px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .filter-panel .filters::-webkit-scrollbar { display: none; }
  .filter-panel .chip { flex: none; }
  .result-line { padding-right: 16px; }
}

/* Cards: quick facts first, verdict clamped in the directory */
.node-grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 24px; }
@media (max-width: 860px) { .node-grid { grid-template-columns: 1fr; gap: 20px; } }
.node-head { padding: 12px 20px 11px; }
.node-maker { font-size: 14px; }
.node-body { padding: 18px 20px 8px; }
.facts { margin: 0 0 14px; gap: 8px; }
.facts div, .facts div.ship { grid-template-columns: 8.2em 1fr; }
.facts .ship { padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px dashed var(--line); }
.facts .ship dt { color: var(--text); font-weight: 700; }
.ship-badge { font-size: 14px; padding: 2px 9px; }
.verdict.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: #9ccaff; }
.node-foot { padding: 12px 20px; align-items: center; gap: 8px 16px; }
.visit { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--cat); border-bottom-width: 1px; border-radius: 9px; background: rgba(255,255,255,.03); }
.visit:hover { background: var(--panel-2); }
.aff { font-size: 13px; }
.checked { font-size: 14px; }
@media (max-width: 760px) {
  .node-head, .node-body, .node-foot { padding-left: 16px; padding-right: 16px; }
  .facts div, .facts div.ship { grid-template-columns: 6.6em 1fr; gap: 10px; }
  .facts dt { font-size: 14px; padding-top: 1px; }
}

/* Section rhythm */
.cat-block { margin: 0 0 72px; }
.cat-head { margin-bottom: 24px; }
@media (max-width: 760px) { .cat-block { margin-bottom: 56px; } }

/* Sponsor slot: present but quiet until there's a sponsor */
.sponsor-slot { margin: -32px 0 72px; padding: 10px 16px; font-size: 14px; border-color: #313947; background: transparent; }
.sponsor-tag { font-size: 13px; color: var(--muted); }
.sponsor-slot a { color: var(--muted); }

/* Inline signup between categories */
.signup-inline { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 16px 32px; align-items: center; margin: -24px 0 72px; padding: 22px 24px; border: 1px solid var(--line); border-left: 4px solid #7ee2a8; border-radius: 14px; background: var(--panel); }
.signup-inline h2 { font-size: 22px; }
.signup-inline p { margin: 6px 0 0; color: var(--muted); }
.signup-inline .signup-note:empty { display: none; }
@media (max-width: 760px) { .signup-inline { grid-template-columns: 1fr; margin-top: -16px; } }

/* Comfortable touch targets in the footer and badge box */
.foot-grid a { display: flex; align-items: center; min-height: 40px; }
.copy-btn { min-height: 44px; }

/* Comparison tables: stacked on phones, both tools under each row */
.compare-table .ship-badge { margin-right: 4px; }
.compare-table .visit-row .visit { --cat: #4a9eff; }
@media (max-width: 640px) {
  .table-wrap:has(.compare-table) { border: 0; overflow: visible; }
  .guide table.compare-table { min-width: 0; display: block; }
  .compare-table thead { display: none; }
  .compare-table tbody, .compare-table tr { display: block; }
  .compare-table tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: var(--panel); }
  .compare-table tbody th { display: block; white-space: normal; background: var(--panel-2); color: var(--text); font-family: var(--display); padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .compare-table td { display: block; padding: 10px 14px; }
  .compare-table td::before { content: attr(data-label); display: block; font: 600 14px var(--display); color: var(--muted); margin-bottom: 2px; }
  .compare-table tr:last-child td { border-bottom: 1px solid var(--line); }
  .compare-table td:last-child { border-bottom: 0; }
}


/* ===== ScopeBots: art-free hero, chain badges, evidence lists ===== */
.hero-plain { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; min-height: 0; padding: 64px 0 36px; }
.hero-plain .hero-copy { max-width: 600px; }
.hero-chains { background: rgba(35,41,52,.6); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 12px; }
.hero-chains p { margin: 0 0 8px; font: 600 15px var(--display); color: var(--muted); }
.hero-chains .filters { gap: 8px; }
.hero-chains .chip { text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.hero-chains .chip span { color: var(--muted); font-size: 13px; }
.hero-plain > * { min-width: 0; }
@media (max-width: 820px) {
  .hero-plain { grid-template-columns: 1fr; gap: 20px; padding: 28px 0 8px; }
  .hero-plain .hero-chains { order: 2; }
  .hero-chains { padding: 12px 0 8px 12px; margin-right: -16px; border-right: 0; border-radius: 14px 0 0 14px; }
  .hero-chains .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 16px; }
}

.chain-list { display: flex; flex-wrap: wrap; gap: 5px; }
.chain-badge { display: inline-flex; align-items: baseline; gap: 4px; font-size: 13px; font-weight: 700; line-height: 1.3; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--chain, var(--line)); color: var(--chain, var(--text)); white-space: nowrap; }
.chain-badge em { font-style: normal; font-weight: 600; color: var(--muted); }
.chain-badge.testnet { border-style: dashed; }
.chain-badge sup { font-size: 11px; top: 0; }
.chain-badge.generic { --chain: #a3acbb; border-style: dotted; font-weight: 600; }
.chain-badge.pending { --chain: #a3acbb; font-weight: 600; }
.facts .sig { padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px dashed var(--line); }
.facts .sig dt { color: var(--text); font-weight: 700; }
.facts .sig dd { display: grid; gap: 4px; }
.sig-note { color: var(--muted); font-size: 13px; }
.facts div, .facts div.sig { grid-template-columns: 6.6em 1fr; }
.evidence ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.evidence li { color: var(--muted); font-size: 15px; }
.evidence li .chain-badge { margin-right: 6px; }
.evidence a { color: #9ccaff; }
.sig-foot { color: var(--muted); font-size: 14px; max-width: 46em; }
.docs-line { color: var(--muted); }
.docs-line a { color: #9ccaff; word-break: break-all; }
.jump { margin-top: 18px; gap: 8px; }
.jump .chip { text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.chip[hidden] { display: none !important; }
.cat-head h2 .ship-count { vertical-align: 4px; }
.ship-row .ship-verdict p a { color: #9ccaff; }
.related li span.chain-badge { display: inline-flex; font-size: 13px; color: var(--chain, var(--text)); }
.evidence ul { gap: 0; }
/* Chain logos (self-hosted, decorative; the chain name is always beside them) */
.chain-logo { display: inline-block; flex: none; border-radius: 4px; object-fit: contain; vertical-align: -3px; }
.chain-badge .chain-logo { margin-right: 2px; align-self: center; }
.chip .chain-logo { margin-right: 6px; vertical-align: -4px; }
.hero-chains .chip .chain-logo, .jump .chip .chain-logo { margin-right: 0; }
.nav-menu a.has-logo, .nav-sheet a.has-logo { display: flex; align-items: center; gap: 8px; }
.chain-h1, .chain-h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eng-list a .chain-logo { margin-right: 10px; vertical-align: -4px; }
