:root {
  color-scheme: light;
  --bg: #102d1c;
  --bg-soft: #174527;
  --surface: #fffdf2;
  --surface-green: #f1fae8;
  --surface-blue: #eef8ff;
  --border: #cfe3bd;
  --border-strong: #9bc77d;
  --text: #122016;
  --muted: #536855;
  --primary: #2f8f46;
  --primary-dark: #1e6531;
  --secondary: #f4c95d;
  --accent: #67b7dc;
  --warning: #a56300;
  --warning-bg: #fff4d4;
  --danger: #a43c3c;
  --danger-bg: #ffe7e7;
  --success: #1f7a3b;
  --success-bg: #e6f7e9;
  --shadow: 0 16px 36px rgba(8, 35, 19, 0.16);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 201, 93, 0.22), transparent 34rem),
    linear-gradient(135deg, #0f2a1b 0%, #1a5630 46%, #eaf6dc 46%, #f8fbef 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.home-page {
  background:
    radial-gradient(circle at 12% 0, rgba(244, 201, 93, 0.2), transparent 30rem),
    radial-gradient(circle at 92% 9rem, rgba(155, 214, 110, 0.16), transparent 24rem),
    linear-gradient(180deg, #0f2a1b 0%, #16492b 600px, #eef7e4 600px, #f8fbef 100%);
}

body.codes-page,
body.seeds-page,
body.pets-page,
body.gears-page,
body.calculator-page {
  background: #f8fbef;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.28;
}

body.codes-page::before,
body.seeds-page::before,
body.pets-page::before,
body.gears-page::before,
body.calculator-page::before {
  opacity: 0.08;
}

a {
  color: var(--primary-dark);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #134a25;
}

img,
svg {
  max-width: 100%;
}

p {
  max-width: 760px;
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 242, 0.94);
  border-bottom: 1px solid rgba(207, 227, 189, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner,
.content-wrap,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

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

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f8f46, #9bd66e);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: inset 0 -8px 16px rgba(16, 45, 28, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav .nav-cta {
  border: 1px solid var(--border-strong);
  background: #ffffff;
}

main {
  display: block;
}

.content-wrap {
  padding: 42px 0 58px;
}

.hero {
  padding: 46px 0 34px;
  color: #ffffff;
}

.home-page .hero {
  padding-bottom: 8px;
}

.home-page main > .content-wrap {
  padding-top: 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow,
.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.eyebrow {
  margin-bottom: 14px;
  color: #e9f7d9;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
  color: inherit;
}

h1 {
  max-width: 840px;
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.hero p {
  margin: 0 0 20px;
  color: #edf7e2;
  font-size: 1.08rem;
}

.page-hero {
  margin: 26px 0 28px;
  padding: 34px;
  border: 1px solid rgba(207, 227, 189, 0.58);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(21, 71, 39, 0.96), rgba(43, 126, 64, 0.9)),
    radial-gradient(circle at top right, rgba(244, 201, 93, 0.26), transparent 22rem);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.page-hero p {
  color: #ecf7df;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 17px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--secondary);
  color: #18351f;
  box-shadow: 0 10px 22px rgba(244, 201, 93, 0.25);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
  border-color: rgba(207, 227, 189, 0.85);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.snapshot-card,
.dashboard-card,
.card,
.notice,
.warning,
.tip,
.related-guides,
.calculator-panel,
.results-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.snapshot-card {
  padding: 22px;
  color: var(--text);
  min-width: 0;
  background: linear-gradient(180deg, #fffdf2 0%, #f3fae9 100%);
  border-color: #b7d99d;
}

.snapshot-card h2 {
  font-size: 1.35rem;
  color: #102d1c;
}

.dashboard-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  color: var(--text);
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 242, 0.98) 0%, rgba(241, 250, 232, 0.98) 100%),
    radial-gradient(circle at 85% 12%, rgba(244, 201, 93, 0.26), transparent 12rem);
  border-color: #b7d99d;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary), #9bd66e, var(--accent));
}

.dashboard-card h2 {
  margin-top: 14px;
  font-size: 1.45rem;
  color: #102d1c;
}

.dashboard-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

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

.dashboard-tile {
  display: grid;
  align-content: start;
  min-height: 150px;
  padding: 13px;
  border: 1px solid #d7ebc7;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.dashboard-tile-wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.dashboard-tool {
  background: linear-gradient(135deg, #fff6d8 0%, #eef8ff 100%);
  border-color: #ecd58f;
}

.dashboard-tile span {
  color: #40553f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dashboard-tile strong {
  display: block;
  margin-top: 5px;
  color: var(--primary-dark);
  font-size: 1.1rem;
  line-height: 1.2;
}

.dashboard-tile small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.dashboard-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dashboard-labels .status-label {
  font-size: 0.75rem;
}

.snapshot-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.snapshot-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: #eaf6df;
  border: 1px solid #d7ebc7;
  font-size: 0.96rem;
}

.snapshot-item span {
  color: #2f4330;
  font-weight: 700;
}

.snapshot-item strong {
  color: var(--primary-dark);
}

.section {
  margin: 30px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 253, 242, 0.94);
  border: 1px solid rgba(207, 227, 189, 0.9);
}

.home-page .section {
  margin: 20px 0;
  padding: 26px;
}

.home-page main > .content-wrap > .section:first-child {
  margin-top: 0;
}

.home-page .info-grid .card {
  background: linear-gradient(180deg, #ffffff 0%, #f5faee 100%);
}

.home-page .info-grid .card h3 {
  color: var(--primary-dark);
}

.section.full-bleed {
  background: transparent;
  border: 0;
  padding: 0;
}

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

.section-header p {
  margin: 0;
  color: var(--muted);
}

.guide-grid,
.two-column,
.three-column,
.reading-path,
.faq-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card {
  padding: 20px;
  box-shadow: none;
  min-width: 0;
}

.guide-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
}

.guide-card h3,
.guide-card p {
  margin-bottom: 0;
}

.guide-card .card-link {
  margin-top: 6px;
}

.guide-card-featured {
  min-height: 230px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f0f9e7 100%);
  border-color: #b7d99d;
  box-shadow: 0 12px 26px rgba(21, 71, 39, 0.08);
}

.guide-card-featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary), var(--accent));
  border-radius: var(--radius) var(--radius) 0 0;
}

.guide-card-featured h3 {
  font-size: 1.2rem;
}

.guide-card-support {
  background: #ffffff;
}

.guide-tag {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  border: 1px solid #d5e7c8;
  border-radius: 999px;
  padding: 3px 9px;
  color: #365139;
  background: #edf7df;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

.card-link {
  font-weight: 800;
}

.mini-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.notice,
.warning,
.tip {
  margin: 18px 0;
  padding: 16px 18px;
  box-shadow: none;
}

.notice {
  background: var(--surface-blue);
  border-color: #bfddee;
}

.warning {
  background: var(--warning-bg);
  border-color: #f1d28d;
}

.tip {
  background: var(--surface-green);
}

.code-status-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 242, 0.98) 0%, rgba(238, 248, 255, 0.94) 100%);
}

.codes-page .content-wrap {
  padding-top: 28px;
}

.codes-page .page-hero {
  margin-top: 12px;
  margin-bottom: 22px;
}

.seeds-page .content-wrap,
.pets-page .content-wrap,
.gears-page .content-wrap,
.calculator-page .content-wrap {
  padding-top: 28px;
}

.seeds-page .page-hero,
.pets-page .page-hero,
.gears-page .page-hero,
.calculator-page .page-hero {
  margin-top: 12px;
  margin-bottom: 22px;
}

.quick-answer-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 242, 0.98) 0%, rgba(241, 250, 232, 0.96) 100%);
}

.answer-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 190px;
  background: #ffffff;
}

.answer-card h3,
.answer-card p {
  margin-bottom: 0;
}

.quick-answer-section .answer-card:first-child {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9e7 100%);
  border-color: #b7d99d;
}

.current-code-section {
  background: rgba(255, 253, 242, 0.98);
}

.current-code-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #b7d99d;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f4faee 100%);
}

.current-code-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.current-code-main p,
.current-code-note {
  margin: 0;
  color: var(--muted);
}

.current-code-value {
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.current-code-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.current-code-details div {
  min-width: 0;
  padding: 13px;
  border: 1px solid #d7ebc7;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.current-code-details dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.current-code-details dd {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.25;
}

.current-code-details code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface-green);
  color: var(--primary-dark);
  font: inherit;
}

.code-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.code-status-card {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 158px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.code-status-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.code-status-card strong {
  display: block;
  margin-top: 8px;
  color: var(--primary-dark);
  font-size: 1.35rem;
  line-height: 1.15;
}

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

.code-status-wide {
  grid-column: 1 / -1;
  min-height: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fff8df 100%);
  border-color: #ecd58f;
}

.compact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.compact-list li {
  padding-right: 8px;
}

.card .compact-list {
  grid-template-columns: 1fr;
}

.planning-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 242, 0.98) 0%, rgba(241, 250, 232, 0.96) 100%);
}

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

.planning-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 250px;
  background: #ffffff;
}

.planning-card h3,
.planning-card p {
  margin-bottom: 0;
}

.planning-card-featured {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9e7 100%);
  border-color: #b7d99d;
}

.source-check-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 242, 0.96) 0%, rgba(241, 250, 232, 0.96) 100%);
}

.source-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.source-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 190px;
  background: #ffffff;
}

.source-card h3,
.source-card p {
  margin-bottom: 0;
}

.source-card-primary {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef8ff 100%);
  border-color: #bfddee;
}

.source-card-wide,
.source-card-safety {
  grid-column: 1 / -1;
  min-height: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #fff8df 100%);
  border-color: #ecd58f;
}

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

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e6efd9;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #243421;
  background: #edf7df;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.status-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 9px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-verified,
.status-working {
  color: var(--success);
  background: var(--success-bg);
  border-color: #b7dfbd;
}

.status-reported {
  color: #255d74;
  background: #e5f5fb;
  border-color: #b9dfed;
}

.status-needs-verification,
.status-estimate {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: #ecc979;
}

.status-expired {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #efb5b5;
}

.status-unofficial,
.status-changed {
  color: #4f5f4d;
  background: #eef1e8;
  border-color: #d2d9ca;
}

.steps {
  margin: 0;
  padding-left: 22px;
}

.steps li {
  margin: 8px 0;
}

.reading-path {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: path;
}

.path-step {
  position: relative;
  padding: 44px 18px 18px;
}

.path-step::before {
  counter-increment: path;
  content: counter(path);
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  font-size: 0.84rem;
  font-weight: 900;
}

.related-guides {
  margin-top: 30px;
  padding: 22px;
  box-shadow: none;
}

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

.related-guides a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface-green);
  font-weight: 800;
  text-decoration: none;
}

.related-guide-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.related-guides .related-guide-link {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 5px;
  min-height: 98px;
  border: 1px solid #d7ebc7;
  border-radius: var(--radius);
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f3fae9 100%);
  font-weight: 700;
  text-decoration: none;
}

.related-guides .related-guide-link strong {
  color: var(--primary-dark);
  line-height: 1.2;
}

.related-guides .related-guide-link span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.calculator-panel,
.results-panel {
  padding: 22px;
  box-shadow: none;
  min-width: 0;
}

.calculator-example-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #ecd58f;
  border-radius: var(--radius);
  background: #fff8df;
  color: #5b460d;
  font-weight: 800;
}

.calculator-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 800;
}

.field input {
  min-height: 46px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
}

.field input:focus {
  outline: 3px solid rgba(47, 143, 70, 0.22);
  border-color: var(--primary);
}

.field .help {
  color: var(--muted);
  font-size: 0.88rem;
}

.form-error {
  min-height: 24px;
  color: var(--danger);
  font-weight: 800;
}

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

.result-card {
  padding: 15px;
  border-radius: var(--radius);
  background: var(--surface-green);
  border: 1px solid var(--border);
}

.result-label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.result-value {
  display: block;
  margin-top: 6px;
  color: var(--primary-dark);
  font-size: 1.45rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.calculator-usage-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 242, 0.98) 0%, rgba(241, 250, 232, 0.96) 100%);
}

.calculator-usage-card {
  padding: 18px;
  border: 1px solid #b7d99d;
  border-radius: var(--radius);
  background: #ffffff;
}

.formula-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.formula-list li {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-green);
}

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

.faq-item {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  background: #0f2619;
  color: #e8f5dc;
}

.footer-inner {
  display: grid;
  gap: 18px;
  padding: 34px 0;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #e8f5dc;
  font-weight: 800;
}

.footer-disclaimer {
  margin: 0;
  max-width: 960px;
  color: #cfe3bd;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

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

  .hero-grid,
  .calculator-grid,
  .code-status-grid,
  .guide-grid,
  .planning-grid,
  .two-column,
  .three-column,
  .source-check-grid,
  .reading-path,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .source-card-primary,
  .source-card-wide,
  .source-card-safety {
    grid-column: auto;
    grid-row: auto;
  }

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

  .code-status-card,
  .planning-card {
    min-height: 0;
  }

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

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

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

@media (max-width: 640px) {
  .header-inner,
  .content-wrap,
  .footer-inner {
    width: min(var(--max), calc(100% - 22px));
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .content-wrap {
    padding-top: 24px;
  }

  .hero {
    padding-top: 26px;
  }

  .home-page .hero {
    padding-bottom: 8px;
  }

  .home-page main > .content-wrap {
    padding-top: 12px;
  }

  .page-hero,
  .section {
    padding: 22px 16px;
  }

  .home-page .section {
    margin: 16px 0;
    padding: 20px 15px;
  }

  h1 {
    font-size: 2.15rem;
  }

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

  .dashboard-card {
    padding: 19px 15px;
  }

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

  .compact-list {
    grid-template-columns: 1fr;
  }

  .dashboard-tile {
    min-height: 0;
  }

  .snapshot-item {
    flex-direction: column;
  }

  .related-guide-links {
    grid-template-columns: 1fr;
  }

  .current-code-card {
    padding: 18px 14px;
  }

  .current-code-details {
    grid-template-columns: 1fr;
  }
}
