/* ILCEF design system — tokens from PRD §11.1 */
:root {
  --forest: #174D3A;
  --forest-2: #1f6049;
  --deep: #123A50;
  --leaf: #69A66A;
  --leaf-soft: #e3f0e0;
  --beige: #F3F0E6;
  --beige-2: #e9e4d4;
  --white: #FFFFFF;
  --ink: #27312D;
  --muted: #5b6862;
  --line: #d9d6cb;
  --warn-bg: #fdf4dc;
  --warn-line: #e3c56b;
  --warn-ink: #6b4f00;
  --info-bg: #e6f0f4;
  --info-line: #9cbccb;
  --err: #b42318;
  --ok-bg: #e7f4e4;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(23, 77, 58, .06), 0 8px 24px rgba(23, 77, 58, .07);
  --font-head: "Manrope", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--forest); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
code { font-size: .9em; background: var(--beige); padding: .1em .4em; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--forest); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 1rem; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.mt-lg { margin-top: 3rem; }
.span-all { grid-column: 1 / -1; }
.icon { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.icon-xs { width: 15px; height: 15px; }
.icon-lg { width: 30px; height: 30px; }
.icon-xl { width: 46px; height: 46px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 .975rem/1 var(--font-body); padding: .85rem 1.3rem; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; min-height: 44px; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; min-height: 38px; }
.btn-block { width: 100%; margin-top: .6rem; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--deep); color: #fff; }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--beige); color: var(--forest); }
.btn-outline-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--leaf-soft); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.center-row { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; color: var(--forest); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1440px; display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--forest); flex: none; }
.brand-mark { width: 38px; height: 38px; display: block; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; letter-spacing: .02em; }
.brand-text small { font-size: .68rem; color: var(--muted); max-width: 170px; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light small { color: rgba(255,255,255,.75); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: .5rem .55rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.main-nav ul a:hover { background: var(--beige); color: var(--forest); }
.main-nav ul a[aria-current="page"] { color: var(--forest); font-weight: 700; box-shadow: inset 0 -2px 0 var(--leaf); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.lang-switch { display: inline-flex; align-items: center; gap: .2rem; font-weight: 600; font-size: .9rem; color: var(--muted); }
.lang-switch a { padding: .3rem .45rem; border-radius: 6px; text-decoration: none; color: var(--muted); }
.lang-switch a.active { color: #fff; background: var(--forest); }
.lang-switch a:not(.active):hover { color: var(--forest); background: var(--beige); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--forest); cursor: pointer; }
.nav-mobile-extra { display: none; }

@media (max-width: 1279px) {
  .main-nav { position: fixed; inset: 68px 0 0 0; background: #fff; padding: 1rem 16px 2rem; overflow-y: auto; display: none; margin: 0; }
  body.nav-open .main-nav { display: block; }
  body.nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: .9rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav ul a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--leaf); padding-left: 1rem; }
  .nav-mobile-extra { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.25rem; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .header-cta, .lang-mobile { display: none; }
  .brand-text small { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--deep); }
.hero-art { position: absolute; inset: 0; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,58,80,.85) 0%, rgba(18,58,80,.35) 60%, rgba(18,58,80,0) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: clamp(4rem, 10vw, 7.5rem); padding-bottom: clamp(7rem, 14vw, 11rem); }
.hero h1 { color: #fff; max-width: 20ch; }
.hero-copy { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 56ch; color: rgba(255,255,255,.9); margin-bottom: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--leaf); margin-bottom: .75rem; }
.hero .eyebrow { color: #B9DDB0; }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding-top: 2.5rem; padding-bottom: 4rem; }
.section-beige { background: var(--beige); }
.section-forest { background: var(--forest); color: #fff; }
.section-forest h2, .section-forest h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-forest .section-head p { color: rgba(255,255,255,.8); }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: none; }
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.lead-sm { color: var(--muted); }

.page-head { background: var(--beige); padding: 2.5rem 0 2.75rem; border-bottom: 1px solid var(--beige-2); }
.page-head .lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-programs { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(23,77,58,.08), 0 14px 32px rgba(23,77,58,.12); }
.card h3 a { text-decoration: none; color: var(--forest); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .95rem; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.card .link-arrow { margin-top: auto; font-size: .9rem; }
.card-art { height: 132px; display: flex; align-items: center; justify-content: center; color: #fff; position: relative; }
.art-short { height: 92px; }
.card-code { position: absolute; top: .75rem; left: .9rem; font: 800 .8rem var(--font-head); background: rgba(255,255,255,.2); padding: .15rem .55rem; border-radius: 999px; }
.art-restoration { background: linear-gradient(135deg, #174D3A, #2f7a52); }
.art-nursery { background: linear-gradient(135deg, #3d7f45, #69A66A); }
.art-community { background: linear-gradient(135deg, #8a6a3a, #b98f52); }
.art-climate { background: linear-gradient(135deg, #123A50, #2b6a86); }
.art-research { background: linear-gradient(135deg, #1b4f5c, #3b8a8b); }

.tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tile .icon { color: var(--leaf); margin-bottom: .75rem; }
.tile p { color: var(--muted); font-size: .95rem; margin: 0; }
a.tile:hover { border-color: var(--leaf); box-shadow: var(--shadow); color: var(--ink); }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.3rem; margin-bottom: 1.25rem; }
.mini-card p:last-child { margin-bottom: 0; }
.mini-card .ver { margin-bottom: .75rem; }
.mini-card h2 { font-size: 1.2rem; }

/* ---------- metrics ---------- */
.metric { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; }
.metric-top { display: flex; justify-content: space-between; align-items: flex-start; color: var(--leaf); margin-bottom: .75rem; gap: .5rem; }
.metric-label { font-weight: 600; margin-bottom: .25rem; }
.metric-value { font: 800 2.2rem/1.1 var(--font-head); color: var(--forest); margin: .2rem 0; font-variant-numeric: tabular-nums; }
.metric-empty { color: var(--line); }
.metric-await { font-size: .85rem; color: var(--muted); margin: 0 0 .4rem; }
.metric-unit { font-size: .8rem; color: var(--muted); margin: auto 0 0; }

/* ---------- status & verification (icon + text, never colour alone) ---------- */
.status, .ver, .badge-sample { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.status-planned, .status-development { color: #5a4a12; background: #fbf3d6; border-color: #e6d28b; }
.status-inprogress { color: #174D3A; background: var(--leaf-soft); border-color: #a9cfa5; }
.status-monitoring { color: #123A50; background: #e2eef4; border-color: #9cbccb; }
.status-completed { color: #fff; background: var(--forest); border-color: var(--forest); }
.ver-target { color: #5a4a12; background: #fbf3d6; border-color: #e6d28b; }
.ver-estimate { color: #6b3f12; background: #fbe9d8; border-color: #e6b98b; }
.ver-reported { color: #123A50; background: #e2eef4; border-color: #9cbccb; }
.ver-verified { color: #fff; background: var(--forest); border-color: var(--forest); }
.ver-pending { color: var(--muted); background: #f1f1ee; border-color: var(--line); }
.badge-sample { color: #7a2e0e; background: #fdeee5; border-color: #f0b897; }

/* ---------- notices & empty states ---------- */
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid; margin: 0 0 1.5rem; }
.notice p { margin: 0; }
.notice-info { background: var(--info-bg); border-color: var(--info-line); color: var(--deep); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.empty { text-align: center; padding: 2.5rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: #fcfbf8; }
.empty .icon { color: var(--leaf); margin-bottom: .5rem; }
.empty p { max-width: 52ch; margin: 0 auto; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); counter-reset: s; }
.steps li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 1.3rem; position: relative; }
.steps p { color: rgba(255,255,255,.8); font-size: .93rem; margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--leaf); color: #fff; font: 800 1rem var(--font-head); margin-bottom: .8rem; }
@media (min-width: 900px) { .steps li:not(:last-child)::after { content: "→"; position: absolute; right: -.85rem; top: 1.6rem; color: var(--leaf); font-weight: 700; } }

/* ---------- link list ---------- */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.link-list a { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; text-decoration: none; font-weight: 600; }
.link-list a span { flex: 1; }
.link-list a:hover { border-color: var(--leaf); }
.link-list .icon:first-child { color: var(--leaf); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--deep), var(--forest)); color: #fff; text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 56ch; margin: 0 auto 1.75rem; }

/* ---------- content layout ---------- */
.content-layout { display: grid; gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 4rem; }
@media (min-width: 960px) { .content-layout { grid-template-columns: 280px minmax(0, 1fr); } .content-layout:has(> .prose:first-child) { grid-template-columns: minmax(0, 1fr) 320px; } }
.toc { position: relative; }
.toc ul { list-style: none; margin: 0; padding: 0; position: sticky; top: 90px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .45rem 1rem; text-decoration: none; color: var(--muted); font-size: .93rem; }
.toc a:hover { color: var(--forest); border-left: 2px solid var(--leaf); margin-left: -2px; }
@media (max-width: 959px) { .toc { display: none; } }
.prose { min-width: 0; }
.prose section { margin-bottom: 2.25rem; }
.prose h2 { margin-top: .25rem; }
.prose blockquote { margin: 0 0 1.25rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--leaf); background: var(--beige); font: 600 1.2rem/1.5 var(--font-head); color: var(--forest); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.narrow.prose { padding-top: 2.5rem; padding-bottom: 4rem; }
.container.narrow:not(.prose) { padding-top: 2.5rem; padding-bottom: 4rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--leaf); }
.numbered { padding-left: 1.3rem; }
.numbered li { margin-bottom: .5rem; padding-left: .3rem; }
.numbered li::marker { color: var(--leaf); font-weight: 700; }
.toc-chain { list-style: none; padding: 0; margin: 0; }
.toc-chain li { padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .5rem; background: #fff; }
.toc-chain strong { color: var(--leaf); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; margin-right: .3rem; }
.detail-block { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.detail-block:first-child { border-top: 0; padding-top: 0; }
.detail-block h2 { font-size: 1.3rem; }

.program-head { color: #fff; border: 0; }
.program-head h1, .program-head .lead, .program-head .crumbs a, .program-head .crumbs ol { color: #fff; }
.program-head .lead { color: rgba(255,255,255,.88); }
.program-head .eyebrow { color: #cfe7c9; margin-bottom: .3rem; }
.program-head-row { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.program-head-row h1 { margin: 0; }

.side-card { background: var(--beige); border-radius: var(--radius); padding: 1.4rem; align-self: start; position: sticky; top: 90px; }
.side-card dl { margin: 0 0 1rem; }
.side-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-top: 1rem; }
.side-card dt:first-child { margin-top: 0; }
.side-card dd { margin: .3rem 0 0; }
.side-card .ticks { margin: 0; }
.side-cta { font-weight: 600; margin: 1.25rem 0 .25rem; }
@media (max-width: 959px) { .side-card { position: static; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--beige); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody th { font-weight: 600; color: var(--forest); }
.kv { width: 100%; border-collapse: collapse; font-size: .93rem; margin-bottom: 1rem; }
.kv th, .kv td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--beige-2); vertical-align: top; }
.kv th { width: 42%; color: var(--muted); font-weight: 500; padding-right: .75rem; }

/* ---------- filters & tabs ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .9rem 1.25rem; align-items: flex-end; background: var(--beige); padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.field-inline { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.field-inline select { min-width: 180px; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tab { font: 600 .9rem var(--font-body); padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; min-height: 40px; }
.tab:hover { border-color: var(--leaf); }
.tab.active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ---------- map ---------- */
.map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--beige); z-index: 0; }
.map-fail { padding: 2rem; color: var(--muted); text-align: center; margin: 0; }
@media (max-width: 640px) { .map { height: 300px; } }

/* ---------- chart ---------- */
.chart-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: .9rem; }
.chart-box .empty { border: 0; }
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--leaf); }
.chart .bar:hover { fill: var(--forest); }
.chart .grid-line { stroke: var(--beige-2); }
.chart .axis { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.chart-illustrative { display: inline-flex; gap: .35rem; align-items: center; font-size: .8rem; font-weight: 700; color: #7a2e0e; background: #fdeee5; border: 1px solid #f0b897; padding: .25rem .65rem; border-radius: 999px; margin-bottom: .75rem; }

/* ---------- reports ---------- */
.report-list { list-style: none; padding: 0; margin: 0; }
.report-list li { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; }
.report-list li > div { flex: 1; }
.report-list h3 { margin: 0 0 .2rem; font-size: 1rem; }
.report-list p { margin: 0; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .mini-card .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.req { color: var(--err); }
.opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #bfbcb0; border-radius: var(--radius-sm); padding: .7rem .8rem; min-height: 44px; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(105,166,106,.35); }
[aria-invalid="true"] { border-color: var(--err); }
.field-err { color: var(--err); font-size: .85rem; margin: .3rem 0 0; min-height: 0; }
.field-err:empty { display: none; }
.field-check { flex-direction: row; flex-wrap: wrap; gap: .6rem; align-items: flex-start; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin-top: .2rem; flex: none; accent-color: var(--forest); }
.field-check label { font-weight: 400; flex: 1; min-width: 0; }
.field-check .field-err { flex-basis: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-sm); margin-bottom: 0; }
.form-status:empty { display: none; }
.form-status.is-error { background: #fdecea; color: var(--err); border: 1px solid #f3b5ae; padding: .8rem 1rem; margin-bottom: 1rem; }
.form-status.is-ok { background: var(--ok-bg); color: var(--forest); border: 1px solid #a9cfa5; padding: .8rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.form-status small { font-weight: 400; color: var(--muted); }
.form-status:focus { outline: none; }

/* ---------- contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list .icon { color: var(--leaf); margin-top: .15rem; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: #10291f; color: rgba(255,255,255,.78); padding-top: 3.5rem; font-size: .93rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { max-width: 42ch; margin-top: 1rem; }
.footer-brand .tagline { font-family: var(--font-head); font-weight: 700; color: #B9DDB0; }
.footer-lang { margin-top: 1.25rem; }
.footer-lang .lang-switch a { color: rgba(255,255,255,.7); }
.footer-lang .lang-switch a.active { background: var(--leaf); color: #10291f; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.25rem; padding-bottom: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .82rem; }
.footer-bottom p { margin: 0; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--deep); color: #fff; padding: .9rem 1.2rem; border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 100; max-width: min(560px, calc(100% - 32px)); font-size: .93rem; }

/* Leaflet popups inherit site font */
.leaflet-container { font-family: var(--font-body); }

/* Header brand stays compact; the full name is in the footer and page title. */
.site-header .brand-text small { display: none; }

/* ---------- photography ---------- */
.hero-art img, .page-head-bg img, .card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero { min-height: min(86vh, 760px); display: flex; align-items: center; }
.hero::after { background: linear-gradient(90deg, rgba(10,36,30,.88) 0%, rgba(10,36,30,.55) 50%, rgba(10,36,30,.15) 100%), linear-gradient(0deg, rgba(10,36,30,.55) 0%, rgba(10,36,30,0) 40%); }
.hero h1, .hero-copy { text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.hero-inner { padding-bottom: clamp(5rem, 10vw, 8rem); }

.photo-credit { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-size: .72rem; color: rgba(255,255,255,.85); background: rgba(0,0,0,.35); padding: .2rem .55rem; border-radius: 999px; text-decoration: none; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-credit:hover { color: #fff; background: rgba(0,0,0,.55); }

.page-head.has-photo, .cta-band.has-photo { position: relative; overflow: hidden; background: var(--deep); border-bottom: 0; color: #fff; }
.page-head.has-photo { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-head-bg { position: absolute; inset: 0; }
.page-head.has-photo::after, .cta-band.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,36,30,.9) 0%, rgba(10,36,30,.62) 55%, rgba(10,36,30,.35) 100%); }
.cta-band.has-photo::after { background: rgba(10,36,30,.7); }
.page-head.has-photo .container, .cta-band.has-photo .container { position: relative; z-index: 1; }
.page-head.has-photo h1, .page-head.has-photo .lead, .page-head.has-photo .crumbs, .page-head.has-photo .crumbs a { color: #fff; }
.page-head.has-photo .lead { color: rgba(255,255,255,.9); }
.page-head.has-photo .crumbs li + li::before { color: rgba(255,255,255,.5); }
.program-head .icon-xl { color: #fff; }

.card-art { height: 190px; overflow: hidden; }
.art-short { height: 170px; }
.card-art img { transition: transform .4s ease; }
.card:hover .card-art img { transform: scale(1.04); }
.card-icon { position: absolute; left: .9rem; bottom: .9rem; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--forest); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.card-code { z-index: 1; background: rgba(10,36,30,.6); }

.credits-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.credit-thumb { position: relative; height: 150px; border-radius: var(--radius-sm); overflow: hidden; background: var(--beige); margin-bottom: .6rem; }
.credit-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- official logo ---------- */
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 640px) { .brand-logo { height: 38px; } }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--radius); padding: .75rem; }
.footer-logo img { width: 190px; height: auto; display: block; }
.who-block { display: grid; gap: 1.5rem; align-items: center; }
.who-logo { width: 100%; max-width: 220px; height: auto; }
@media (min-width: 700px) { .who-block { grid-template-columns: 200px 1fr; } }

/* ---------- field documentation ---------- */
.field-gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.field-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.field-open { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--beige); cursor: zoom-in; overflow: hidden; }
.field-open img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.field-open:hover img { transform: scale(1.04); }
.field-item figcaption { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
.field-item figcaption strong { font-family: var(--font-head); color: var(--forest); }
.field-item figcaption span { color: var(--muted); font-size: .93rem; }
.field-item figcaption small { color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: .3rem; margin-top: .2rem; }
.field-note { margin-top: 1rem; }
.prose .field-gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.lightbox { border: 0; padding: 0; border-radius: var(--radius); max-width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; overflow: auto; }
.lightbox::backdrop { background: rgba(8, 24, 18, .85); }
.lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 140px); margin: 0 auto; }
.lightbox p { margin: 0; padding: .9rem 1.15rem 1.1rem; font-size: .93rem; }
.lightbox-close { position: absolute; top: .6rem; right: .6rem; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--forest); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* CMS draft preview bar */
.preview-bar { background: #b06d00; color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: .4rem 1rem; }
.preview-bar a { color: #fff; }
