:root {
  color-scheme: light;
  --emerald-950: #052f28;
  --emerald-900: #073f34;
  --emerald-800: #075745;
  --emerald-700: #0b6d55;
  --emerald-600: #168166;
  --emerald-200: #b9dfd1;
  --emerald-100: #dff2ea;
  --emerald-50: #eef8f4;
  --gold: #caa654;
  --gold-text: #80631f;
  --gold-soft: #f0dfb7;
  --blue-950: #16344f;
  --blue-900: #1b4668;
  --blue-700: #2e6f99;
  --blue-200: #bcd8ea;
  --blue-100: #dcecf6;
  --paper: #fffdf8;
  --paper-2: #f7f3e9;
  --white: #ffffff;
  --ink: #17352e;
  --muted: #61756e;
  --border: #d7e3de;
  --danger: #a33d3d;
  --shadow: 0 20px 55px rgba(5, 63, 52, 0.11);
  --soft-shadow: 0 10px 30px rgba(5, 63, 52, 0.07);
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Aptos, Arial, sans-serif;
  line-height: 1.55;
  margin: 0;
  min-width: 320px;
}
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip-link {
  background: var(--gold);
  border-radius: 0 0 8px 8px;
  color: var(--emerald-950);
  font-weight: 800;
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -4rem;
  z-index: 100;
}
.skip-link:focus { top: 0; }

.site-header {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(7, 87, 69, 0.14);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  gap: 0.7rem;
  padding: 0.5rem 0;
  text-align: left;
}
.brand > img { height: 62px; mix-blend-mode: multiply; object-fit: contain; width: 62px; }
.hub-label { display: grid; line-height: 1; }
.hub-label strong { color: var(--blue-900); font-size: 0.88rem; letter-spacing: 0.13em; }
.hub-label small { color: var(--muted); font-size: 0.75rem; margin-top: 0.35rem; }
.primary-nav {
  align-items: stretch;
  align-self: stretch;
  display: flex;
  gap: 0.2rem;
}
.nav-tab {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem 0;
}
.nav-tab:hover { color: var(--emerald-800); }
.nav-tab.active {
  border-bottom-color: var(--gold);
  color: var(--emerald-900);
}
.consulting-home {
  align-items: center;
  display: flex;
  margin-left: 0.35rem;
  text-decoration: none;
  white-space: nowrap;
}
.consulting-home::before { content: "↗"; margin-right: 0.35rem; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.page {
  min-height: calc(100vh - 72px);
  padding: 4.6rem max(22px, calc((100vw - var(--max)) / 2)) 6rem;
}
.page-heading { margin-bottom: 2.25rem; max-width: 830px; }
.page-heading h1, .home-intro h1 {
  color: var(--emerald-950);
  font-size: clamp(2.5rem, 5.3vw, 5.1rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0;
}
.page-heading > p:last-child, .lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.15rem);
  margin: 1.1rem 0 0;
  max-width: 760px;
}
.eyebrow {
  color: var(--emerald-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: break-word; }
h2, h3 { color: var(--emerald-950); letter-spacing: -0.025em; }

/* Home */
#home {
  background:
    radial-gradient(circle at 11% 0%, rgba(185, 223, 209, 0.55), transparent 27rem),
    linear-gradient(180deg, #fffdf8 0%, #f7fbf8 68%, #fffdf8 100%);
}
.home-intro {
  align-items: end;
  display: grid;
  gap: clamp(2rem, 5vw, 6rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  margin-bottom: 3.5rem;
}
.home-intro h1 { max-width: 840px; }
.home-intro .lead { max-width: 620px; }
.hub-photo-banner {
  aspect-ratio: 4.6 / 1;
  border: 1px solid rgba(27,70,104,.18);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  margin: -1rem 0 1.2rem;
  min-height: 210px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.hub-photo-banner::after {
  background: linear-gradient(90deg, rgba(3,44,37,.86), rgba(22,52,79,.22) 70%, transparent);
  content: "";
  inset: 0;
  position: absolute;
}
.hub-photo-banner img { height: 100%; object-fit: cover; object-position: center 44%; width: 100%; }
.hub-photo-banner figcaption { bottom: 1.35rem; color: white; display: grid; left: 1.5rem; max-width: 510px; position: absolute; right: 1.5rem; z-index: 1; }
.hub-photo-banner figcaption span { color: var(--gold-soft); font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hub-photo-banner figcaption strong { font-size: clamp(1.15rem, 2.4vw, 1.8rem); line-height: 1.08; }
.formula-card {
  background: var(--emerald-950);
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: white;
  overflow: hidden;
  padding: 1.65rem;
  position: relative;
}
.formula-card::after {
  background: radial-gradient(circle, rgba(22, 129, 102, 0.55), transparent 66%);
  content: "";
  height: 220px;
  pointer-events: none;
  position: absolute;
  right: -70px;
  top: -100px;
  width: 220px;
}
.formula-card > * { position: relative; z-index: 1; }
.formula-card > span { color: var(--emerald-200); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.formula-card > strong { display: block; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.05em; margin-top: 0.45rem; }
.formula-card p { color: var(--emerald-200); margin: 0.15rem 0 1.2rem; }
.inline-link, .text-link {
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}
.inline-link { color: var(--gold-soft); }
.inline-link span { display: inline-block; margin-left: 0.35rem; transition: transform 160ms ease; }
.inline-link:hover span { transform: translateX(4px); }
.text-link { color: var(--emerald-700); }
.home-grid {
  align-items: stretch;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}
.home-tools, .pathway-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.section-title-row {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.section-title-row h2, .pathway-panel h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.05;
  margin: 0;
}
.quick-tool-grid { display: grid; gap: 0.8rem; grid-template-columns: 1fr 1fr; }
.quick-tool {
  align-items: center;
  background: var(--emerald-50);
  border: 1px solid #d9e9e2;
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto 1fr auto;
  padding: 1rem;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.quick-tool:hover {
  border-color: var(--emerald-600);
  box-shadow: 0 10px 22px rgba(5, 63, 52, 0.08);
  transform: translateY(-2px);
}
.quick-tool.featured { background: var(--emerald-900); border-color: var(--emerald-900); color: white; }
.quick-tool.featured strong { color: white; }
.quick-tool.featured small { color: var(--emerald-200); }
.tool-icon {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(7, 87, 69, 0.14);
  border-radius: 11px;
  color: var(--emerald-800);
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0 0.4rem;
}
.quick-tool:nth-child(2) .tool-icon { background: var(--blue-100); color: var(--blue-900); }
.quick-tool:nth-child(3) .tool-icon { background: var(--gold-soft); color: #6a5425; }
.quick-tool strong { color: var(--emerald-950); display: block; font-size: 0.96rem; }
.quick-tool small { color: var(--muted); display: block; font-size: 0.8rem; line-height: 1.35; margin-top: 0.14rem; }
.quick-tool b { font-size: 1.2rem; }
.pathway-panel { background: var(--paper-2); }
.pathway-links { display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.pathway-links button {
  align-items: center;
  background: white;
  border: 1px solid #e0dccf;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 0.8rem;
  padding: 0.9rem;
  text-align: left;
}
.pathway-links button:hover { border-color: var(--gold); }
.pathway-links span { color: var(--gold-text); font-size: 0.75rem; letter-spacing: 0.08em; }
.trust-strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.4rem;
  overflow: hidden;
}
.trust-strip > div {
  align-items: start;
  background: var(--emerald-950);
  color: white;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto 1fr;
  padding: 1.4rem;
}
.trust-strip > div:first-child { border-radius: 18px 0 0 18px; }
.trust-strip > div:last-child { border-radius: 0 18px 18px 0; }
.trust-strip span {
  align-items: center;
  border: 1px solid rgba(202, 166, 84, 0.75);
  border-radius: 50%;
  color: var(--gold-soft);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.trust-strip p { color: var(--emerald-200); font-size: 0.85rem; margin: 0; }
.trust-strip strong { color: white; display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.education-disclaimer {
  background: #fff8e8;
  border: 1px solid #e2c982;
  border-left: 5px solid var(--gold-text);
  border-radius: 16px;
  margin-top: 1.4rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.education-disclaimer .eyebrow { color: var(--gold-text); }
.education-disclaimer h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); margin: 0 0 0.65rem; }
.education-disclaimer > p:last-child { color: #514a3b; font-size: 0.9rem; margin: 0; max-width: 1050px; }

/* Tool navigation */
.tool-tabs {
  background: var(--emerald-50);
  border: 1px solid var(--border);
  border-radius: 15px;
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  padding: 0.35rem;
}
.tool-tab {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.75rem 1rem;
}
.tool-tab.active { background: var(--white); box-shadow: 0 5px 14px rgba(5, 63, 52, 0.1); color: var(--emerald-900); }
.tool-panel {
  border-top: 1px solid var(--border);
  padding-top: 2.4rem;
}
.tool-heading {
  align-items: end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.tool-heading h2 { font-size: clamp(1.9rem, 4vw, 3.25rem); line-height: 1.04; margin: 0; }
.formula-badge {
  background: var(--emerald-900);
  border-radius: 999px;
  color: white;
  flex: 0 0 auto;
  font-weight: 800;
  padding: 0.8rem 1.1rem;
}
.calculator-layout {
  align-items: start;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.78fr);
}
.form-card, .result-card, .mini-tool, .compact-form {
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}
.form-card {
  background: white;
  border: 1px solid var(--border);
  padding: clamp(1.25rem, 3vw, 2rem);
}
fieldset { border: 0; margin: 0; padding: 0; }
fieldset + fieldset { border-top: 1px solid var(--border); margin-top: 1.7rem; padding-top: 1.7rem; }
legend {
  align-items: center;
  color: var(--emerald-950);
  display: flex;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.15rem;
}
legend > span, .mini-number {
  align-items: center;
  background: var(--emerald-100);
  border-radius: 50%;
  color: var(--emerald-800);
  display: inline-flex;
  font-size: 0.76rem;
  height: 30px;
  justify-content: center;
  margin-right: 0.65rem;
  width: 30px;
}
.field-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.wide-field { grid-column: 1 / -1; }
label {
  color: var(--ink);
  display: grid;
  font-size: 0.875rem;
  font-weight: 800;
  gap: 0.42rem;
}
label small { color: var(--muted); font-size: 0.8rem; font-weight: 400; line-height: 1.4; }
input:not([type="radio"]):not([type="checkbox"]), select {
  background: var(--paper);
  border: 1px solid #b9cac3;
  border-radius: 11px;
  color: var(--ink);
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.unit-input {
  align-items: center;
  background: var(--paper);
  border: 1px solid #b9cac3;
  border-radius: 11px;
  display: flex;
  min-height: 48px;
  overflow: hidden;
}
.unit-input:focus-within { border-color: var(--emerald-700); box-shadow: 0 0 0 4px rgba(11, 109, 85, 0.12); }
.unit-input input:not([type="radio"]):not([type="checkbox"]) {
  background: transparent;
  border: 0;
  border-radius: 0;
  min-width: 0;
  outline: 0;
}
.unit-input b { color: var(--muted); font-size: 0.8rem; padding: 0 0.75rem; white-space: nowrap; }
.unit-input.prefix input { padding-left: 0; }
input.invalid, select.invalid { background: #fff8f8 !important; border-color: var(--danger) !important; }
.unit-input:has(input.invalid) { background: #fff8f8; border-color: var(--danger); }
.button-row { align-items: center; display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.45rem; }
.primary-button, .secondary-button, .text-button {
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 0.68rem 1rem;
}
.primary-button { background: var(--emerald-800); border: 1px solid var(--emerald-800); color: white; }
.primary-button:hover { background: var(--emerald-950); border-color: var(--emerald-950); }
.secondary-button { background: var(--emerald-50); border: 1px solid var(--emerald-200); color: var(--emerald-900); }
.secondary-button:hover { border-color: var(--emerald-700); }
.text-button { background: transparent; border: 1px solid transparent; color: var(--emerald-700); }
.form-error { color: var(--danger); font-size: 0.875rem; font-weight: 800; min-height: 1.3em; margin: 0.8rem 0 0; }
.helper-box {
  background: var(--paper-2);
  border: 1px solid #e4ddcc;
  border-radius: 13px;
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
}
.helper-box summary { color: var(--emerald-900); cursor: pointer; font-size: 0.85rem; font-weight: 800; }
.helper-form { display: grid; gap: 0.9rem; grid-template-columns: 1fr; margin-top: 1rem; }
.helper-form > p { color: var(--muted); font-size: 0.875rem; margin: 0; }
.nursery-specimen-list { display: grid; gap: 0.8rem; }
.nursery-specimen {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr 1fr;
  padding: 1rem;
}
.nursery-specimen + .nursery-specimen { margin: 0; }
.nursery-specimen legend { font-size: 0.9rem; margin-bottom: 0.6rem; }
.helper-form button, .helper-form output { grid-column: 1 / -1; }
.helper-form output { color: var(--emerald-800); font-size: 0.875rem; font-weight: 800; }
.result-card { background: var(--emerald-50); border: 1px solid var(--border); padding: clamp(1.4rem, 3vw, 2.1rem); }
.result-card.dark {
  background: var(--emerald-950);
  border-color: var(--emerald-950);
  box-shadow: var(--shadow);
  color: white;
  position: sticky;
  top: 94px;
}
.result-kicker { color: var(--emerald-700); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; margin: 0; text-transform: uppercase; }
.dark .result-kicker { color: var(--emerald-200); }
.hero-result { display: block; font-size: clamp(2.45rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.055em; line-height: 1; margin: 0.65rem 0; }
.result-subtitle { color: var(--emerald-200); font-size: 0.8rem; margin: 0 0 1.3rem; }
.result-steps { list-style: none; margin: 0; padding: 0; }
.result-steps li {
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.7rem 0;
}
.result-steps li span { font-size: 0.82rem; }
.result-steps small { color: #a9cfc1; display: block; font-size: 0.75rem; margin-top: 0.08rem; }
.result-steps output { font-size: 0.84rem; font-weight: 800; text-align: right; white-space: nowrap; }
.learning-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(3, 1fr); margin-top: 1.4rem; }
.learning-grid article {
  align-items: start;
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto 1fr;
  padding: 1rem;
}
.learning-grid article > span {
  align-items: center;
  background: var(--emerald-800);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 0.4rem;
}
.learning-grid h3 { font-size: 0.9rem; margin: 0 0 0.2rem; }
.learning-grid p { color: var(--muted); font-size: 0.8125rem; margin: 0; }
.method-note {
  background: var(--paper-2);
  border-left: 4px solid var(--gold);
  border-radius: 4px 13px 13px 4px;
  display: grid;
  gap: 0.2rem;
  grid-template-columns: auto 1fr;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
}
.method-note strong { color: var(--emerald-900); }
.method-note p { color: var(--muted); font-size: 0.83rem; margin: 0; }
.method-note a { color: var(--emerald-700); font-weight: 800; }
.density-note { grid-template-columns: 190px 1fr; }
input[readonly] { background: var(--emerald-50); color: var(--emerald-900); }
.calculator-disclaimer {
  background: #fff8e8;
  border-left: 4px solid var(--gold-text);
  border-radius: 4px 10px 10px 4px;
  color: #514a3b;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
}
.calculator-disclaimer.compact { font-size: 0.8125rem; margin-top: 0.25rem; }

/* Zones */
.notice {
  border-radius: 14px;
  display: grid;
  gap: 0.3rem;
  grid-template-columns: auto 1fr;
  margin-bottom: 1.4rem;
  padding: 1rem 1.2rem;
}
.notice.important { background: #fff8e8; border: 1px solid #ead39d; }
.notice strong { color: var(--emerald-950); }
.notice p { color: #6d6146; font-size: 0.84rem; margin: 0; }
.segmented-control {
  background: var(--emerald-50);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 1fr 1fr;
  padding: 0.35rem;
}
.segmented-control label {
  align-items: center;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.65rem;
}
.segmented-control input { accent-color: var(--emerald-700); }
.top-gap { margin-top: 1rem; }
.inline-output {
  background: var(--paper-2);
  border-radius: 10px;
  color: var(--emerald-800);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 0.7rem;
  padding: 0.7rem;
}
.zone-result { display: grid; gap: 1.5rem; grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.3fr); }
.zone-graphic { align-items: center; display: flex; justify-content: center; min-height: 230px; }
.nrz-ring {
  align-items: center;
  background: rgba(11, 109, 85, 0.08);
  border: 3px solid var(--emerald-600);
  border-radius: 50%;
  display: flex;
  height: 210px;
  justify-content: center;
  width: 210px;
}
.srz-ring {
  align-items: center;
  background: var(--paper);
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex;
  height: 94px;
  justify-content: center;
  width: 94px;
}
.srz-ring span {
  background: var(--emerald-950);
  border-radius: 999px;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.45rem 0.65rem;
}
.zone-values { display: grid; gap: 0.7rem; }
.zone-values > div { background: white; border: 1px solid var(--border); border-radius: 12px; display: grid; padding: 0.75rem; }
.zone-values span { color: var(--muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.zone-values output { color: var(--emerald-900); font-size: 1.4rem; font-weight: 800; }
.zone-values small { color: var(--muted); font-size: 0.75rem; }
.result-footnote { color: var(--muted); font-size: 0.76rem; grid-column: 1 / -1; margin: 0; }
.subtool {
  align-items: start;
  background: var(--emerald-950);
  border-radius: 22px;
  color: white;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  margin-top: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2rem);
}
.subtool h3 { color: white; font-size: 1.8rem; line-height: 1.08; margin: 0; }
.subtool-copy > p:last-child { color: var(--emerald-200); font-size: 0.85rem; }
.subtool .eyebrow { color: var(--gold-soft); }
.compact-form { background: white; color: var(--ink); display: grid; gap: 0.8rem; grid-template-columns: 1fr 1fr; padding: 1rem; }
.compact-form .check-row, .compact-form button, .compact-form .form-error, .compact-form output, .compact-form .calculator-disclaimer { grid-column: 1 / -1; }
.check-row { align-items: center; display: flex; gap: 0.55rem; }
.check-row input { accent-color: var(--emerald-700); height: 18px; width: 18px; }
.classification-output { background: var(--emerald-50); border-left: 4px solid var(--emerald-600); border-radius: 6px; font-size: 0.85rem; font-weight: 800; padding: 0.85rem; }
.classification-output.moderate { background: #fff7df; border-color: var(--gold); }
.classification-output.major { background: #fff0f0; border-color: var(--danger); color: #7c3030; }

/* Mini tools and soil */
.mini-tool-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.mini-tool {
  background: white;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}
.mini-tool h3 { font-size: 1.25rem; margin: 0.8rem 0 0.15rem; }
.mini-tool > p:not(.form-error):not(.calculator-disclaimer) { color: var(--muted); font-size: 0.875rem; margin: 0 0 1rem; min-height: 2.5em; }
.mini-tool label + label { margin-top: 0.75rem; }
.mini-tool .primary-button { margin-top: 1rem; }
.mini-result { background: var(--emerald-50); border-radius: 11px; color: var(--emerald-900); display: block; font-size: 1.2rem; font-weight: 800; margin-top: auto; padding: 0.85rem; }
.soil-layout { grid-template-columns: minmax(0, 0.7fr) minmax(350px, 1.3fr); }
.soil-layout .form-card { display: grid; gap: 1rem; }
.ph-card { background: var(--emerald-950); color: white; }
.ph-card .result-kicker { color: var(--emerald-200); }
.ph-card > p:last-child { color: var(--emerald-200); font-size: 0.83rem; margin-bottom: 0; }
.ph-scale {
  align-items: center;
  background: linear-gradient(90deg, #d65b52 0%, #e7bd52 37%, #5baf78 50%, #65a6c8 68%, #7d63b6 100%);
  border-radius: 999px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  height: 30px;
  margin-bottom: 1.5rem;
  padding: 0 0.65rem;
  position: relative;
}
.ph-scale span { color: white; font-size: 0.75rem; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.ph-scale b {
  background: white;
  border: 3px solid var(--emerald-950);
  border-radius: 50%;
  bottom: -5px;
  height: 40px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  transition: left 260ms ease;
  width: 16px;
}
.soil-notes { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-top: 1.2rem; }
.soil-notes article { background: var(--paper-2); border-radius: 15px; padding: 1.1rem; }
.soil-notes h3 { margin: 0 0 0.3rem; }
.soil-notes p { color: var(--muted); font-size: 0.875rem; margin: 0; }

/* Pathways */
.pathway-card-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.study-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  padding: clamp(1.35rem, 3vw, 2rem);
  scroll-margin-top: 100px;
}
.study-card.highlight { animation: highlight-card 1.5s ease; }
@keyframes highlight-card { 0%, 100% { box-shadow: var(--soft-shadow); } 35% { box-shadow: 0 0 0 5px rgba(202,166,84,.35), var(--shadow); } }
.study-code { color: var(--gold-text); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; }
.study-card h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0.15rem 0 0.6rem; }
.study-card > p { color: var(--muted); }
.study-card h3 { font-size: 0.9rem; margin: 1.1rem 0 0.4rem; text-transform: uppercase; letter-spacing: 0.08em; }
.study-card ul { color: var(--muted); font-size: 0.875rem; margin: 0; padding-left: 1.2rem; }
.study-card li + li { margin-top: 0.26rem; }
.course-provider-note {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  color: var(--emerald-950);
  margin: -0.8rem 0 1.35rem;
  max-width: 900px;
  padding: 0.8rem 1rem;
}
.card-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.course-signup { align-items: center; display: inline-flex; gap: 0.35rem; justify-content: center; text-decoration: none; }
.safety-card { border-top: 5px solid var(--blue-700); }
.safety-callout { background: var(--blue-100); border-radius: 12px; display: grid; margin-top: 1rem; padding: 0.85rem; }
.safety-callout strong { color: var(--blue-950); font-size: 0.85rem; }
.safety-callout span { color: var(--blue-900); font-size: 0.76rem; }

/* Resources */
.resource-heading { align-items: end; display: flex; justify-content: space-between; max-width: none; }
.resource-heading > div:first-child { max-width: 800px; }
.resource-count { align-items: end; display: flex; flex-direction: column; }
.resource-count strong { color: var(--emerald-900); font-size: 3rem; letter-spacing: -0.06em; line-height: 1; }
.resource-count span { color: var(--muted); font-size: 0.75rem; }
.resource-quick-nav {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  margin: -0.3rem 0 1rem;
  min-width: 0;
}
.resource-quick-nav > span {
  color: var(--gold-text);
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.resource-quick-nav > div {
  display: flex;
  gap: 0.45rem;
  min-width: 0;
  overflow-x: auto;
  padding: 0.25rem 0 0.4rem;
  scrollbar-width: thin;
}
.resource-quick-nav button {
  background: white;
  border: 1px solid var(--emerald-200);
  border-radius: 999px;
  color: var(--emerald-900);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
}
.resource-quick-nav button:hover { background: var(--emerald-50); border-color: var(--emerald-700); }
.resource-quick-nav button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.resource-controls {
  align-items: end;
  background: var(--emerald-50);
  border: 1px solid var(--border);
  border-radius: 17px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(230px, 1.4fr) 1fr 1fr auto;
  margin-bottom: 1.3rem;
  padding: 1rem;
}
.resource-controls label > span { font-size: 0.75rem; letter-spacing: 0.04em; }
.resource-view-bar {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin: -0.1rem 0 0.9rem;
}
.resource-view-bar > span { color: var(--muted); font-size: 0.75rem; font-weight: 800; }
.resource-view-toggle {
  background: var(--emerald-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  padding: 3px;
}
.resource-view-toggle button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--emerald-900);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 38px;
  padding: 0.55rem 0.95rem;
}
.resource-view-toggle button.is-active { background: var(--emerald-900); color: white; }
.resource-view-toggle button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.resource-groups { display: grid; gap: 1rem; }
.resource-accordion {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  min-width: 0;
  overflow: clip;
  scroll-margin-top: 92px;
}
.resource-accordion.is-open { box-shadow: var(--soft-shadow); }
.resource-accordion-heading { margin: 0; }
.resource-section-toggle {
  align-items: center;
  background: var(--emerald-900);
  border: 0;
  border-bottom: 3px solid var(--gold);
  color: white;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 88px;
  padding: 1rem 1.25rem;
  text-align: left;
  width: 100%;
}
.resource-section-toggle:hover { background: var(--emerald-800); }
.resource-section-toggle:focus-visible { outline: 4px solid var(--blue-200); outline-offset: -5px; }
.resource-section-label { display: grid; gap: 0.25rem; min-width: 0; }
.resource-section-title { align-items: center; display: flex; flex-wrap: wrap; gap: 0.65rem; }
.resource-section-title strong { color: white; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.15; }
.resource-section-title small {
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  color: var(--emerald-100);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
}
.resource-section-subtitle { color: var(--emerald-100); font-size: 0.9rem; font-weight: 500; line-height: 1.4; max-width: 850px; }
.resource-section-icon {
  align-items: center;
  background: var(--gold);
  border-radius: 999px;
  color: var(--emerald-950);
  display: inline-flex;
  flex: 0 0 auto;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.resource-section-icon::before { content: "•"; font-size: 1.2rem; }
.resource-section-icon[data-icon="leaf"]::before { content: "⌁"; transform: rotate(-35deg); }
.resource-section-icon[data-icon="calculator"]::before { content: "="; }
.resource-section-icon[data-icon="map"]::before { content: "⌖"; }
.resource-section-icon[data-icon="soil"]::before { content: "≋"; }
.resource-section-icon[data-icon="shield"]::before { content: "◇"; }
.resource-section-icon[data-icon="rope"]::before { content: "∞"; }
.resource-section-icon[data-icon="book"]::before { content: "▤"; }
.resource-section-icon[data-icon="tree"]::before { content: "♠"; transform: rotate(180deg); }
.resource-section-icon[data-icon="power"]::before { content: "ϟ"; }
.resource-section-icon[data-icon="clipboard"]::before { content: "✓"; }
.resource-section-icon[data-icon="graduation"]::before { content: "◆"; }
.resource-section-icon[data-icon="equipment"]::before { content: "⚙"; }
.resource-section-icon[data-icon="phone"]::before { content: "☎"; }
.resource-section-icon[data-icon="library"]::before { content: "＋"; }
.resource-chevron {
  align-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.4rem;
  height: 38px;
  justify-content: center;
  transition: transform 160ms ease;
  width: 38px;
}
.resource-section-toggle[aria-expanded="true"] .resource-chevron { transform: rotate(45deg); }
.resource-accordion-panel { padding: 1.25rem; }
.resource-section-note {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  color: var(--emerald-950);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
}
.resource-subgroup + .resource-subgroup { border-top: 1px solid var(--border); margin-top: 1.4rem; padding-top: 1.4rem; }
.resource-subgroup > h3 {
  color: var(--emerald-800);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.8rem;
}
.resource-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resource-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  min-height: 215px;
  padding: 1.1rem;
}
.resource-card:hover { border-color: var(--emerald-200); box-shadow: 0 8px 22px rgba(5, 63, 52, .07); }
.resource-card-tool { background: linear-gradient(145deg, white, var(--emerald-50)); border-top: 4px solid var(--gold); }
.resource-card h4 { color: var(--emerald-950); font-size: 1.05rem; line-height: 1.25; margin: 0 0 0.45rem; }
.resource-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; margin: 0; }
.resource-contact { color: var(--gold-text); font-size: 1.1rem; margin-top: 0.8rem; }
.resource-card-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 0.45rem 0.8rem; margin-top: auto; padding-top: 1rem; }
.resource-action {
  align-items: center;
  background: var(--emerald-800);
  border: 1px solid var(--emerald-800);
  border-radius: 9px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}
.resource-action:hover { background: var(--emerald-950); border-color: var(--emerald-950); text-decoration: none; }
.resource-action:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.resource-action-secondary { background: transparent; border-color: var(--emerald-200); color: var(--emerald-800); }
.resource-action-secondary:hover { background: var(--emerald-50); border-color: var(--emerald-700); color: var(--emerald-950); }
.resource-additional { margin-top: 0.7rem; }
.resource-additional .resource-section-toggle { background: var(--emerald-950); }
.resource-card-compact { min-height: 0; }
.resource-card-compact p { font-size: 0.9rem; }
.resource-groups[data-view="list"] .resource-grid { gap: 0.5rem; grid-template-columns: 1fr; }
.resource-groups[data-view="list"] .resource-card {
  align-items: center;
  border-radius: 11px;
  display: grid;
  gap: 0.65rem 1rem;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.4fr) auto;
  min-height: 0;
  padding: 0.75rem 0.9rem;
}
.resource-groups[data-view="list"] .resource-card h4,
.resource-groups[data-view="list"] .resource-card p { margin: 0; }
.resource-groups[data-view="list"] .resource-card-actions { margin: 0; padding: 0; white-space: nowrap; }
.resource-groups[data-view="list"] .resource-contact { margin: 0; }
.empty-state { border: 1px dashed var(--border); border-radius: 16px; padding: 3rem; text-align: center; }
.empty-state p { color: var(--muted); margin: 0.3rem 0 0; }
.resource-disclaimer { color: var(--muted); font-size: 0.9rem; margin-top: 1.2rem; }

.resource-guide-dialog {
  background: transparent;
  border: 0;
  max-height: 92vh;
  max-width: min(680px, calc(100vw - 32px));
  padding: 0;
  width: 100%;
}
.resource-guide-dialog::backdrop { background: rgba(3, 39, 31, .72); backdrop-filter: blur(3px); }
.resource-guide-shell {
  background: var(--paper);
  border: 1px solid var(--emerald-200);
  border-radius: 22px;
  box-shadow: var(--shadow);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  position: relative;
}
.guide-close {
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--emerald-900);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 42px;
  padding: 0.45rem 0.85rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
}
.resource-guide-shell h2 { margin: 0.2rem 4.5rem 0.5rem 0; }
.guide-description { color: var(--muted); margin: 0; }
.guide-progress { color: var(--gold-text); font-size: 0.78rem; font-weight: 800; margin-top: 1.2rem; text-transform: uppercase; }
.guide-step {
  background: white;
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: 0 14px 14px 0;
  margin-top: 0.5rem;
  min-height: 150px;
  padding: 1.1rem;
}
.guide-step strong { color: var(--emerald-800); }
.guide-step p { font-size: 1.05rem; margin: 0.4rem 0 0; }
.guide-controls, .guide-links { align-items: center; display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.guide-links { border-top: 1px solid var(--border); padding-top: 1rem; }
.guide-links a { text-decoration: none; }
.guide-save {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  border-radius: 14px;
  margin-top: 1rem;
  padding: 1rem;
}
.guide-save strong { color: var(--emerald-800); }
.guide-save ul { margin: 0.6rem 0 0; padding-left: 1.25rem; }
.guide-save li + li { margin-top: 0.35rem; }
.guide-notice { color: var(--muted); font-size: 0.82rem; margin: 0.85rem 0 0; }
.resource-guide-dialog button:focus-visible,
.resource-guide-dialog a:focus-visible { outline: 3px solid var(--blue-200); outline-offset: 2px; }

/* Glossary */
.glossary-heading { align-items: end; display: flex; justify-content: space-between; max-width: none; }
.glossary-heading > div:first-child { max-width: 760px; }
.glossary-count { align-items: end; display: flex; flex-direction: column; }
.glossary-count strong { color: var(--emerald-900); font-size: 3rem; letter-spacing: -0.06em; line-height: 1; }
.glossary-count span { color: var(--muted); font-size: 0.72rem; }
.glossary-controls {
  align-items: end;
  background: var(--emerald-50);
  border: 1px solid var(--border);
  border-radius: 17px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(260px, 1.5fr) minmax(220px, 1fr) auto;
  margin-bottom: 1.3rem;
  padding: 1rem;
}
.glossary-controls label > span { font-size: 0.72rem; letter-spacing: 0.04em; }
.glossary-list { align-items: start; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.glossary-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: clip;
}
.glossary-item[open] { border-color: var(--emerald-300); box-shadow: 0 10px 25px rgba(7, 63, 52, 0.08); }
.glossary-item summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  min-height: 78px;
  padding: 1rem 1.05rem;
}
.glossary-item summary::-webkit-details-marker { display: none; }
.glossary-item summary:focus-visible { outline: 3px solid var(--blue-300); outline-offset: -3px; }
.glossary-term { display: flex; flex-direction: column; gap: 0.18rem; }
.glossary-term strong { color: var(--emerald-950); font-size: 1.05rem; line-height: 1.25; }
.glossary-term small { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.glossary-toggle {
  align-items: center;
  background: var(--emerald-50);
  border-radius: 999px;
  color: var(--emerald-800);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  transition: transform 160ms ease;
  width: 34px;
}
.glossary-item[open] .glossary-toggle { transform: rotate(45deg); }
.glossary-definition { border-top: 1px solid var(--border); padding: 1rem 1.05rem 1.1rem; }
.glossary-definition p { color: var(--text); font-size: 1rem; line-height: 1.65; margin: 0; }
.glossary-definition .glossary-report-use { background: var(--emerald-50); border-radius: 10px; color: var(--emerald-950); margin-top: 0.85rem; padding: 0.8rem; }
.glossary-report-use strong { color: var(--gold-text); }
.glossary-note {
  align-items: center;
  background: var(--emerald-950);
  border-radius: 20px;
  color: white;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr auto;
  margin-top: 1.3rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
}
.glossary-note h2 { color: white; margin: 0 0 0.55rem; }
.glossary-note p:not(.eyebrow) { color: var(--emerald-200); margin: 0; max-width: 800px; }
.glossary-note .eyebrow { color: var(--gold-soft); }
.glossary-note .secondary-button { white-space: nowrap; }

/* Standards */
.standards-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(3, 1fr); }
.standard-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 1.2rem;
}
.standard-card .standard-code { color: var(--gold-text); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; }
.standard-card h2 { font-size: 1.05rem; line-height: 1.25; margin: 0.55rem 0; }
.standard-card p { color: var(--muted); font-size: 0.875rem; }
.standard-card a { color: var(--emerald-700); font-size: 0.8rem; font-weight: 800; }
.standards-help {
  background: var(--emerald-950);
  border-radius: 22px;
  color: white;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 0.6fr;
  margin-top: 1.3rem;
  padding: clamp(1.3rem, 3vw, 2rem);
}
.standards-help h2 { color: white; margin: 0 0 1rem; }
.standards-help .eyebrow { color: var(--gold-soft); }
.reference-example { background: rgba(255,255,255,.08); border-radius: 10px; margin-top: 0.6rem; padding: 0.8rem; }
.reference-example span { color: var(--emerald-200); font-size: 0.69rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.reference-example p { font-size: 0.82rem; margin: 0.3rem 0 0; }
.standards-help aside { border-left: 1px solid rgba(255,255,255,.17); padding-left: 2rem; }
.standards-help aside strong { color: var(--gold-soft); }
.standards-help aside p { color: var(--emerald-200); font-size: 0.82rem; }

footer {
  align-items: start;
  background: #03271f;
  color: #d9ece4;
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.5fr 1.2fr;
  padding: 2.6rem max(22px, calc((100vw - var(--max)) / 2));
}
.footer-brand { align-items: center; background: white; border-radius: 10px; display: flex; height: 82px; justify-content: center; overflow: hidden; width: 82px; }
.footer-brand img { height: 100%; object-fit: contain; width: 100%; }
footer p { color: #a8c9bd; font-size: 0.8rem; margin: 0; }

@media (max-width: 1020px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 0; padding-bottom: 0; padding-top: 0.45rem; }
  .primary-nav { align-self: stretch; overflow-x: auto; }
  .nav-tab { min-height: 46px; white-space: nowrap; }
  .page { min-height: calc(100vh - 108px); padding-top: 3.2rem; }
  .home-intro { align-items: stretch; grid-template-columns: 1fr; }
  .formula-card { max-width: 520px; }
  .home-grid, .calculator-layout, .soil-layout { grid-template-columns: 1fr; }
  .result-card.dark { position: static; }
  .learning-grid, .mini-tool-grid, .resource-grid, .standards-grid { grid-template-columns: 1fr 1fr; }
  .resource-controls { grid-template-columns: 1fr 1fr; }
  .resource-controls .search-field { grid-column: 1 / -1; }
  .resource-groups[data-view="list"] .resource-card { grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); }
  .resource-groups[data-view="list"] .resource-card-actions { grid-column: 1 / -1; justify-self: start; white-space: normal; }
  footer { grid-template-columns: 1fr 2fr; }
}

@media (max-width: 720px) {
  .page { padding-bottom: 4rem; padding-left: 16px; padding-right: 16px; }
  .brand > img { height: 54px; width: 54px; }
  .hub-label strong { font-size: 0.78rem; }
  .home-intro { gap: 1.5rem; }
  .hub-photo-banner { aspect-ratio: 1.7 / 1; margin-top: 0; }
  .home-intro h1, .page-heading h1 { font-size: clamp(2.35rem, 12vw, 3.75rem); }
  .home-grid { gap: 0.9rem; }
  .quick-tool-grid, .pathway-card-grid, .learning-grid, .mini-tool-grid, .resource-grid, .standards-grid, .soil-notes { grid-template-columns: 1fr; }
  .trust-strip { gap: 1px; grid-template-columns: 1fr; }
  .trust-strip > div:first-child { border-radius: 16px 16px 0 0; }
  .trust-strip > div:last-child { border-radius: 0 0 16px 16px; }
  .tool-tabs { display: flex; max-width: 100%; overflow-x: auto; }
  .tool-tab { flex: 0 0 auto; }
  .tool-heading, .resource-heading, .glossary-heading { align-items: start; flex-direction: column; }
  .formula-badge { align-self: flex-start; }
  .field-grid, .nursery-specimen { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
  .method-note, .notice, .density-note { grid-template-columns: 1fr; }
  .zone-result { grid-template-columns: 1fr; }
  .zone-graphic { min-height: 210px; }
  .subtool, .standards-help { grid-template-columns: 1fr; }
  .compact-form { grid-template-columns: 1fr; }
  .compact-form .check-row, .compact-form button, .compact-form .form-error, .compact-form output, .compact-form .calculator-disclaimer { grid-column: auto; }
  .resource-controls { grid-template-columns: 1fr; }
  .resource-controls .search-field { grid-column: auto; }
  .resource-quick-nav { align-items: stretch; flex-direction: column; }
  .resource-quick-nav > div { margin-right: -16px; padding-right: 16px; }
  .resource-view-bar { justify-content: space-between; }
  .resource-section-toggle { min-height: 82px; padding: 0.9rem 1rem; }
  .resource-section-icon { display: none; }
  .resource-accordion-panel { padding: 1rem; }
  .resource-groups[data-view="list"] .resource-card { align-items: start; gap: 0.45rem; grid-template-columns: 1fr; }
  .resource-groups[data-view="list"] .resource-card-actions { justify-self: start; white-space: normal; }
  .resource-count { align-items: start; }
  .resource-guide-dialog { max-width: calc(100vw - 20px); }
  .resource-guide-shell { border-radius: 17px; padding: 1.1rem; }
  .resource-guide-shell h2 { margin-right: 0; padding-top: 2.4rem; }
  .guide-controls > *, .guide-links > * { flex: 1 1 180px; justify-content: center; }
  .glossary-controls, .glossary-list, .glossary-note { grid-template-columns: 1fr; }
  .glossary-count { align-items: start; }
  .glossary-note .secondary-button { justify-self: start; }
  .standards-help aside { border-left: 0; border-top: 1px solid rgba(255,255,255,.17); padding-left: 0; padding-top: 1.2rem; }
  footer { grid-template-columns: 1fr; padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 430px) {
  .site-header { padding-left: 13px; padding-right: 13px; }
  .nav-tab { font-size: 0.8rem; padding-left: 0.7rem; padding-right: 0.7rem; }
  .home-tools, .pathway-panel, .form-card, .result-card { border-radius: 18px; }
  .section-title-row { align-items: start; flex-direction: column; }
  .quick-tool { padding: 0.85rem; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row button { width: 100%; }
  .card-actions { align-items: stretch; flex-direction: column; }
  .card-actions > * { width: 100%; }
  .resource-card-actions { align-items: stretch; flex-direction: column; }
  .resource-card-actions > * { width: 100%; }
  .nrz-ring { height: 190px; width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
