:root {
  --ink: #1f2623;
  --muted: #606a64;
  --paper: #f5f3ed;
  --white: #fffefa;
  --line: #d8d4c9;
  --rust: #9a4934;
  --rust-dark: #713426;
  --sage: #607b67;
  --sage-pale: #dce5dc;
  --sand: #d7bf91;
  --ochre: #b7803d;
  --max: 1180px;
  --shadow: 0 24px 64px rgba(35, 42, 38, 0.09);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.2, .75, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: rgba(154, 73, 52, .2); }

:focus-visible {
  outline: 3px solid rgba(154, 73, 52, .48);
  outline-offset: 4px;
}

a { color: inherit; }

button, input, select, textarea { font: inherit; }

img { max-width: 100%; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(31, 38, 35, 0.12);
  background: rgba(245, 243, 237, 0.94);
  backdrop-filter: blur(18px);
  transition: background-color .5s ease, box-shadow .5s ease, border-color .5s ease;
}

.site-header.is-scrolled {
  border-bottom-color: transparent;
  background: rgba(245, 243, 237, .985);
  box-shadow: 0 10px 34px rgba(31, 38, 35, .09);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 40px;
  flex: 0 0 auto;
  position: relative;
  background: url("logo-mark-192.png") center / contain no-repeat;
  transition: transform .7s var(--ease-out), filter .7s ease;
}

.brand-text { display: grid; line-height: 1.05; }
.brand-text small { margin-top: 0.28rem; color: var(--muted); font-size: 0.64rem; font-weight: 650; letter-spacing: 0.11em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 1.35rem; }
.main-nav a { position: relative; color: var(--muted); font-size: 0.88rem; font-weight: 650; text-decoration: none; white-space: nowrap; transition: color .38s ease; }
.main-nav a:not(.library-link)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.28rem; height: 1px; background: var(--rust); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease-out); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--rust); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav .library-link { padding: 0.62rem 0.9rem; border: 1px solid var(--ink); color: var(--ink); }

.menu-toggle {
  display: none;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -0.035em; }
h1 { max-width: 800px; margin-bottom: 1.25rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.7rem); font-weight: 500; }
h2 { margin-bottom: 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.7rem); font-weight: 500; }
h3 { font-size: 1.25rem; }

.lead { max-width: 720px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.32rem); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 79% 20%, rgba(215,191,145,.42), transparent 28%),
    radial-gradient(circle at 15% 88%, rgba(96,123,103,.18), transparent 30%),
    var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(ellipse at 84% 54%, transparent 0 24px, var(--rust) 25px 26px, transparent 27px 43px);
  mask-image: linear-gradient(to left, black, transparent 60%);
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; padding: 6.5rem 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-weight: 750;
  text-decoration: none;
  transition: transform .42s var(--ease-out), box-shadow .42s ease, background-color .42s ease, border-color .42s ease, color .42s ease;
}

.button:hover { transform: translateY(-1px); background: var(--rust-dark); border-color: var(--rust-dark); box-shadow: 0 8px 20px rgba(31, 38, 35, .13); }
.button:active { transform: translateY(0) scale(.985); box-shadow: none; }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--white); }
.button.small { min-height: 40px; padding: 0.5rem 0.8rem; font-size: 0.86rem; }

.framework-card {
  position: relative;
  padding: 1.6rem;
  border: 1px solid rgba(31,38,35,.24);
  background: rgba(255,254,250,.76);
  box-shadow: var(--shadow);
}

.framework-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(154,73,52,.18); pointer-events: none; }
.framework-card > * { position: relative; }
.framework-card h2 { margin-bottom: 1.2rem; font-family: inherit; font-size: 0.82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.framework-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.framework-list li { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; padding: 0.9rem 0; border-top: 1px solid var(--line); transition: padding-left .52s var(--ease-out), color .38s ease; }
.framework-list span { color: var(--rust); font-family: Georgia, serif; font-size: 0.84rem; }
.framework-list strong { font-size: 0.98rem; }
.working-label { display: inline-flex; margin-top: 1.2rem; padding: .4rem .55rem; background: var(--sage-pale); color: #405646; font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.audience-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.audience-strip .container { display: flex; align-items: center; gap: 2rem; padding: 1.1rem 0; }
.audience-strip strong { color: var(--rust); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.audience-strip span { color: var(--muted); font-size: .92rem; }

.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.section.alt { background: var(--white); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); gap: 3rem; align-items: end; margin-bottom: 2.6rem; }
.section-heading p { margin: 0 0 .3rem; color: var(--muted); }

.collection-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.collection-card { position: relative; min-height: 270px; grid-column: span 4; display: flex; flex-direction: column; padding: 1.55rem; border: 1px solid var(--line); background: var(--white); text-decoration: none; transition: transform .52s var(--ease-out), border-color .45s ease, box-shadow .52s ease; }
.collection-card:nth-child(1), .collection-card:nth-child(2) { grid-column: span 6; }
.collection-card:hover { transform: translateY(-3px); border-color: var(--rust); box-shadow: 0 14px 34px rgba(35, 42, 38, .08); }
.collection-card .number { color: var(--rust); font-family: Georgia, serif; font-size: .82rem; }
.collection-card h3 { margin: auto 0 .65rem; font-family: Georgia, serif; font-size: clamp(1.45rem, 3vw, 2.25rem); font-weight: 500; }
.collection-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.collection-card .arrow { position: absolute; top: 1.25rem; right: 1.3rem; font-size: 1.5rem; transition: transform .52s var(--ease-out), color .4s ease; }
.collection-card:hover .arrow { color: var(--rust); transform: translate(2px, -2px); }

.search-panel { padding: clamp(2rem, 5vw, 4rem); background: var(--ink); color: white; }
.search-panel h2 { max-width: 700px; }
.search-panel p { max-width: 650px; color: #cbd0cc; }
.search-form { display: grid; grid-template-columns: minmax(0,1fr) auto; max-width: 900px; margin-top: 2rem; }
.search-form input { min-height: 60px; padding: 0 1rem; border: 0; border-radius: 0; color: var(--ink); background: white; }
.search-form .button { min-height: 60px; background: var(--rust); border-color: var(--rust); }
.quick-results { display: grid; gap: .55rem; max-width: 900px; margin-top: .75rem; }
.quick-result { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.18); color: white; text-decoration: none; animation: result-in .72s var(--ease-out) both; transition: background-color .42s ease, border-color .42s ease, transform .48s var(--ease-out); }
.quick-result:hover { transform: translateX(2px); border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.07); }
.quick-result span { color: #bdc5bf; font-size: .84rem; }

.map-feature { display: grid; grid-template-columns: .72fr 1.28fr; min-height: 500px; border: 1px solid var(--line); background: var(--white); }
.map-copy { padding: clamp(2rem, 5vw, 4rem); }
.map-copy p { color: var(--muted); }
.map-stage { position: relative; overflow: hidden; min-height: 420px; background: #dce4e2; }
.map-stage::before { content: ""; position: absolute; inset: -10%; background: repeating-radial-gradient(ellipse at 54% 48%, transparent 0 25px, rgba(42,79,69,.26) 26px 27px, transparent 28px 44px); transform: rotate(-7deg); }
.map-stage::after { content: "NAMIBIA"; position: absolute; inset: 15% 20%; display: grid; place-items: center; clip-path: polygon(40% 0, 61% 4%, 67% 18%, 73% 24%, 70% 42%, 83% 62%, 76% 78%, 58% 100%, 41% 93%, 30% 72%, 21% 51%, 25% 31%); background: linear-gradient(145deg, rgba(154,73,52,.88), rgba(183,128,61,.75)); color: rgba(255,255,255,.9); font-size: .75rem; font-weight: 800; letter-spacing: .24em; box-shadow: var(--shadow); }
.map-note { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; max-width: 290px; padding: .75rem; background: rgba(255,254,250,.92); color: var(--muted); font-size: .78rem; }

.notice { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.15rem; border-left: 3px solid var(--ochre); background: #f3eadb; color: #5e4b33; }
.notice strong { white-space: nowrap; }

.page-hero { padding: 6rem 0 4rem; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--paper), #ebe6da); }
.page-hero h1 { max-width: 950px; font-size: clamp(2.8rem, 6vw, 5.6rem); }
.breadcrumbs { margin-bottom: 2rem; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { text-decoration: none; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start; }
.prose { max-width: 780px; }
.prose p, .prose li { color: var(--muted); }
.sidebar { position: sticky; top: 105px; padding: 1.25rem; border: 1px solid var(--line); background: var(--white); }
.sidebar h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.sidebar ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }

.soil-types { columns: 3; column-gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.soil-types li { break-inside: avoid; padding: .7rem .8rem; border-bottom: 1px solid var(--line); color: var(--muted); transition: padding-left .48s var(--ease-out), color .38s ease, background-color .38s ease; }

.resource-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 220px 190px; gap: .75rem; margin-bottom: 1.25rem; }
.resource-toolbar input, .resource-toolbar select { width: 100%; min-height: 50px; padding: 0 .9rem; border: 1px solid #bcb9af; border-radius: 0; background: var(--white); color: var(--ink); }
.result-count { margin: 0 0 1rem; color: var(--muted); font-size: .88rem; }
.resource-list { display: grid; gap: .8rem; }
.resource-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem 2rem; padding: 1.35rem; border: 1px solid var(--line); background: var(--white); transition: border-color .42s ease, box-shadow .5s ease, transform .5s var(--ease-out); }
.resource-card h3 { margin-bottom: .45rem; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.resource-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.resource-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.resource-meta span { padding: .25rem .42rem; background: #ece9e0; color: #59615d; font-size: .7rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.resource-action { align-self: center; }
.pending-action { color: var(--muted); font-size: .82rem; text-align: right; }
.external-mark { font-size: .85em; }
.empty-state { padding: 2rem; border: 1px dashed #aaa69b; color: var(--muted); text-align: center; }

.contact-form { display: grid; gap: 1.15rem; max-width: 760px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-field { display: grid; gap: .42rem; }
.form-field label { font-size: .84rem; font-weight: 750; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #bcb9af; border-radius: 0; background: var(--white); color: var(--ink); }
.form-field input, .form-field select { min-height: 50px; }
.form-field textarea { min-height: 180px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--rust); outline: 3px solid rgba(154,73,52,.16); outline-offset: 0; }
.form-hint { margin: -.35rem 0 0; color: var(--muted); font-size: .82rem; }
.contact-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-card { padding: 1.35rem; border: 1px solid var(--line); background: var(--white); }
.contact-card p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.form-status { max-width: 760px; padding: 1.1rem 1.2rem; border-left: 3px solid var(--sage); background: var(--sage-pale); }

.resource-hero { padding-bottom: 4.5rem; }
.resource-title-row { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.resource-title-row h1 { margin-bottom: 1rem; }
.status-card { display: grid; gap: .25rem; padding: 1.25rem; border: 1px solid var(--line); background: rgba(255,254,250,.72); box-shadow: var(--shadow); }
.status-card span, .status-card small { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.status-card strong { color: var(--rust); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.resource-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.resource-detail-main { min-width: 0; }
.detail-section { padding: clamp(3rem, 6vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }
.detail-section:last-child { border-bottom: 0; }
.detail-section > p:not(.eyebrow) { max-width: 760px; color: var(--muted); }
.detail-section h2 { max-width: 760px; font-size: clamp(2rem, 4vw, 3.25rem); }
.resource-preview { position: relative; min-height: 430px; margin-top: 2rem; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); background: #e7e0d2; }
.resource-preview::before { content: ""; position: absolute; inset: -8%; opacity: .25; background: repeating-radial-gradient(ellipse at 52% 48%, transparent 0 24px, var(--rust) 25px 26px, transparent 27px 44px); transform: rotate(-7deg); }
.resource-preview p { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; margin: 0; padding: .65rem .8rem; background: rgba(255,254,250,.92); color: var(--muted); font-size: .78rem; }
.preview-map-shape { position: relative; z-index: 1; width: min(46%, 290px); aspect-ratio: .78; display: grid; place-items: center; clip-path: polygon(18% 3%, 48% 6%, 53% 12%, 88% 10%, 100% 14%, 92% 21%, 58% 22%, 57% 46%, 48% 46%, 47% 96%, 35% 100%, 20% 86%, 14% 65%, 17% 48%, 8% 29%, 0 13%); background: linear-gradient(to bottom, var(--sand) 0 28%, #c66a35 28% 51%, var(--rust) 51% 74%, #26221f 74%); color: rgba(255,255,255,.88); font-size: .76rem; font-weight: 800; letter-spacing: .18em; }
.preview-legend { position: absolute; right: 1.1rem; top: 1.1rem; z-index: 2; display: grid; gap: .35rem; padding: .7rem; background: rgba(255,254,250,.9); }
.preview-legend span { width: 58px; height: 8px; background: var(--sand); }
.preview-legend span:nth-child(2) { background: #c66a35; }
.preview-legend span:nth-child(3) { background: var(--rust); }
.preview-legend span:nth-child(4) { background: var(--rust-dark); }
.preview-legend span:nth-child(5) { background: #26221f; }
.metadata-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2rem 0 0; border-top: 1px solid var(--line); }
.metadata-grid div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.metadata-grid div:nth-child(odd) { padding-right: 1.5rem; }
.metadata-grid div:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.metadata-grid dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.metadata-grid dd { margin: .25rem 0 0; font-size: .96rem; }
.citation-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; margin-top: 1.5rem; padding: 1.35rem; border: 1px solid var(--line); background: var(--white); }
.citation-box p { margin: 0; color: var(--muted); }
.copy-status { grid-column: 1 / -1; min-height: 1.2em; color: var(--rust); font-size: .8rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.5rem; }
.related-grid a { display: grid; gap: .45rem; min-height: 150px; padding: 1rem; border: 1px solid var(--line); background: var(--white); text-decoration: none; transition: transform .42s var(--ease-out), border-color .4s ease; }
.related-grid a:hover { transform: translateY(-2px); border-color: var(--rust); }
.related-grid span { color: var(--muted); font-size: .82rem; }
.resource-download-panel { position: sticky; top: 105px; padding: 1.4rem; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.resource-download-panel h2 { margin-bottom: .8rem; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.resource-download-panel > p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
.resource-download-panel .button { width: 100%; margin-top: .65rem; }
.disabled-button { cursor: not-allowed; opacity: .48; }
.disabled-button:hover { transform: none; background: var(--ink); border-color: var(--ink); box-shadow: none; }
.disabled-button.secondary:hover { background: transparent; color: var(--ink); }
.download-plan { margin: 1.5rem 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.download-plan h3 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.download-plan ul { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .86rem; }
.text-link { color: var(--rust); font-size: .88rem; font-weight: 750; text-underline-offset: .25rem; }

.site-footer { padding: 3.5rem 0; border-top: 1px solid var(--line); background: #e9e5da; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 3rem; }
.footer-grid h2 { font-family: inherit; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: .85rem; }
.footer-grid nav { display: grid; gap: .45rem; }
.footer-grid nav a { width: fit-content; text-decoration-color: transparent; text-underline-offset: .28rem; transition: color .2s ease, text-decoration-color .2s ease; }
.footer-grid nav a:hover { color: var(--rust); text-decoration-color: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #cac5b8; color: var(--muted); font-size: .75rem; }

.policy-content h2 { margin-top: 3rem; }
.policy-content .notice { margin-bottom: 3rem; }

/* Shared motion system. Content stays visible when JavaScript is unavailable. */
.motion-ready .reveal-item {
  opacity: 0;
  translate: 0 13px;
  transition: opacity 1.2s var(--ease-soft), translate 1.2s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal-item.reveal-from-left { translate: -14px 0; }
.motion-ready .reveal-item.reveal-from-right { translate: 14px 0; }
.motion-ready .reveal-item.is-visible { opacity: 1; translate: 0 0; }

@keyframes result-in {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

@media (hover: hover) {
  .brand:hover .brand-mark { transform: rotate(-2deg) scale(1.045); filter: drop-shadow(0 5px 8px rgba(31,38,35,.16)); }
  .framework-list li:hover { padding-left: .22rem; color: var(--rust-dark); }
  .resource-card:hover { transform: translateY(-1px); border-color: rgba(154,73,52,.52); box-shadow: 0 11px 28px rgba(35,42,38,.07); }
  .soil-types li:hover { padding-left: .9rem; color: var(--rust-dark); background: rgba(154,73,52,.055); }
}

@media (max-width: 1120px) and (min-width: 961px) {
  .header-inner { gap: 1rem; }
  .main-nav { gap: .82rem; }
  .main-nav a { font-size: .81rem; }
  .main-nav .library-link { padding-inline: .72rem; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 78px; padding: 1rem; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .55rem; }
  .hero { min-height: auto; }
  .hero-grid, .section-heading, .content-grid, .resource-title-row, .resource-detail-grid { grid-template-columns: 1fr; }
  .hero-grid { padding: 5rem 0; }
  .framework-card { max-width: 560px; }
  .collection-card, .collection-card:nth-child(1), .collection-card:nth-child(2) { grid-column: span 6; }
  .map-feature { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .status-card { max-width: 420px; }
  .resource-download-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 68px; }
  .brand-text small { display: none; }
  .main-nav { top: 68px; }
  .hero-grid { padding: 4rem 0; gap: 2.4rem; }
  h1 { font-size: clamp(2.8rem, 16vw, 4.4rem); }
  .audience-strip .container { display: grid; gap: .25rem; }
  .section { padding: 4rem 0; }
  .section-heading { gap: .7rem; }
  .collection-grid { display: grid; grid-template-columns: 1fr; }
  .collection-card, .collection-card:nth-child(1), .collection-card:nth-child(2) { grid-column: auto; min-height: 230px; }
  .search-form { grid-template-columns: 1fr; }
  .resource-toolbar { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .resource-card { grid-template-columns: 1fr; }
  .metadata-grid, .citation-box, .related-grid { grid-template-columns: 1fr; }
  .metadata-grid div:nth-child(odd), .metadata-grid div:nth-child(even) { padding-inline: 0; border-left: 0; }
  .copy-status { grid-column: auto; }
  .resource-preview { min-height: 350px; }
  .pending-action { text-align: left; }
  .soil-types { columns: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .motion-ready .reveal-item { opacity: 1; translate: 0 0; }
}
