:root {
  --page: #f6f5ef;
  --surface: #ffffff;
  --ink: #17221b;
  --muted: #657064;
  --line: #ddd8ca;
  --green: #2f6f3a;
  --green-dark: #1f5a2c;
  --soft: #eef2e8;
  --warning: #fff3dc;
  --shadow: 0 18px 55px rgba(36, 45, 35, 0.13);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(16px, 3vw, 36px);
  background: rgba(246, 245, 239, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
  transform: rotate(90deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-weight: 720;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #2c352e;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #e7ecdf;
}

.hero,
.article-hero {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) clamp(16px, 3vw, 36px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(420px, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}

.hero > *,
.page-shell > * {
  min-width: 0;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 5vw, 76px);
  line-height: 0.98;
}

.article-hero h1 {
  max-width: 980px;
  font-size: clamp(34px, 4vw, 62px);
}

.hero p,
.article-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

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

.button-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-map {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.hero-map img {
  display: block;
  width: 100%;
  aspect-ratio: 1186 / 811;
  object-fit: cover;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(270px, 360px);
  gap: 22px;
  align-items: start;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 36px) 64px;
}

.content-card,
.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-card {
  padding: clamp(22px, 4vw, 46px);
}

.content-card > * + * {
  margin-top: 16px;
}

.content-card h2 {
  margin-top: 34px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
}

.content-card h3 {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.18;
}

.content-card p,
.content-card li {
  color: #334039;
  font-size: 18px;
  line-height: 1.62;
}

.content-card ul {
  padding-left: 22px;
}

.content-card strong {
  color: var(--ink);
}

.article-toc {
  padding: 16px 18px;
  background: var(--soft);
  border: 1px solid #d5dfcf;
  border-radius: 8px;
}

.article-toc p {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.article-toc ol {
  margin: 0;
  padding-left: 18px;
}

.article-toc li {
  font-size: 15px;
  line-height: 1.45;
}

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

.article-toc a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.content-card h2,
.content-card h3 {
  scroll-margin-top: 96px;
}

.heading-anchor {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 6px;
  opacity: 0;
  vertical-align: middle;
  text-decoration: none;
}

.heading-anchor::before {
  content: "#";
  color: #8b977f;
  font-size: 16px;
  font-weight: 850;
}

.content-card h2:hover .heading-anchor,
.content-card h3:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}

.article-summary {
  margin: 22px 0 30px;
  padding: 20px;
  background: #fff9ec;
  border: 1px solid #e2c582;
  border-radius: 8px;
}

.article-summary h2 {
  margin-top: 0;
  font-size: 24px;
}

.article-summary p {
  margin-top: 0;
}

.article-summary ul {
  margin-bottom: 0;
}

.article-details {
  margin: 18px 0;
  background: #fbfaf5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-details summary {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
  scroll-margin-top: 96px;
}

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

.article-details summary::before {
  content: "+";
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  background: #eef2e8;
  border: 1px solid #d5dfcf;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 18px;
  line-height: 1;
}

.article-details[open] summary::before {
  content: "-";
}

.article-details summary span {
  flex: 1;
}

.article-details > :not(summary) {
  margin-right: 18px;
  margin-left: 18px;
}

.article-details > :last-child {
  margin-bottom: 18px;
}

.context-inset {
  margin: 22px 0;
  padding: 18px 20px;
  background: #eef2e8;
  border-left: 4px solid var(--green);
  border-radius: 8px;
}

.context-inset strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.context-inset p {
  margin: 0;
  font-size: 16px;
}

.context-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.context-links a {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #d5dfcf;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
}

.context-links a:hover {
  border-color: #9ab18c;
}

.illustration-placeholder {
  margin: 26px 0;
  padding: 24px;
  background: #f0efe7;
  border: 1px dashed #aab39f;
  border-radius: 8px;
  color: var(--muted);
}

.illustration-placeholder span {
  display: block;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.article-image {
  overflow: hidden;
  margin: 28px 0;
  background: #f0efe7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-image figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

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

th {
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
}

td {
  color: #334039;
  font-size: 15px;
  line-height: 1.4;
}

.inline-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 42px;
  padding: 22px;
  background: var(--warning);
  border: 1px solid #e2c582;
  border-radius: 8px;
}

.inline-cta h2 {
  margin-top: 0;
  font-size: 24px;
}

.inline-cta p {
  margin: 8px 0 0;
}

.tech-checklist,
.article-related {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.tech-checklist h2,
.article-related h2 {
  margin-top: 0;
}

.tech-summary {
  max-width: 680px;
}

.tech-facts,
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.tech-fact,
.article-related-link {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #f8f7f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.tech-fact:hover,
.article-related-link:hover {
  border-color: #9ab18c;
}

.tech-fact strong,
.article-related-link strong {
  font-size: 16px;
  line-height: 1.22;
}

.tech-fact span,
.article-related-link small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

.article-related-link > span {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.side-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.side-block {
  padding: 20px;
  background: #fff;
}

.side-block h2 {
  font-size: 24px;
  line-height: 1.12;
}

.side-block p {
  color: var(--muted);
  line-height: 1.45;
}

.related-list {
  display: grid;
  gap: 8px;
}

.related-link {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: #f8f7f1;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
}

.related-link span {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.related-link:hover {
  border-color: #b9c8ae;
}

.materials-hero {
  padding-bottom: clamp(18px, 3vw, 34px);
}

.materials-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 36px) 28px;
}

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

.materials-groups {
  display: grid;
  gap: 26px;
  padding-bottom: 72px;
}

.material-group {
  display: grid;
  gap: 14px;
}

.material-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.material-group-head h2 {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.material-group-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

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

.material-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 178px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(36, 45, 35, 0.08);
  color: var(--ink);
  text-decoration: none;
}

.material-card:hover {
  border-color: #9ab18c;
  transform: translateY(-1px);
}

.material-card-featured {
  min-height: 138px;
  background: #eef2e8;
}

.material-card-kicker {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.material-card strong {
  font-size: 18px;
  line-height: 1.18;
}

.material-card small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

@media (max-width: 960px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow: visible;
  }

  .hero,
  .page-shell {
    grid-template-columns: 1fr;
  }

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero,
  .article-hero {
    padding-top: 28px;
  }

  .content-card,
  .side-block {
    padding: 18px;
  }

  .content-card p,
  .content-card li {
    font-size: 16px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 2px;
  }

  .site-nav a {
    padding: 10px 6px;
    font-size: 15px;
  }

  .inline-cta {
    grid-template-columns: 1fr;
  }

  .tech-facts,
  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .materials-quick,
  .material-grid {
    grid-template-columns: 1fr;
  }

  .material-card {
    min-height: 0;
  }
}
