:root {
  --ink: #18211f;
  --muted: #5d6864;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #d9ded8;
  --green: #1f6b4a;
  --green-strong: #134730;
  --amber: #d99a24;
  --blue: #2e6f95;
  --soft-green: #edf6f1;
  --soft-amber: #fff4df;
  --shadow: 0 18px 45px rgba(24, 33, 31, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  z-index: 10;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.top-nav,
.hero-actions,
.mini-list,
.site-footer a {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
}

.top-nav {
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a,
.site-footer a {
  text-decoration: none;
}

.top-nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.home-hero,
.article-hero,
.page-hero {
  padding: 64px 0 42px;
  background:
    linear-gradient(135deg, rgba(31, 107, 74, 0.10), rgba(217, 154, 36, 0.08)),
    var(--paper);
}

.hero-grid,
.article-hero-grid,
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 42px;
  align-items: center;
}

.article-hero-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.95fr);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 8vw, 76px);
  max-width: 880px;
}

.article h1,
.page-hero h1 {
  font-size: clamp(36px, 6vw, 62px);
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.content-section h2,
.asset-box h2,
.faq-section h2,
.tool-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.lede {
  margin: 18px 0 0;
  color: #38423f;
  font-size: clamp(18px, 2vw, 22px);
  max-width: 720px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}

.button {
  min-height: 46px;
  padding: 11px 17px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--green);
}

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

.button.secondary {
  background: transparent;
  color: var(--green-strong);
}

.button.tertiary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.hero-visual img {
  aspect-ratio: 16 / 9.16;
  object-fit: cover;
  width: 100%;
}

.section {
  padding: 62px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  color: #3f4946;
  font-size: 18px;
}

.category-section {
  padding-top: 36px;
}

.category-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.category-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  margin: 14px 0 0;
}

.category-select {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.category-select select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

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

.category-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 107, 74, 0.26);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-strong);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.category-pill:hover {
  background: var(--soft-green);
  border-color: var(--green);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

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

.text-card {
  display: flex;
  flex-direction: column;
  min-height: 176px;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(24, 33, 31, 0.05);
}

.text-card:hover {
  border-color: rgba(31, 107, 74, 0.45);
  transform: translateY(-2px);
}

.text-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.text-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.text-card small {
  color: var(--muted);
  font-size: 14px;
}

.feature-band {
  padding: 56px 0;
  background: var(--green-strong);
  color: #fff;
}

.feature-band .eyebrow,
.feature-band p {
  color: #dcece4;
}

.mini-list {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.mini-list a {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

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

td:first-child,
th:first-child {
  width: 30%;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 42px;
  padding: 52px 0 72px;
}

.toc {
  position: sticky;
  top: 92px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--green);
}

.article-body {
  min-width: 0;
}

.content-section,
.asset-box,
.faq-section,
.tool-panel,
.related {
  margin-bottom: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.content-section p,
.legal-copy p {
  color: #3f4946;
  font-size: 18px;
}

.content-section p:last-child,
.legal-copy p:last-child {
  margin-bottom: 0;
}

.asset-box {
  background: var(--soft-green);
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
}

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

details p {
  color: var(--muted);
}

.tool-panel {
  background: var(--soft-amber);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.input-wrap input {
  width: 100%;
  min-height: 46px;
  border: 0;
  padding: 10px 12px;
  font: inherit;
}

.input-wrap em {
  padding: 0 12px;
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
}

.tool-result {
  display: block;
  padding: 18px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.legal-copy {
  padding: 48px 0 74px;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: #eef2ec;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.site-footer p {
  color: var(--muted);
}

.site-footer div:nth-child(2) {
  display: grid;
  gap: 8px;
}

@media (max-width: 860px) {
  .nav-wrap,
  .hero-grid,
  .article-hero-grid,
  .band-grid,
  .split,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    align-items: flex-start;
    padding: 14px 0;
  }

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

  .card-grid,
  .card-grid.compact,
  .tool-grid,
  .category-header {
    grid-template-columns: 1fr;
  }

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

  .toc {
    position: static;
  }

  h1 {
    font-size: 42px;
  }
}

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

  .home-hero,
  .article-hero,
  .page-hero {
    padding: 38px 0 30px;
  }

  .section {
    padding: 42px 0;
  }

  .content-section,
  .asset-box,
  .faq-section,
  .tool-panel,
  .related {
    padding: 20px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

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