:root {
  --paper: #f5f9f7;
  --paper-deep: #edf5f1;
  --surface: #ffffff;
  --surface-soft: #f9fcfa;
  --ink: #303936;
  --muted: #5f6b67;
  --forest: #49bd8a;
  --forest-dark: #167552;
  --coral: #167552;
  --coral-dark: #125f43;
  --gold: #d8f1e6;
  --focus: #8a5b00;
  --line: #d8e4df;
  --line-strong: #b9d3c9;
  --shadow-sm: 0 6px 18px rgba(24, 86, 65, 0.065);
  --shadow: 0 14px 34px rgba(24, 86, 65, 0.1);
  --shadow-hover: 0 12px 28px rgba(24, 86, 65, 0.13);
  --radius-sm: 0.625rem;
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --content: 82rem;
  --reading: 46rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  scroll-padding-bottom: 5rem;
}

body {
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom);
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

main {
  background: var(--surface);
}

a {
  color: var(--forest-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral-dark);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.14;
  font-weight: 760;
  text-wrap: balance;
}

h1 {
  max-width: 19ch;
  font-size: clamp(2.05rem, 4.8vw, 3.55rem);
  letter-spacing: -0.035em;
}

.guide-hero h1 {
  max-width: 22ch;
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
}

h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-top: 1.5rem;
  font-size: 1.28rem;
}

p,
ul,
ol,
dl,
blockquote {
  margin: 1rem 0 0;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.55rem;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--forest-dark);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--surface);
}

.header-inner,
.header-nav-inner,
.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.topbar {
  color: white;
  background: linear-gradient(90deg, #176f50 0%, var(--forest-dark) 58%, #246f57 100%);
  border-top: 4px solid var(--forest);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.85rem;
  padding-block: 0.45rem;
}

.header-nav-inner {
  display: flex;
  min-height: 3.75rem;
  align-items: stretch;
}

.nav-shell {
  background: var(--paper);
  border-bottom: 1px solid #e1e8e5;
}

.brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
}

.site-header .brand:hover {
  color: white;
}

.brand-mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  color: white;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-name {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 780;
}

.brand-note {
  margin-top: 0.22rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-status {
  display: none;
  min-height: 2.5rem;
  align-items: center;
  padding: 0.35rem 0.75rem;
  color: white;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 720;
}

.nav-menu {
  position: relative;
  width: 100%;
}

.desktop-nav {
  display: none;
}

.nav-menu summary {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.45rem 0.85rem;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-list {
  display: grid;
  gap: 0.25rem;
  margin: 0.6rem 0 0;
  padding: 0.7rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-list li + li {
  margin-top: 0;
}

.nav-list a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.45rem 0.65rem;
  color: var(--ink);
  border-radius: 0.45rem;
  font-size: 0.89rem;
  font-weight: 720;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--forest-dark);
  background: #e3efe9;
}

.hero {
  padding: clamp(1.5rem, 3vw, 2.4rem) 0 clamp(2rem, 3vw, 2.4rem);
  background: var(--surface);
  border-bottom: 1px solid #e3eae7;
}

.hero-grid {
  display: grid;
  gap: 1.6rem;
}

.hero .hero-grid {
  margin-top: clamp(1.65rem, 3vw, 2.35rem);
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 0.75rem;
  color: var(--forest-dark);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lede {
  max-width: 44rem;
  margin-top: 1.35rem;
  color: #3d4d47;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.trust-note,
.external-note {
  color: var(--muted);
  font-size: 0.91rem;
}

.trust-note {
  max-width: 46rem;
  margin-top: 1.3rem;
  padding-left: 1rem;
  border-left: 3px solid var(--forest);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.05rem;
  color: white;
  background: var(--forest-dark);
  border: 1px solid var(--forest-dark);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 780;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(18, 95, 67, 0.16);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  color: white;
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  box-shadow: 0 8px 20px rgba(18, 95, 67, 0.2);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.secondary:hover {
  color: var(--forest-dark);
  background: var(--surface);
  border-color: var(--forest);
  box-shadow: none;
  transform: none;
}

.button.tertiary {
  color: var(--coral-dark);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.button.tertiary:hover {
  color: var(--forest-dark);
  background: #e8f2ed;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.research-map {
  align-self: center;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.research-map-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.35rem 1rem;
  border-bottom: 1px dashed var(--line-strong);
}

.research-map-header strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
}

.research-map-header span {
  color: var(--muted);
  font-size: 0.78rem;
}

.map-step {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.8rem;
  padding: 1rem 0.35rem;
  border-bottom: 1px solid var(--line);
}

.map-step:last-child {
  border-bottom: 0;
}

.step-number {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: white;
  background: var(--coral);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.map-step strong,
.map-step span {
  display: block;
}

.map-step span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.search-panel {
  display: grid;
  gap: 1.1rem;
  padding: 1.2rem;
  color: var(--ink);
  background: linear-gradient(180deg, #f5faf7 0%, var(--paper-deep) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero-search {
  margin-top: 0;
}

.section.home-category-after-search {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.6rem, 2.75vw, 2.2rem) 0 clamp(1rem, 1.6vw, 1.25rem);
  border-top: 1px solid var(--line);
}

.section.home-brand-after-category {
  padding: clamp(1.2rem, 2vw, 1.5rem) 0 clamp(1.6rem, 2.75vw, 2.2rem);
  border-bottom: 1px solid var(--line);
}

.search-panel h2 {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

.search-panel p {
  color: var(--muted);
}

.search-copy > *:last-child {
  margin-top: 0.45rem;
}

.catalog-search {
  display: grid;
  gap: 0.7rem;
  align-content: center;
  margin-top: 0;
}

.catalog-search label {
  color: #42514b;
  font-size: 0.8rem;
  font-weight: 780;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  background: white;
  border: 2px solid #49b989;
  border-radius: 999px;
}

.search-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.catalog-search input {
  width: 100%;
  min-height: 3.55rem;
  padding: 0.75rem 3rem 0.75rem 1.15rem;
  color: var(--ink);
  background: white;
  border: 0;
  border-radius: 999px 0 0 999px;
  outline: 0;
}

.search-row:focus-within {
  border-color: var(--forest-dark);
  box-shadow: 0 0 0 4px rgba(73, 185, 137, 0.2);
}

.search-mark {
  position: absolute;
  top: 50%;
  right: 1.05rem;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid #7b8782;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.search-mark::after {
  position: absolute;
  right: -0.3rem;
  bottom: -0.2rem;
  width: 0.45rem;
  height: 2px;
  content: "";
  background: #7b8782;
  transform: rotate(45deg);
  transform-origin: left center;
}

.catalog-search button {
  min-width: 7.7rem;
  min-height: 3.55rem;
  padding: 0.72rem 1.35rem;
  color: white;
  background: var(--forest-dark);
  border: 0;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  font-weight: 820;
}

.catalog-search button:hover {
  background: var(--coral-dark);
}

.search-panel .external-note {
  margin-top: 0;
  color: #5e6d67;
  font-size: 0.8rem;
}

.section {
  padding-block: clamp(2.1rem, 4vw, 3.4rem);
  background: var(--surface);
}

.section + .section {
  border-top: 1px solid var(--line);
}

#categories,
#brands {
  scroll-margin-top: 5.25rem;
}

.section-heading {
  display: grid;
  gap: 0.7rem;
  max-width: 52rem;
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  margin-top: 0;
  padding-left: 0.85rem;
  border-left: 4px solid var(--forest);
}

.section-heading p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.directory-heading {
  max-width: none;
}

.directory-heading > div > p:last-child {
  max-width: 50rem;
}

.quick-answer {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--coral);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.quick-answer .section-kicker {
  margin-bottom: 0.45rem;
}

.quick-answer p {
  margin-top: 0.55rem;
}

.quick-answer p:first-of-type {
  font-size: 1.08rem;
}

.article-toc {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.article-toc-title {
  margin: 0;
  color: var(--forest-dark);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-toc ol {
  display: grid;
  gap: 0 1.5rem;
  margin-top: 0.55rem;
  padding-left: 1.2rem;
}

.article-toc li {
  margin-top: 0;
}

.article-toc a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: 0.92rem;
}

.source-note {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  border-radius: var(--radius-sm);
}

.reference-list li + li {
  margin-top: 0.7rem;
}

.grid-2,
.grid-3,
.grid-4,
.category-grid,
.library-grid,
.compare-grid {
  display: grid;
  gap: 1rem;
}

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

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

.soft-card,
.library-card,
.compare-card,
.term-card,
.warning-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.library-card:focus-within {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.soft-card h3,
.category-card h3,
.library-card h3,
.compare-card h3,
.term-card h3,
.warning-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.soft-card p,
.category-card p,
.library-card p,
.compare-card p,
.term-card p,
.warning-card p {
  color: var(--muted);
}

.category-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.category-card:hover {
  border-color: var(--forest);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.category-main-link {
  display: flex;
  min-height: 14.5rem;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1rem;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.category-main-link:hover {
  color: var(--forest-dark);
  background: var(--surface-soft);
}

.category-icon {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 1.25rem;
  place-items: center;
  color: #202724;
}

.category-icon svg {
  width: 100%;
  height: 100%;
}

.category-main-link h3 {
  font-size: 1.05rem;
}

.category-popular {
  margin-top: 0.38rem;
  color: var(--forest-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-popular.neutral {
  visibility: hidden;
}

.category-cta {
  min-height: 1.3rem;
  margin-top: 0.65rem;
  color: var(--forest-dark);
  font-size: 0.72rem;
  font-weight: 720;
}

.category-note {
  padding: 0.95rem 1rem 1.1rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.category-note p {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  line-height: 1.48;
}

.category-note p:first-child {
  margin-top: 0;
}

.category-note strong {
  display: block;
  margin-bottom: 0.16rem;
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-view-all,
.brand-view-all {
  display: inline-flex;
  min-height: 2.75rem;
  width: fit-content;
  align-items: center;
  color: var(--forest-dark);
  font-weight: 720;
  text-decoration: none;
}

.brand-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 0.9rem;
}

.brand-directory-card {
  position: relative;
  z-index: 0;
  display: flex;
  min-width: 0;
  min-height: 12rem;
  flex-direction: column;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.brand-directory-card::before,
.brand-directory-card::after {
  position: absolute;
  z-index: -1;
  content: "";
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  pointer-events: none;
}

.brand-directory-card::before {
  inset: 4px -4px -4px 4px;
}

.brand-directory-card::after {
  inset: 8px 4px -8px 8px;
}

.brand-directory-card:hover,
.brand-directory-card:focus-visible {
  color: var(--forest-dark);
  border-color: var(--forest);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.brand-symbol {
  display: grid;
  flex: 1;
  min-height: 7rem;
  place-items: center;
  color: #101412;
  padding: 1.25rem 1rem;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
}

.brand-logo {
  display: block;
  width: min(100%, 8rem);
  height: auto;
  filter: brightness(0);
  object-fit: contain;
}

.brand-directory-copy {
  display: grid;
  gap: 0.22rem;
  min-height: 4.15rem;
  padding: 0.68rem 0.72rem 0.72rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}

.brand-directory-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-directory-copy > span {
  color: var(--forest-dark);
  font-size: 0.68rem;
  font-weight: 700;
}

.brand-directory-note {
  max-width: 58rem;
  margin-top: 1.35rem;
}

.evidence-list,
.numbered-flow,
.checklist {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.evidence-list li,
.numbered-flow li,
.checklist li {
  position: relative;
  padding: 1rem 0 1rem 2.8rem;
  border-bottom: 1px solid var(--line);
}

.evidence-list li::before,
.checklist li::before {
  position: absolute;
  top: 1.08rem;
  left: 0.2rem;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border: 2px solid var(--forest);
  border-radius: 0.38rem;
  content: "\2713";
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 900;
}

.checklist li::before {
  content: "";
}

.numbered-flow {
  counter-reset: guide-step;
}

.numbered-flow li {
  counter-increment: guide-step;
}

.numbered-flow li::before {
  position: absolute;
  top: 0.9rem;
  left: 0;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  content: counter(guide-step);
  color: white;
  background: var(--coral);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.numbered-flow strong,
.evidence-list strong {
  display: block;
}

.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.94rem;
}

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

th {
  color: white;
  background: var(--forest-dark);
}

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

.callout,
.warning-card {
  margin-top: 1.5rem;
}

.callout {
  padding: 1.15rem 1.25rem;
  background: #e8f2ed;
  border: 1px solid #cfe2da;
  border-radius: var(--radius);
}

.callout strong {
  color: var(--forest-dark);
}

.warning-card {
  background: #fff7e7;
  border-color: #e6c98e;
}

.score-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.score-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  box-shadow: var(--shadow-sm);
}

.score-row strong {
  color: var(--forest-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.breadcrumb {
  padding-top: 0.7rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 0.83rem;
}

.breadcrumb li + li {
  margin-top: 0;
}

.breadcrumb li + li::before {
  margin-right: 0.45rem;
  content: "/";
  color: var(--line-strong);
}

.guide-hero {
  padding: clamp(1.7rem, 3vw, 2.7rem) 0 1.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.guide-hero .lede {
  max-width: 48rem;
}

.page-meta {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.page-meta a {
  font-weight: 650;
}

.guide-shell {
  display: grid;
  gap: 1.6rem;
  padding-block: clamp(2.1rem, 4vw, 3.4rem);
}

.article-body {
  min-width: 0;
  max-width: var(--reading);
}

.article-body h2[id] {
  scroll-margin-top: 7rem;
}

.article-body > h2:first-child {
  margin-top: 0;
}

.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > .callout,
.article-body > .warning-card,
.article-body > .comparison-table-wrap,
.article-body > .grid-2,
.article-body > .grid-3,
.article-body > .grid-4,
.article-body > .compare-grid,
.article-body > .score-grid,
.article-body > .checklist,
.article-body > .numbered-flow,
.article-body > .evidence-list,
.article-body > .faq-list,
.article-body > .search-panel,
.article-body > .category-grid {
  max-width: var(--reading);
}

.article-aside {
  align-self: start;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.article-aside h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.article-aside ul {
  margin-top: 0.8rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

.article-aside a {
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.faq-list details {
  padding: 0 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
  cursor: pointer;
  font-weight: 800;
}

.faq-list summary::after {
  content: "+";
  color: var(--coral-dark);
  font-size: 1.35rem;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 0 1rem;
  color: var(--muted);
}

.faq-answer p {
  margin-top: 0;
}

.library-card {
  display: flex;
  flex-direction: column;
}

.library-card a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 800;
}

.closing-band {
  padding: clamp(1.7rem, 4.5vw, 2.75rem);
  color: white;
  background: linear-gradient(135deg, var(--forest-dark) 0%, #205f4a 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.closing-band h2 {
  margin-top: 0;
  color: white;
}

.closing-band p {
  max-width: 46rem;
  color: #f0f8f4;
}

.closing-band .button {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.closing-band .button.secondary {
  color: white;
  background: transparent;
  border-color: #aec2b9;
}

.site-footer {
  margin-top: clamp(2.1rem, 4vw, 3.25rem);
  padding: 2.1rem 0 1.1rem;
  color: #d4dfda;
  background: #23352f;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.site-footer .brand {
  color: white;
}

.site-footer .brand-mark {
  color: var(--gold);
}

.site-footer .brand-note,
.footer-note,
.footer-small {
  color: #acbbb5;
}

.footer-note {
  max-width: 34rem;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.footer-link-group {
  display: grid;
  align-content: start;
}

.footer-link-group h2 {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: #e8efec;
  font-size: 0.87rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-small {
  margin: 0;
  font-size: 0.77rem;
}

#whatsapp-float {
  position: fixed;
  right: max(1.125rem, env(safe-area-inset-right));
  bottom: max(1.125rem, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  width: 3.625rem;
  height: 3.625rem;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #25d366;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(9, 46, 28, 0.3);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#whatsapp-float:hover,
#whatsapp-float:focus-visible {
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 36px rgba(9, 46, 28, 0.38);
}

#whatsapp-float:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

#whatsapp-float svg {
  display: block;
  width: 2rem;
  height: 2rem;
}

.whatsapp-float-label {
  position: absolute;
  top: 50%;
  right: 4.25rem;
  width: max-content;
  max-width: 13.125rem;
  padding: 0.55rem 0.7rem;
  color: #fff;
  background: #17231d;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

#whatsapp-float:hover .whatsapp-float-label,
#whatsapp-float:focus-visible .whatsapp-float-label {
  opacity: 1;
  visibility: visible;
}

.centered-page {
  display: grid;
  min-height: 55vh;
  place-items: center;
  text-align: center;
}

.centered-page h1,
.centered-page p {
  margin-inline: auto;
}

@media (min-width: 38rem) {
  .header-status {
    display: inline-flex;
  }

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

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

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

  .brand-directory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 37.5rem) {
  .site-footer {
    padding-bottom: 5.5rem;
  }

  #whatsapp-float {
    right: max(0.875rem, env(safe-area-inset-right));
    bottom: max(0.875rem, env(safe-area-inset-bottom));
    width: 3.375rem;
    height: 3.375rem;
  }

  .whatsapp-float-label {
    display: none;
  }
}

@media (min-width: 60rem) {
  .site-header {
    position: sticky;
    top: 0;
    box-shadow: 0 4px 14px rgba(28, 55, 46, 0.05);
  }

  .directory-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .nav-menu {
    display: none;
  }

  .desktop-nav {
    display: block;
    width: 100%;
  }

  .nav-list {
    display: flex;
    gap: 0.05rem;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-list a {
    min-height: 3.75rem;
    padding-inline: 0.72rem;
    color: #5f6966;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-size: 0.79rem;
  }

  .nav-list a:hover,
  .nav-list a[aria-current="page"] {
    color: var(--forest-dark);
    background: transparent;
    border-bottom-color: var(--forest);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
    gap: 3rem;
    align-items: center;
  }

  .search-panel {
    grid-template-columns: minmax(12rem, 0.7fr) minmax(22rem, 1.3fr);
    align-items: center;
    gap: 2rem;
    padding: 1.55rem 1.7rem;
  }

  .grid-3,
  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .brand-directory-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 1.35rem 0.9rem;
  }

  .brand-directory-card {
    min-height: 14.5rem;
  }

  .brand-symbol {
    min-height: 10rem;
    padding: 1.5rem 1.1rem;
  }

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

  .guide-shell {
    grid-template-columns: minmax(0, var(--reading)) minmax(17rem, 20rem);
    gap: 2.5rem;
    justify-content: space-between;
  }

  .article-aside {
    position: sticky;
    top: 7rem;
  }

  .footer-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .actions,
  .article-aside,
  .article-toc,
  .search-panel,
  #whatsapp-float {
    display: none;
  }

  body {
    background: white;
  }

  .guide-shell {
    display: block;
  }
}
