:root {
  --ink: #172018;
  --muted: #566358;
  --line: #dfe8dc;
  --soft: #f5faf2;
  --warm: #fff6e8;
  --blue-soft: #eef7fb;
  --panel: #ffffff;
  --green: #1d8f4c;
  --green-dark: #146a39;
  --blue: #236a8f;
  --gold: #f1b84b;
  --shadow: 0 14px 34px rgba(25,58,33,.08);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: #f3f7f1;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  width: 200px;
  height: 48px;
  flex: 0 0 auto;
}
.brand img { display: block; width: 200px; height: 48px; object-fit: contain; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.nav { scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #263329;
  font-weight: 800;
}
.nav a:hover { background: var(--soft); color: var(--green-dark); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
  padding: 24px 0 40px;
}
.ad-slot { grid-column: 1 / -1; min-height: 1px; }
.content, .sidebar { min-width: 0; }
.sidebar { display: grid; gap: 14px; }

.side-panel, .article-card, .hero-copy, .hero-card, .article-detail, .compare-detail, .quick-start a, .pillar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.side-panel { padding: 18px; }
.side-panel h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.25; }
.side-panel p { margin: 0 0 10px; color: var(--muted); }
.side-panel a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid #edf2ea;
  color: #263329;
  font-weight: 800;
}
.side-panel a:first-of-type { border-top: 0; }

.home-hero { display: grid; grid-template-columns: 1.04fr .96fr; gap: 18px; margin-bottom: 22px; }
.hero-copy {
  padding: clamp(22px, 4vw, 38px);
  min-height: 310px;
  background:
    linear-gradient(135deg, rgba(255,246,232,.92), rgba(245,250,242,.96)),
    var(--panel);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 54px); line-height: 1.03; letter-spacing: 0; }
h2 { letter-spacing: 0; }
.hero-copy p, .compare-hero p, .article-body p, .compare-notes p { color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.primary-action, .secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 900;
}
.primary-action { background: var(--green); color: #fff; }
.secondary-action { background: var(--soft); color: var(--ink); }
.hero-card { overflow: hidden; min-height: 310px; color: var(--ink); }
.hero-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9efe6; }
.hero-card span { display: block; margin: 16px 18px 4px; color: var(--green); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.hero-card strong { display: block; margin: 0 18px 18px; font-size: 24px; line-height: 1.2; }

.quick-start {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.quick-start a {
  display: grid;
  gap: 6px;
  min-height: 128px;
  padding: 18px;
  align-content: start;
}
.quick-start a:nth-child(2) { background: var(--blue-soft); }
.quick-start a:nth-child(3) { background: var(--warm); }
.quick-start strong { font-size: 18px; line-height: 1.25; }
.quick-start span { color: var(--muted); }

.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pillar-card {
  overflow: hidden;
  min-height: 250px;
}
.pillar-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e9efe6;
}
.pillar-card span {
  display: block;
  padding: 14px 14px 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}
.pillar-card p {
  margin: 0;
  padding: 0 14px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.category-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.category-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 12px;
  font-weight: 800;
}
.content-section { margin-bottom: 22px; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 12px; }
.section-heading h2 { margin: 0; font-size: 26px; }
.section-heading p { max-width: 390px; margin: 0; color: var(--muted); }
.article-grid { display: grid; gap: 14px; }
.article-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden; min-height: 150px; }
.article-image { display: block; background: linear-gradient(90deg, #edf3ea, #f8fbf6, #edf3ea); background-size: 200% 100%; }
.article-image img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; display: block; }
.article-body { padding: 18px; }
.article-category { color: var(--green); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.article-body h2 { margin: 5px 0 8px; font-size: 21px; line-height: 1.25; }

.article-detail, .compare-detail { padding: clamp(20px, 4vw, 34px); }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; color: #68766a; font-size: 13px; font-weight: 800; }
.breadcrumb a { color: var(--green-dark); }
.article-meta { display: flex; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid #edf2ea; color: var(--muted); }
.article-content { font-size: 17px; line-height: 1.78; }
.article-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  margin: 20px 0 22px;
  border-radius: 8px;
  background: #edf3ea;
}
.article-content img, .article-inline-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border-radius: 8px;
  background: #edf3ea;
}
.related-guides { margin-top: 28px; padding-top: 20px; border-top: 1px solid #edf2ea; }
.related-guides div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.related-guides a { border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 12px; font-weight: 800; }

.compare-hero { display: grid; grid-template-columns: 1.35fr .85fr; gap: 18px; align-items: stretch; margin-bottom: 22px; }
.winner-card { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.winner-card strong { display: block; margin-bottom: 8px; font-size: 18px; }
.winner-card span { display: block; padding: 9px 0; border-top: 1px solid var(--line); font-weight: 800; }
.comparison-builder {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(360px, 1.25fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fbf4 0%, #eef7ee 100%);
  padding: 20px;
}
.comparison-builder h2 { margin: 0 0 6px; font-size: 24px; }
.comparison-builder p { margin: 0; color: var(--muted); }
.compare-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.compare-form label span { display: block; margin-bottom: 7px; color: #4c5b50; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.compare-form select {
  width: 100%;
  height: 48px;
  border: 1px solid #c7d8c3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  padding: 0 12px;
}
.compare-form button {
  height: 48px;
  min-width: 118px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  padding: 0 20px;
}
.nutrition-table-wrap { margin-top: 22px; overflow-x: auto; }
.nutrition-table { width: 100%; min-width: 620px; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.nutrition-table th { background: var(--ink); color: #fff; }
.nutrition-table td, .nutrition-table th { padding: 13px; text-align: left; border-bottom: 1px solid #e9eee6; }
.pag { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; list-style: none; }
.pag a { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-weight: 800; }
.pag .active a { background: var(--green); color: #fff; }
.category-page { display: grid; gap: 18px; }
.category-hero, .empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}
.category-hero h1 { margin-bottom: 10px; }
.category-hero p, .empty-state p { margin: 0; color: var(--muted); max-width: 680px; }
.category-grid { display: grid; gap: 14px; }
.category-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 170px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.category-card-media {
  display: block;
  min-height: 170px;
  background: linear-gradient(90deg, #edf3ea, #f8fbf6, #edf3ea);
  background-size: 200% 100%;
}
.category-card-media img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
}
.category-card-body { padding: 18px; }
.category-card-body h2 { margin: 4px 0 8px; font-size: 23px; line-height: 1.22; }
.category-card-body time { display: block; margin-bottom: 8px; color: #6a786c; font-size: 13px; font-weight: 800; }
.category-card-body p { margin: 0; color: var(--muted); }
.empty-state { text-align: left; }
.empty-state h2 { margin: 0 0 8px; }
.empty-state .primary-action { margin-top: 16px; }
.pagination-block { margin-top: 6px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 24px 0; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-links a { color: #263329; font-weight: 800; }
.legal-page .article-content h2 { margin-top: 26px; }
.legal-note { margin-top: 26px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--muted); }
.cookie-settings-link { border: 0; padding: 0; background: transparent; color: #263329; font: inherit; font-weight: 800; cursor: pointer; }
.cookie-consent { position: fixed; z-index: 1000; right: 18px; bottom: 18px; left: 18px; }
.cookie-consent__content { width: min(1120px, 100%); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px; border: 1px solid #cad7c8; border-radius: 12px; background: #fff; box-shadow: 0 18px 60px rgba(23, 43, 28, .2); }
.cookie-consent h2, .cookie-modal h2 { margin: 0 0 7px; font-size: 22px; }
.cookie-consent p, .cookie-modal p { margin: 0 0 7px; color: var(--muted); }
.cookie-consent__actions, .cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 9px; flex: 0 0 auto; }
.cookie-button { min-height: 42px; border: 1px solid var(--green); border-radius: 8px; padding: 9px 15px; font: inherit; font-weight: 800; cursor: pointer; }
.cookie-button--primary { background: var(--green); color: #fff; }
.cookie-button--secondary { background: #fff; color: var(--green); }
.cookie-modal { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 18px; }
.cookie-modal[hidden], .cookie-consent[hidden] { display: none; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 28, 20, .62); }
.cookie-modal__panel { position: relative; width: min(620px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 26px; border-radius: 12px; background: #fff; box-shadow: 0 20px 70px rgba(0, 0, 0, .28); }
.cookie-modal__close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 0; padding: 15px; border: 1px solid var(--line); border-radius: 9px; }
.cookie-option small { display: block; margin-top: 4px; color: var(--muted); }
.cookie-option span { flex: 0 0 auto; color: var(--green); font-size: 13px; font-weight: 800; }
.cookie-option input { width: 22px; height: 22px; accent-color: var(--green); }
.cookie-modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .shell { width: min(100% - 22px, 760px); }
  .header-inner { min-height: 70px; align-items: flex-start; flex-direction: column; justify-content: center; padding: 10px 0; gap: 8px; }
  .nav { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav a { flex: 0 0 auto; }
  .layout, .home-hero, .compare-hero, .comparison-builder { grid-template-columns: 1fr; }
  .quick-start, .pillar-grid { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .compare-form { grid-template-columns: 1fr; }
  .compare-form button { width: 100%; }
  .article-card { grid-template-columns: 1fr; }
  .category-card { grid-template-columns: 1fr; }
  .category-card-media, .category-card-media img { min-height: auto; aspect-ratio: 16 / 9; }
  .article-image img { height: auto; aspect-ratio: 16 / 9; }
  .related-guides div { grid-template-columns: 1fr; }
  h1 { font-size: clamp(30px, 10vw, 42px); }
  .cookie-consent { right: 10px; bottom: 10px; left: 10px; }
  .cookie-consent__content { display: block; padding: 16px; }
  .cookie-consent__actions { margin-top: 14px; }
  .cookie-consent__actions .cookie-button { flex: 1 1 140px; }
  .cookie-modal__panel { padding: 22px 16px 18px; }
}
