:root {
  color-scheme: light;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --color-eucalyptus: #3f4d3f;
  --color-sage: #a7b69a;
  --color-wattle: #d4a017;
  --color-sandstone: #eadcc4;
  --color-charcoal: #2b2b2b;
  --color-cream: #f8f1e6;
  --color-off-white: #fffdf7;
  --font-accent: "Lora", Georgia, serif;
  --ink: var(--color-charcoal);
  --muted: #5e6458;
  --soft: var(--color-cream);
  --paper: var(--color-off-white);
  --line: rgba(63, 77, 63, 0.18);
  --green: var(--color-eucalyptus);
  --green-dark: #2f3b30;
  --gold: var(--color-wattle);
  --shadow: 0 18px 44px rgba(43, 43, 43, 0.12);
  --shadow-soft: 0 12px 30px rgba(63, 77, 63, 0.1);
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 9% 0%, rgba(212, 160, 23, 0.13), transparent 34rem),
    linear-gradient(180deg, var(--color-cream) 0%, var(--color-off-white) 24rem);
  color: var(--ink);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
  user-drag: none;
  -webkit-user-drag: none;
}

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

a:hover {
  color: #7a5b05;
}

a:focus-visible,
button:focus-visible,
main:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--paper);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 4px;
  background: var(--green-dark);
  color: var(--paper);
  font-weight: 800;
  padding: 12px 16px;
  text-decoration: none;
  transition: transform 0.16s ease;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid rgba(49, 66, 51, 0.14);
  background:
    linear-gradient(180deg, #f6efe3, var(--color-cream));
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(63, 77, 63, 0.08);
}

.header-inner {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--color-cream);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  line-height: 1;
  letter-spacing: 0;
  min-height: 44px;
  font-weight: 650;
}

.brand span {
  display: block;
  color: var(--color-wattle);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  margin-top: 7px;
  text-transform: uppercase;
}

.brand:hover {
  color: var(--color-wattle);
}

.brand-logo {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: auto;
  justify-content: flex-start;
  min-height: 0;
  width: auto;
}

.brand-logo img {
  display: block;
  width: auto;
  max-width: min(500px, 46vw);
  max-height: 86px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.site-nav a {
  color: #314233;
  border-radius: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 7px;
  text-decoration: none;
}

.site-nav a:hover {
  color: #7a5b05;
  background: rgba(212, 160, 23, 0.12);
  box-shadow: inset 0 -2px 0 var(--color-wattle);
}

main {
  min-height: 65vh;
}

.hero {
  padding: 62px 0 42px;
  background:
    linear-gradient(135deg, rgba(247, 241, 227, 0.82), rgba(221, 232, 216, 0.5)),
    linear-gradient(180deg, rgba(255, 253, 247, 0.64), rgba(255, 253, 247, 0));
}

.image-hero {
  min-height: clamp(560px, 72vh, 760px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 96px 0 72px;
}

.image-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(43, 43, 43, 0.72), rgba(63, 77, 63, 0.58) 46%, rgba(63, 77, 63, 0.16)),
    linear-gradient(180deg, rgba(63, 77, 63, 0.06), rgba(43, 43, 43, 0.44));
}

.hero-bg,
.header-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
}

.image-hero .eyebrow,
.image-hero h1,
.image-hero .lead {
  color: var(--color-cream);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.24);
}

.image-hero .eyebrow {
  color: var(--color-wattle);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--green-dark);
  line-height: 1.1;
  letter-spacing: 0;
  font-family: var(--font-heading);
}

h1 {
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 5.25rem);
  font-weight: 700;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 2.4vw, 1.32rem);
  margin: 20px 0 0;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-dark);
  border-radius: 4px;
  padding: 10px 18px;
  background: var(--green-dark);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(63, 77, 63, 0.18);
}

.button.secondary {
  background: rgba(255, 253, 247, 0.78);
  color: var(--green-dark);
  border-color: var(--gold);
}

.button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--color-charcoal);
}

.hero-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--soft);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 58px 0;
}

.section.soft {
  background:
    linear-gradient(180deg, rgba(234, 220, 196, 0.72), rgba(167, 182, 154, 0.34));
  border-block: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
}

.grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

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

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

.card,
.product-card,
.guide-card {
  border: 1px solid rgba(63, 77, 63, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--paper), #fbf4e8);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.feature-card h2 {
  min-height: 2.4em;
}

.feature-card p:last-child {
  min-height: 5.1em;
}

.guide-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  align-self: stretch;
  flex-direction: column;
  overflow: hidden;
  border-color: rgba(48, 79, 55, 0.36);
  padding: 0;
  height: 100%;
  box-shadow: 0 16px 36px rgba(32, 47, 36, 0.16);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.guide-card a {
  display: grid;
  grid-template-rows: auto minmax(4.5em, auto) 1fr;
  gap: 12px;
  min-width: 0;
  height: 100%;
  flex: 1 1 auto;
  padding: 22px;
}

.guide-card.has-image a {
  min-height: 360px;
  grid-template-rows: 1fr auto minmax(4.5em, auto) minmax(8.5em, auto);
  align-content: stretch;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 24px;
}

.guide-card h3 {
  margin: 0;
  min-height: 4.5em;
  font-size: 1.38rem;
  line-height: 1.12;
}

.guide-card .meta,
.guide-card > a > p:last-child {
  margin: 0;
}

.guide-card.has-image .meta {
  grid-row: 2;
}

.guide-card.has-image h2,
.guide-card.has-image h3 {
  grid-row: 3;
}

.guide-card.has-image p:last-child {
  grid-row: 4;
}

.guide-card.has-image a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 25, 18, 0.08) 0%, rgba(19, 35, 25, 0.38) 43%, rgba(13, 25, 17, 0.95) 100%),
    linear-gradient(90deg, rgba(21, 44, 33, 0.16), rgba(21, 44, 33, 0.03));
}

.card-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
  transition: transform 220ms ease;
}

.guide-card.has-image .meta,
.guide-card.has-image h2,
.guide-card.has-image h3,
.guide-card.has-image p {
  color: #fffdf7;
  margin-inline: 0;
  position: relative;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.64);
}

.guide-card.has-image .meta {
  color: #f3cf68;
  margin-top: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.68);
}

.guide-card.has-image p:last-child {
  margin-bottom: 0;
}

.guide-card.category-card h2,
.guide-card.category-card h3 {
  min-height: 0;
}

.guide-card.category-card a {
  grid-template-rows: auto auto 1fr;
}

.guide-card.category-card.has-image a {
  min-height: 330px;
  grid-template-rows: 1fr auto minmax(2.15em, auto) minmax(8.5em, auto);
}

.guide-card.category-card p:last-child {
  min-height: 0;
  max-width: 30ch;
}

.guide-card.category-card.has-image a::before {
  background:
    linear-gradient(180deg, rgba(20, 29, 22, 0.18) 0%, rgba(20, 29, 22, 0.9) 100%),
    linear-gradient(90deg, rgba(21, 44, 33, 0.25), rgba(21, 44, 33, 0.05));
}

.guide-card.category-card.has-image h2,
.guide-card.category-card.has-image h3 {
  color: #fffdf7;
  min-height: 2.15em;
  font-size: clamp(1.9rem, 1.35rem + 1.15vw, 2.45rem);
  line-height: 1.04;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

.guide-card.category-card.has-image .meta {
  color: #ffe4a0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.guide-card.category-card.has-image a:hover h2,
.guide-card.category-card.has-image a:hover h3 {
  color: #fffdf7;
}

.guide-card.has-image a:hover h3 {
  color: var(--color-wattle);
}

.guide-card:hover {
  border-color: rgba(48, 79, 55, 0.52);
  box-shadow: 0 20px 42px rgba(32, 47, 36, 0.2);
  transform: translateY(-2px);
}

.guide-card:hover .card-image {
  transform: scale(1.015);
}

.guide-card .meta,
.article-meta,
.category-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs {
  margin: 0 0 18px;
  font-size: 0.9rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a,
.breadcrumbs span {
  color: var(--muted);
}

.breadcrumbs a {
  font-weight: 600;
}

.breadcrumb-separator {
  opacity: 0.62;
}

.article-author {
  color: inherit;
  font-weight: 700;
}

.guide-card a {
  color: var(--ink);
  text-decoration: none;
}

.guide-card a:hover h3 {
  color: #7a5b05;
}

.guide-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-library-group {
  border: 1px solid rgba(167, 182, 154, 0.5);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.guide-library-group h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.guide-library-group p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
}

.guide-library-group ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-library-group li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(63, 77, 63, 0.12);
  padding-top: 10px;
}

.guide-library-group li:first-child {
  border-top: 0;
  padding-top: 0;
}

.guide-library-group a {
  font-weight: 700;
}

.guide-library-group span {
  color: var(--ink);
}

.guide-status {
  flex: 0 0 auto;
  border: 1px solid rgba(212, 160, 23, 0.36);
  border-radius: 999px;
  background: rgba(248, 241, 230, 0.78);
  color: #6f570f;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 3px 8px;
}

.feature-list {
  border-left: 3px solid rgba(212, 160, 23, 0.44);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 253, 247, 0.54);
  margin: 18px 0 0;
  padding: 16px 18px 16px 34px;
}

.feature-list li + li {
  margin-top: 8px;
}

.advice-stack {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.advice-stack section {
  border: 1px solid rgba(167, 182, 154, 0.52);
  border-left: 4px solid var(--color-wattle);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
  padding: 18px 20px;
}

.advice-stack h3 {
  margin: 0 0 7px;
  color: var(--color-eucalyptus);
  font-size: 1.1rem;
}

.advice-stack p {
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(167, 182, 154, 0.52);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow-soft);
  margin: 24px 0 36px;
  padding: 24px;
}

.honeypot {
  display: none;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--ink);
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(63, 77, 63, 0.28);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(212, 160, 23, 0.28);
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  display: none;
  border-radius: 6px;
  margin: 0;
  padding: 12px 14px;
  font-weight: 700;
}

.form-status.is-visible,
.form-status:target {
  display: block;
}

.form-status-success {
  border: 1px solid rgba(63, 110, 78, 0.35);
  background: rgba(218, 238, 221, 0.72);
  color: #245334;
}

.form-status-error {
  border: 1px solid rgba(153, 55, 43, 0.35);
  background: rgba(249, 225, 221, 0.78);
  color: #7b2d24;
}

.page-intro,
.article-header,
.category-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.28);
  background:
    linear-gradient(135deg, rgba(248, 241, 230, 0.9), rgba(167, 182, 154, 0.42)),
    linear-gradient(180deg, rgba(255, 253, 247, 0.76), rgba(255, 253, 247, 0));
}

.image-header {
  min-height: clamp(360px, 46vw, 540px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.image-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(43, 43, 43, 0.72), rgba(63, 77, 63, 0.6) 50%, rgba(63, 77, 63, 0.22)),
    linear-gradient(180deg, rgba(63, 77, 63, 0.08), rgba(43, 43, 43, 0.48));
}

.image-header .container,
.image-header .narrow {
  position: relative;
  z-index: 1;
}

.image-header .eyebrow,
.image-header h1,
.image-header .lead,
.image-header .article-meta {
  color: var(--color-cream);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

.image-header .breadcrumbs a,
.image-header .breadcrumbs span {
  color: var(--color-cream);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

.image-header .breadcrumbs a:hover,
.image-header .article-author:hover {
  color: var(--color-wattle);
}

.image-header .eyebrow {
  color: var(--color-wattle);
}

.image-header .disclosure-block.compact {
  background: rgba(255, 253, 247, 0.7);
  text-shadow: none;
}

.content {
  padding: 42px 0 70px;
}

.content p,
.content li {
  color: #3f463e;
  font-size: 1.06rem;
  line-height: 1.72;
}

.content p + p {
  margin-top: 1.1em;
}

.content h2 {
  margin-top: 42px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.content h3 {
  margin-top: 28px;
}

.article-figure {
  margin: 30px 0 36px;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.article-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-before-after__label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-before-after__panel img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.article-figure--diagram {
  width: min(1120px, calc(100vw - 24px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-diagram-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-radius: 10px;
  background: var(--color-cream);
  box-shadow: var(--shadow-soft);
}

.article-diagram-scroll:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
}

.article-diagram-scroll img {
  width: 100%;
  min-width: 960px;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.disclosure-block,
.faq-block,
.related-guides,
.comparison-wrap {
  margin: 34px 0;
}

.disclosure-block {
  border: 1px solid rgba(212, 160, 23, 0.38);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8e8, var(--paper));
  padding: 18px 20px;
}

.disclosure-block.compact {
  margin: 18px 0 0;
  border: 0;
  border-left: 2px solid var(--gold);
  background: transparent;
  padding: 4px 0 4px 12px;
  font-size: 0.95rem;
}

.disclosure-block p {
  margin: 0;
}

.faq-block {
  border: 1px solid rgba(167, 182, 154, 0.54);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.82);
  padding: 22px;
}

.faq-item {
  border-top: 1px solid rgba(63, 77, 63, 0.16);
  padding: 18px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item h3,
.faq-item p {
  margin: 0;
}

.faq-item p {
  margin-top: 8px;
}

.product-card {
  display: grid;
  gap: 12px;
  border-top: 4px solid var(--green);
}

.product-card .label {
  color: #7a5b05;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card p {
  margin: 0;
}

.product-card .note {
  color: var(--muted);
  font-size: 0.95rem;
}

.product-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 34px;
}

.product-decision-card {
  border: 1px solid rgba(63, 77, 63, 0.16);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--paper), #fbf4e8);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.product-decision-card h3 {
  margin: 0 0 16px;
  color: var(--color-eucalyptus);
  font-size: 1.25rem;
}

.product-decision-card dl {
  margin: 0;
}

.product-decision-card dt {
  color: #6f570f;
  font-weight: 800;
}

.product-decision-card dt:not(:first-child) {
  margin-top: 13px;
}

.product-decision-card dd {
  margin: 4px 0 0;
  color: #3f463e;
  font-size: 0.98rem;
  line-height: 1.58;
}

.commercial-product-block {
  margin: 32px 0 42px;
}

.commercial-product-disclosure {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 10px 0 0;
}

.commercial-product-grid {
  align-items: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 28px;
}

.commercial-product-card {
  border: 1px solid rgba(63, 77, 63, 0.16);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 292px;
  position: relative;
  padding: 20px;
}

.commercial-product-card h3,
.commercial-product-card p {
  margin-top: 0;
}

.commercial-product-card h3 {
  font-size: 1.28rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.commercial-product-type {
  color: #6f570f;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-product-outcome {
  color: #354335;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.commercial-product-details-toggle,
.commercial-product-details-close {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.commercial-product-details-toggle {
  margin: auto 0 14px;
}

.commercial-product-card > a[data-commercial-link] {
  align-self: flex-start;
}

.commercial-product-details {
  background: linear-gradient(180deg, #fffdf7, #f7f0e3);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(42, 52, 42, 0.22);
  inset: 0;
  opacity: 0;
  overflow: auto;
  padding: 20px;
  pointer-events: none;
  position: absolute;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 1;
}

.commercial-product-card.is-details-open .commercial-product-details {
  box-shadow: none;
  margin-top: 4px;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  position: static;
  transform: translateY(0);
}

.commercial-product-drawbacks {
  border-left: 2px solid rgba(212, 160, 23, 0.55);
  margin: 16px 0;
  padding-left: 14px;
}

.commercial-product-drawbacks p {
  margin-bottom: 6px;
}

.commercial-product-drawbacks ul {
  margin: 0;
  padding-left: 20px;
}

.commercial-product-reviewed {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 16px 0;
}

.commercial-product-details-close {
  margin-top: 2px;
}

.comparison-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-hint {
  color: var(--muted);
  display: none;
  font-size: 0.95rem;
  margin: 18px 0 -18px;
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table caption {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0 0 10px;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: var(--green-dark);
  color: var(--color-cream);
  font-size: 0.98rem;
}

.comparison-table tbody tr:nth-child(even) td {
  background: rgba(167, 182, 154, 0.22);
}

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

.related-guides {
  background: linear-gradient(180deg, rgba(167, 182, 154, 0.38), rgba(234, 220, 196, 0.62));
  border: 1px solid rgba(63, 77, 63, 0.16);
  border-radius: 8px;
  padding: 22px;
}

.related-guides ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.related-guides li {
  border-top: 1px solid rgba(63, 77, 63, 0.14);
  padding-top: 10px;
}

.related-guides li:first-child {
  border-top: 0;
  padding-top: 0;
}

.related-guides a {
  font-weight: 800;
}

.guide-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "previous category next";
  align-items: start;
  gap: 18px;
  margin: 42px 0 8px;
  padding-top: 26px;
  border-top: 1px solid rgba(63, 77, 63, 0.22);
}

.guide-navigation-item {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.guide-navigation-item span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-navigation-item a,
.guide-navigation-category {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.guide-navigation-category {
  grid-area: category;
  align-self: center;
  text-align: center;
}

.guide-navigation-previous {
  grid-area: previous;
}

.guide-navigation-next {
  grid-area: next;
  text-align: right;
}

@media (max-width: 720px) {
  .guide-navigation {
    grid-template-columns: 1fr;
    grid-template-areas:
      "previous"
      "next"
      "category";
  }

  .guide-navigation-category {
    justify-self: start;
    text-align: left;
  }

  .guide-navigation-next {
    text-align: left;
  }
}

.site-footer {
  background:
    linear-gradient(135deg, var(--green-dark), #222820);
  color: var(--color-cream);
  padding: 36px 0;
  border-top: 4px solid var(--gold);
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.site-footer a,
.site-footer p {
  color: var(--color-cream);
}

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

.site-footer .small {
  color: rgba(248, 241, 230, 0.72);
}

.footer-copyright {
  color: rgba(248, 241, 230, 0.72);
  font-size: 0.95rem;
  margin: 14px 0 0;
}

.footer-disclosure {
  border-left: 2px solid var(--gold);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 20px 0 0;
  padding-left: 14px;
}

.footer-disclosure a {
  font-weight: 700;
  text-decoration-color: rgba(248, 241, 230, 0.62);
  text-underline-offset: 0.18em;
}

.footer-disclosure a:hover {
  color: var(--color-wattle);
}

.footer-brand p {
  max-width: 520px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.footer-links a {
  border-radius: 4px;
  color: var(--color-cream);
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 0;
  font-size: 1rem;
  text-decoration: none;
}

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

.small {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 821px) and (max-width: 1020px) {
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-card h3 {
    min-height: 3.5em;
  }

  .guide-card.has-image a {
    grid-template-rows: 1fr auto minmax(3.5em, auto) minmax(6.8em, auto);
  }
}

@media (max-width: 820px) {
  body {
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .header-inner {
    min-height: 0;
    padding: 12px 0 14px;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .brand-logo img {
    max-width: min(390px, 58vw);
    max-height: 64px;
  }

  .site-nav {
    flex: 1 1 320px;
    gap: 6px 8px;
    justify-content: flex-end;
    font-size: 1rem;
    line-height: 1.35;
  }

  .site-nav a {
    min-height: 42px;
    padding: 8px 9px;
  }

  .hero-grid,
  .grid.two,
  .grid.three,
  .guide-library-grid,
  .product-decision-grid {
    grid-template-columns: 1fr;
  }

  .commercial-product-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .image-hero {
    min-height: auto;
    padding: 64px 0 50px;
  }

  .image-hero::before,
  .image-header::before {
    background:
      linear-gradient(180deg, rgba(43, 43, 43, 0.72), rgba(63, 77, 63, 0.6)),
      linear-gradient(90deg, rgba(63, 77, 63, 0.7), rgba(63, 77, 63, 0.34));
  }

  .image-header {
    min-height: 340px;
  }

  .section {
    padding: 42px 0;
  }

  .card,
  .product-card,
  .guide-card a,
  .guide-card.has-image a,
  .guide-library-group,
  .faq-block,
  .related-guides,
  .contact-form {
    padding: 22px;
  }

  .card p,
  .product-card p,
  .guide-card p,
  .guide-library-group p,
  .section-heading p,
  .related-guides p,
  .related-guides li,
  .faq-item p {
    font-size: 1.0625rem;
    line-height: 1.68;
  }

  .guide-card .meta,
  .article-meta,
  .category-meta,
  .small,
  .product-card .note,
  .comparison-table caption,
  .table-hint,
  .disclosure-block.compact,
  .guide-status {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .guide-card.has-image a {
    min-height: 320px;
  }

  .guide-card a,
  .guide-card.has-image a,
  .guide-card.category-card.has-image a {
    grid-template-rows: auto;
  }

  .guide-card a {
    align-content: start;
  }

  .guide-card.has-image a {
    align-content: end;
  }

  .guide-card h3 {
    min-height: 0;
  }

  .guide-card.category-card.has-image h2,
  .guide-card.category-card.has-image h3 {
    min-height: 0;
  }

  .guide-card.has-image .meta,
  .guide-card.has-image h2,
  .guide-card.has-image h3,
  .guide-card.has-image p:last-child {
    grid-row: auto;
  }

  .content {
    padding: 38px 0 60px;
  }

  .content p,
  .content li {
    font-size: 1.1rem;
    line-height: 1.76;
  }

  .content p + p {
    margin-top: 1.2em;
  }

  .content h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    margin-top: 42px;
    line-height: 1.16;
  }

  .content h3,
  .faq-item h3,
  .product-card h3 {
    font-size: 1.28rem;
    line-height: 1.2;
  }

  .comparison-table {
    min-width: 680px;
  }

  .comparison-table th,
  .comparison-table td {
    font-size: 1.02rem;
    line-height: 1.62;
    padding: 16px;
  }

  .button,
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 1rem;
    min-height: 46px;
  }

  .site-footer p,
  .footer-copyright,
  .footer-links a {
    font-size: 1rem;
    line-height: 1.5;
  }

  .footer-links a {
    min-height: 44px;
  }
}

@media (max-width: 700px) {
  .article-before-after {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0 12px;
  }

  .brand-logo img {
    max-width: min(420px, 82vw);
    max-height: 58px;
  }

  .site-nav {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    gap: 6px 8px;
  }

  .site-nav a {
    min-height: 42px;
    padding: 7px 9px;
  }

  .page-intro,
  .article-header,
  .category-header {
    padding: 48px 0 32px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 20px;
  }
}

@media (max-width: 560px) {
  .container,
  .narrow {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: clamp(2rem, 10.5vw, 2.85rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.65rem, 8.4vw, 2.15rem);
    line-height: 1.14;
  }

  h3 {
    font-size: 1.25rem;
  }

  .brand-logo img {
    max-width: 82vw;
    max-height: 52px;
  }

  .lead {
    font-size: 1.12rem;
    line-height: 1.68;
  }

  .site-nav {
    gap: 5px 7px;
    font-size: 0.98rem;
  }

  .site-nav a,
  .footer-links a {
    min-height: 44px;
    padding-inline: 8px;
  }

  .brand span,
  .eyebrow {
    font-size: 0.9rem;
  }

  .content p,
  .content li {
    font-size: 1.075rem;
    line-height: 1.76;
  }

  .content {
    padding: 34px 0 54px;
  }

  .feature-list {
    padding-left: 1.25rem;
  }

  .feature-list li + li {
    margin-top: 12px;
  }

  .card p,
  .product-card p,
  .guide-card p,
  .guide-library-group p,
  .section-heading p,
  .related-guides p,
  .related-guides li,
  .faq-item p {
    font-size: 1.04rem;
    line-height: 1.68;
  }

  .guide-card h3,
  .guide-library-group h3,
  .product-card h3,
  .faq-item h3 {
    font-size: 1.3rem;
    line-height: 1.18;
  }

  .guide-card h3 {
    min-height: 0;
  }

  .footer-links {
    gap: 4px 12px;
  }

  .table-hint {
    display: block;
  }

  .comparison-table {
    min-width: 660px;
  }

  .button,
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero-actions .button,
  .button-row .button {
    width: 100%;
  }

  .image-hero {
    padding: 54px 0 42px;
  }

  .image-header {
    min-height: 300px;
  }

  .guide-card.has-image a {
    min-height: 300px;
  }
}

@media (max-width: 420px) {
  .container,
  .narrow {
    width: min(100% - 20px, 1120px);
  }

  .header-inner {
    padding-block: 8px 10px;
  }

  .brand-logo img {
    max-width: 84vw;
    max-height: 48px;
  }

  .site-nav {
    font-size: 0.95rem;
    gap: 4px 6px;
  }

  .site-nav a {
    min-height: 40px;
    padding: 6px 7px;
  }

  h1 {
    font-size: clamp(1.85rem, 11vw, 2.45rem);
  }

  h2 {
    font-size: clamp(1.48rem, 8.8vw, 1.95rem);
  }

  .lead {
    font-size: 1.06rem;
  }

  .eyebrow {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }

  .section {
    padding: 36px 0;
  }

  .card,
  .product-card,
  .guide-card a,
  .guide-card.has-image a,
  .guide-library-group,
  .faq-block,
  .related-guides,
  .contact-form {
    padding: 20px;
  }

  .content p,
  .content li {
    font-size: 1.0625rem;
    line-height: 1.74;
  }

  .comparison-table th,
  .comparison-table td {
    font-size: 1rem;
    padding: 14px;
  }
}

/* Pagefind search */
.search-intro {
  padding-bottom: 36px;
}

.search-section {
  padding-top: 0;
}

.search-shell {
  display: grid;
  gap: 24px;
  padding-bottom: 24px;
}

.search-panel,
.search-suggestions,
.search-fallback,
.search-noscript {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 4vw, 34px);
}

.search-panel > h2,
.search-suggestions h2,
.search-fallback h2 {
  margin-top: 0;
}

.search-interface {
  --pf-text: var(--ink);
  --pf-text-secondary: var(--muted);
  --pf-text-muted: #555b51;
  --pf-background: var(--paper);
  --pf-border: rgba(63, 77, 63, 0.32);
  --pf-border-focus: var(--green);
  --pf-skeleton: var(--color-sandstone);
  --pf-skeleton-shine: var(--color-cream);
  --pf-hover: rgba(167, 182, 154, 0.18);
  --pf-mark: var(--green-dark);
  --pf-outline-focus: var(--green-dark);
  --pf-outline-width: 3px;
  --pf-outline-offset: 3px;
  --pf-font: var(--font-body);
  --pf-input-height: 56px;
  --pf-input-font-size: 1rem;
  --pf-summary-font-size: 0.94rem;
  --pf-result-title-font-size: clamp(1.12rem, 2.3vw, 1.35rem);
  --pf-result-excerpt-font-size: 0.96rem;
  --pf-results-gap: 14px;
  --pf-border-radius: 8px;
  --pf-image-width: clamp(112px, 18vw, 156px);
  --pf-image-height: clamp(82px, 13vw, 108px);
  min-width: 0;
  margin-top: 20px;
}

pagefind-config {
  display: none;
}

pagefind-input,
pagefind-summary,
pagefind-keyboard-hints,
pagefind-results {
  display: block;
  min-width: 0;
}

.search-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: 42px;
  margin-top: 8px;
}

.search-load-status {
  border-left: 4px solid var(--gold);
  background: var(--soft);
  margin: 14px 0;
  padding: 12px 14px;
}

.search-result-card {
  align-items: flex-start;
  min-width: 0;
}

.search-result-image {
  display: block;
}

.search-result-meta {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.search-result-title {
  margin: 0;
}

.search-result-title a {
  color: var(--green-dark);
  text-decoration-thickness: 0.1em;
}

.search-result-excerpt {
  margin-top: 8px;
  white-space: normal;
}

.search-suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-suggestion {
  min-height: 44px;
  max-width: 100%;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--paper);
  color: var(--green-dark);
  cursor: pointer;
  font: 700 0.98rem/1.3 var(--font-body);
  padding: 9px 16px;
  text-align: left;
}

.search-suggestion:hover {
  border-color: var(--gold);
  background: var(--soft);
}

.search-fallback ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 0;
  padding-left: 1.3rem;
}

.search-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.search-noscript {
  display: block;
  margin: 0;
}

@media (max-width: 560px) {
  .search-panel,
  .search-suggestions,
  .search-fallback,
  .search-noscript {
    border-radius: 10px;
    padding: 20px;
  }

  .search-summary-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .search-interface {
    --pf-result-title-font-size: 1.08rem;
    --pf-result-excerpt-font-size: 0.9rem;
    --pf-image-width: 88px;
    --pf-image-height: 76px;
  }

  .search-result-meta {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .search-result-excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .search-suggestion-list,
  .search-fallback ul {
    align-items: stretch;
    flex-direction: column;
  }

  .search-suggestion {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .site-nav a {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card,
  .card-image,
  .search-suggestion {
    scroll-behavior: auto;
    transition: none;
  }

  .guide-card:hover,
  .guide-card:hover .card-image {
    transform: none;
  }
}
