:root {
  --bg: #fbfbf8;
  --surface: #ffffff;
  --surface-2: #eef5f1;
  --text: #202624;
  --muted: #5d6864;
  --line: #d9e1dc;
  --green: #23745a;
  --green-dark: #15523f;
  --blue: #245c83;
  --amber: #9b6528;
  --red: #9f3d37;
  --shadow: 0 10px 24px rgba(31, 46, 40, 0.08);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: var(--green-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--text);
  color: #fff;
  padding: 0.6rem 0.9rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 251, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  min-width: 14rem;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.global-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.92rem;
}

.global-nav a[aria-current="page"],
.global-nav a:hover {
  background: var(--surface-2);
  color: var(--green-dark);
}

.breadcrumb {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
  color: #9aa6a0;
}

.ad-disclosure {
  max-width: 1160px;
  margin: 1rem auto;
  padding: 0.75rem 1rem;
  border: 1px solid #d7c6a9;
  background: #fffaf1;
  color: #4d3a1f;
  font-size: 0.9rem;
}

.page-hero {
  max-width: 1160px;
  min-height: 330px;
  margin: 1rem auto 0;
  background-image: linear-gradient(90deg, rgba(19, 37, 31, 0.82), rgba(19, 37, 31, 0.36)), var(--hero-image);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.page-hero__overlay {
  width: min(720px, 100%);
  padding: 2.4rem 1.5rem 2.4rem 2rem;
  color: #fff;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, calc(2rem + 1vw), 3.2rem);
  line-height: 1.22;
}

.page-hero p {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-actions,
.related-links,
.affiliate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green-dark);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button--primary {
  background: var(--green);
  color: #fff;
}

.content-band {
  padding: 3rem 1.25rem;
}

.content-band--muted {
  background: var(--surface-2);
}

.content-band--tool {
  background: #f2f6f8;
}

.content-band--decision {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.content-band--compact {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.section-inner {
  max-width: 880px;
  margin: 0 auto;
}

.section-inner--wide {
  max-width: 1160px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.decision-box,
.section-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.decision-box {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: #fff;
}

.decision-box h2,
.section-cta p {
  margin-bottom: 0.4rem;
}

.decision-box ul {
  margin: 0;
  padding-left: 1.2rem;
}

.section-cta {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 4px solid var(--green);
  background: #fff;
}

h2,
h3,
h4 {
  line-height: 1.35;
}

h2 {
  font-size: 1.65rem;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.15rem;
}

.prose .article-section + .article-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.prose ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

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

.comparison-table th {
  background: #edf4f0;
  color: var(--green-dark);
}

.tool-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

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

.link-grid {
  margin-top: 1.5rem;
}

.link-card,
.product-card,
.diagnostic-form,
.diagnostic-result,
.contact-form,
.contact-note,
.notice,
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.link-card {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
}

.link-card span {
  display: block;
  font-weight: 700;
}

.link-card small {
  display: block;
  color: var(--muted);
  margin-top: 0.35rem;
}

.checklist {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  padding: 0.85rem 1rem;
  background: #fff;
  border-left: 4px solid var(--green);
}

.diagnostic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.diagnostic-form,
.diagnostic-result,
.contact-form,
.contact-note,
.notice {
  padding: 1.25rem;
}

.form-heading h2 {
  margin-bottom: 0.25rem;
}

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

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #c8d2cd;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.result-grid {
  display: grid;
  gap: 0.75rem;
}

.result-item {
  border-left: 4px solid var(--blue);
  background: #f8fbfc;
  padding: 0.75rem 0.9rem;
}

.result-item strong {
  display: block;
  font-size: 1.05rem;
}

.product-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-card__category,
.space-score,
.checked-date,
.affiliate-pending {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.space-score {
  color: var(--amber);
  white-space: nowrap;
}

.product-card h3 {
  margin: 0;
}

.product-meta {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

.product-meta div {
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}

.product-meta dt {
  font-weight: 700;
}

.product-meta dd {
  margin: 0.1rem 0 0;
  color: var(--muted);
}

.product-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.product-points h4 {
  margin: 0 0 0.35rem;
}

.product-points ul {
  margin: 0;
  padding-left: 1.1rem;
}

.affiliate-links a,
.related-links a {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}

.affiliate-pending {
  padding: 0.65rem 0.8rem;
  border: 1px dashed var(--line);
  background: #fafbf9;
}

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

.faq-list details {
  padding: 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.related-band {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.contact-cta {
  max-width: 1160px;
  margin: 0 auto 3rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #edf4f7;
  border: 1px solid #cbdde5;
}

.contact-cta h2 {
  margin-bottom: 0.25rem;
}

.site-footer {
  background: #1f2825;
  color: #dfe7e3;
  padding: 2rem 1.25rem;
}

.site-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #fff;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-content: start;
}

.site-footer a {
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  margin: 1rem 0;
}

.notice--success {
  border-color: #9cc5a9;
  background: #f2fbf4;
}

.notice--error {
  border-color: #d7a09c;
  background: #fff5f4;
}

@media (max-width: 900px) {
  .site-header__inner,
  .tool-strip,
  .decision-box,
  .section-cta,
  .contact-cta,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .global-nav {
    justify-content: flex-start;
  }

  .page-hero {
    min-height: 280px;
  }

  .link-grid,
  .product-grid,
  .diagnostic-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header__inner {
    padding: 0.75rem 1rem;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .global-nav a {
    padding: 0.35rem 0.45rem;
    font-size: 0.86rem;
  }

  .page-hero__overlay {
    padding: 2rem 1.2rem;
  }

  .field-grid,
  .product-points {
    grid-template-columns: 1fr;
  }

  .content-band {
    padding: 2.2rem 1rem;
  }
}
