/* ContractorTechReview — design system
   Editorial / B2B review site
   Inspired by: Stripe Press readability, NerdWallet review density, Wirecutter verdict boxes
*/

:root {
  /* Color */
  --ink: #0a1612;
  --ink-2: #1f2d2a;
  --ink-3: #4a5854;
  --ink-4: #6e7d78;
  --paper: #ffffff;
  --paper-2: #faf8f4;     /* warm off-white */
  --paper-3: #f0ece3;     /* warm card / divider */
  --rule: #e6e0d3;        /* warm hairline */
  --rule-strong: #cfc7b3;

  --accent: #0F4C5C;      /* deep teal — primary CTA */
  --accent-2: #0a3a47;
  --accent-tint: #e6f0f1;

  --success: #2d6a4f;
  --warn: #b08900;
  --danger: #b3261e;

  --gold: #b8862e;        /* star ratings */

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Size scale (mobile-first) */
  --fs-xs: 0.8125rem;     /* 13 */
  --fs-sm: 0.9375rem;     /* 15 */
  --fs-base: 1.0625rem;   /* 17 */
  --fs-md: 1.1875rem;     /* 19 */
  --fs-lg: 1.4375rem;     /* 23 */
  --fs-xl: 1.875rem;      /* 30 */
  --fs-2xl: 2.5rem;       /* 40 */
  --fs-3xl: 3.25rem;      /* 52 */

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Layout */
  --container: 1180px;
  --measure: 68ch;        /* readable line length */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(10, 22, 18, 0.06), 0 1px 3px rgba(10, 22, 18, 0.04);
  --shadow-md: 0 4px 10px rgba(10, 22, 18, 0.06), 0 2px 4px rgba(10, 22, 18, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 22, 18, 0.08), 0 4px 8px rgba(10, 22, 18, 0.04);
}

@media (min-width: 768px) {
  :root {
    --fs-lg: 1.5rem;
    --fs-xl: 2.125rem;
    --fs-2xl: 3rem;
    --fs-3xl: 4rem;
  }
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(15, 76, 92, 0.35);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--accent-2); text-decoration-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--sp-4) 0;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-lg); margin-top: var(--sp-6); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-md); margin-top: var(--sp-5); font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 var(--sp-4) 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-6); } }

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: var(--sp-5);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: -0.015em;
}
.logo:hover { color: var(--ink); }
.logo-text { white-space: nowrap; }
.logo-accent { color: var(--accent); }

.site-nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: var(--sp-2) 0;
  position: relative;
}
.nav-menu a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: var(--sp-2);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-4) var(--sp-5);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-bottom: 1px solid var(--rule); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a { display: block; padding: var(--sp-4) 0; font-size: var(--fs-md); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Hero (homepage) ---- */

.hero {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  padding: var(--sp-8) 0 var(--sp-7);
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, var(--fs-3xl));
  max-width: 18ch;
  margin: var(--sp-3) 0 var(--sp-5);
  letter-spacing: -0.025em;
}
.hero-sub {
  font-size: var(--fs-md);
  color: var(--ink-3);
  max-width: 56ch;
  line-height: 1.55;
  margin-bottom: var(--sp-6);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.hero-trust {
  font-size: var(--fs-xs);
  color: var(--ink-4);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--sp-3) 0;
}

/* ---- CTAs ---- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.2;
}
.cta:hover { transform: translateY(-1px); }
.cta:active { transform: translateY(0); }

.cta-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}
.cta-primary:hover { background: var(--accent-2); color: white; box-shadow: var(--shadow-md); }

.cta-secondary {
  background: var(--ink);
  color: white;
}
.cta-secondary:hover { background: var(--ink-2); color: white; }

.cta-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.cta-ghost:hover { background: var(--paper-2); border-color: var(--ink-3); color: var(--ink); }

.cta-arrow {
  font-size: 1.1em;
  transition: transform 0.15s ease;
  display: inline-block;
}
.cta:hover .cta-arrow { transform: translateX(3px); }

/* ---- Sections (homepage) ---- */

.home-section {
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--rule);
}
.home-section-alt { background: var(--paper-2); }

.section-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.section-header h2 {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-xl);
}
.section-header p {
  grid-column: 1;
  margin: 0;
  color: var(--ink-3);
  max-width: 56ch;
}
.section-link {
  grid-row: 1;
  grid-column: 2;
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  align-self: start;
}
@media (max-width: 640px) {
  .section-header { grid-template-columns: 1fr; }
  .section-link { grid-column: 1; grid-row: auto; }
}

/* ---- Card grid ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
}
.article-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rule-strong);
  color: var(--ink);
}
.card-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}
.card-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.25;
  margin: 0 0 var(--sp-3);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card-summary {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0 0 var(--sp-4);
  flex: 1;
}
.card-rating {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}
.card-cta {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

/* Compact card */
.article-card.compact { padding: var(--sp-4); }
.article-card.compact .card-title { font-size: var(--fs-base); }

/* Featured grid */
.featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-5);
}
@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; }
}
.featured-card.featured-primary {
  display: flex;
  flex-direction: column;
  padding: var(--sp-7);
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent-2) 100%);
  border-radius: var(--radius-lg);
  color: white;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 320px;
}
.featured-card.featured-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}
.featured-card.featured-primary .card-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.featured-card.featured-primary h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1.2;
  color: white;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.015em;
}
.featured-card.featured-primary p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--sp-5);
  max-width: 40ch;
}
.featured-card.featured-primary .card-cta {
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  align-self: flex-start;
}
.featured-secondary {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.featured-secondary .article-card { flex: 1; }

/* ---- Article page ---- */

.article {
  padding: var(--sp-6) 0 var(--sp-9);
}

.breadcrumb {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--ink-4);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb a {
  color: var(--ink-4);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent); }
.bc-sep { color: var(--ink-4); opacity: 0.5; }

.article-headline {
  max-width: 36ch;
  margin: 0 auto var(--sp-6);
  text-align: center;
}
.article-headline .eyebrow { text-align: center; }
.article-headline h1 {
  font-size: clamp(2rem, 4.5vw, var(--fs-3xl));
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}
.article-headline .subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--ink-3);
  max-width: 56ch;
  margin: 0 auto var(--sp-5);
  line-height: 1.45;
}
.article-meta {
  font-size: var(--fs-xs);
  color: var(--ink-4);
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  letter-spacing: 0.01em;
}
.article-meta a { color: var(--ink-3); text-decoration: none; font-weight: 600; }
.article-meta a:hover { color: var(--accent); }
.meta-sep { opacity: 0.5; }

.disclosure-banner {
  max-width: var(--measure);
  margin: 0 auto var(--sp-6);
  padding: var(--sp-3) var(--sp-4);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: 1.55;
}
.disclosure-banner strong { color: var(--ink); font-weight: 600; }

.article-body {
  max-width: var(--measure);
  margin: 0 auto;
}

/* Verdict box */
.verdict-box {
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin: 0 0 var(--sp-7);
  box-shadow: var(--shadow-sm);
}
.verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--rule);
}
.verdict-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  font-weight: 600;
}
.verdict-rating {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
  color: var(--gold);
  font-size: var(--fs-md);
}
.verdict-rating strong { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--ink); }
.verdict-stars { font-size: var(--fs-sm); letter-spacing: 1px; }
.verdict-summary {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  line-height: 1.45;
}
.verdict-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-4);
  margin: 0 0 var(--sp-5);
}
.verdict-stats div { padding: 0; }
.verdict-stats dt {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-4);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}
.verdict-stats dd {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.verdict-cta {
  display: flex;
  justify-content: flex-start;
  padding-top: var(--sp-2);
}

/* Prose */
.prose {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink-2);
}
.prose h2 {
  font-size: var(--fs-xl);
  letter-spacing: -0.015em;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
  scroll-margin-top: 80px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  scroll-margin-top: 80px;
}
.prose h4 {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-3);
  color: var(--ink);
}
.prose p { color: var(--ink-2); }
.prose p:has(+ ul), .prose p:has(+ ol) { margin-bottom: var(--sp-3); }
.prose ul, .prose ol {
  padding-left: 1.4em;
  margin: 0 0 var(--sp-5);
}
.prose li { margin-bottom: var(--sp-2); }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink-2); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  margin: var(--sp-6) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--ink);
  line-height: 1.5;
}
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--paper-2);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--ink);
}

/* Tables */
.prose table, .compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-6) 0;
  font-size: var(--fs-sm);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .prose table, .compare-table { display: table; }
}
.prose th, .prose td, .compare-table th, .compare-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.prose th, .compare-table th {
  background: var(--paper-2);
  font-weight: 600;
  color: var(--ink);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--rule-strong);
}
.prose tr:last-child td, .compare-table tr:last-child td { border-bottom: 0; }

/* Pros / Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin: var(--sp-6) 0;
}
@media (max-width: 640px) {
  .pros-cons { grid-template-columns: 1fr; }
}
.pros, .cons {
  padding: var(--sp-5);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.pros {
  background: rgba(45, 106, 79, 0.04);
  border-color: rgba(45, 106, 79, 0.2);
}
.cons {
  background: rgba(179, 38, 30, 0.03);
  border-color: rgba(179, 38, 30, 0.18);
}
.pros h4, .cons h4 {
  margin-top: 0;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.pros h4 { color: var(--success); }
.cons h4 { color: var(--danger); }
.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pros li, .cons li {
  padding-left: 1.6em;
  position: relative;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.5;
}
.pros li::before, .cons li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.pros li::before { content: "+"; color: var(--success); }
.cons li::before { content: "−"; color: var(--danger); }

/* Inline CTA card within article */
.inline-cta {
  background: linear-gradient(135deg, var(--paper-2) 0%, var(--accent-tint) 100%);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin: var(--sp-6) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-4);
}
@media (max-width: 640px) {
  .inline-cta { grid-template-columns: 1fr; }
}
.inline-cta h4 {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-md);
}
.inline-cta p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

/* Comparison header (for /compare/ pages) */
.compare-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-4);
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin: 0 0 var(--sp-6);
}
@media (max-width: 640px) {
  .compare-hero { grid-template-columns: 1fr; text-align: center; }
}
.compare-side {
  text-align: center;
}
.compare-side h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  margin: var(--sp-2) 0;
  color: var(--ink);
}
.compare-side .compare-rating {
  font-size: var(--fs-sm);
  color: var(--gold);
  font-weight: 600;
}
.compare-vs {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--ink-4);
  font-style: italic;
}
.compare-winner {
  display: inline-block;
  padding: 2px var(--sp-2);
  background: var(--accent);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: var(--sp-2);
}

/* FAQ */
.faq {
  margin: var(--sp-8) 0;
}
.faq h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-5);
}
.faq-list {
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-size: 1.1em;
  font-weight: 400;
  color: var(--ink-3);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 0 var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.65;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* Author box */
.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  margin: var(--sp-8) 0 0;
  padding: var(--sp-5);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  letter-spacing: 0.02em;
}
.author-name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  margin: 0 0 var(--sp-2);
  color: var(--ink);
}
.author-role {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.author-bio {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin: 0 0 var(--sp-3);
  line-height: 1.55;
}
.author-links {
  font-size: var(--fs-xs);
  margin: 0;
}
.author-links a { font-weight: 600; }

/* Related */
.related { margin: var(--sp-8) 0 0; }
.related h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-5); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.related-card {
  padding: var(--sp-4);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.related-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.related-title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.3;
}
.related-arrow {
  font-size: var(--fs-xs);
  color: var(--accent);
  font-weight: 600;
  margin-top: auto;
}

/* ---- Index / listing pages ---- */
.index-page { padding: var(--sp-7) 0 var(--sp-9); }
.index-hero {
  text-align: center;
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--rule);
}
.index-hero h1 {
  font-size: clamp(2rem, 4vw, var(--fs-2xl));
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}
.index-intro {
  font-size: var(--fs-md);
  color: var(--ink-3);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.55;
}
.index-section { margin-bottom: var(--sp-7); }
.index-section-header { margin-bottom: var(--sp-5); }
.index-section-header h2 { font-size: var(--fs-xl); margin: 0 0 var(--sp-2); }
.index-section-header p { color: var(--ink-3); margin: 0; }

/* ---- Static pages (about, methodology, etc.) ---- */
.article.static-page .article-headline { text-align: left; margin-left: 0; margin-right: 0; }
.article.static-page .article-headline .eyebrow { text-align: left; }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--sp-8) 0 var(--sp-5);
  margin-top: var(--sp-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand .logo {
  color: white;
  margin-bottom: var(--sp-4);
}
.footer-tagline {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.65);
  max-width: 36ch;
  line-height: 1.55;
  margin: 0;
}
.footer-col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--sp-3);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.footer-col a:hover { color: white; }
.footer-meta {
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
}
.footer-meta a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}
.footer-meta a:hover { color: white; }
.footer-meta p { margin: 0; }

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .nav-toggle, .nav-menu, .hero-ctas, .verdict-cta, .related { display: none; }
  a { color: black; }
}
