:root {
  --bg: #ffffff;
  --bg-soft: #f3f9fc;
  --surface: #ffffff;
  --ink: #17313a;
  --muted: #607785;
  --line: #d8e9ef;
  --line-strong: #b9d6e1;
  --teal: #2f91ad;
  --teal-dark: #236f8e;
  --blue: #4d9cc8;
  --blue-soft: #eaf6fb;
  --aqua-soft: #f5fbfd;
  --gold: #327f9d;
  --danger-bg: #fff7ed;
  --danger-line: #f3c178;
  --shadow: 0 18px 48px rgba(23, 49, 58, 0.09);
  --shadow-soft: 0 10px 28px rgba(23, 49, 58, 0.07);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--bg-soft) 0, #fff 420px),
    var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(23, 49, 58, 0.08);
}
.site-header-inner {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
  padding: 12px 0 10px;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}
.header-search {
  display: flex;
  width: 260px;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 49, 58, 0.05);
  overflow: hidden;
}
.header-search input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  font: inherit;
  font-size: 14px;
}
.header-search button {
  padding: 8px 10px;
  border: 0;
  border-left: 1px solid var(--line);
  color: #fff;
  background: var(--blue);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.header-search button:hover,
.search-form button:hover,
.button-link:hover {
  background: var(--teal-dark);
  text-decoration: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.site-nav a.active,
.site-nav a:hover {
  background: var(--blue-soft);
  text-decoration: none;
}
.nav-toggle { display: none; }

main { min-height: 70vh; }
.hero,
.page-hero,
.content-page,
.article-layout,
.section,
.breadcrumbs,
.site-footer {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 28px;
  padding: 64px 0 34px;
  align-items: stretch;
}
.hero-copy h1,
.page-hero h1,
.article-header h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}
.hero-copy p,
.page-hero p,
.article-header p {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.quick-answer,
.article-card,
.answer-box,
.takeaways,
.product-box,
.toc,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.quick-answer {
  position: relative;
  padding: 24px;
  overflow: hidden;
}
.quick-answer::before {
  content: "";
  display: block;
  height: 4px;
  margin: -24px -24px 18px;
  background: var(--blue);
}
.quick-answer h2 { margin-top: 0; }
.quick-answer dl { margin: 0; }
.quick-answer div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.quick-answer dt { font-weight: 800; }
.quick-answer dd { margin: 0; color: var(--muted); }

.search-form {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin-top: 24px;
}
.search-form input {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  box-shadow: 0 10px 28px rgba(23, 49, 58, 0.06);
}
.search-form button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.section {
  padding: 34px 0;
}
.section-heading {
  margin-bottom: 18px;
}
.section-heading h2,
.related-block h2,
.sources-block h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}
.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.topic-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic-card,
.article-card {
  min-height: 150px;
}
.topic-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(23, 49, 58, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.topic-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--blue);
}
.topic-card:hover,
.article-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-2px);
}
.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.article-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  margin: -1px -1px 16px;
  background: var(--bg-soft);
  overflow: hidden;
}
.article-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}
.article-card:hover .article-card-media img {
  transform: scale(1.035);
}
.topic-card span,
.article-card h3 {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}
.article-card h3 a {
  color: var(--ink);
}
.article-card h3 a:hover {
  color: var(--teal);
}
.topic-card p,
.article-card p {
  margin: 0;
  color: var(--muted);
}
.article-card > .eyebrow,
.article-card h3,
.article-card p {
  margin-left: 18px;
  margin-right: 18px;
}
.article-card > .eyebrow {
  margin-top: 18px;
}
.article-card-media + .eyebrow {
  margin-top: 0;
}
.article-card p {
  padding-bottom: 18px;
}
.warning-band {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--danger-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf3, var(--danger-bg));
}
.hub-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 24px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 10px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hub-intro h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
}
.hub-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.start-here {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.start-here strong {
  color: var(--ink);
  font-size: 14px;
  text-transform: uppercase;
}
.start-here a {
  line-height: 1.3;
  font-weight: 800;
}

.breadcrumbs {
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 5px; }
.page-hero,
.content-page,
.article-layout {
  padding: 38px 0;
}
.article-layout {
  max-width: none;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 14px;
}
.article-meta span + span::before {
  content: "•";
  margin-right: 12px;
  color: var(--line);
}
.article-image {
  margin: 18px 0 22px;
}
.article-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #d7e6e8;
  box-shadow: var(--shadow);
}
.article-image figcaption {
  max-width: 780px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 24px 0;
  padding: 14px;
}
.toc a {
  font-weight: 700;
}
.toc strong { margin-right: 6px; }
.answer-box,
.takeaways,
.criteria-box,
.notice {
  margin: 22px 0;
  padding: 18px;
}
.answer-box h2 { margin-top: 0; }
.criteria-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--aqua-soft);
}
.criteria-box h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}
.criteria-box ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}
.takeaways h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}
.takeaways ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}
.takeaways li {
  color: var(--muted);
}
.answer-box {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #fff, var(--aqua-soft));
}
.answer-box p {
  font-size: 19px;
}
.notice.warning {
  border-color: var(--danger-line);
  background: var(--danger-bg);
}
.notice.affiliate-note {
  background: var(--aqua-soft);
}
.product-boxes {
  margin: 28px 0;
}
.product-boxes h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
}
.product-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 18px;
}
.product-box h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}
.product-box p {
  margin: 0 0 8px;
}
.article-body {
  font-size: 18px;
}
.article-body p {
  margin: 18px 0;
}
.article-body h2 {
  margin-top: 34px;
  font-size: 30px;
  line-height: 1.2;
}
.article-body ul { padding-left: 24px; }
.related-block,
.sources-block,
.faq-block {
  margin-top: 36px;
}
.faq-block h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
}
.faq-block details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq-block details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-block summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}
.faq-block p {
  margin: 10px 0 0;
  color: var(--muted);
}
.sources-block ol { padding-left: 22px; }
.popular-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.popular-searches a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(23, 49, 58, 0.05);
}
.popular-searches a:hover {
  border-color: var(--line-strong);
  background: var(--aqua-soft);
  text-decoration: none;
}
.content-page {
  max-width: 820px;
  font-size: 18px;
}
.content-page h2 {
  margin-top: 30px;
  font-size: 30px;
  line-height: 1.2;
}
.policy-list {
  padding-left: 22px;
}
.policy-list li + li {
  margin-top: 8px;
}
.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: 48px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer p { margin: 6px 0 0; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 880px) {
  .site-header-inner {
    padding-block: 10px;
  }
  .header-top {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  .brand {
    flex: 0 0 100%;
  }
  .header-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
  }
  .header-search {
    order: 2;
    width: 100%;
    min-width: 140px;
    min-height: 38px;
  }
  .header-search input,
  .header-search button {
    font-size: 16px;
  }
  .header-search button {
    padding-inline: 14px;
  }
  .nav-toggle {
    display: inline-flex;
    order: 1;
    width: 42px;
    min-width: 42px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 0;
    color: transparent;
  }
  .nav-toggle::before {
    content: "";
    display: block;
    width: 18px;
    height: 14px;
    background:
      linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
      linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
      linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
    border-radius: 2px;
  }
  .site-nav {
    display: none;
    justify-content: flex-start;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hub-intro { grid-template-columns: 1fr; }
  .product-box { grid-template-columns: 1fr; }
  .topic-grid,
  .card-grid,
  .card-grid.compact { grid-template-columns: 1fr; }
  .article-card-media {
    aspect-ratio: 16 / 10;
  }
  .site-footer { display: block; }
  .search-form { flex-direction: column; }
}
