:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --paper: #ffffff;
  --ink: #17201c;
  --muted: #5d6962;
  --line: #d9dfd8;
  --accent: #0b6b57;
  --accent-2: #b64027;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 20px;
}

.site-footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero,
.content-band,
.article {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 20px;
}

.hero {
  min-height: 280px;
  display: grid;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero h1,
.article-header h1,
.section-heading h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 1.4rem;
}

.eyebrow,
.meta {
  color: var(--accent-2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.code-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 190px;
}

.code-card a {
  display: grid;
  gap: 10px;
  height: 100%;
  padding: 18px;
  color: inherit;
}

.code-card h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.code-card p {
  margin: 0;
  color: var(--muted);
}

.code {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: Consolas, Monaco, monospace;
  font-weight: 700;
  color: var(--accent);
  background: #eef5f1;
}

.breadcrumbs {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: .92rem;
}

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

.article {
  max-width: 900px;
}

.article-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 24px 0 0;
}

.facts div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.facts dt {
  color: var(--muted);
  font-size: .8rem;
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.article-body {
  font-size: 1.05rem;
}

.article-body h2 {
  margin-top: 34px;
  line-height: 1.2;
}

.article-body li + li {
  margin-top: 8px;
}

.faq,
.related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 14px 16px;
}

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

.ad-slot {
  margin: 34px 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-heading {
  align-items: flex-start;
}

.search-heading p {
  margin: 10px 0 0;
  color: var(--muted);
}

.search-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 760px;
}

.search-panel label {
  font-weight: 700;
}

.search-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
}

.search-panel input:focus {
  border-color: var(--accent);
  outline: 3px solid #d9eee7;
}

.search-status,
.empty-state {
  margin: 0;
  color: var(--muted);
}

.search-results {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.search-result {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-result a {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: inherit;
}

.search-result h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.search-result p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
