/* ==========================================================================
   QualifiedLead Insights - shared stylesheet
   Brand: Lead Emerald #48B44A / Midnight Obsidian #120A30 / Inter
   Shape rule: buttons, chips and badges are pills; cards 16px; media 12px;
   inputs 12px. One accent (emerald) throughout.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ql-primary: #48B44A;
  --ql-primary-bright: #6AC66B;
  --ql-primary-hover: #389A3A;
  --ql-primary-dark: #28732A;
  --ql-primary-light: #F0FDF4;
  --ql-primary-line: #BBF7D0;
  --ql-accent: #120A30;
  --ql-accent-light: #1E124D;
  --ql-accent-card: #180F3E;

  --bg: #F0F2F5;
  --paper: #FFFFFF;
  --paper-2: #F8FAFC;
  --ink: #120A30;
  --text: #334155;
  --muted: #5B6B80;
  --faint: #94A3B8;
  --line: rgba(18, 10, 48, 0.08);
  --line-strong: rgba(18, 10, 48, 0.16);

  --type-fanpage: #00ACC1;
  --type-group: #28A745;
  --type-post: #6F42C1;
  --type-profile: #FD7E14;

  --intent-hot: #17C653;
  --intent-warm: #FA8C16;
  --intent-cold: #64748B;

  --shadow-sm: 0 2px 6px rgba(18, 10, 48, .06);
  --shadow: 0 6px 18px rgba(18, 10, 48, .06), 0 1px 3px rgba(18, 10, 48, .04);
  --shadow-md: 0 12px 28px rgba(18, 10, 48, .08), 0 4px 10px rgba(18, 10, 48, .04);
  --shadow-brand: 0 10px 30px rgba(72, 180, 74, .28);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 9999px;

  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-hover: 0 14px 32px rgba(18, 10, 48, .10), 0 3px 8px rgba(18, 10, 48, .05);
}

/* 2. Reset & base ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

svg { display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

a { color: var(--ql-primary-dark); text-underline-offset: 3px; }

a:hover { color: var(--ql-primary-hover); }

button { font: inherit; color: inherit; }

::selection { background: var(--ql-primary-line); color: var(--ql-accent); }

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

.on-dark :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.inline-cta :focus-visible,
.side-cta :focus-visible,
.sidebar-cta :focus-visible {
  outline-color: #8FE091;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 400;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top .18s var(--ease-out);
}

.skip-link:focus { top: 12px; }

/* 3. Layout utilities ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 6.5vw, 88px); }

.section--paper { background: var(--paper); }

.section--tight { padding-block: clamp(40px, 4.5vw, 64px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head .section-lede {
  margin-top: 8px;
  max-width: 58ch;
  color: var(--text);
  font-size: 16px;
}

.section-title {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ql-primary-dark);
}

.eyebrow--on-dark { color: #8FE091; }

.eyebrow-line {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.meta .dot { color: var(--faint); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 4. Buttons, chips, icons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out),
    border-color .18s var(--ease-out), transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ql-primary);
  color: var(--ql-accent);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background: var(--ql-primary-hover);
  color: var(--ql-accent);
  box-shadow: 0 10px 26px rgba(56, 154, 58, .26);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--ql-primary);
  color: var(--ql-primary-dark);
  background: var(--ql-primary-light);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }

.btn-lg { min-height: 50px; padding: 0 26px; font-size: 15.5px; }

.btn-block { width: 100%; }

.btn .icon { transition: transform .18s var(--ease-out); }

.btn:hover .icon-arrow { transform: translateX(3px); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out);
}

.icon-btn:hover { background: var(--paper-2); border-color: var(--line); color: var(--ql-primary-dark); }

.icon { width: 20px; height: 20px; stroke-width: 2; flex: none; }

.icon-sm { width: 16px; height: 16px; }

.icon-lg { width: 24px; height: 24px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.chip--emerald { background: var(--ql-primary-light); border-color: var(--ql-primary-line); color: var(--ql-primary-dark); }

.chip--navy { background: rgba(18, 10, 48, .06); border-color: transparent; color: var(--ink); }

.sr-only-focusable:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Placeholder media: neutral, labelled, never a grey void ------------------ */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
  background:
    linear-gradient(140deg, #EDF1F7 0%, #E4EAF2 52%, #E9EEF6 100%);
  border: 1px solid rgba(18, 10, 48, .06);
  isolation: isolate;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(18, 10, 48, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 10, 48, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
}

.ph--dark {
  background: linear-gradient(140deg, #1B1242 0%, #150C36 55%, #221451 100%);
  border-color: rgba(255, 255, 255, .08);
}

.ph--dark::before { background-image: none; }

.ph-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(18, 10, 48, .07);
  color: #55637A;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.ph--dark .ph-label {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .74);
}

.ph-label .icon { width: 13px; height: 13px; stroke-width: 1.8; }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
  color: var(--ink);
}

.brand-wordmark {
  height: 32px;
  width: auto;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}

.brand-suffix {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--muted);
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color .16s var(--ease-out), background-color .16s var(--ease-out);
}

.primary-nav a:hover { color: var(--ink); background: var(--paper-2); }

.primary-nav a[aria-current="page"],
.primary-nav a[aria-current="true"] {
  color: var(--ql-primary-dark);
  background: var(--ql-primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-left: 12px;
}

.menu-toggle { display: none; }

/* Header search panel */
.search-panel {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.search-panel-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
}

.search-panel input {
  flex: 1;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.search-panel input::placeholder { color: var(--faint); }

.search-panel input:focus {
  outline: none;
  border-color: var(--ql-primary);
  box-shadow: 0 0 0 3px rgba(72, 180, 74, .14);
  background: var(--paper);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 48, .44);
  border: 0;
  padding: 0;
  cursor: pointer;
  animation: fadeIn .2s ease-out;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--paper);
  box-shadow: -20px 0 50px rgba(18, 10, 48, .16);
  overflow-y: auto;
  animation: slideIn .26s var(--ease-out);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.drawer-title {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.drawer-nav { display: flex; flex-direction: column; gap: 2px; padding-block: 8px; }

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.drawer-nav a:hover { background: var(--paper-2); }

.drawer-nav a[aria-current="page"],
.drawer-nav a[aria-current="true"] { background: var(--ql-primary-light); color: var(--ql-primary-dark); }

.drawer-nav .icon { color: var(--faint); }

.drawer-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes slideIn { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ql-accent);
  color: rgba(255, 255, 255, .78);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(72, 180, 74, .30), rgba(72, 180, 74, .07) 46%, transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 82%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 6.6vw, 92px);
}

.hero-copy { max-width: 560px; }

.hero h1 {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(38px, 4.6vw, 57px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero h1 .accent { color: var(--ql-primary-bright); }

.hero-sub {
  margin-top: 18px;
  max-width: 46ch;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
}

.hero-search { margin-top: 28px; max-width: 520px; }

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: border-color .18s var(--ease-out), background-color .18s var(--ease-out);
}

.search-form:focus-within {
  border-color: rgba(106, 198, 107, .7);
  background: rgba(255, 255, 255, .1);
}

.search-form .search-icon { color: rgba(255, 255, 255, .55); margin-left: 8px; }

.search-form input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
}

.search-form input::placeholder { color: rgba(255, 255, 255, .48); }

.search-form input:focus { outline: none; }

.search-form .btn { flex: none; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags .tag-label {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  margin-right: 2px;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .76);
  font-size: 12.5px;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background-color .16s var(--ease-out), color .16s var(--ease-out), border-color .16s var(--ease-out);
}

.tag-link:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255,255,255,.3); }

/* Featured card in hero */
.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border-radius: var(--r-xl);
  background: var(--paper);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .38);
  color: var(--text);
}

.featured-card .ph { aspect-ratio: 16 / 9; }

.featured-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.featured-flag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ql-primary-dark);
}

.featured-card h2 {
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.featured-card .excerpt {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ql-primary-dark);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.read-link .icon { transition: transform .18s var(--ease-out); }

.featured-card:hover .read-link .icon,
.article-card:hover .read-link .icon,
.review-card:hover .read-link .icon { transform: translateX(3px); }

/* 7. Topic cards ----------------------------------------------------------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out);
}

.topic-card:nth-child(4),
.topic-card:nth-child(5) { grid-column: span 3; }

.topic-card:hover {
  transform: translateY(-2px);
  border-color: var(--ql-primary-line);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

.topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--ql-primary-light);
  color: var(--ql-primary-dark);
  border: 1px solid var(--ql-primary-line);
  margin-bottom: 4px;
}

.topic-card h3 {
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.topic-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.topic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.topic-foot .icon { color: var(--ql-primary-dark); transition: transform .18s var(--ease-out); }

.topic-card:hover .topic-foot .icon { transform: translateX(3px); }

/* 8. Article cards --------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out);
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

.article-card .ph {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.article-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  flex: 1;
}

.card-cat {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ql-primary-dark);
}

.article-card h3 {
  font-size: 17.5px;
  line-height: 1.34;
  letter-spacing: -0.015em;
}

.article-card .excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.search-status {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text);
}

.search-status strong { color: var(--ink); }

.search-status button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ql-primary-dark);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 56px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  text-align: center;
}

.empty-state .icon { width: 28px; height: 28px; color: var(--faint); }

.empty-state h3 { font-size: 16px; }

.empty-state p { font-size: 14px; color: var(--muted); max-width: 42ch; }

/* 9. Review spotlight table ------------------------------------------------ */
.panel {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.review-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.review-table caption {
  text-align: left;
  padding: 20px 24px 14px;
  color: var(--muted);
  font-size: 13px;
}

.review-table thead th {
  padding: 12px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  border-block: 1px solid var(--line);
  white-space: nowrap;
}

.review-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.review-table tbody tr:last-child td { border-bottom: 0; }

.review-table tbody tr { transition: background-color .16s var(--ease-out); }

.review-table tbody tr:hover { background: #FBFCFE; }

.community-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.community-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--ql-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.community-name {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.community-name:hover { color: var(--ql-primary-dark); }

.community-kind { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.platform-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.platform-badge[data-type="fanpage"] { background: #E0F7FA; color: #00707D; }
.platform-badge[data-type="group"] { background: #E7F7EA; color: #1B6B2C; }
.platform-badge[data-type="post"] { background: #F1EBFB; color: #5A32A3; }
.platform-badge[data-type="profile"] { background: #FFF0E2; color: #9A4A00; }

.score-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--ql-primary-light);
  border: 1px solid var(--ql-primary-line);
  color: var(--ql-primary-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.score-pill .denom { font-size: 10px; opacity: .7; }

.score-pill[data-band="mid"] { background: #FFF7E8; border-color: #FDE3B8; color: #8A5300; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ql-primary-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.text-link .icon { transition: transform .18s var(--ease-out); }

.text-link:hover .icon { transform: translateX(3px); }

/* 10. CTA band & newsletter ------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ql-accent);
  color: rgba(255, 255, 255, .76);
  border-radius: var(--r-xl);
  padding: clamp(32px, 4.4vw, 56px);
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -6% -60% auto;
  width: 460px;
  height: 460px;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(72, 180, 74, .28), transparent 68%);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(24px, 2.9vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 24ch;
}

.cta-band p {
  margin-top: 12px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.6;
}

.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

.newsletter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--r-xl);
  background: var(--ql-primary-light);
  border: 1px solid var(--ql-primary-line);
}

.newsletter-panel h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
}

.newsletter-panel p { margin-top: 10px; font-size: 14.5px; color: var(--text); max-width: 44ch; }

.newsletter-form { display: grid; gap: 8px; }

.field-row { display: flex; gap: 8px; }

.field-row input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(18, 10, 48, .16);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
}

.field-row input::placeholder { color: var(--faint); }

.field-row input:focus {
  outline: none;
  border-color: var(--ql-primary);
  box-shadow: 0 0 0 3px rgba(72, 180, 74, .16);
}

.field-row input[aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }

.form-note { display: block; font-size: 12px; color: var(--muted); padding-left: 4px; }

.form-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #B42318;
  padding-left: 4px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ql-primary-dark);
  padding: 10px 4px 0;
}

.form-success .icon { color: var(--ql-primary-dark); }

/* 11. Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ql-accent);
  color: rgba(255, 255, 255, .62);
  padding-block: 56px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

.brand--dark { color: #fff; }

.brand--dark .brand-badge { width: 34px; height: 34px; flex: none; }

.brand--dark .brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.footer-about p {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .6);
}

.footer-about .footer-tag {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: grid; gap: 2px; }

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
  text-decoration: none;
  transition: color .16s var(--ease-out);
}

.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .48);
}

.footer-bottom .footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }

.footer-bottom a { color: rgba(255, 255, 255, .62); text-decoration: none; }

.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* 12. Page head, breadcrumb, tabs ------------------------------------------ */
.page-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(28px, 3.4vw, 44px) 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  list-style: none;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }

.breadcrumb a { color: var(--muted); text-decoration: none; }

.breadcrumb a:hover { color: var(--ql-primary-dark); text-decoration: underline; }

.breadcrumb .sep { color: var(--faint); }

.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

.page-head-main { max-width: 780px; margin-top: 20px; }

.page-head h1 {
  font-size: clamp(28px, 3.3vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.028em;
}

.page-head .lede {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  max-width: 62ch;
}

.page-head-meta { margin-top: 18px; }

.page-head-sub { margin-top: 6px; font-size: 12.5px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill) var(--r-pill) 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color .16s var(--ease-out), background-color .16s var(--ease-out);
}

.tab:hover { color: var(--ink); background: var(--paper-2); }

.tab[aria-pressed="true"] { color: var(--ql-primary-dark); font-weight: 600; }

.tab[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--ql-primary);
  border-radius: 2px;
}

/* 13. Category page -------------------------------------------------------- */
.category-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-block: 36px 72px;
}

.category-side {
  display: grid;
  gap: 18px;
}

.filters {
  display: grid;
  gap: 22px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.filter-label {
  display: block;
  padding: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.range-row .filter-label { padding: 0; }

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filters-head h2 {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.reset-btn {
  border: 0;
  background: none;
  padding: 6px 0;
  color: var(--ql-primary-dark);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.reset-btn:hover { color: var(--ql-primary-hover); }

.filter-group { border: 0; margin: 0; padding: 0; display: grid; gap: 3px; }

.filter-group legend {
  padding: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.filter-group + .filter-group {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 2px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--r-sm);
}

.check:hover { color: var(--ink); }

.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  border: 1.5px solid rgba(18, 10, 48, .26);
  border-radius: 5px;
  background: var(--paper);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: background-color .14s var(--ease-out), border-color .14s var(--ease-out);
}

.check input::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform .14s var(--ease-out);
  clip-path: polygon(14% 46%, 0 60%, 40% 100%, 100% 22%, 86% 8%, 39% 68%);
  background: var(--ql-accent);
}

.check input:checked { background: var(--ql-primary); border-color: var(--ql-primary); }

.check input:checked::before { transform: scale(1); }

.check input:focus-visible { outline: 2px solid var(--ql-accent); outline-offset: 2px; }

.select-wrap { position: relative; }

.select-wrap select {
  width: 100%;
  min-height: 44px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-wrap select:focus {
  outline: none;
  border-color: var(--ql-primary);
  box-shadow: 0 0 0 3px rgba(72, 180, 74, .14);
}

.select-wrap .icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.range-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }

.range-row output {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}

.range {
  width: 100%;
  accent-color: var(--ql-primary);
  height: 28px;
  cursor: pointer;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
}

.side-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--ql-accent);
  color: rgba(255, 255, 255, .72);
  padding: 22px;
  isolation: isolate;
}

.side-cta::before {
  content: "";
  position: absolute;
  inset: auto -40% -55% auto;
  width: 260px;
  height: 260px;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(72, 180, 74, .32), transparent 70%);
}

.side-cta h3 { color: #fff; font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; }

.side-cta p { margin-top: 8px; font-size: 13px; line-height: 1.55; }

.side-cta .btn { margin-top: 16px; }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.results-count { font-size: 13.5px; color: var(--muted); }

.results-count strong { color: var(--ink); font-weight: 600; }

.sort-wrap { display: flex; align-items: center; gap: 8px; }

.sort-wrap label { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.sort-wrap select {
  min-height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.sort-wrap { position: relative; }

.sort-wrap .icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.featured-review {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 0;
  margin-bottom: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .2s var(--ease-out), border-color .2s var(--ease-out);
}

.featured-review:hover { box-shadow: var(--shadow-hover); border-color: var(--line-strong); color: var(--text); }

.featured-review .ph {
  border-radius: 0;
  border: 0;
  min-height: 260px;
  aspect-ratio: auto;
}

.featured-review-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
}

.featured-review-body h3 {
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.26;
  letter-spacing: -0.02em;
}

.featured-review-body p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.featured-review .chips { display: flex; flex-wrap: wrap; gap: 6px; }

.featured-review .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out);
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

.review-card .ph { aspect-ratio: 16 / 8; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }

.review-card-body { display: flex; flex-direction: column; gap: 9px; padding: 18px; flex: 1; }

.review-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.review-card h3 { font-size: 16.5px; line-height: 1.32; letter-spacing: -0.012em; }

.review-card .chips { display: flex; flex-wrap: wrap; gap: 5px; }

.review-card .review-meta {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.review-card .review-meta .dot { color: var(--faint); }

.review-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.inline-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: var(--ql-primary-light);
  border: 1px solid var(--ql-primary-line);
}

.inline-strip p { font-size: 14px; color: var(--ink); font-weight: 500; max-width: 52ch; }

.inline-strip .btn { flex: none; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .16s var(--ease-out), color .16s var(--ease-out), background-color .16s var(--ease-out);
}

.page-btn:hover:not(:disabled) { border-color: var(--ql-primary); color: var(--ql-primary-dark); background: var(--ql-primary-light); }

.page-btn[aria-current="page"] {
  background: var(--ql-accent);
  border-color: var(--ql-accent);
  color: #fff;
}

.page-btn:disabled { opacity: .4; cursor: not-allowed; }

.page-btn .icon { width: 16px; height: 16px; }

/* 14. Review article ------------------------------------------------------- */
.article-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 28px 0; }

.review-head { max-width: 860px; }

.review-head .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.review-head h1 {
  font-size: clamp(29px, 3.5vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.review-head .summary {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  max-width: 66ch;
}

.byline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.byline { display: flex; align-items: center; gap: 12px; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--ql-accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

.avatar--green { background: var(--ql-primary); color: var(--ql-accent); }

.byline-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }

.byline-meta { display: block; font-size: 12.5px; color: var(--muted); }

.share-row { display: flex; align-items: center; gap: 6px; }

.share-row .label { font-size: 12px; color: var(--muted); margin-right: 2px; }

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
  transition: color .16s var(--ease-out), border-color .16s var(--ease-out), background-color .16s var(--ease-out);
}

.share-btn:hover { color: var(--ql-primary-dark); border-color: var(--ql-primary); background: var(--ql-primary-light); }

.share-btn span { font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }

.share-row .btn-sm { min-height: 44px; }

.review-cover { padding-bottom: 32px; }

.review-cover .ph { aspect-ratio: 21 / 9; border-radius: var(--r-lg); }

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
  padding-block: 40px 72px;
}

.review-main { display: grid; gap: 32px; min-width: 0; }

.score-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.score-visual { display: grid; justify-items: center; gap: 8px; }

.score-ring { position: relative; width: 132px; height: 132px; }

.score-ring svg { width: 132px; height: 132px; transform: rotate(-90deg); }

.score-ring .ring-track { fill: none; stroke: #E9EEF5; stroke-width: 10; }

.score-ring .ring-fill {
  fill: none;
  stroke: var(--ql-primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: calc(339.292 - (339.292 * var(--pct, .8)));
}

.score-ring-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.score-ring-value .num {
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}

.score-ring-value .den {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 4px;
}

.score-caption { font-size: 11px; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.meters { display: grid; gap: 14px; }

.meter-row { display: grid; grid-template-columns: 106px minmax(0, 1fr) 52px; align-items: center; gap: 12px; }

.meter-label { font-size: 13px; color: var(--text); }

.meter { height: 8px; border-radius: var(--r-pill); background: #E9EEF5; overflow: hidden; }

.meter > span {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--ql-primary) 0%, var(--ql-primary-bright) 100%);
  width: var(--v, 50%);
}

.meter-value { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-align: right; }

.score-note { margin-top: 4px; font-size: 11.5px; color: var(--muted); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--paper);
}

.fact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-value { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.3; }

.article-body { max-width: 72ch; }

.article-body > * + * { margin-top: 18px; }

.article-body h2 {
  margin-top: 40px;
  font-size: clamp(22px, 2.3vw, 27px);
  letter-spacing: -0.022em;
  line-height: 1.25;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  margin-top: 28px;
  font-size: 18px;
  letter-spacing: -0.012em;
}

.article-body p { font-size: 16.5px; line-height: 1.72; color: var(--text); }

.article-body ul, .article-body ol { padding-left: 22px; display: grid; gap: 8px; }

.article-body li { font-size: 16.5px; line-height: 1.65; }

.article-body li::marker { color: var(--ql-primary-dark); }

.section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ql-primary-dark);
  margin-right: 10px;
  vertical-align: 2px;
}

.chart-placeholder {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 20px;
}

.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

.chart-head h3 { font-size: 14px; color: var(--ink); }

.chart-head span { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }

.chart-box {
  position: relative;
  height: 200px;
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(to top, transparent 0 39px, var(--line) 39px 40px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.chart-box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(72, 180, 74, .16), transparent 60%),
    radial-gradient(ellipse at 62% 100%, rgba(18, 10, 48, .10), transparent 62%);
  clip-path: polygon(0 92%, 12% 74%, 24% 82%, 38% 52%, 52% 62%, 66% 38%, 80% 47%, 100% 24%, 100% 100%, 0 100%);
}

.chart-note { margin-top: 12px; font-size: 11.5px; color: var(--muted); }

.inline-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  margin-block: 32px;
  padding: clamp(22px, 2.8vw, 30px);
  border-radius: var(--r-lg);
  background: var(--ql-accent);
  color: rgba(255, 255, 255, .74);
  isolation: isolate;
}

.inline-cta::before {
  content: "";
  position: absolute;
  inset: auto -20% -70% auto;
  width: 340px;
  height: 340px;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(72, 180, 74, .3), transparent 68%);
}

.inline-cta h3 { color: #fff; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.3; letter-spacing: -0.018em; max-width: 30ch; }

.inline-cta p,
.article-body .inline-cta p { color: #CBD5E1; font-size: 15px; line-height: 1.6; max-width: 52ch; }

.inline-cta .cta-actions { margin-top: 2px; }

.use-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }

.use-case {
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
}

.use-case .icon { color: var(--ql-primary-dark); margin-bottom: 10px; }

.use-case h3 { font-size: 15px; margin: 0 0 6px; }

.use-case p { font-size: 13px; line-height: 1.55; color: var(--muted); }

.verdict {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--ql-primary-light);
  border: 1px solid var(--ql-primary-line);
  border-top-width: 3px;
}

.verdict-head { display: flex; align-items: center; gap: 10px; }

.verdict-head .icon { color: var(--ql-primary-dark); }

.verdict h2 { margin: 0; font-size: 19px; scroll-margin-top: calc(var(--header-h) + 24px); }

.verdict p { font-size: 15px; line-height: 1.65; color: var(--text); }

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}

.author-box .avatar { width: 48px; height: 48px; }

.author-box h3 { font-size: 15px; }

.author-box p { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

.sidebar { display: grid; gap: 18px; align-self: start; }

.toc-card {
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.toc-list { list-style: none; display: grid; gap: 1px; }

.toc-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .16s var(--ease-out), color .16s var(--ease-out);
}

.toc-list a:hover { background: var(--paper-2); color: var(--ink); }

.toc-list a.is-active { background: var(--ql-primary-light); color: var(--ql-primary-dark); font-weight: 500; }

.toc-list .num { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); flex: none; }

.toc-list a.is-active .num { color: var(--ql-primary-dark); }

.sidebar-cta {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--ql-accent);
  color: rgba(255, 255, 255, .72);
  isolation: isolate;
}

.sidebar-cta::before {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 280px;
  height: 280px;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(72, 180, 74, .33), transparent 70%);
}

.sidebar-cta h3 { color: #fff; font-size: 18px; line-height: 1.3; letter-spacing: -0.018em; }

.sidebar-cta p { margin-top: 8px; font-size: 13px; line-height: 1.55; }

.sidebar-cta .btn { margin-top: 16px; }

.sidebar-news {
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}

.sidebar-news h3 { font-size: 14.5px; }

.sidebar-news p { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.sidebar-news .newsletter-form { margin-top: 12px; }

.sidebar-news .field-row { flex-direction: column; }

.sidebar-news .field-row .btn { width: 100%; }

.sidebar-news input { min-height: 42px; font-size: 13.5px; }

.related { padding-block: 8px 72px; }

.related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }

.related-head h2 { font-size: 22px; letter-spacing: -0.02em; }

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* 15. Standard article ----------------------------------------------------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  height: 3px;
  width: 0;
  background: var(--ql-primary);
  transition: width .08s linear;
}

.editorial-head { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 28px 0; }

.editorial-inner { max-width: 820px; margin: 0 auto; }

.editorial-head .chip-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--ql-primary-light);
  border: 1px solid var(--ql-primary-line);
  color: var(--ql-primary-dark);
  font-size: 11.5px;
  font-weight: 600;
}

.editorial-head .audience {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.editorial-head h1 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.032em;
}

.editorial-head .subtitle {
  margin-top: 16px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--text);
  max-width: 62ch;
}

.editorial-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.save-btn[aria-pressed="true"] {
  background: var(--ql-primary-light);
  border-color: var(--ql-primary);
  color: var(--ql-primary-dark);
}

.wide-cover { padding-block: 32px 0; }

.wide-cover .ph { aspect-ratio: 21 / 8; border-radius: var(--r-lg); }

.article-layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) 288px;
  gap: 40px;
  align-items: start;
  padding-block: 40px 72px;
}

.article-rail { display: grid; gap: 18px; }

.article-rail .toc-list a { padding-inline: 8px; font-size: 12.5px; }

.article-sidebar {
  display: grid;
  gap: 18px;
  align-self: start;
}

.article-center { min-width: 0; }

.article-center > .author-box { margin-top: 28px; }

.takeaways {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--ql-primary-light);
  border: 1px solid var(--ql-primary-line);
  margin-bottom: 28px;
}

.takeaways h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: .01em;
  color: var(--ql-primary-dark);
}

.takeaways h2 .icon { color: var(--ql-primary-dark); }

.takeaways ul { margin-top: 12px; padding-left: 0; list-style: none; display: grid; gap: 10px; }

.takeaways li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
}

.takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--ql-primary);
  opacity: .9;
}

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-block: 24px; }

.stat-card {
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
}

.stat-card .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.stat-card .stat-cap { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.tactic {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

.tactic:last-of-type { border-bottom: 1px solid var(--line); }

.tactic-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--ql-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.tactic h3 { font-size: 18.5px; letter-spacing: -0.015em; scroll-margin-top: calc(var(--header-h) + 24px); }

.tactic p { margin-top: 8px; font-size: 15.5px; line-height: 1.68; color: var(--text); }

.tactic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.tactic-tags .chip { font-size: 11px; }

.tactic-tags .chip strong { font-weight: 600; color: var(--ink); }

.code-block {
  margin-block: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--ql-accent);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .6);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-pill);
  background: transparent;
  color: rgba(255, 255, 255, .8);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background-color .16s var(--ease-out), color .16s var(--ease-out);
}

.copy-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.copy-btn.is-copied { background: var(--ql-primary); border-color: var(--ql-primary); color: var(--ql-accent); }

.code-block pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #D7E2F0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-block code { font: inherit; }

.figure { margin: 28px 0; }

.figure .ph { aspect-ratio: 16 / 9; border-radius: var(--r-md); }

.figure figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.pullquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--ql-primary);
}

.pullquote p {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.45;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-weight: 500;
}

.pullquote cite {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  font-style: normal;
  color: var(--muted);
}

.checklist {
  display: grid;
  gap: 1px;
  margin-block: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--paper);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}

.checklist label:hover { background: var(--paper-2); }

.checklist input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: none;
  border: 1.5px solid rgba(18, 10, 48, .24);
  border-radius: 6px;
  background: var(--paper);
  display: grid;
  place-content: center;
  cursor: pointer;
}

.checklist input::before {
  content: "";
  width: 11px;
  height: 11px;
  transform: scale(0);
  transition: transform .14s var(--ease-out);
  clip-path: polygon(14% 46%, 0 60%, 40% 100%, 100% 22%, 86% 8%, 39% 68%);
  background: var(--ql-accent);
}

.checklist input:checked { background: var(--ql-primary); border-color: var(--ql-primary); }

.checklist input:checked::before { transform: scale(1); }

.checklist input:focus-visible { outline: 2px solid var(--ql-accent); outline-offset: 2px; }

.checklist input:checked + span { color: var(--muted); }

.faq { display: grid; margin-block: 20px; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 2px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary .icon { flex: none; color: var(--muted); transition: transform .2s var(--ease-out); }

.faq details[open] summary .icon { transform: rotate(45deg); color: var(--ql-primary-dark); }

.faq .faq-answer { padding: 0 2px 18px; font-size: 14.5px; line-height: 1.65; color: var(--text); max-width: 68ch; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

.tag-list .chip { min-height: 32px; padding: 0 12px; font-size: 12.5px; color: var(--text); text-decoration: none; }

.tag-list .chip:hover { border-color: var(--ql-primary); color: var(--ql-primary-dark); background: var(--ql-primary-light); }

.more-list { list-style: none; display: grid; gap: 2px; }

.more-list a {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.more-list li:last-child a { border-bottom: 0; }

.more-list a:hover { background: var(--paper-2); }

.more-list .more-cat { font-size: 11px; font-weight: 600; color: var(--ql-primary-dark); }

.more-list .more-title { font-size: 13.5px; line-height: 1.45; color: var(--ink); font-weight: 500; }

/* 16. Responsive ----------------------------------------------------------- */
@media (min-width: 961px) and (min-height: 900px) {
  .category-side,
  .sidebar,
  .article-sidebar,
  .article-rail { position: sticky; top: calc(var(--header-h) + 20px); }
}

@media (max-width: 1240px) {
  :root { --header-h: 68px; }
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-inner { gap: 16px; }
}

@media (max-width: 1080px) {
  .article-layout {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 32px;
  }
  .article-layout > .article-sidebar { grid-column: 1 / -1; position: static; }
  .article-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .review-layout { grid-template-columns: minmax(0, 1fr) 288px; gap: 32px; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-copy { max-width: 640px; }
  .featured-card { max-width: 560px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .topic-card,
  .topic-card:nth-child(4),
  .topic-card:nth-child(5) { grid-column: span 2; }
  .topic-card:nth-child(5) { grid-column: span 4; }
  .category-layout { grid-template-columns: 236px minmax(0, 1fr); gap: 24px; }
  .review-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .review-layout > .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; }
  .review-layout > .sidebar .toc-card { grid-row: span 2; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter-panel { grid-template-columns: minmax(0, 1fr); }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-rail { position: static; display: none; }
  .article-layout > .article-sidebar { grid-column: auto; }
  .article-center { max-width: 720px; margin-inline: auto; width: 100%; }
  .article-sidebar { margin-top: 32px; }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .footer-about p { max-width: 48ch; }
  .review-table thead { display: none; }
  .review-table, .review-table tbody, .review-table tr, .review-table td { display: block; width: 100%; }
  .review-table tbody tr {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .review-table tbody tr:last-child { border-bottom: 0; }
  .review-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border: 0;
  }
  .review-table tbody td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    flex: none;
  }
  .review-table td[data-label="Community"] { display: block; padding-bottom: 10px; }
  .review-table td[data-label="Community"]::before { display: none; }
  .review-table td[data-label="Review"] { justify-content: flex-end; padding-top: 10px; }
  .review-table td[data-label="Review"]::before { display: none; }
  .community-cell { min-width: 0; }
  .featured-review { grid-template-columns: minmax(0, 1fr); }
  .featured-review .ph { min-height: 200px; aspect-ratio: 16 / 8; }
  .category-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; }
  .category-side { position: static; }
  .filters-toggle { display: flex; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .header-actions .btn-primary { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .review-grid { grid-template-columns: minmax(0, 1fr); }
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .topic-card,
  .topic-card:nth-child(4),
  .topic-card:nth-child(5) { grid-column: auto; }
  .use-case-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .score-card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .score-visual { justify-items: start; }
  .meter-row { grid-template-columns: 92px minmax(0, 1fr) 48px; gap: 10px; }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .inline-strip { flex-direction: column; align-items: flex-start; gap: 14px; }
  .newsletter-panel .field-row { flex-direction: column; }
  .newsletter-panel .field-row .btn { width: 100%; }
  .field-row { flex-direction: column; }
  .field-row .btn { width: 100%; }
  .sidebar-news .field-row { flex-direction: column; }
  .byline-row { align-items: flex-start; }
  .share-row { width: 100%; }
  .editorial-byline { align-items: flex-start; }
  .article-sidebar { grid-template-columns: minmax(0, 1fr); }
  .review-layout > .sidebar { grid-template-columns: minmax(0, 1fr); }
  .review-layout > .sidebar .toc-card { grid-row: auto; }
  .tactic { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .tactic-num { width: 32px; height: 32px; }
  .author-box { flex-direction: column; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .results-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sort-wrap { width: 100%; }
  .sort-wrap select { flex: 1; }
  .sort-wrap { display: flex; }
  .review-cover .ph { aspect-ratio: 16 / 9; }
  .wide-cover .ph { aspect-ratio: 16 / 9; }
  .hero h1 { font-size: clamp(34px, 8.4vw, 42px); }
  .hero-tags .tag-label { width: 100%; }
}

@media (max-width: 480px) {
  .hero-inner { padding-block: 44px; }
  .search-form { flex-wrap: wrap; padding: 10px; border-radius: var(--r-lg); }
  .search-form .search-icon { display: none; }
  .search-form input { width: 100%; flex: 1 0 100%; padding-inline: 8px; }
  .search-form .btn { width: 100%; }
  .page-head h1 { font-size: 27px; }
  .editorial-head h1 { font-size: 30px; }
  .review-head h1 { font-size: 27px; }
  .cta-band { padding: 26px 20px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .filters { padding: 16px; }
  .featured-review-body { padding: 20px; }
  .score-card { padding: 20px; }
  .meter-row { grid-template-columns: 84px minmax(0, 1fr) 44px; }
  .related-head { flex-direction: column; align-items: flex-start; }
}

/* 17. Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .featured-card:hover,
  .article-card:hover,
  .review-card:hover,
  .topic-card:hover { transform: none; }
}

/* ===== Audience Review: data figures (rv-*) ===== */
.review-cover-img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.rv-figure { margin: 28px 0; }
.rv-figure img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
.rv-figure figcaption, .rv-chart figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.rv-chart { margin: 28px 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-sm); }
.rv-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.rv-chart-head h3 { margin: 0 !important; font-size: 17px; }
.rv-chart-head span { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono, monospace); }
.rv-split { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center; }
.rv-donut { width: 180px; height: 180px; }
.rv-legend { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 12px !important; }
.rv-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 15px !important; color: var(--text); }
.rv-legend i { width: 12px; height: 12px; border-radius: 4px; display: block; }
.rv-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rv-bars { display: grid; gap: 10px; }
.rv-bar { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 14px; color: var(--text); }
.rv-bar .track { height: 10px; border-radius: 999px; background: var(--ql-primary-light); overflow: hidden; }
.rv-bar .fill { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--ql-primary); }
.rv-bar.is-vn .fill { background: #00ACC1; }
.rv-bar.is-us .fill { background: #6F42C1; }
.rv-bar b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.rv-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.rv-key span { display: inline-flex; align-items: center; gap: 6px; }
.rv-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rv-rollup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.rv-rollup div { padding: 14px 16px; border-radius: var(--r-md); background: var(--paper-2); border: 1px solid var(--line); }
.rv-rollup .n { display: block; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.rv-rollup .l { font-size: 13px; color: var(--muted); }
.rv-callout { margin: 28px 0; padding: 20px 22px; border-radius: var(--r-lg); background: #FFF7E6; border: 1px solid #FFD591; }
.rv-callout h3 { margin: 0 0 6px !important; font-size: 16px; color: #7A4100; }
.rv-callout p { font-size: 15px !important; color: #5C3A00 !important; margin: 0; }
.rv-score-basis { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.55; }
@media (max-width: 640px) {
  .rv-split { grid-template-columns: 1fr; justify-items: center; }
  .rv-legend { width: 100%; }
  .rv-bar { grid-template-columns: minmax(96px, 130px) minmax(0, 1fr) 36px; font-size: 13px; }
  .rv-rollup { grid-template-columns: 1fr; }
}

/* ===== Dynamic category / article pages (SiteManager API) ===== */
a.tab { text-decoration: none; display: inline-flex; align-items: center; }
.tab[aria-current="page"] { color: var(--ql-primary-dark); font-weight: 600; }
.tab[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ql-primary); }
.article-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
a.page-btn { text-decoration: none; }
.empty-state .btn { margin-top: 12px; }

/* Lead Fundamentals: data tables inside article bodies ---------------------- */
.lf-table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.lf-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.lf-table caption { caption-side: top; text-align: left; padding: 14px 16px 10px; font-weight: 600; font-size: 14px; color: var(--text); }
.lf-table th, .lf-table td { padding: 11px 16px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.lf-table thead th { background: #F6F8FB; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lf-table tbody tr:hover { background: #FBFCFE; }
.lf-table a { font-weight: 600; }
