:root {
  --ink: #1d2822;
  --muted: #5a665f;
  --line: #dbe3df;
  --paper: #ffffff;
  --wash: #f4f7f5;
  --deep: #285447;
  --teal: #3b8178;
  --clay: #b85f44;
  --gold: #c9a13a;
  --blue: #4c6f91;
  --shadow: 0 18px 45px rgba(29, 40, 34, .10);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  line-height: 1.6;
}

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: .75rem 1rem;
  border-radius: 6px;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .85rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  min-width: 15rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  background: var(--deep);
  color: white;
  font-weight: 800;
  font-size: .85rem;
}

.brand strong,
.footer-brand {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: .1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .2rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
  padding: .55rem .7rem;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--wash);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: .65rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.hero {
  min-height: min(560px, 72vh);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: white;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
}

.hero-content {
  width: min(720px, 100%);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: .95;
  margin: .35rem 0 1rem;
}

.hero p {
  max-width: 58ch;
  font-size: 1.12rem;
}

.hero .eyebrow { color: #d7e9e2; }

.hero-actions,
.shop-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.button,
.shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .7rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.button.primary {
  background: white;
  color: var(--ink);
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, .68);
}

.shop-link {
  background: var(--deep);
  color: white;
}

.text-link {
  font-weight: 800;
  color: var(--deep);
  text-decoration-thickness: 2px;
  text-underline-offset: .2rem;
}

.content-band,
.editorial-strip,
.page-hero,
.article-page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.content-band {
  padding: clamp(2.4rem, 5vw, 4.5rem) 0;
}

.content-band.alt {
  width: 100%;
  background: #edf3f0;
  padding-left: max(1rem, calc((100% - 1180px) / 2));
  padding-right: max(1rem, calc((100% - 1180px) / 2));
}

.content-band.narrow {
  width: min(820px, calc(100% - 2rem));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.editorial-strip h2,
.page-hero h1,
.article-header h1 {
  margin: .1rem 0;
  line-height: 1.05;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-heading p:last-child,
.page-hero p,
.article-deck {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 .35rem;
  color: var(--deep);
  font-weight: 850;
  font-size: .78rem;
  text-transform: uppercase;
}

.finder {
  display: grid;
  grid-template-columns: minmax(7rem, auto) minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: .9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.finder.stacked {
  display: block;
}

.finder label {
  font-weight: 800;
}

.finder input {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .7rem .85rem;
  font: inherit;
}

.chips {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .85rem;
}

.chip {
  min-height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: .45rem .75rem;
  font-weight: 800;
}

.chip.active {
  background: var(--deep);
  color: white;
  border-color: var(--deep);
}

.guide-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card,
.category-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(29, 40, 34, .05);
}

.guide-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9efec;
}

.guide-card-image img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card-body {
  padding: 1rem;
}

.guide-card h3,
.category-card h3 {
  font-size: 1.12rem;
  line-height: 1.2;
  margin: .2rem 0 .55rem;
}

.guide-card h3 a,
.category-card h3 a {
  text-decoration: none;
}

.guide-card p,
.category-card p {
  color: var(--muted);
  margin: 0;
}

.updated,
.category-card span {
  display: inline-block;
  margin-top: .9rem;
  color: var(--deep);
  font-weight: 800;
  font-size: .86rem;
}

.category-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 220px;
  border-top: 5px solid var(--accent);
}

.category-card div {
  padding: 1rem;
}

.editorial-strip {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  padding: 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.editorial-strip p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 2rem;
}

.page-hero.compact {
  width: min(900px, calc(100% - 2rem));
}

.page-hero h1,
.article-header h1 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 1.5rem;
  align-items: center;
}

.category-hero img {
  border-radius: 8px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent);
  box-shadow: var(--shadow);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 2rem;
  align-items: start;
}

.check-list,
.detail-list {
  padding: 0;
  margin: 1rem 0;
  list-style: none;
}

.check-list li,
.detail-list li {
  position: relative;
  padding: .65rem 0 .65rem 1.7rem;
  border-bottom: 1px solid var(--line);
}

.check-list li::before,
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  background: var(--gold);
}

.article-page {
  padding: 1.4rem 0 4rem;
}

.breadcrumb {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 750;
  font-size: .92rem;
  margin: .8rem 0 1.8rem;
}

.breadcrumb a {
  color: var(--deep);
}

.article-header {
  width: min(920px, 100%);
}

.article-deck {
  font-size: 1.2rem;
  max-width: 68ch;
}

.byline {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 750;
  margin: 1rem 0;
}

.byline span + span::before {
  content: "|";
  color: var(--line);
  margin-right: .85rem;
}

.article-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 1.2rem 0;
}

.disclosure-note {
  margin: 1rem 0 2rem;
  padding: 1rem;
  background: #fff8e6;
  border: 1px solid #ead28c;
  border-radius: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 820px);
  gap: 2.2rem;
  align-items: start;
}

.article-layout > * {
  min-width: 0;
}

.article-toc {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: .4rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-toc p {
  margin: 0 0 .3rem;
  font-weight: 850;
}

.article-toc a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: .93rem;
}

.article-content {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.1rem, 3vw, 2rem);
}

.article-content section + section {
  margin-top: 2.4rem;
}

.article-content h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin: 0 0 .75rem;
}

.article-content h3 {
  margin-top: 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  list-style: none;
}

.pill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .7rem;
  background: var(--wash);
  font-weight: 750;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: .85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--deep);
  color: white;
}

tbody th {
  width: 28%;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pros-cons > div {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.alternative,
.author-note {
  background: #edf3f0;
  border-left: 4px solid var(--deep);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

.faq-list {
  display: grid;
  gap: .75rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  padding: .8rem 1rem;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

.prose {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.prose h2 {
  margin-top: 2rem;
}

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

.site-footer {
  background: var(--ink);
  color: white;
  padding: 2.5rem clamp(1rem, 5vw, 4rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 1fr 1fr;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.site-footer h2 {
  font-size: 1rem;
  margin: 0 0 .7rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer a {
  color: #d9ebe5;
  text-decoration: none;
}

.site-footer li + li {
  margin-top: .35rem;
}

.fine-print {
  max-width: 1180px;
  margin: 2rem auto 0;
  color: #c7d5d0;
  font-size: .9rem;
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .5rem);
    padding: .8rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    padding: .7rem;
  }

  .section-heading,
  .category-hero,
  .two-column,
  .editorial-strip,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }

  .guide-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 430px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .finder {
    grid-template-columns: 1fr;
  }

  .guide-grid,
  .category-grid,
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .category-card img {
    aspect-ratio: 16 / 9;
  }

  .byline {
    display: block;
  }

  .byline span {
    display: block;
  }

  .byline span + span::before {
    content: "";
    margin: 0;
  }
}
