/* ================================================================
   PolyTools — stylesheet
   ============================================================== */

/* Self-hosted Inter (latin variable woff2) — removes the render-blocking
   third-party request chain to fonts.googleapis.com + fonts.gstatic.com. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;          /* variable: covers all weights from one file */
  font-display: swap;
  src: url('/assets/fonts/inter-latin-var.woff2') format('woff2');
}

:root {
  /* Surfaces — refined slate-tinted neutrals (cooler, more premium) */
  --bg:          #f7f9fc;
  --surface:     #ffffff;
  --surface-2:   #f1f5f9;
  --surface-3:   #e7edf4;
  --border:      #e7ebf2;
  --border-2:    #cdd6e3;
  /* Text — slate scale */
  --text-1:      #0e1729;
  --text-2:      #334155;
  --text-3:      #64748b;
  --text-4:      #94a3b8;
  /* Brand (kept) */
  --accent:      #9945FF;
  --accent-600:  #7C24E8;
  --accent-50:   #f6f0ff;
  --accent-100:  #ebdeff;
  /* Semantic */
  --green:       #0caa6e;
  --green-50:    #effaf3;
  --red:         #dc2f2f;
  --red-50:      #fdeeee;
  --amber:       #b97400;
  --amber-50:    #fff8eb;
  /* Radii — deliberate scale */
  --radius-sm:   8px;
  --radius:      11px;
  --radius-lg:   16px;
  --radius-pill: 999px;
  /* Elevation — slate-tinted, softly layered */
  --shadow-sm:   0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  --shadow-md:   0 6px 20px -6px rgba(15,23,42,.10), 0 2px 6px -2px rgba(15,23,42,.06);
  --shadow-lg:   0 24px 50px -16px rgba(15,23,42,.18), 0 8px 16px -8px rgba(15,23,42,.08);
  --ring:        0 0 0 3px rgba(153,69,255,.16);
  --container:   1200px;
  --t-fast:      .14s cubic-bezier(.4,0,.2,1);
  --t-base:      .22s cubic-bezier(.4,0,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss03';
  overflow-x: clip;   /* clip (not hidden) so it never breaks position: sticky */
  min-width: 0;
}
html { overflow-x: clip; width: 100%; }
html, body { max-width: 100vw; }
img, svg, video, iframe, picture, canvas { max-width: 100%; }
img { height: auto; display: block; }
svg { display: block; }
input, select, textarea, button { min-width: 0; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: var(--text-1); }
ul, ol { list-style: none; }

/* ---------- utility ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 8px; background: var(--text-1);
  color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 13px;
  font-weight: 600; z-index: 200;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.site-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; color: var(--text-1);
  letter-spacing: -.3px;
}
.site-logo:hover { color: var(--text-1); }
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; }
.primary-nav {
  display: flex; align-items: center; gap: 6px; justify-self: start;
}
.primary-nav a {
  color: var(--text-3); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.primary-nav a:hover { color: var(--text-1); background: var(--surface-2); }
.primary-nav a.is-active { color: var(--accent); background: var(--accent-50); font-weight: 600; }
.nav-submit { display: none; } /* desktop uses the header-cta button instead; shown in the mobile menu */
.nav-drawer-head { display: none; } /* only shown inside the mobile drawer */
.nav-scrim { display: none; }      /* backdrop for the mobile drawer */

/* Right-side actions: search + primary CTA */
.header-end { display: flex; align-items: center; gap: 12px; justify-self: end; }
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; white-space: nowrap; color: #fff;
  background: var(--accent);
  box-shadow: 0 1px 2px rgba(153,69,255,.20), inset 0 1px 0 rgba(255,255,255,.12);
  transition: background var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.header-cta:hover { color: #fff; background: var(--accent-600); transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(153,69,255,.40), inset 0 1px 0 rgba(255,255,255,.12); }
.header-cta:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(153,69,255,.25); }
.header-cta:focus-visible { outline: none; box-shadow: var(--ring); }
.header-cta svg { width: 14px; height: 14px; }

/* Hamburger toggle — shown only on mobile */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-1);
  background: var(--surface);
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nav-toggle:hover { background: var(--surface-2); border-color: var(--text-4); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.header-search {
  position: relative;
  display: flex; align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px 0 34px;
  width: 280px; height: 38px;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.header-search:focus-within {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.header-search .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--text-4);
}
.header-search input {
  width: 100%; height: 100%;
  background: transparent; border: 0; outline: none;
  font-size: 13.5px; color: var(--text-1);
}
.header-search input::placeholder { color: var(--text-4); }

/* ---------- buttons ---------- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 17px;
  font-weight: 600; font-size: 14px;
  border-radius: var(--radius-sm);
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  white-space: nowrap;
}
.btn-primary:focus-visible, .btn-secondary:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(153,69,255,.20), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-primary:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(153,69,255,.40), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(153,69,255,.25); }
.btn-primary svg { width: 14px; height: 14px; }
.btn-large { padding: 12px 22px; font-size: 15px; border-radius: var(--radius); }
.btn-secondary {
  background: var(--surface); color: var(--text-1);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { border-color: var(--text-4); background: var(--surface-2); color: var(--text-1); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-secondary:active { transform: translateY(0); box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  padding: 76px 0 56px;
  background:
    radial-gradient(58% 80% at 12% -12%, rgba(153,69,255,.07), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 11px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 600; letter-spacing: .2px;
  color: var(--text-2); margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(15,157,88,.18);
}
.hero-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.08;
  color: var(--text-1);
  max-width: 820px;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-3);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-search {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 7px 7px 7px 48px;
  max-width: 620px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.hero-search .search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-3);
}
.hero-search input {
  flex: 1;
  background: transparent; border: 0; outline: none;
  padding: 10px 4px;
  font-size: 15.5px; color: var(--text-1);
}
.hero-search input::placeholder { color: var(--text-4); }
.hero-search .btn-primary { padding: 10px 20px; }
/* Trust row — stacked tool-logo cluster + breadth stats */
.hero-proof { display: flex; align-items: center; gap: 13px; margin-top: 26px; flex-wrap: wrap; }
.hero-avatars { display: flex; align-items: center; }
.hero-avatar {
  width: 34px; height: 34px; border-radius: 9px;
  border: 2px solid var(--surface); background: var(--surface-2);
  object-fit: cover; margin-left: -9px; box-shadow: var(--shadow-sm);
}
.hero-avatar:first-child { margin-left: 0; }
.hero-avatar-more {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: var(--text-2);
  background: var(--surface-3); letter-spacing: -.2px;
}
.hero-proof-text { font-size: 13.5px; color: var(--text-3); font-weight: 500; }
.hero-proof-text strong { color: var(--text-1); font-weight: 700; }

.hero-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 22px;
}
.hero-chips-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-4); margin-right: 4px;
}
.chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-50); }

/* ---------- section ---------- */
.section { padding: 72px 0; }
.section-muted { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 32px; }
.section-title {
  font-size: 26px; font-weight: 700; color: var(--text-1);
  letter-spacing: -.5px; line-height: 1.2;
  margin-bottom: 6px;
}
.section-sub { color: var(--text-3); font-size: 15px; }

/* ---------- tool cards (featured) ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
/* Prevent a single featured card from stretching across the full width */
.tools-grid:has(.tool-card:only-child) .tool-card {
  max-width: 420px;
}
.tool-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.tool-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--accent), #14F195);
  opacity: 0; transition: opacity var(--t-base);
}
.tool-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tool-card:hover::before { opacity: 1; }
.tool-card-cover {
  display: block;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.tool-card-cover img { width: 100%; height: auto; display: block; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.tool-card:hover .tool-card-cover img { transform: scale(1.04); }
.tool-card-badge {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 8px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 700; letter-spacing: .3px; color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.tool-card-badge svg { width: 11px; height: 11px; }
.tool-card-body {
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
  flex: 1;
}
.tool-card-top { display: flex; gap: 14px; }
.tool-card-logo {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
}
.tool-card-meta { flex: 1; min-width: 0; }
.tool-card-name { font-size: 16px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; line-height: 1.3; }
.tool-card-name a { color: inherit; }
.tool-card-name a:hover { color: var(--accent); }
.tool-card-tagline {
  font-size: 13.5px; color: var(--text-3); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tool-card-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.tool-card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent); }
.tool-card-link svg { width: 13px; height: 13px; transition: transform var(--t-base); }
.tool-card:hover .tool-card-link svg { transform: translateX(3px); }

/* ---------- cat-badge (pill) ---------- */
.cat-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: var(--radius-pill);
  transition: background var(--t-fast);
}
.cat-badge:hover { background: var(--accent-100); color: var(--accent-600); }

/* ---------- category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--text-2);
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.category-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #14F195);
  opacity: 0;
  transition: opacity var(--t-base);
}
.category-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--text-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.category-card:hover::before { opacity: 1; }
.category-card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  color: var(--accent);
  margin-bottom: 15px;
  transition: transform var(--t-base), background var(--t-base);
}
.category-card-ico .cat-ico { width: 23px; height: 23px; }
.category-card:hover .category-card-ico {
  transform: scale(1.06);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.category-card-name {
  font-size: 16.5px; font-weight: 700; color: var(--text-1);
  margin-bottom: 6px; letter-spacing: -.2px;
}
.category-card-desc {
  font-size: 13.5px; color: var(--text-3); line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.category-card-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.category-card-count {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.category-card-arrow {
  width: 16px; height: 16px; color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--t-base);
}
.category-card:hover .category-card-arrow { transform: translateX(3px); }

/* ---------- tools list (PH-style rows) ---------- */
.tools-list { display: flex; flex-direction: column; }
.tool-row {
  display: grid;
  grid-template-columns: 52px 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: -1px; /* collapse borders */
  position: relative;
  transition: background var(--t-fast), border-color var(--t-base), box-shadow var(--t-base);
}
/* Search page rows don't show votes — fall back to 44px first column. */
.tool-row-compact { grid-template-columns: 44px 1fr auto; }
.tool-row:first-child { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.tool-row:last-child  { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); margin-bottom: 0; }
.tool-row:hover { background: var(--surface); border-color: var(--border-2); box-shadow: var(--shadow-md); z-index: 1; border-radius: var(--radius); }
.tool-row-rank {
  font-size: 13px; font-weight: 700; color: var(--text-4);
  text-align: center;
}
.tool-row-logo {
  display: block;
}
.tool-row-logo img {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  object-fit: cover;
}
.tool-row-body { min-width: 0; }
.tool-row-name { font-size: 15.5px; font-weight: 700; color: var(--text-1); margin-bottom: 2px; letter-spacing: -.1px; }
.tool-row-name a { color: inherit; }
.tool-row-name a:hover { color: var(--accent); }
.tool-row-tagline {
  font-size: 13.5px; color: var(--text-3); line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-row-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.tool-row-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; }
.tool-row-cta svg { width: 14px; height: 14px; transition: transform var(--t-base); }
.tool-row:hover .tool-row-cta svg { transform: translateX(3px); }

/* ============ tools board: sticky sort/filter toolbar ============ */
.tools-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  min-height: 52px;
  margin-bottom: 18px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(8px); backdrop-filter: saturate(160%) blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 74px; z-index: 5;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.tools-toolbar:focus-within { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.toolbar-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.toolbar-group-end { gap: 12px; }

/* segmented sort control */
.toolbar-sort {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
}
.toolbar-sort-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 0; border-radius: var(--radius-sm);
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2);
  background: transparent; cursor: pointer; white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.toolbar-sort-btn svg { width: 14px; height: 14px; opacity: .8; }
.toolbar-sort-btn:hover { color: var(--text-1); }
.toolbar-sort-btn.is-active { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(153,69,255,.25); }
.toolbar-sort-btn.is-active svg { opacity: 1; }
.toolbar-sort-btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* native selects (category always; sort on mobile) */
.toolbar-select-wrap { position: relative; display: inline-flex; align-items: center; }
.toolbar-select-wrap > svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.toolbar-select {
  appearance: none; -webkit-appearance: none;
  max-width: 200px;
  padding: 9px 30px 9px 34px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-1);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 4.5L6 7.5 9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; text-overflow: ellipsis;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.toolbar-select:hover { border-color: var(--border-2); }
.toolbar-select:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.toolbar-sort-select { display: none; padding-left: 12px; } /* mobile sort twin */

/* in-page search */
.toolbar-search { position: relative; display: inline-flex; align-items: center; }
.toolbar-search > svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.toolbar-search-input {
  width: 196px; padding: 9px 12px 9px 33px;
  font: inherit; font-size: 13.5px; color: var(--text-1);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.toolbar-search-input::placeholder { color: var(--text-4); }
.toolbar-search-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.toolbar-count { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.toolbar-count strong { color: var(--text-1); font-weight: 700; font-variant-numeric: tabular-nums; }
.toolbar-reset {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--accent);
  background: none; border: 0; cursor: pointer; padding: 6px 9px; border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.toolbar-reset:hover { background: var(--accent-50); }
.toolbar-reset:focus-visible { outline: none; box-shadow: var(--ring); }

/* ranked rows (All-tools only — base .tool-row untouched on other pages) */
.tools-list--ranked .tool-row { grid-template-columns: 30px 52px 44px 1fr auto auto; }
.tool-row-rank {
  font-size: 13px; font-weight: 700; color: var(--text-4);
  font-variant-numeric: tabular-nums; text-align: center;
}
.tool-row-rank--top { color: var(--accent); }
.tool-row-stat {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 78px;
  font-size: 12.5px; font-weight: 600; color: var(--text-3);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 4px 11px; border-radius: 100px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tool-row-stat svg { width: 13px; height: 13px; opacity: .75; flex-shrink: 0; }
.tool-row-flag {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  color: var(--accent-600); background: var(--accent-100);
  padding: 2px 7px; border-radius: 100px;
}
.tool-row.is-hidden { display: none; }

/* empty state (server-rendered, revealed by JS) */
.tools-empty:not([hidden]) {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 4px; padding: 52px 20px; margin-top: 0;
  border: 1px dashed var(--border-2); border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.tools-empty svg { width: 30px; height: 30px; color: var(--text-4); margin-bottom: 6px; }
.tools-empty-title { font-size: 16px; font-weight: 700; color: var(--text-1); }
.tools-empty-sub { font-size: 14px; color: var(--text-3); }
.tools-empty .toolbar-reset { margin-top: 10px; border: 1px solid var(--border-2); padding: 8px 16px; background: var(--surface); }
.tools-empty .toolbar-reset:hover { background: var(--accent-50); border-color: var(--accent); }

/* tools board — responsive */
@media (max-width: 760px) {
  .tools-toolbar { position: static; padding: 10px; }
  .toolbar-group { width: 100%; }
  .toolbar-group-end { width: 100%; justify-content: space-between; gap: 10px; }
  .toolbar-sort { flex: 1; }
  .toolbar-sort-btn { flex: 1; justify-content: center; padding: 8px 4px; gap: 5px; }
  .toolbar-select-wrap { flex: 1; }
  .toolbar-select { max-width: none; width: 100%; }
  .toolbar-search { flex: 1; min-width: 0; order: 2; }
  .toolbar-search-input { width: 100%; }
  .toolbar-count { order: 1; }
  .toolbar-reset { order: 3; }
  /* collapse ranked rows back to vote + logo + body */
  .tools-list--ranked .tool-row { grid-template-columns: 44px 44px 1fr; }
  .tool-row-rank, .tool-row-stat { display: none; }
}
@media (max-width: 600px) {
  .toolbar-sort { display: none; }
  .toolbar-sort-select { display: inline-block; flex: 1; max-width: none; }
  .toolbar-count { font-size: 12.5px; }
}

.trend-views {
  font-size: 12.5px; font-weight: 600; color: var(--text-3);
  white-space: nowrap; align-self: center;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px;
  flex-shrink: 0;
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.breadcrumb ol {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 0;
  color: var(--text-4);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: '›'; color: var(--border-2); font-size: 14px;
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--text-1); font-weight: 500; }

/* ---------- tool page ---------- */
.tool-hero {
  background: var(--surface);
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border);
}
.tool-hero-inner {
  display: flex; gap: 28px; align-items: flex-start;
}
.tool-hero-media {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.tool-hero-media .vote-btn-compact { width: 72px; min-width: 72px; padding: 8px 0; }
.tool-hero-media .vote-arrow { width: 16px; height: 16px; }
.tool-hero-media .vote-count { font-size: 15px; }
.tool-hero-logo {
  width: 88px; height: 88px; border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-shrink: 0; object-fit: cover;
  box-shadow: var(--shadow-md);
}
.tool-hero-body { flex: 1; min-width: 0; }
.tool-hero-cats {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.tool-hero-name {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-1);
  line-height: 1.15;
  margin-bottom: 10px;
}
.tool-hero-tagline {
  font-size: 16px; color: var(--text-3); line-height: 1.6;
  max-width: 720px;
  margin-bottom: 12px;
}
.tool-hero-meta {
  font-size: 13px; color: var(--text-4); margin-bottom: 22px;
}
.tool-hero-meta time { color: var(--text-3); font-weight: 500; }
.tool-hero-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.tool-hero-meta {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 13px; color: var(--text-3);
}
.tool-hero-socials {
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* ===== tool page: hero verdict strip ===== */
.tool-verdict {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 18px;
}
.verdict-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  white-space: nowrap; line-height: 1.2;
}
.verdict-pill svg { width: 14px; height: 14px; flex-shrink: 0; }
.verdict-pill strong { color: var(--text-1); font-weight: 700; font-variant-numeric: tabular-nums; }
.verdict-muted { color: var(--text-4); margin-left: 2px; }
a.verdict-pill { transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
a.verdict-pill:hover { border-color: var(--border-2); color: var(--text-1); }
.verdict-stars { display: inline-flex; gap: 1px; }
.vstar { font-size: 13px; line-height: 1; color: var(--border-2); }
.vstar.is-on { color: #f59e0b; }
.vstar.is-half { position: relative; color: var(--border-2); }
.vstar.is-half::before { content: '\2605'; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: #f59e0b; }
.verdict-rating { color: var(--text-1); }
.verdict-rating strong { margin-left: 2px; }
.verdict-unrated { color: var(--text-3); gap: 5px; }
.verdict-unrated .vstar { color: #f59e0b; }
.verdict-votes svg { color: var(--accent); }
.verdict-pricing.is-free { background: var(--green-50); border-color: color-mix(in srgb, var(--green) 25%, var(--border)); color: var(--green); }
.verdict-pricing.is-free svg { color: var(--green); }
.verdict-safety { background: var(--green-50); border-color: color-mix(in srgb, var(--green) 22%, var(--border)); color: var(--green); }
.verdict-safety svg { color: var(--green); }
.verdict-safety:hover { border-color: var(--green); color: var(--green); }
.verdict-fresh { color: var(--text-3); }
.verdict-fresh time { color: var(--text-2); font-weight: 600; }

/* ===== tool page: floating Launch action bar =====
   Wide & centered at the bottom on desktop (a floating pill), full-width
   edge-to-edge on mobile. Server-rendered (no CLS); JS only toggles .is-hidden
   when a Launch CTA is already on screen. */
.tool-actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--border);
  padding: 9px 0 calc(9px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 22px -12px rgba(15,23,42,.22);
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
.tool-actionbar-inner { display: flex; align-items: center; gap: 16px; }
.tool-actionbar-info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.tool-actionbar-logo { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); flex-shrink: 0; object-fit: cover; }
.tool-actionbar-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tool-actionbar-name { font-size: 14.5px; font-weight: 700; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-actionbar-tagline { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-actionbar-meta { font-size: 12.5px; color: var(--text-3); }
.tool-actionbar-star { color: #f59e0b; font-weight: 700; }
/* desktop stats cluster fills the middle of the wide bar */
.tool-actionbar-stats { display: none; align-items: center; gap: 16px; flex-shrink: 0; }
.tool-actionbar-stat { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.tool-actionbar-stat strong { color: var(--text-1); font-weight: 700; font-variant-numeric: tabular-nums; }
.tool-actionbar-stat svg { width: 14px; height: 14px; color: var(--accent); }
.tool-actionbar-statmuted { color: var(--text-4); margin-left: 2px; }
.tool-actionbar-price { padding: 3px 11px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; color: var(--text-2); }
.tool-actionbar-cta { flex-shrink: 0; min-height: 44px; padding-left: 22px; padding-right: 22px; }
.tool-actionbar.is-hidden { transform: translateY(135%); opacity: 0; pointer-events: none; }
body.nav-open .tool-actionbar { transform: translateY(135%); }

/* Desktop: a wide, centered, floating bar with the stats cluster shown */
@media (min-width: 961px) {
  .tool-actionbar {
    left: 50%; right: auto; bottom: 22px;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 48px));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 11px 0;
  }
  .tool-actionbar .container { padding: 0 18px; }
  .tool-actionbar.is-hidden { transform: translateX(-50%) translateY(135%); opacity: 0; pointer-events: none; }
  .tool-actionbar-info { flex: 0 1 auto; }
  .tool-actionbar-meta { display: none; }       /* tagline carries the context on desktop */
  .tool-actionbar-stats { display: flex; margin-left: auto; }
}

/* Mobile: compact full-width bar — tagline + stats hide, the meta line shows */
@media (max-width: 960px) {
  body.page-tool { padding-bottom: 72px; }
  .tool-actionbar-tagline, .tool-actionbar-cta-name { display: none; }
}
@media print { .tool-actionbar { display: none !important; } }

/* Upvote button (Reddit / Product Hunt style) */
.vote-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 12px;
  font-size: 15px; font-weight: 700;
  background: #fff;
  color: var(--text-1);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.vote-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.vote-btn:active:not(:disabled) { transform: translateY(0); }
.vote-arrow { width: 16px; height: 16px; transition: transform var(--t-fast); }
.vote-btn:hover .vote-arrow { transform: translateY(-1px); }
.vote-btn.is-voted {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  cursor: pointer;
}
.vote-btn.is-voted:hover:not(:disabled) {
  background: #0d3fbf;
  border-color: #0d3fbf;
  color: #fff;
  transform: translateY(-1px);
}
.vote-btn.is-voted .vote-arrow { color: #fff; }
/* Compact vote button for listing rows (Reddit / PH style — stacked arrow + count) */
.vote-btn-compact {
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
  width: 52px;
  min-width: 52px;
  font-size: 14px;
  border-width: 1px;
  border-radius: 10px;
}
.vote-btn-compact .vote-arrow { width: 14px; height: 14px; }
.vote-btn-compact .vote-count { font-size: 13px; font-weight: 700; }

.vote-btn.is-bumping { animation: vote-pop .36s ease-out; }
@keyframes vote-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
/* Toast — fixed at bottom, never affects button layout */
.vote-toast-wrap {
  position: fixed;
  left: 0; right: 0; bottom: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
  z-index: 9999;
}
.vote-toast {
  background: #0b0d12;
  color: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .3);
  opacity: 0; transform: translateY(8px);
  transition: opacity .28s, transform .28s;
  pointer-events: auto;
}
.vote-toast.show { opacity: 1; transform: translateY(0); }

/* CTA note — sits next to the Launch button */
.cta-note {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-size: 13px; font-weight: 600;
  color: #7a4900;
  background: var(--amber-50);
  border: 1px solid #f5d687;
  border-radius: var(--radius-pill);
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.cta-note svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--amber); }
.cta-note-solid {
  background: #fff;
  border-color: #f5d687;
  box-shadow: 0 1px 2px rgba(192,116,0,.1);
  align-self: flex-start;
  margin-top: 10px;
}
.social-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px; font-weight: 500;
  color: var(--text-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.social-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-50); }
.social-chip svg { width: 14px; height: 14px; }

/* ---------- tool page sub-nav ---------- */
.tool-subnav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 60px; z-index: 40;
}
.tool-subnav-inner {
  display: flex; gap: 2px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.tool-subnav-inner::-webkit-scrollbar { display: none; }
.tool-subnav-link {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 13px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tool-subnav-ico { display: inline-flex; flex-shrink: 0; color: var(--text-4); transition: color var(--t-fast); }
.tool-subnav-ico svg { width: 15px; height: 15px; }
.tool-subnav-link:hover { color: var(--text-1); }
.tool-subnav-link:hover .tool-subnav-ico { color: var(--text-2); }
.tool-subnav-link.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.tool-subnav-link.is-active .tool-subnav-ico { color: var(--accent); }

/* ---------- user feedback (tweet cards) ---------- */
.ufb-list { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; margin: 0; }

.ufb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.ufb-card:hover { border-color: var(--border-2); box-shadow: 0 2px 12px rgba(15,23,42,.06); }

.ufb-card-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.ufb-author { display: flex; align-items: center; gap: 10px; min-width: 0; }

.ufb-avatar {
  width: 42px; height: 42px;
  border-radius: 50%; object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.ufb-avatar-placeholder {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ufb-author-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ufb-handle {
  font-size: 14px; font-weight: 700; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ufb-handle:hover { color: var(--accent); }
.ufb-date { font-size: 12.5px; color: var(--text-4); }

.ufb-x-logo { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }

.ufb-text {
  margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-1);
  white-space: pre-wrap; word-break: break-word;
}
.ufb-rating {
  display: flex; gap: 2px; margin: 4px 0 8px;
}
.ufb-star { font-size: 14px; color: var(--border); }
.ufb-star.is-filled { color: #f59e0b; }
.ufb-source {
  font-size: 13px; font-weight: 600; color: var(--accent);
  align-self: flex-start;
  padding: 5px 12px;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: 100px;
  transition: all var(--t-fast);
}
.ufb-source:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Review CTA banner */
.review-cta-banner {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--accent-50) 0%, #f0f7ff 100%);
  border: 1px solid var(--accent-100);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.review-cta-banner:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.review-cta-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--accent); }
.review-cta-body {
  flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.review-cta-body strong { font-size: 15px; font-weight: 700; color: var(--text-1); }
.review-cta-body span  { font-size: 13.5px; color: var(--text-3); }
.review-cta-action {
  flex-shrink: 0;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .review-cta-action { display: none; }
}

/* ---------- admin feedback form ---------- */
.fb-tweet-list { display: flex; flex-direction: column; gap: 14px; }
.fb-tweet-block {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px;
}
.fb-tweet-block textarea, .fb-tweet-block input {
  width: 100%; font-size: 13.5px; font-family: inherit;
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 7px; background: #fff; line-height: 1.5;
  transition: border-color var(--t-fast);
}
.fb-tweet-block textarea:focus, .fb-tweet-block input:focus { outline: none; border-color: var(--accent); }
.fb-tweet-block textarea { min-height: 80px; resize: vertical; }

/* ---------- safety panel ---------- */
.panel-safety { background: var(--accent-50); border-color: var(--accent-100); }
.safety-body {
  display: flex; gap: 14px; align-items: flex-start;
}
.safety-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--accent-100);
  border-radius: 50%;
  color: var(--accent);
}
.safety-icon svg { width: 18px; height: 18px; }
.safety-body p { font-size: 15px; line-height: 1.7; color: var(--text-2); margin: 0; }

/* Wallet blacklist check */
.wallet-check-wrap { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--accent-100); }
.wallet-check-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--text-2);
  margin-bottom: 12px;
}
.wallet-check-title svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }
.wallet-check-date { font-size: 11.5px; font-weight: 400; color: var(--text-4); margin-left: auto; }
.wallet-check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wallet-check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 13.5px;
}
.wc-clean  { background: #f0fdf4; border: 1px solid #bbf7d0; }
.wc-flagged{ background: #fef2f2; border: 1px solid #fecaca; }
.wc-unknown{ background: var(--surface-2); border: 1px solid var(--border); }
.wc-icon   { font-size: 13px; font-weight: 800; width: 18px; flex-shrink: 0; }
.wc-clean  .wc-icon  { color: #16a34a; }
.wc-flagged .wc-icon { color: #dc2626; }
.wc-unknown .wc-icon { color: var(--text-4); }
.wc-label  { flex: 1; font-weight: 600; color: var(--text-1); }
.wc-status { font-size: 12px; }
.wc-clean  .wc-status  { color: #16a34a; }
.wc-flagged .wc-status { color: #dc2626; font-weight: 700; }
.wc-unknown .wc-status { color: var(--text-4); }
.wallet-check-note { font-size: 12px; color: var(--text-4); margin-top: 10px; }
.wallet-check-note code { font-family: ui-monospace, monospace; font-size: 11.5px; }

/* cover (under hero) */
.tool-cover {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.tool-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2-col layout */
.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 48px 24px;
  min-width: 0;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.tool-main { min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
.tool-side { min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 18px; }

/* panels */
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.panel::before {
  content: ""; position: absolute; top: -1px; left: 16px; right: 16px; height: 2px;
  background: linear-gradient(90deg, var(--accent), #14F195);
  opacity: 0; transition: opacity var(--t-base);
}
.panel:hover { box-shadow: var(--shadow-sm); }
.panel:hover::before, .panel:focus-within::before { opacity: 1; }
.panel-whatis::before, .panel-safety::before, .panel-cta::before { display: none; } /* special panels keep their own identity */
.panel-title {
  display: flex; align-items: center; gap: 11px;
  font-size: 18px; font-weight: 700; color: var(--text-1);
  letter-spacing: -.3px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.panel-ico {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--accent-50); color: var(--accent);
}
.panel-ico svg { width: 17px; height: 17px; }
.panel-title .comments-count-badge { margin-left: auto; }

/* prose (overview body) */
.prose { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose h3 { font-size: 16px; font-weight: 700; color: var(--text-1); margin: 20px 0 10px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

/* pros/cons */
.proscons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.proscons-col h3 {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.proscons-pros h3 { color: var(--green); }
.proscons-cons h3 { color: var(--red); }
.proscons-col ul { display: flex; flex-direction: column; gap: 10px; }
.proscons-col li {
  font-size: 14px; color: var(--text-2); line-height: 1.55;
  padding-left: 26px; position: relative;
}
.proscons-pros li::before {
  content: ''; position: absolute; left: 4px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px var(--green-50);
}
.proscons-cons li::before {
  content: ''; position: absolute; left: 4px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px var(--red-50);
}

/* what is panel — large quote style */
.panel-whatis {
  border-color: var(--accent);
  border-left-width: 4px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.panel-whatis::before {
  content: '\201C';
  position: absolute;
  top: -24px; right: 20px;
  font-size: 140px;
  line-height: 1;
  color: var(--accent);
  opacity: .08;
  font-family: Georgia, serif;
  pointer-events: none;
}
.panel-whatis .panel-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom-color: var(--border);
}
.whatis-body {
  font-size: 20px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: -.2px;
  margin: 0;
}
.whatis-body strong { font-weight: 700; }

/* ── Screenshot gallery ── */
.gallery { display: flex; flex-direction: column; gap: 10px; }

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-sm);
}
.gallery-zoom-btn {
  display: block; width: 100%; height: 100%;
  border: none; background: none; padding: 0; cursor: zoom-in;
  position: relative;
}
.gallery-img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  transition: opacity .2s;
}
.gallery-zoom-icon {
  position: absolute; bottom: 10px; right: 10px;
  width: 30px; height: 30px;
  background: rgba(0,0,0,.55); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.gallery-zoom-icon svg { width: 15px; height: 15px; color: #fff; }
.gallery-main:hover .gallery-zoom-icon { opacity: 1; }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 36px; height: 36px;
  background: rgba(0,0,0,.5); color: #fff; border: none; border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s, background .15s;
}
.gallery-main:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: rgba(0,0,0,.75); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

/* Thumbnails */
.gallery-thumbs {
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: thin; padding-bottom: 2px;
}
.gallery-thumb {
  flex-shrink: 0; width: 80px; height: 50px;
  border: 2px solid var(--border-2); border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; background: var(--surface-2);
  padding: 0; transition: border-color var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
  opacity: .7;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { border-color: var(--text-4); opacity: 1; }
.gallery-thumb.is-active { border-color: var(--accent); opacity: 1; box-shadow: var(--ring); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox-frame {
  position: relative; z-index: 1;
  max-width: 92vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  display: block;
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: none;
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: none;
  font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: 13px; z-index: 2;
  background: rgba(0,0,0,.4); padding: 4px 12px; border-radius: 100px;
}
/* Gallery dots (mobile indicator) */
.gallery-dots {
  display: none;
  justify-content: center; gap: 7px;
  padding: 4px 0;
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; padding: 0; cursor: pointer;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.gallery-dot.is-active { background: var(--accent); transform: scale(1.25); }

@media (max-width: 640px) {
  .gallery-arrow { opacity: 1; width: 32px; height: 32px; font-size: 18px; }
  .gallery-zoom-icon { opacity: 1; }
  /* Thumbnail strip — same as desktop, slightly smaller, always scrollable */
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gallery-thumb { width: 64px; height: 40px; flex-shrink: 0; }
  .gallery-dots { display: none; }
  .lightbox-arrow { width: 36px; height: 36px; font-size: 20px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* video embed */
.videos-stack { display: flex; flex-direction: column; gap: 14px; }
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
.video-embed iframe,
.video-embed video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

/* features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature-item {
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-title { font-size: 14.5px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.feature-desc { font-size: 13.5px; color: var(--text-3); line-height: 1.55; }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 14.5px; font-weight: 600; color: var(--text-1);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; width: 10px; height: 10px;
  border-right: 1.8px solid var(--text-3);
  border-bottom: 1.8px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform var(--t-base);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px; color: var(--text-2); line-height: 1.65;
}

/* CTA panel */
.panel-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, var(--accent-50) 0%, #f5f0ff 100%);
  border-color: var(--accent-100);
}
.panel-cta-body { display: flex; flex-direction: column; gap: 0; }
.panel-cta-title { font-size: 18px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.panel-cta-desc { font-size: 14px; color: var(--text-3); }

/* sidebar */
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.side-card-title {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-4);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 7px;
}
.side-card-title svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }
#trending-title { display: flex; align-items: center; gap: 10px; }
#trending-title svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); }
.side-rows { display: flex; flex-direction: column; gap: 10px; }
.side-row {
  display: grid; grid-template-columns: 100px 1fr; gap: 12px;
  font-size: 13.5px;
}
.side-row dt { color: var(--text-3); }
.side-row dd { color: var(--text-1); font-weight: 500; word-break: break-word; }
.side-row dd a { color: var(--accent); }
/* Rating row in sidebar */
.side-stars {
  display: inline-flex; align-items: center; gap: 2px;
  text-decoration: none;
}
.side-star { font-size: 16px; color: var(--border); line-height: 1; }
.side-star.is-filled { color: #f59e0b; }
.side-star.is-half { color: #f59e0b; opacity: .5; }
.side-stars-empty .side-star { color: var(--border); }
.side-stars-empty:hover .side-star { color: #f59e0b; opacity: .6; }
.side-rating-val { font-size: 13px; font-weight: 600; color: var(--text-1); margin-left: 4px; }
.side-rating-count { font-weight: 400; color: var(--text-3); }
.side-stars-empty .side-rating-val { color: var(--text-4); font-weight: 400; }

/* Badge embed widget */
.badge-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.badge-tab {
  flex: 1; padding: 5px 0; border-radius: 6px; border: 1px solid var(--border);
  background: none; font-size: 12px; font-weight: 500; color: var(--text-3);
  cursor: pointer; transition: all .15s;
}
.badge-tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.badge-preview {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px;
  display: flex; align-items: center; justify-content: center;
  min-height: 80px; margin-bottom: 10px; overflow: hidden;
}
.badge-preview iframe { display: block; max-width: 100%; }
.badge-code {
  width: 100%; font-size: 11px; font-family: ui-monospace, monospace;
  color: var(--text-3); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 7px 9px; resize: none; margin-bottom: 8px; line-height: 1.5;
}
.badge-code:focus { outline: none; border-color: var(--accent); }
.side-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.related-list { display: flex; flex-direction: column; }
.related-item { border-top: 1px solid var(--border); }
.related-item:first-child { border-top: 0; }
.related-link {
  display: flex; gap: 12px; padding: 12px 0;
  align-items: center;
  color: var(--text-2);
}
.related-link:hover { color: var(--text-2); }
.related-link img {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  flex-shrink: 0; object-fit: cover;
}
.related-link span { display: flex; flex-direction: column; min-width: 0; }
.related-name { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.related-tagline { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* category page hero */
.category-hero, .search-hero, .submit-hero {
  padding: 48px 0 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
}
.category-hero-title, .search-hero-title, .submit-hero-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800; letter-spacing: -.8px;
  color: var(--text-1); line-height: 1.15;
  margin-bottom: 10px;
}
.search-hero-q { color: var(--accent); }
.category-hero-desc, .submit-hero-desc {
  font-size: 16px; color: var(--text-3); max-width: 720px;
  margin-bottom: 10px;
}
.search-hero-count {
  font-size: 13px; color: var(--text-3);
  margin-top: 14px;
}
.search-hero-count strong { color: var(--text-1); font-weight: 700; }
.search-hero .hero-search { margin-top: 16px; max-width: 620px; }

/* search hero glow + browse-when-empty */
.search-hero { position: relative; overflow: clip; }
.search-hero-glow {
  position: absolute; top: -120px; left: -50px; width: 460px; height: 320px;
  background: radial-gradient(closest-side, rgba(153,69,255,.12), transparent 72%);
  pointer-events: none;
}
.search-hero > .container { position: relative; }
.search-hero .eyebrow { margin-bottom: 8px; }
.search-browse-label { font-size: 12.5px; font-weight: 700; color: var(--text-4); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 14px; }
.search-browse .hero-chips { gap: 8px; }

/* pinned (featured) category section */
.section-pinned { background: var(--accent-50); border-bottom: 1px solid var(--accent-100); }
.section-title-pin { display: inline-flex; align-items: center; gap: 9px; }
.section-title-pin svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* category landing hero — icon-led, with stats + CTAs */
.category-hero {
  position: relative;
  overflow: clip;
  padding: 54px 0 42px;
}
.category-hero-glow {
  position: absolute;
  top: -130px; left: -50px;
  width: 480px; height: 340px;
  background: radial-gradient(closest-side, rgba(22, 82, 240, .13), transparent 72%);
  pointer-events: none;
}
.category-hero > .container { position: relative; }
.category-hero-inner {
  display: flex; align-items: flex-start; gap: 22px;
}
.category-hero-ico {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 74px; height: 74px;
  border-radius: 20px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 15%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.category-hero-ico .cat-ico { width: 36px; height: 36px; }
.category-hero-text { min-width: 0; }
.category-hero-text .eyebrow { margin-bottom: 8px; }
.category-hero-text .category-hero-title { margin-bottom: 12px; }
.category-hero-stats {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 16px;
  font-size: 13.5px; color: var(--text-3);
}
.category-hero-stat strong { color: var(--text-1); font-weight: 700; }
.category-hero-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-4);
}
.category-hero-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
@media (max-width: 640px) {
  .category-hero { padding: 40px 0 34px; }
  .category-hero-inner { flex-direction: column; gap: 16px; }
  .category-hero-ico { width: 60px; height: 60px; border-radius: 16px; }
  .category-hero-ico .cat-ico { width: 30px; height: 30px; }
  .category-hero-actions { width: 100%; }
  .category-hero-actions .btn-primary, .category-hero-actions .btn-secondary { flex: 1; text-align: center; justify-content: center; }
}

/* empty state */
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 15px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* submit form */
.submit-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 36px;
}
.submit-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.field .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--text-4); }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.field small { color: var(--text-4); font-size: 12.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-form .btn-primary { align-self: flex-start; }

.submit-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface);
}
.submit-group legend {
  padding: 0 8px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-4);
}

.submit-form .input-prefix {
  display: flex; align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.submit-form .input-prefix:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.submit-form .input-prefix-tag {
  padding: 10px 12px;
  font-size: 13px; color: var(--text-4);
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.submit-form .input-prefix input {
  flex: 1; border: 0; outline: none;
  padding: 10px 12px; font-size: 14.5px;
  background: transparent;
  min-width: 0;
}

.captcha-box {
  padding: 14px 16px;
  background: var(--amber-50);
  border: 1px solid #f5d687;
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 6px;
}
.captcha-box label { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-q {
  font-size: 16px; font-weight: 700;
  color: #7a4900;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #f5d687;
  font-variant-numeric: tabular-nums;
}
.captcha-box input {
  max-width: 100px;
  padding: 8px 12px;
  border: 1px solid #f5d687;
  border-radius: 8px;
  font-size: 14.5px; font-weight: 600;
  background: #fff;
  text-align: center;
}
.captcha-box input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(192,116,0,.18); }
.captcha-box small { color: #7a4900; font-size: 12.5px; }
/* follow buttons (used in the success state) */
.submit-success-links { display: flex; gap: 10px; flex-wrap: wrap; }
.submit-follow-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: opacity .15s;
}
.submit-follow-btn:hover { opacity: .85; }
.submit-follow-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.submit-follow-x  { background: #000; color: #fff; }
.submit-follow-tg { background: #229ed9; color: #fff; }

/* flash */
.flash { padding: 14px 16px; border-radius: 10px; font-size: 14px; }
.flash-ok  { background: var(--green-50); color: var(--green); border: 1px solid #c7ecd3; }
.flash-err { background: var(--red-50); color: var(--red); border: 1px solid #f5c4c4; }
.flash ul  { margin-top: 6px; padding-left: 20px; list-style: disc; }

/* ========== submit page (icon-led, benefit-led) ========== */
/* submit-only hero overrides — the shared .category-hero/.search-hero/.submit-hero
   base rule is NOT touched, so category/search heroes are unaffected. */
.submit-hero { position: relative; overflow: clip; padding: 54px 0 42px; }
.submit-hero-glow {
  position: absolute; top: -130px; left: -50px;
  width: 480px; height: 340px;
  background: radial-gradient(closest-side, rgba(153,69,255,.13), transparent 72%);
  pointer-events: none;
}
.submit-hero > .container { position: relative; }
.submit-hero-inner { display: flex; align-items: flex-start; gap: 22px; }
.submit-hero-ico {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 74px; height: 74px; border-radius: 20px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 15%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  color: var(--accent); box-shadow: var(--shadow-sm);
}
.submit-hero-ico svg { width: 36px; height: 36px; }
.submit-hero-text { min-width: 0; }
.submit-hero-text .eyebrow { margin-bottom: 8px; }
.submit-hero-text .submit-hero-title { margin-bottom: 12px; max-width: 18ch; }
.submit-hero-text .submit-hero-desc { max-width: 640px; }
.submit-hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.submit-hero-stat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 600; color: var(--text-3);
  background: var(--surface-2); border: 1px solid var(--border);
}
.submit-hero-stat svg { width: 13px; height: 13px; color: var(--accent); opacity: .85; }
.submit-hero-stat strong { color: var(--text-1); font-weight: 700; font-variant-numeric: tabular-nums; }
.submit-hero-trust { font-size: 13px; color: var(--text-4); margin-top: 14px; }

/* form scaffolding */
.submit-required-note { font-size: 13.5px; color: var(--text-3); margin: 0 0 4px; }
.submit-required-dot { color: var(--red); font-weight: 700; }
.submit-required-note strong { color: var(--text-1); }
.submit-group legend { display: inline-flex; align-items: center; gap: 8px; }
.legend-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: var(--radius-sm);
  background: var(--accent-50); color: var(--accent);
}
.legend-ico svg { width: 14px; height: 14px; }
.legend-sub { font-size: 13px; color: var(--text-3); margin: -6px 0 4px; }
.field-optional { font-size: 11.5px; font-weight: 600; color: var(--text-4); text-transform: uppercase; letter-spacing: .4px; margin-left: 6px; }
.submit-pair-hint { font-size: 13px; color: var(--text-3); margin: 0 0 2px; padding: 8px 12px; background: var(--accent-50); border: 1px solid var(--accent-100); border-radius: var(--radius-sm); }
.submit-pair-hint strong { color: var(--accent-600); }

/* char counter */
.field-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-count { font-size: 12px; color: var(--text-4); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.field-count.is-near { color: var(--amber); font-weight: 600; }
.field-count.is-max { color: var(--red); font-weight: 700; }

/* custom select chevron */
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 9px; height: 9px;
  margin-top: -6px; pointer-events: none;
  border-right: 2px solid var(--text-4); border-bottom: 2px solid var(--text-4);
  transform: rotate(45deg);
}
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 34px; }

/* error state on a field */
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.16); }

/* prefix tag with glyph */
.submit-form .input-prefix-tag { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; user-select: none; }
.submit-form .input-prefix-tag svg { width: 12px; height: 12px; }

/* 44px touch targets */
.field input, .field select { min-height: 44px; }
.submit-form .input-prefix { min-height: 44px; }

/* finalize block */
.submit-finalize { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.turnstile-slot { min-height: 65px; }
.field-hint-wait { display: none; font-size: 13px; color: var(--amber); background: var(--amber-50); border: 1px solid #f5d687; padding: 8px 12px; border-radius: var(--radius-sm); margin: 0; }
.field-hint-wait.is-on { display: block; }
.submit-form .submit-finalize .btn-large { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-width: 230px; justify-content: center; }
.submit-form .submit-finalize .btn-large svg { width: 16px; height: 16px; transition: transform var(--t-base); }
.submit-form .submit-finalize .btn-large:hover svg { transform: translateX(3px); }
.submit-foot { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-4); margin: 0; }
.submit-foot svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--green); }

/* error summary card */
.submit-err {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--red-50); border: 1px solid color-mix(in srgb, var(--red) 26%, var(--border));
}
.submit-err-ico { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-sm); background: #fff; color: var(--red); }
.submit-err-ico svg { width: 18px; height: 18px; }
.submit-err-body strong { display: block; font-size: 14.5px; color: var(--red); margin-bottom: 4px; }
.submit-err-body ul { margin: 0; padding-left: 18px; list-style: disc; font-size: 13.5px; color: #7f1d1d; }
.submit-err-body a { color: #991b1b; text-decoration: underline; }

/* sidebar cards */
.submit-side { display: flex; flex-direction: column; gap: 16px; font-size: 14px; color: var(--text-3); line-height: 1.6; }
.submit-side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.submit-side-head { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-4); margin-bottom: 14px; }
.submit-side-card ul { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.submit-side-card li { padding-left: 24px; position: relative; }
.submit-side-card ul li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 14px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E");
}
.submit-steps { counter-reset: step; display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; list-style: none; padding: 0; }
.submit-steps li { counter-increment: step; padding-left: 30px; position: relative; }
.submit-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-50); color: var(--accent);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: normal;
}
.submit-side-note { font-size: 13px; color: var(--text-4); margin: 0; }

/* success state — full-width confirmation that replaces the form */
.submit-success {
  position: relative;
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px 32px; box-shadow: var(--shadow-md); overflow: hidden;
}
.submit-success:focus { outline: none; }
.submit-success::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green); }
.submit-success-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px;
  background: var(--green-50); color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 26%, var(--border)); box-shadow: var(--shadow-sm);
}
.submit-success-ico svg { width: 28px; height: 28px; }
.submit-success-title { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--text-1); margin: 0 0 10px; }
.submit-success-text { font-size: 15px; color: var(--text-3); line-height: 1.6; max-width: 460px; margin: 0 auto 22px; }
.submit-success-lead { font-size: 13.5px; font-weight: 600; color: var(--text-2); margin: 0 0 12px; }
.submit-success-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.submit-success-actions { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.submit-success-home { font-size: 14px; font-weight: 600; color: var(--accent); }

@media (max-width: 900px) {
  .submit-layout { grid-template-columns: 1fr; }
  .submit-side { order: 2; }
}
@media (max-width: 640px) {
  .submit-hero-inner { flex-direction: column; gap: 16px; }
  .submit-hero-ico { width: 60px; height: 60px; border-radius: 16px; }
  .submit-hero-ico svg { width: 30px; height: 30px; }
  .submit-form { padding: 20px; }
  .field input, .field textarea, .field select { font-size: 16px; } /* no iOS zoom */
  .submit-form .submit-finalize .btn-large { width: 100%; min-height: 48px; }
}
@media (min-width: 901px) {
  .submit-side { position: sticky; top: 90px; align-self: start; }
}

/* ---------- 404 page ---------- */
.err-hero {
  padding: 80px 0 56px;
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(22, 82, 240, .09), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.err-hero-inner { max-width: 680px; margin: 0 auto; }
.err-code {
  display: inline-block;
  font-size: clamp(72px, 14vw, 132px);
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, #14F195 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.err-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -.6px;
  color: var(--text-1);
  margin-bottom: 12px;
}
.err-desc {
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 520px;
}
.err-search {
  display: flex; gap: 8px; align-items: center;
  max-width: 520px;
  margin: 0 auto 20px;
  padding: 6px 6px 6px 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.err-search .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-4);
}
.err-search input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-size: 14.5px; min-width: 0;
  padding: 10px 0;
}
.err-search .btn-primary { padding: 10px 18px; font-size: 14px; }
.err-links {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 18px;
}
@media (max-width: 600px) {
  .err-hero { padding: 56px 0 40px; }
  .err-search { padding: 4px 4px 4px 40px; }
  .err-search .btn-primary { padding: 8px 14px; }
  .err-links { gap: 6px; }
}

/* ---------- Comments ---------- */
.comments-count-badge {
  display: inline-block; margin-left: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--text-4);
  vertical-align: baseline;
}
.comments-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
.comments-empty { color: var(--text-3); font-size: 14.5px; margin-bottom: 24px; }

.comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }
.comment-reply { padding: 12px 0 12px 20px; border-left: 2px solid var(--border); border-bottom: none; margin-top: 10px; }

.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.comment-avatar-ph {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.comment-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.comment-name { font-size: 14px; font-weight: 700; color: var(--text-1); display: inline-flex; align-items: center; gap: 4px; }
a.comment-name:hover { color: var(--accent); }
.comment-x-badge { width: 11px; height: 11px; color: var(--text-4); }
.comment-date { font-size: 12px; color: var(--text-4); }
.comment-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.comment-like-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--text-3);
  background: transparent; border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px; cursor: pointer;
  transition: all var(--t-fast);
}
.comment-like-btn:hover { color: var(--red); border-color: var(--red); }
.comment-like-btn.is-liked { color: var(--red); border-color: var(--red); background: #fff0f0; }
.comment-like-btn svg { width: 13px; height: 13px; }
.comment-reply-toggle {
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-50); border: 1px solid var(--accent-100);
  padding: 4px 10px; border-radius: 100px; cursor: pointer;
  transition: all var(--t-fast);
}
.comment-reply-toggle:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.comment-text { font-size: 15px; line-height: 1.65; color: var(--text-1); margin: 0; white-space: pre-wrap; word-break: break-word; }
.comment-replies { margin-top: 4px; }
.comment-reply-form { margin-top: 12px; }

/* Comment form */
.comment-form-wrap { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.comment-form-title { font-size: 16px; font-weight: 700; color: var(--text-1); margin-bottom: 14px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; }
.reply-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface-2); border-radius: 10px; }
/* Star rating picker */
.comment-rating-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
}
.comment-rating-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.star-picker { display: flex; gap: 2px; }
.star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; padding: 0 2px;
  color: var(--border); transition: color .1s, transform .1s;
}
.star-btn:hover, .star-btn.is-active { color: #f59e0b; }
.star-btn:hover { transform: scale(1.15); }
.star-picker-hint { font-size: 12px; color: var(--text-4); }
/* Stars on published comments */
.comment-stars { display: inline-flex; gap: 1px; margin-right: 4px; vertical-align: middle; }
.comment-star { font-size: 13px; color: var(--border); }
.comment-star.is-filled { color: #f59e0b; }

.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comment-form input, .reply-form input { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; transition: border-color var(--t-fast); }
.comment-form input:focus, .reply-form input:focus { outline: none; border-color: var(--accent); }
.comment-form textarea, .reply-form textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; min-height: 90px; background: #fff; transition: border-color var(--t-fast); }
.comment-form textarea:focus, .reply-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-captcha-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--amber-50); border: 1px solid #f5d687;
  border-radius: 8px;
}
.comment-captcha-row .captcha-q { font-size: 15px; font-weight: 700; color: #7a4900; }
.captcha-answer { width: 80px; padding: 7px 10px; border: 1px solid #f5d687; border-radius: 6px; font-size: 14px; text-align: center; background: #fff; }
.captcha-answer:focus { outline: none; border-color: var(--amber); }
.comment-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.comment-form-msg { font-size: 13px; font-weight: 600; margin: 0; }
.comment-form-msg-ok    { color: var(--green); }
.comment-form-msg-error { color: var(--red); }
@media (max-width: 600px) { .comment-form-row { grid-template-columns: 1fr; } }

/* ---------- Static pages (About / Privacy / Contact / custom) ---------- */
.page-article { background: var(--bg); }

.page-hero {
  background:
    radial-gradient(800px 400px at 12% 0%, rgba(22, 82, 240, .10), transparent 60%),
    radial-gradient(700px 500px at 95% 10%, rgba(124, 58, 237, .08), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px;
}
.page-hero-inner {
  max-width: 840px;
  margin: 0 auto;
}
.page-hero-crumb { padding: 0 0 20px; border: 0; background: transparent; }
.page-hero-crumb ol { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--text-4); }
.page-hero-crumb li + li::before { content: '›'; margin-right: 8px; color: var(--text-4); }
.page-hero-crumb a { color: var(--text-3); }
.page-hero-crumb a:hover { color: var(--accent); }

.page-hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-50);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.page-hero-title {
  font-size: clamp(34px, 4.8vw, 52px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--text-1);
  margin: 0 0 18px;
}
.page-hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 680px;
  margin: 0 0 14px;
}
.page-hero-meta {
  font-size: 13px;
  color: var(--text-4);
  margin: 0;
}

/* Body + side layout */
.page-body-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  padding: 56px 24px 24px;
  max-width: 1060px;
  margin: 0 auto;
}
.page-body {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.page-body > h2:first-child,
.page-body > h3:first-child,
.page-body > p:first-child { margin-top: 0; }
.page-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--text-1);
  margin: 36px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.page-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.page-body h3 {
  font-size: 16px; font-weight: 700;
  color: var(--text-1);
  margin: 24px 0 10px;
}
.page-body p {
  font-size: 16px; line-height: 1.75;
  color: var(--text-2);
  margin: 0 0 18px;
}
.page-body p:last-child { margin-bottom: 0; }
.page-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(22, 82, 240, .35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color var(--t-fast);
}
.page-body a:hover { text-decoration-color: var(--accent); }
.page-body ul, .page-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.page-body ul li, .page-body ol li {
  font-size: 16px; line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 8px;
}
.page-body ul { list-style: none; padding-left: 0; }
.page-body ul li {
  position: relative; padding-left: 22px;
}
.page-body ul li::before {
  content: '';
  position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.page-body strong { color: var(--text-1); font-weight: 600; }
.page-body code {
  background: var(--surface-2);
  padding: 1px 7px;
  border-radius: 5px;
  font-size: .92em;
  color: var(--text-1);
  border: 1px solid var(--border);
}
.page-body hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.page-body blockquote {
  margin: 0 0 20px;
  padding: 12px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-50);
  border-radius: 0 8px 8px 0;
  color: var(--text-2);
  font-style: italic;
}

/* Aside: links to other pages */
.page-aside { position: sticky; top: 82px; align-self: start; }
.page-aside-title {
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .9px;
  color: var(--text-4);
  margin-bottom: 14px;
}
.page-aside-list { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; }
.page-aside-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--t-fast);
}
.page-aside-link:hover {
  border-color: var(--accent);
  background: var(--accent-50);
  transform: translateX(2px);
}
.page-aside-link-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.page-aside-link:hover .page-aside-link-title { color: var(--accent); }
.page-aside-link-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }

@media (max-width: 960px) {
  .page-body-wrap { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 20px; }
  .page-aside { position: static; }
}
@media (max-width: 720px) {
  .page-hero { padding: 40px 0 36px; }
  .page-body { padding: 24px 22px; border-radius: var(--radius); }
  .page-body h2 { font-size: 19px; margin-top: 28px; padding-top: 22px; }
  .page-body p, .page-body li { font-size: 15.5px; }
}

/* ---------- footer (dark, premium) ---------- */
/* Floating CTA card that straddles the light page and the dark footer */
.footer-promo { position: relative; z-index: 2; margin: 88px 0 -80px; }
.footer-promo-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 38px 44px; border-radius: 24px;
  background: linear-gradient(115deg, #9945FF 0%, #4f46e5 56%, #14F195 112%);
  box-shadow: 0 32px 64px -24px rgba(37,46,160,.62);
  transition: transform .25s ease, box-shadow .25s ease;
}
.footer-promo-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 130% at 88% 4%, rgba(255,255,255,.22), transparent 60%);
}
.footer-promo-card:hover { transform: translateY(-3px); box-shadow: 0 40px 74px -24px rgba(37,46,160,.74); }
.footer-promo-text { position: relative; min-width: 0; }
.footer-promo-eyebrow { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: rgba(255,255,255,.82); margin-bottom: 9px; }
.footer-promo-title { font-size: clamp(23px, 2.8vw, 31px); font-weight: 800; letter-spacing: -.6px; color: #fff; line-height: 1.15; margin: 0 0 8px; }
.footer-promo-sub { font-size: 15px; color: rgba(255,255,255,.86); max-width: 480px; line-height: 1.55; margin: 0; }
.footer-promo-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: var(--radius); background: #fff; color: #1f3bd6; font-weight: 700; font-size: 15px; white-space: nowrap; box-shadow: 0 10px 22px rgba(10,20,80,.22); transition: transform .2s ease; }
.footer-promo-card:hover .footer-promo-btn { transform: translateY(-1px); }
.footer-promo-btn svg { width: 16px; height: 16px; }

.site-footer {
  position: relative; overflow: hidden;
  margin-top: 0;
  background: #0b1020;
  color: #c3ccdb;
}
.footer-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 120% at 86% -12%, rgba(153,69,255,.22), transparent 55%),
    radial-gradient(48% 100% at 2% 0%, rgba(153,69,255,.10), transparent 52%);
}
.footer-top {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.9fr; gap: 56px;
  padding: 122px 24px 48px;
}
.footer-lead { min-width: 0; }
.footer-logo { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; letter-spacing: -.4px; color: #fff; }
.footer-logo:hover { color: #fff; }
.footer-logo img { width: 36px; height: 36px; border-radius: 9px; }
.footer-tagline { font-size: 15px; line-height: 1.65; color: #93a1b5; max-width: 390px; margin: 18px 0 26px; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.footer-act { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.footer-act svg { width: 15px; height: 15px; }
.footer-act-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(153,69,255,.8); }
.footer-act-primary:hover { background: #2f6bff; color: #fff; transform: translateY(-1px); }
.footer-act-ghost { color: #cbd5e1; border: 1px solid rgba(255,255,255,.16); }
.footer-act-ghost:hover { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.05); }
.footer-follow-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #74849b; margin-bottom: 12px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0; }
.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-sm); color: #93a1b5; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); transition: color .15s, background .15s, border-color .15s, transform .15s; }
.footer-social:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

.footer-links { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-col { min-width: 0; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #74849b; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; list-style: none; padding: 0; }
.footer-col a { font-size: 14px; color: #c3ccdb; transition: color .15s; display: inline-flex; align-items: center; white-space: nowrap; }
.footer-col a:hover { color: #fff; }
.footer-cats-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 11px 24px !important; }

.footer-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #6b7a90; }
.footer-totop { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #8593a8; padding: 5px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-pill); transition: color .15s, border-color .15s, background .15s; }
.footer-totop:hover { color: #fff; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.05); }
.footer-totop svg { width: 12px; height: 12px; }

@media (max-width: 900px) {
  .footer-promo { margin: 64px 0 -64px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; padding: 104px 24px 40px; }
}
@media (max-width: 600px) {
  .footer-promo { margin: 48px 0 -56px; }
  .footer-promo-card { flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 20px; }
  .footer-promo-btn { width: 100%; justify-content: center; }
  .footer-top { padding: 94px 16px 34px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-col-cats { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; padding: 18px 16px; }
  .footer-totop { align-self: flex-end; margin-top: -2px; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-layout { grid-template-columns: 1fr; padding: 36px 24px; gap: 24px; }
  .submit-layout { grid-template-columns: 1fr; }
  .header-search { width: 200px; }
}
@media (max-width: 720px) {
  /* The header carries backdrop-filter, which would make a position:fixed drawer
     resolve against the header box instead of the viewport. Drop it on mobile so
     the slide-in drawer + scrim anchor to the viewport correctly. */
  .site-header {
    height: auto; padding: 10px 0;
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo toggle"
      "end end";
    align-items: center;
    gap: 10px;
    height: auto;
    padding: 0 16px;
  }
  .site-logo { grid-area: logo; align-self: center; }
  .nav-toggle { grid-area: toggle; display: inline-flex; justify-self: end; }
  .header-end { grid-area: end; display: flex; align-items: center; gap: 8px; width: 100%; }
  .header-end .header-search { flex: 1; width: auto; height: 40px; }
  .header-cta { display: none; } /* moved into the hamburger menu on mobile */
  .nav-submit { display: block; }

  /* ---- slide-in drawer ---- */
  .nav-scrim {
    display: block;
    position: fixed; inset: 0; z-index: 60;
    background: rgba(8,12,24,.5);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

  .primary-nav {
    position: fixed; top: 0; right: 0; z-index: 70;
    height: 100dvh; width: min(330px, 82vw);
    display: flex; flex-direction: column; align-items: stretch; gap: 3px;
    margin: 0;
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -22px 0 55px -18px rgba(8,12,24,.34);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s;
  }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; }

  .nav-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 2px 2px 12px; margin-bottom: 6px;
    border-bottom: 1px solid var(--border);
  }
  .nav-drawer-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .9px; color: var(--text-4);
  }
  .nav-drawer-close {
    width: 36px; height: 36px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-1); background: var(--surface);
    border: 1px solid var(--border-2); cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast);
  }
  .nav-drawer-close:hover { background: var(--surface-2); border-color: var(--text-4); }
  .nav-drawer-close svg { width: 18px; height: 18px; }

  .primary-nav a {
    padding: 13px 14px;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--text-1);
    border-radius: 10px;
  }
  .primary-nav a:hover { background: var(--surface-2); }
  .primary-nav a.is-active { background: var(--accent-50); color: var(--accent); }
  .primary-nav .nav-submit {
    margin-top: 10px; text-align: center; font-weight: 600;
    color: #fff; background: var(--accent);
    box-shadow: 0 1px 2px rgba(153,69,255,.20);
  }
  .primary-nav .nav-submit:hover { background: var(--accent-600); color: #fff; }

  .hero { padding: 48px 0 32px; }
  .hero-title { font-size: 26px; letter-spacing: -.6px; overflow-wrap: break-word; }
  .hero-subtitle { font-size: 15px; margin-bottom: 22px; }
  .hero-search { padding: 5px 5px 5px 44px; border-radius: 12px; }
  .hero-search input { font-size: 14.5px; padding: 10px 0; min-width: 0; }
  .hero-search .btn-primary { padding: 10px 14px; font-size: 14px; }

  .tool-hero { padding: 28px 0 24px; }
  .tool-hero { padding: 24px 0 20px; }
  /* Keep row layout on mobile — just shrink the media column */
  .tool-hero-inner { flex-direction: row; gap: 14px; align-items: flex-start; }
  .tool-hero-media { gap: 8px; }
  .tool-hero-media .vote-btn-compact { width: 56px; min-width: 56px; font-size: 13px; }
  .tool-hero-logo { width: 56px; height: 56px; border-radius: 14px; }
  .tool-hero-name { font-size: 26px; letter-spacing: -.6px; }
  .tool-hero-tagline { font-size: 15px; margin-bottom: 16px; }
  .tool-hero-actions { gap: 10px; margin-bottom: 14px; }
  .tool-hero-actions .btn-large { width: 100%; justify-content: center; }
  .tool-hero-actions .tool-hero-meta { width: 100%; font-size: 12.5px; }
  .tool-hero-actions .cta-note { width: 100%; justify-content: center; text-align: center; }
  .tool-hero-socials { gap: 6px; }

  .tool-cover img { max-height: 260px; }
  .tool-layout { padding: 24px 16px; gap: 20px; }

  .panel { padding: 20px 18px; }
  .panel-title { font-size: 16.5px; padding-bottom: 14px; margin-bottom: 14px; }
  .panel-cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .panel-cta .btn-large { width: 100%; justify-content: center; }

  .proscons { grid-template-columns: 1fr; gap: 20px; }
  .side-card { padding: 18px; }
  .side-row { grid-template-columns: 96px 1fr; gap: 10px; }
  .breadcrumb ol { padding: 12px 0; font-size: 12.5px; }

  .tools-grid { grid-template-columns: 1fr; }
  .tool-row { grid-template-columns: 44px 44px 1fr; gap: 12px; padding: 14px; }
  .tool-row-cta { display: none; }
  .vote-btn-compact { width: 44px; min-width: 44px; }
  .tool-row-compact { grid-template-columns: 44px 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 36px 0 28px; }
  .hero-title { font-size: 24px; letter-spacing: -.4px; }
  .hero-subtitle { font-size: 14.5px; }
  .section { padding: 44px 0; }
  .section-title { font-size: 22px; }
  .tool-hero-name { font-size: 22px; }
  .tool-hero-cats { margin-bottom: 8px; }
  .panel { padding: 18px 16px; }
  .hero-search .btn-primary { padding: 9px 12px; font-size: 13.5px; }
}

/* ---------- focus ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Pending comment — same look as approved, amber left border */
.comment-pending-card {
  border-left: 3px solid var(--amber) !important;
  padding-left: 14px !important;
  opacity: .9;
}
.comment-pending-badge-inline {
  margin-left: auto; flex-shrink: 0;
  font-size: 11px; font-weight: 600;
  color: #92620a;
  background: var(--amber-50);
  border: 1px solid #f5d687;
  padding: 2px 8px; border-radius: 100px;
  white-space: nowrap;
}

/* X / Twitter profile card */
.x-card { padding: 0; overflow: hidden; }
.x-card-banner {
  height: 90px;
  background-size: cover;
  background-position: center;
  background-color: var(--accent);
  background-image: linear-gradient(135deg, #1d9bf0 0%, #0c7abf 100%);
}
.x-card-banner-fallback {
  background-image: linear-gradient(135deg, #0f1419 0%, #1d9bf0 100%);
}
.x-card-body {
  padding: 0 22px 22px;
  position: relative;
}
.x-card-avatar {
  display: block;
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--surface);
  background: var(--surface);
  margin: -36px 0 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.x-card-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x-card-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.x-card-name {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 16px; font-weight: 700; color: var(--text-1); text-decoration: none;
  line-height: 1.25;
}
.x-card-name:hover { text-decoration: underline; }
.x-card-name span { word-break: break-word; }
.x-verified { width: 16px; height: 16px; color: #1d9bf0; flex-shrink: 0; }
.x-card-handle {
  font-size: 13.5px; color: var(--text-3); text-decoration: none;
}
.x-card-handle:hover { color: var(--text-1); }
.x-card-bio {
  font-size: 13.5px; line-height: 1.5;
  color: var(--text-2);
  margin: 0 0 14px;
  word-break: break-word;
}
.x-card-bio a { color: var(--accent); }
.x-card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.x-card-stat {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  font-size: 12px; color: var(--text-3);
}
.x-card-stat strong {
  font-size: 16px; font-weight: 700; color: var(--text-1); line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.x-card-stat span { margin-top: 2px; }
.x-card-follow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #0f1419; color: #fff;
  padding: 10px 16px; border-radius: 100px;
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  transition: background .15s ease;
}
.x-card-follow:hover { background: #2c3640; color: #fff; }
.x-card-follow svg { width: 14px; height: 14px; }

.x-card-meta-list {
  list-style: none; padding: 0;
  margin: -4px 0 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.x-card-meta-list:empty { display: none; }
.x-card-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-3);
}
.x-card-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.x-card-actions { display: flex; flex-direction: column; gap: 8px; }
.x-card-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 100px;
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.x-card-cta:hover { filter: brightness(1.08); color: #fff; }
.x-card-cta svg { width: 14px; height: 14px; }

/* News panel — Twitter-card style with thread grouping */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item {
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--border);
}
.news-item:first-child { padding-top: 4px; }
.news-item:last-child { border-bottom: none; padding-bottom: 4px; }

.news-item-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.news-item-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}
.news-item-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  font-size: 14px;
  min-width: 0;
}
.news-item-name {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 700; color: var(--text-1);
}
.news-item-verified { width: 14px; height: 14px; color: #1d9bf0; flex-shrink: 0; }
.news-item-time { color: var(--text-3); font-size: 13.5px; }
.news-item-time::before { content: '· '; margin-right: 2px; }
.news-thread-badge {
  font-size: 11.5px; font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 2px 8px; border-radius: 100px;
  margin-left: auto;
}

.news-item-body { display: flex; flex-direction: column; gap: 10px; }
.news-item-post { display: flex; flex-direction: column; gap: 8px; }
.news-item-post-continued {
  position: relative;
  padding-left: 14px;
  color: var(--text-2);
}
.news-item-post-continued::before {
  content: '';
  position: absolute;
  left: 4px; top: 2px; bottom: 2px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}
.news-item-text {
  font-size: 14.5px; line-height: 1.4;
  color: inherit;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.news-item-text br + br { display: none; }

.news-item-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.news-item-media img {
  display: block;
  width: 100%; height: auto;
  max-height: 420px;
  object-fit: cover;
}
.news-item-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-color: transparent;
}
.news-item-video video,
.news-item-video img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}

.news-item-stats {
  list-style: none; padding: 0; margin: 10px 0 0;
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  font-size: 12.5px; color: var(--text-3);
}
.news-item-stats li + li::before {
  content: '·';
  margin-right: 14px;
  color: var(--border);
}

@media (max-width: 640px) {
  .news-item-text { font-size: 14px; }
  .news-item-stats { gap: 4px 10px; }
  .news-item-stats li + li::before { margin-right: 10px; }
}

/* News-image lightbox */
.news-img-link {
  display: block;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.news-img-link img {
  display: block;
  width: 100%; height: auto;
  max-height: 420px;
  object-fit: cover;
  transition: opacity .15s ease;
}
.news-img-link:hover img { opacity: .92; }

.news-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  cursor: zoom-out;
  animation: news-lb-fade .12s ease;
}
.news-lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.news-lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px; line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.news-lightbox-close:hover { background: rgba(255,255,255,0.22); }
@keyframes news-lb-fade { from { opacity: 0; } to { opacity: 1; } }

/* Tool page on-page H1 — sits above the "What is X?" panel.
   Carries the keyword-rich seo_title; styled with a soft accent underline. */
.tool-h1 {
  margin: 28px 0 18px;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.5px;
  color: var(--text-1);
  position: relative;
  padding-bottom: 14px;
}
.tool-h1::after {
  content: '';
  display: block;
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-600) 100%);
  border-radius: 2px;
  position: absolute;
  left: 0; bottom: 0;
}
@media (max-width: 720px) {
  .tool-h1 { font-size: 22px; margin: 20px 0 14px; padding-bottom: 10px; }
  .tool-h1::after { width: 40px; height: 2px; }
}

/* X account intel — security signals from the project's X profile */
.x-intel-wrap {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.x-intel-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700;
  color: var(--text-1);
  margin-bottom: 14px;
}
.x-intel-title svg { width: 16px; height: 16px; color: var(--text-2); }
.x-intel-handle {
  font-weight: 500; color: var(--text-3);
  font-size: 13px;
  margin-left: auto;
}
.x-intel-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}
.x-intel-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
}
.x-intel-body { flex: 1; min-width: 0; }
.x-intel-item.x-intel-warn {
  border-color: #f5d687;
  background: var(--amber-50, #fff8e7);
}
.x-intel-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-3); margin-top: 1px; }
.x-intel-label {
  color: var(--text-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  display: block;
  margin-bottom: 2px;
}
.x-intel-value {
  color: var(--text-1);
  font-weight: 600;
  display: block;
}
.x-intel-value strong { color: var(--text-1); }
.x-intel-sub {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 1px;
}
.x-intel-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .x-intel-list { grid-template-columns: 1fr; }
  .x-intel-wrap { padding: 14px 16px; }
}

/* Alternatives (in-content) */
.alts-intro { font-size: 14px; color: var(--text-3); margin: 0 0 16px; line-height: 1.5; }
.alts-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.alts-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease;
}
.alts-item:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.alts-logo { flex-shrink: 0; }
.alts-logo img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: block; }
.alts-body { flex: 1; min-width: 0; }
.alts-name { font-size: 15.5px; font-weight: 700; margin: 0 0 2px; line-height: 1.25; }
.alts-name a { color: var(--text-1); }
.alts-name a:hover { color: var(--accent); }
.alts-tagline { font-size: 13.5px; color: var(--text-3); margin: 0 0 6px; line-height: 1.45; }
.alts-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.alts-chip {
  font-size: 11.5px; font-weight: 600; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 100px; white-space: nowrap;
}
.alts-cta { flex-shrink: 0; }
@media (max-width: 560px) {
  .alts-cta { display: none; }
}

/* News: hidden-until-show-more, collapsible thread tail, toggle button */
.news-item.news-hidden { display: none; }
.news-thread-more { margin-top: 8px; }
.news-thread-more > summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent);
  list-style: none; padding: 6px 0; user-select: none;
}
.news-thread-more > summary::-webkit-details-marker { display: none; }
.news-thread-more > summary::before { content: '▸ '; }
.news-thread-more[open] > summary::before { content: '▾ '; }
.news-thread-more[open] > summary { color: var(--text-3); }
.news-show-more { margin-top: 16px; }

/* Anchored sections clear the sticky header (60px) + subnav (~48px) when
   jumped to via a #hash link, so the heading isn't hidden underneath. */
.tool-page [id] { scroll-margin-top: 116px; }

/* ============================ Blog ============================ */
/* Matches the site: Inter, site tokens, card style like .tool-card. */
.post-container { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* — Index — */
.blog-hero {
  position: relative; overflow: clip;
  padding: 52px 0 30px;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border-bottom: 1px solid var(--border);
}
.blog-hero-glow {
  position: absolute; top: -130px; left: -60px;
  width: 480px; height: 340px;
  background: radial-gradient(closest-side, rgba(153,69,255,.13), transparent 72%);
  pointer-events: none;
}
.blog-hero .post-container { max-width: 1080px; position: relative; }
.blog-hero-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; color: var(--text-1); margin: 10px 0 8px; }
.blog-hero-sub { font-size: 16px; color: var(--text-3); margin: 0; max-width: 640px; }
.blog-hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.blog-hero-stat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 600; color: var(--text-3);
  background: var(--surface-2); border: 1px solid var(--border);
}
.blog-hero-stat strong { color: var(--text-1); font-weight: 700; font-variant-numeric: tabular-nums; }
.blog-index { padding: 30px 0 64px; }
.blog-index .post-container { max-width: 1080px; }

/* Blog index — 2-column layout with a sticky category sidebar. */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 34px; align-items: start; }
.blog-main { min-width: 0; }
.blog-side { min-width: 0; position: sticky; top: 84px; }
.blog-cats-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.blog-cat-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--radius);
  color: var(--text-2); font-size: 14px; font-weight: 600; line-height: 1.2;
  transition: background var(--t-base), color var(--t-base);
}
.blog-cat-link:hover { background: var(--surface-2); color: var(--text-1); }
.blog-cat-link.is-active { background: var(--accent-50); color: var(--accent-600); }
.blog-cat-ico {
  display: inline-flex; flex: none; width: 30px; height: 30px; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--surface-2); color: var(--text-3);
  transition: background var(--t-base), color var(--t-base);
}
.blog-cat-ico svg { width: 16px; height: 16px; }
.blog-cat-link:hover .blog-cat-ico { color: var(--accent); }
.blog-cat-link.is-active .blog-cat-ico { background: #fff; color: var(--accent); }
.blog-cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blog-cat-count {
  flex: none; font-size: 12px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums;
  background: var(--surface-2); padding: 1px 8px; border-radius: var(--radius-pill);
}
.blog-cat-link.is-active .blog-cat-count { background: #fff; color: var(--accent-600); }

/* kicker is now a link to the filtered blog */
a.blog-card-kicker:hover { text-decoration: underline; }

/* Category archive — SEO intro above the post list */
.blog-cat-intro { margin: 2px 0 26px; padding: 0 0 22px; border-bottom: 1px solid var(--border); max-width: 720px; }
.blog-main .blog-cat-intro p { color: var(--text-2); font-size: 15.5px; line-height: 1.7; margin: 0 0 12px; }
.blog-main .blog-cat-intro p:first-child { font-size: 16.5px; color: var(--text-1); }
.blog-main .blog-cat-intro p:last-child { margin-bottom: 0; }
.blog-cat-intro strong { color: var(--text-1); font-weight: 700; }

/* Blog hero — category context */
.blog-hero-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 14px; transition: color var(--t-base); }
.blog-hero-back:hover { color: var(--accent); }
.blog-hero-back svg { width: 15px; height: 15px; }
.hero-badge-ico { display: inline-flex; }
.hero-badge-ico svg { width: 14px; height: 14px; color: var(--accent); }

/* Single-post category eyebrow chip */
.post-cat-chip {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
  padding: 5px 13px 5px 9px; border-radius: var(--radius-pill);
  background: var(--accent-50); color: var(--accent-600);
  font-size: 12.5px; font-weight: 700; border: 1px solid var(--accent-100);
  transition: background var(--t-base);
}
.post-cat-chip:hover { background: var(--accent-100); }
.post-cat-chip-ico { display: inline-flex; }
.post-cat-chip-ico svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; gap: 18px; }
  .blog-side { position: static; order: -1; }
  .blog-cats-card.side-card { padding: 13px 14px; }
  .blog-cats-card .side-card-title { margin-bottom: 9px; }
  .blog-cats-list { flex-direction: row; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .blog-cats-list::-webkit-scrollbar { display: none; }
  .blog-cat-link { flex: none; gap: 8px; padding: 7px 13px 7px 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); white-space: nowrap; }
  .blog-cat-link.is-active { border-color: transparent; }
  .blog-cat-ico { width: 24px; height: 24px; }
  .blog-cat-ico svg { width: 14px; height: 14px; }
  .blog-cat-name { flex: none; }
}

/* designed empty state */
.blog-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 56px 24px; border: 1px dashed var(--border-2); border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.blog-empty-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--accent-50); color: var(--accent); margin-bottom: 6px;
}
.blog-empty-ico svg { width: 24px; height: 24px; }
.blog-empty-title { font-size: 18px; font-weight: 700; color: var(--text-1); }
.blog-empty-sub { font-size: 14px; color: var(--text-3); margin-bottom: 10px; }

/* featured lead */
.blog-lead {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); margin-bottom: 28px;
  text-decoration: none; transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.blog-lead::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, var(--accent), #14F195); opacity: 0; transition: opacity var(--t-base);
}
.blog-lead:hover { border-color: var(--border-2); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-lead:hover::before { opacity: 1; }
.blog-lead-cover { display: block; position: relative; background: var(--surface-2); overflow: hidden; aspect-ratio: 16/10; }
.blog-lead-cover img, .blog-lead-cover picture { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.blog-lead:hover .blog-lead-cover img { transform: scale(1.04); }
.blog-lead-cover.is-placeholder { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 42%, var(--accent-50), var(--surface-2)); }
.blog-lead-glyph svg { width: 92px; height: 92px; color: var(--accent); opacity: .18; }
.blog-lead-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.blog-lead-body { padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.blog-lead-title { font-size: 24px; font-weight: 800; line-height: 1.25; color: var(--text-1); letter-spacing: -.5px; margin: 12px 0 8px; }
.blog-lead-dek { font-size: 15px; color: var(--text-3); line-height: 1.55; margin-bottom: 16px; }
.blog-lead-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-lead-metachip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 600; color: var(--text-3);
  background: var(--surface-2); border: 1px solid var(--border);
}
.blog-lead-metachip svg { width: 13px; height: 13px; }
.blog-lead-metadate { color: var(--text-4); }

.blog-index-heading {
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-4); margin: 8px 0 20px; padding-top: 28px; border-top: 1px solid var(--border);
}

/* card grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-grid-trio { grid-template-columns: repeat(3, 1fr); }
.blog-grid:has(.blog-card:only-child) .blog-card { max-width: 360px; }

.panel-reading .alts-intro a { color: var(--accent); font-weight: 600; }
.panel-reading .alts-intro a:hover { text-decoration: underline; }

/* Blog rows — a horizontal thumbnailed list (tool-page "Recommended reading");
   a denser alternative to the card grid. Whole row is one click target. */
.blog-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.blog-row {
  position: relative; display: flex; align-items: center; gap: 15px;
  padding: 11px 14px 11px 11px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.blog-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), #14F195); opacity: 0; transition: opacity var(--t-base);
}
.blog-row:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.blog-row:hover::before { opacity: 1; }
.blog-row-thumb {
  flex: none; width: 112px; height: 78px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); position: relative;
}
.blog-row-thumb img, .blog-row-thumb picture { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.blog-row:hover .blog-row-thumb img { transform: scale(1.05); }
.blog-row-thumb.is-placeholder { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 42%, var(--accent-50), var(--surface-2)); }
.blog-row-glyph svg { width: 30px; height: 30px; color: var(--accent); opacity: .22; }
.blog-row-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.blog-row-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.blog-row-kicker-ico { display: inline-flex; }
.blog-row-kicker-ico svg { width: 13px; height: 13px; }
.blog-row-title {
  font-size: 15.5px; font-weight: 700; line-height: 1.34; margin: 0; letter-spacing: -.2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-row-title a { color: var(--text-1); }
.blog-row-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.blog-row:hover .blog-row-title a { color: var(--accent); }
.blog-row-dek { font-size: 13px; color: var(--text-3); line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.blog-row-foot { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-3); margin-top: 1px; }
.blog-row-read { display: inline-flex; align-items: center; gap: 5px; }
.blog-row-read svg { width: 13px; height: 13px; }
.blog-row-dot { opacity: .5; }
.blog-row-arrow { flex: none; width: 18px; height: 18px; color: var(--text-3); transition: transform var(--t-base), color var(--t-base); }
.blog-row:hover .blog-row-arrow { color: var(--accent); transform: translateX(3px); }
@media (max-width: 560px) {
  .blog-row { gap: 12px; padding: 10px; }
  .blog-row-thumb { width: 80px; height: 62px; }
  .blog-row-dek { display: none; }
  .blog-row-arrow { display: none; }
}

/* card */
.blog-card {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  display: flex; flex-direction: column;
}
.blog-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--accent), #14F195); opacity: 0; transition: opacity var(--t-base);
}
.blog-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card:hover::before { opacity: 1; }
.blog-card-cover { display: block; aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; position: relative; }
.blog-card-cover img, .blog-card-cover picture { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.blog-card:hover .blog-card-cover img { transform: scale(1.04); }
.blog-card-cover.is-placeholder { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 42%, var(--accent-50), var(--surface-2)); }
.blog-card-glyph svg { width: 54px; height: 54px; color: var(--accent); opacity: .16; }
.blog-card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.blog-card-badge svg { width: 11px; height: 11px; }
.blog-card-body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.blog-card-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--accent);
}
.blog-card-kicker-ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
}
.blog-card-kicker-ico svg { width: 13px; height: 13px; }
.blog-card-title { font-size: 17px; font-weight: 700; line-height: 1.32; margin: 0; letter-spacing: -.2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-title a { color: var(--text-1); }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-dek { font-size: 13.5px; color: var(--text-3); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--text-4);
}
.blog-card-read { display: inline-flex; align-items: center; gap: 5px; }
.blog-card-clock { width: 13px; height: 13px; flex-shrink: 0; }
.blog-card-date { font-variant-numeric: tabular-nums; }

/* — Single post — */
.post { padding-bottom: 56px; }
.post-crumb { padding-top: 28px; margin-bottom: 18px; background: transparent; border-bottom: 0; }
.post-crumb ol { padding: 0; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.post-tag {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  padding: 3px 11px; border-radius: var(--radius-pill);
}
.post-title { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; line-height: 1.18; letter-spacing: -1px; color: var(--text-1); margin: 0 0 14px; }
.post-dek { font-size: 19px; line-height: 1.5; color: var(--text-3); margin: 0 0 18px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--text-3); }
.post-author { font-weight: 700; color: var(--text-1); }
.post-dot { color: var(--text-4); }

/* Reading progress bar (fixed, fills with scroll) */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 0 2px 2px 0; transition: width .08s linear; }

/* Byline: avatar + author/dates + share */
.post-byline { display: flex; align-items: center; gap: 13px; margin: 0 0 30px; }
.post-byline-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border); object-fit: cover; }
.post-byline-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.post-share { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.post-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--border-2);
  cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.post-share-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-50); transform: translateY(-1px); }
.post-share-btn svg { width: 16px; height: 16px; }
.post-share-btn.is-copied { color: var(--green); border-color: var(--green); background: var(--green-50); }

/* Two-column reading layout: content + sticky TOC */
.post-layout.has-toc {
  max-width: 1080px;
  display: grid; grid-template-columns: minmax(0, 1fr) 232px;
  gap: 56px; align-items: start;
}
.post-main { min-width: 0; }
.post-aside { position: sticky; top: 88px; }
.post-toc { border-left: 2px solid var(--border); padding: 2px 0 2px 18px; }
.post-toc > summary { list-style: none; cursor: default; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-4); margin-bottom: 12px; }
.post-toc > summary::-webkit-details-marker { display: none; }
.post-toc ul { display: flex; flex-direction: column; gap: 2px; }
/* Desktop: TOC is opened by JS and made non-collapsible (summary = a label). */
@media (min-width: 901px) {
  .post-toc > summary { pointer-events: none; }
}
.post-toc a {
  display: block; padding: 5px 0; font-size: 13.5px; line-height: 1.4;
  color: var(--text-3); border-left: 2px solid transparent; margin-left: -20px; padding-left: 18px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.post-toc a:hover { color: var(--text-1); }
.post-toc .post-toc-l3 a { padding-left: 30px; font-size: 13px; }
.post-toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
/* Anchored headings clear the sticky header when jumped to */
.post-body h2[id], .post-body h3[id] { scroll-margin-top: 84px; }

@media (max-width: 900px) {
  /* Flex column must STRETCH children to the container width. Without this the
     inherited `align-items: start` (from the desktop grid rule) sizes .post-main
     to its max-content — a wide image or long line then blows the column out
     past the viewport, clipping text on the right. */
  .post-layout.has-toc { display: flex; flex-direction: column; align-items: stretch; max-width: 760px; }
  .post-main { width: 100%; min-width: 0; }
  .post-aside { position: static; order: -1; margin: 0 0 24px; width: 100%; }
  .post-toc { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface-2); }
  .post-toc > summary { cursor: pointer; margin-bottom: 0; display: flex; align-items: center; justify-content: space-between; }
  .post-toc > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--text-4); border-bottom: 2px solid var(--text-4); transform: rotate(45deg); transition: transform var(--t-fast); }
  .post-toc[open] > summary { margin-bottom: 12px; }
  .post-toc[open] > summary::after { transform: rotate(-135deg); }
  .post-toc a { margin-left: 0; padding-left: 0; border-left: 0; }
  .post-toc a.is-active { border-left: 0; padding-left: 8px; }
  .post-toc .post-toc-l3 a { padding-left: 16px; }
  .post-byline { flex-wrap: wrap; row-gap: 14px; }
}

.post-cover { margin: 0 0 32px; }
.post-cover img, .post-cover picture { display: block; width: 100%; max-width: 1100px; margin: 0 auto; height: auto; border-radius: var(--radius-lg); }

.post-body.prose { font-size: 17px; line-height: 1.8; color: var(--text-2); overflow-wrap: break-word; word-break: break-word; }
/* Pasted/exported content (e.g. from docs) can include wide media or tables —
   keep everything inside the column on small screens. */
.post-body.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14.5px; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.post-body.prose th, .post-body.prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.post-body.prose th { background: var(--surface-2); font-weight: 700; color: var(--text-1); }
.post-body.prose iframe, .post-body.prose video, .post-body.prose embed { max-width: 100%; }
.post-body.prose h2 { font-size: 26px; font-weight: 800; color: var(--text-1); letter-spacing: -.5px; margin: 48px 0 14px; line-height: 1.25; scroll-margin-top: 84px; }
.post-body.prose h3 { font-size: 20px; font-weight: 700; color: var(--text-1); letter-spacing: -.2px; margin: 34px 0 10px; line-height: 1.3; scroll-margin-top: 84px; }
.post-body.prose h2 + p, .post-body.prose h3 + p { margin-top: 0; }
.post-body.prose p { margin: 0 0 20px; }
/* Lead paragraph — larger, calmer opening */
.post-body.prose > p:first-of-type { font-size: 19px; line-height: 1.65; color: var(--text-1); }
.post-body.prose strong, .post-body.prose b { color: var(--text-1); font-weight: 700; }
.post-body.prose hr { border: 0; height: 1px; background: var(--border); margin: 44px 0; }

/* Lists — accent markers, comfortable rhythm */
.post-body.prose ul { list-style: none; padding-left: 2px; margin: 0 0 20px; }
.post-body.prose ul > li { position: relative; padding-left: 26px; }
.post-body.prose ul > li::before { content: ''; position: absolute; left: 5px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.post-body.prose ol { padding-left: 24px; margin: 0 0 20px; }
.post-body.prose ol > li::marker { color: var(--accent); font-weight: 700; }
.post-body.prose li { margin-bottom: 9px; }
.post-body.prose li > ul, .post-body.prose li > ol { margin: 9px 0 0; }
.post-body.prose blockquote {
  margin: 28px 0; padding: 16px 22px; border-left: 3px solid var(--accent);
  background: var(--accent-50); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-1); font-size: 18px; font-style: italic;
}
.post-body.prose blockquote p:last-child { margin-bottom: 0; }
.post-body.prose img { max-width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin: 24px auto; display: block; }
.post-body.prose picture { display: block; max-width: 100%; margin: 22px auto; text-align: center; }
.post-body.prose picture img { margin: 0 auto; }
.post-body.prose figure { margin: 24px auto; text-align: center; }
.post-body.prose figure img { margin: 0 auto; }
.post-body.prose figcaption { font-size: 13px; color: var(--text-4); text-align: center; margin-top: 8px; }
.post-body.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-100); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color var(--t-fast); }
.post-body.prose a:hover { text-decoration-color: var(--accent); }
.post-body.prose pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; font-size: 14px; margin: 0 0 18px; }
.post-body.prose code { font-size: 13.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
.post-body.prose pre code { background: none; padding: 0; }

/* Tables in blog posts */
.post-body.prose table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 14.5px; line-height: 1.5;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.post-body.prose thead th,
.post-body.prose th {
  background: var(--surface-2); color: var(--text-1);
  font-weight: 700; text-align: left;
}
.post-body.prose th,
.post-body.prose td {
  padding: 10px 14px; border: 1px solid var(--border); vertical-align: top;
}
.post-body.prose tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.post-body.prose td p:last-child { margin-bottom: 0; }
/* Let wide tables scroll on small screens instead of breaking the layout */
@media (max-width: 640px) {
  .post-body.prose table { display: block; overflow-x: auto; white-space: nowrap; }
}

.post-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-back { font-weight: 600; color: var(--accent); }

.blog-more { background: var(--surface-2); border-top: 1px solid var(--border); padding: 48px 0; }
.blog-more .post-container { max-width: 1080px; }
.blog-more-title { font-size: 20px; font-weight: 800; color: var(--text-1); margin: 0 0 20px; }

@media (max-width: 720px) {
  .blog-lead { grid-template-columns: 1fr; }
  .blog-lead-cover { aspect-ratio: 16/9; }
  .post-dek { font-size: 17px; }
  .post-body.prose { font-size: 16px; }
}

/* Blog: sidebar block + homepage section header row */
.related-link-blog { align-items: flex-start; }
.related-link-blog .related-name { font-weight: 600; }
.side-card-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head-row .btn-secondary { flex-shrink: 0; }
@media (max-width: 560px) { .section-head-row { flex-direction: column; align-items: flex-start; } }

/* Blog: post date labels + author box */
.post-date, .post-updated { white-space: nowrap; }
/* Evergreen feel: fade the original publish date, keep "Updated" prominent. */
.post-date { color: var(--text-4); font-weight: 400; }
.post-updated { color: var(--text-2); font-weight: 600; }

.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  margin: 40px 0 0; padding: 24px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.author-box-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; background: var(--surface);
  border: 1px solid var(--border);
}
.author-box-body { flex: 1; min-width: 0; }
.author-box-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--text-4); margin: 0 0 2px;
}
.author-box-name { font-size: 18px; font-weight: 800; color: var(--text-1); margin: 0 0 8px; }
.author-box-bio { font-size: 14px; line-height: 1.55; color: var(--text-3); margin: 0 0 12px; }
.author-box-socials { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.author-box-socials a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: var(--radius-pill);
  transition: border-color .15s ease, color .15s ease;
}
.author-box-socials a:hover { border-color: var(--accent); color: var(--accent); }
.author-box-socials svg { width: 15px; height: 15px; }
@media (max-width: 560px) {
  .author-box { flex-direction: column; gap: 14px; padding: 20px; }
}

/* Blog reader rating (star widget) */
.blog-rating {
  margin: 36px 0 28px; padding: 22px 24px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.blog-rating-label {
  margin: 0 0 10px; font-size: 14px; font-weight: 700;
  letter-spacing: .3px; color: var(--text-2);
}
.blog-rating-stars { display: inline-flex; gap: 4px; }
.blog-rating-star {
  font-size: 30px; line-height: 1; background: none; border: 0;
  padding: 0 2px; cursor: pointer; color: var(--border-2, #33405a);
  transition: color var(--t-fast, .12s) ease, transform var(--t-fast, .12s) ease;
}
.blog-rating-star:hover { transform: scale(1.14); }
.blog-rating-star.is-on { color: var(--amber, #f5b301); }
/* Half star: empty glyph with the left half overlaid in amber (e.g. avg 4.5). */
.blog-rating-star.is-half { position: relative; }
.blog-rating-star.is-half::before {
  content: "★";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 50%; overflow: hidden; box-sizing: border-box; padding: inherit;
  color: var(--amber, #f5b301); pointer-events: none;
}
.blog-rating-star:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
.blog-rating-summary { margin: 12px 0 0; font-size: 13.5px; color: var(--text-3); }
.blog-rating-avg { font-weight: 800; font-size: 16px; color: var(--text-1); }
.blog-rating-out { color: var(--text-4); }
.blog-rating-mine { color: var(--accent); font-weight: 600; }
.blog-rating.has-voted .blog-rating-label::after { content: " — thanks!"; font-weight: 500; color: var(--text-4); }

/* Compact interactive rating for the tool sidebar (clickable, synced with the main box) */
.blog-rating--mini {
  margin: 0; padding: 0; text-align: left; background: none; border: 0; border-radius: 0;
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.blog-rating--mini .blog-rating-star { font-size: 18px; padding: 0 1px; }
.blog-rating--mini .blog-rating-summary { margin: 0; font-size: 12.5px; white-space: nowrap; }
.blog-rating--mini .blog-rating-out,
.blog-rating--mini .blog-rating-mine { display: none; } /* keep it short in the narrow sidebar */

/* ============================================================
   Theme refinements (v2) — premium light polish
   ============================================================ */
::selection { background: var(--accent-100); color: var(--accent-600); }

/* Slightly softer body for an airier, more editorial read */
body { font-size: 15.5px; letter-spacing: -0.005em; }

/* Refined, unobtrusive scrollbar (WebKit) */
* { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 999px; border: 3px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

/* Hairline dividers read crisper on hi-dpi */
.section-muted, .site-header { border-color: var(--border); }

/* Honor reduced-motion across the new hover lifts/zooms */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .blog-card:hover, .category-card:hover, .tool-row:hover, .btn-primary:hover, .btn-secondary:hover { transform: none; }
  .blog-card:hover .blog-card-cover img { transform: none; }
}

/* ── Cookie consent banner (geo-gated to EU/EEA, UK, CH via the header script) ── */
.cookie-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; display: flex; justify-content: center; pointer-events: none; }
.cookie-consent-inner {
  pointer-events: auto; display: flex; align-items: center; gap: 16px; width: 100%; max-width: 720px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 13px 16px;
  transform: translateY(140%); opacity: 0;
  transition: transform .38s cubic-bezier(.22,1,.36,1), opacity .38s ease;
}
.cookie-consent.is-visible .cookie-consent-inner { transform: translateY(0); opacity: 1; }
.cookie-consent-ico { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--accent-50); color: var(--accent); }
.cookie-consent-ico svg { width: 22px; height: 22px; }
.cookie-consent-text { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.cookie-consent-text a { color: var(--accent); font-weight: 600; }
.cookie-consent-text a:hover { text-decoration: underline; }
.cookie-consent-actions { flex: none; display: flex; gap: 8px; }
.cookie-btn { font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-pill); cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: background var(--t-base), border-color var(--t-base), color var(--t-base); }
.cookie-btn-primary { background: var(--accent); color: #fff; }
.cookie-btn-primary:hover { background: var(--accent-600); }
.cookie-btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border-2); }
.cookie-btn-ghost:hover { background: var(--surface-2); color: var(--text-1); }
@media (max-width: 600px) {
  .cookie-consent { left: 10px; right: 10px; bottom: 10px; }
  .cookie-consent-inner { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .cookie-consent-ico { display: none; }
  .cookie-consent-text { flex: 1 1 100%; }
  .cookie-consent-actions { flex: 1 1 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-inner { transition: opacity .2s ease; transform: none; }
}

/* ── Tool page: "How to use" numbered steps ── */
.howto-list { list-style: none; margin: 0; padding: 0; }
.howto-step { position: relative; display: flex; gap: 15px; padding-bottom: 20px; }
.howto-step:last-child { padding-bottom: 0; }
.howto-step::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--border); }
.howto-step:last-child::before { display: none; }
.howto-num {
  position: relative; z-index: 1; flex: none; width: 31px; height: 31px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--accent-50); color: var(--accent-600);
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.howto-body { min-width: 0; padding-top: 3px; }
.howto-title { font-size: 15.5px; font-weight: 700; color: var(--text-1); letter-spacing: -.2px; margin: 0 0 3px; line-height: 1.35; }
.howto-desc { font-size: 14px; color: var(--text-3); line-height: 1.55; margin: 0; }
