:root {
  --bg: #f6fbfb;
  --surface: #ffffff;
  --ink: #17313a;
  --muted: #5c7480;
  --line: #d7e6e8;
  --teal: #477255;
  --blue: #246fa8;
  --eyebrow: #477255;
  --accent: #477255;
  --accent-dark: #3f6b52;
  --accent-soft: #f3f8f1;
  --danger-bg: #f4f8f8;
  --danger-line: #d7e6e8;
  --shadow: 0 18px 45px rgba(23, 49, 58, 0.08);
  --shadow-hover: 0 20px 44px rgba(23, 49, 58, 0.14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: 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);
  transform: translateY(0);
  transition: transform 180ms ease;
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.site-header-inner {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
  padding: 12px 0 10px;
}
.header-primary {
  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;
  overflow: hidden;
}
.header-search input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  color: var(--ink);
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  font-size: 14px;
}
.header-search button {
  padding: 8px 10px;
  border: 0;
  border-left: 1px solid var(--line);
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  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: #edf5f6;
  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: 54px 0 28px;
  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.02;
  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(--eyebrow);
  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);
}
.quick-answer {
  padding: 24px;
}
.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;
}
.search-form input {
  min-width: 0;
  flex: 1;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}
.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(--accent);
  font: inherit;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.text-link {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}
.header-search button:hover,
.search-form button:hover,
.button-link:hover {
  background: var(--accent-dark);
  box-shadow: 0 10px 22px rgba(63, 107, 82, 0.22);
  text-decoration: none;
  transform: translateY(-1px);
}
.section {
  padding: 26px 0;
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}
.section-heading h2,
.related-block h2,
.sources-block h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}
.section-heading p { margin: 0; color: var(--muted); }
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.path-step {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.path-step:hover {
  border-color: #bfd8c1;
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  transform: translateY(-3px);
}
.path-step span {
  color: var(--eyebrow);
  font-size: 13px;
  font-weight: 800;
}
.path-step strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
}
.path-step p {
  margin: 0;
  color: var(--muted);
}
.topic-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.topic-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topic-card,
.article-card {
  display: block;
  min-height: 150px;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}
.topic-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.article-card {
  overflow: hidden;
}
.article-card-body {
  display: block;
  padding: 18px;
}
.article-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soft);
}
.article-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.topic-card:hover,
.article-card:hover {
  border-color: #bfd8c1;
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  transform: translateY(-3px);
}
.article-card:hover .article-card-image 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;
}
.topic-card p,
.article-card p {
  margin: 0;
  color: var(--muted);
}
.warning-band {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--danger-line);
  border-radius: 8px;
  background: 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: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.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; }
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 20px 0;
}
.not-found-hubs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.not-found-hubs a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}
.not-found-hubs a:hover {
  border-color: #bfd8c1;
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}
.page-hero,
.content-page,
.article-layout {
  padding: 34px 0;
}
.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 strong { margin-right: 6px; }
.answer-box,
.takeaways,
.notice {
  margin: 22px 0;
  padding: 18px;
}
.answer-box h2 { margin-top: 0; }
.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);
}
.notice.warning {
  border-color: var(--danger-line);
  background: var(--danger-bg);
}
.notice.affiliate-note {
  background: #f4fbf8;
}
.notice.care-warning {
  border-color: #b8d9c4;
  background: #f1f8f1;
}
.product-boxes {
  margin: 28px 0;
}
.product-boxes h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
}
.comparison-table {
  margin: 0 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.comparison-table table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.comparison-table th {
  color: var(--ink);
  font-size: 14px;
  background: #f4f8f3;
}
.comparison-table tr:last-child td {
  border-bottom: 0;
}
.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;
}
.hub-link-block {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.hub-link-block a {
  display: inline-block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}
.hub-link-block p {
  margin: 8px 0 0;
  color: var(--muted);
}
.article-body {
  font-size: 18px;
}
.article-body a,
.sources-block a,
.content-page a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.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; }
.content-page {
  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;
}
.guide-group {
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
}
.guide-group:first-child {
  border-top: 0;
  padding-top: 0;
}
.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-primary {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  .brand {
    flex: 0 0 100%;
    line-height: 1.1;
    white-space: nowrap;
  }
  .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;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }
  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
  }
  .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; }
  .path-grid,
  .topic-grid,
  .topic-grid.compact,
  .card-grid,
  .card-grid.compact { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; }
  .site-footer { display: block; }
  .site-footer nav { margin-top: 16px; }
  .search-form { flex-direction: column; }
}
