:root {
  --ink: #22302a;
  --muted: #637069;
  --green: #4f741e;
  --green-dark: #345210;
  --green-soft: #edf3e7;
  --gold: #c5a649;
  --line: #dce3dc;
  --paper: #fff;
  --wash: #f4f6f3;
  --shadow: 0 14px 34px rgba(28, 47, 34, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: #1f3905; }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .65rem 1rem; }
.site-header { background: var(--paper); border-top: 5px solid var(--green); border-bottom: 1px solid var(--line); }
.header-inner, .nav-inner, .container, .footer-inner { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.header-inner { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 360px; max-width: 52vw; }
.brand-fallback { font-family: Georgia, serif; font-size: 2rem; color: var(--green-dark); font-weight: 700; }
.tagline { max-width: 270px; color: var(--muted); font-family: Georgia, serif; font-size: 1.05rem; text-align: right; }
.site-nav { background: var(--green-dark); }
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; }
.site-nav a { padding: .8rem 1rem; color: #fff; font-weight: 700; text-decoration: none; font-size: .92rem; }
.site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
.container { padding: 2rem 0 3.5rem; }
.notice { margin-bottom: 1.25rem; padding: .8rem 1rem; border-left: 4px solid var(--gold); background: #fff9e7; color: #544819; }
.hero { display: grid; grid-template-columns: 1.4fr .8fr; gap: 2rem; align-items: stretch; margin-bottom: 2rem; }
.hero-copy, .hero-panel, .panel, .card, .article, .profile { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-copy { padding: clamp(1.6rem, 4vw, 3.2rem); background: linear-gradient(135deg, #fff 58%, var(--green-soft)); }
.eyebrow { margin: 0 0 .6rem; color: var(--green); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: #24361d; font-family: Georgia, "Times New Roman", serif; line-height: 1.18; }
h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
.hero-copy p { max-width: 680px; color: #4d5c54; font-size: 1.08rem; }
.hero-panel { padding: 1.5rem; background: var(--green-dark); color: #fff; }
.hero-panel h2 { color: #fff; margin-top: 0; }
.search-stack { display: grid; gap: .7rem; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
input, select, button { min-height: 44px; border-radius: 2px; font: inherit; }
input, select { width: 100%; padding: .65rem .75rem; border: 1px solid #b9c4ba; background: #fff; color: var(--ink); }
button, .button { display: inline-block; padding: .65rem 1rem; border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
button:hover, button:focus, .button:hover, .button:focus { background: var(--green-dark); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.5rem; }
.stat { padding: .8rem; border: 1px solid rgba(255,255,255,.22); text-align: center; }
.stat strong { display: block; font: 700 1.65rem Georgia, serif; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2.2rem 0 1rem; border-bottom: 2px solid var(--green); }
.section-head h2 { margin: 0 0 .45rem; }
.section-head a { margin-bottom: .55rem; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { padding: 1.25rem; box-shadow: none; }
.card h2, .card h3 { margin: .25rem 0 .65rem; }
.card p { color: var(--muted); }
.meta { color: var(--muted); font-size: .86rem; }
.pill { display: inline-block; margin: .15rem .25rem .15rem 0; padding: .12rem .5rem; border-radius: 99px; background: var(--green-soft); color: var(--green-dark); font-size: .78rem; text-decoration: none; }
.avatar { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font: 700 1.2rem Georgia, serif; }
.expert-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.expert-card h3 { margin-top: 0; }
.article, .profile, .panel { padding: clamp(1.25rem, 4vw, 2.5rem); }
.article { max-width: 860px; margin: 0 auto; }
.article h1, .profile h1 { font-size: clamp(2rem, 4vw, 3rem); }
.article-body { overflow-wrap: anywhere; }
.article-body img { margin: .7rem auto; }
.article-body blockquote { margin-left: 0; padding: .5rem 1.2rem; border-left: 4px solid var(--green); background: var(--green-soft); }
.article-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: .5rem; }
.breadcrumbs { margin-bottom: 1rem; color: var(--muted); font-size: .88rem; }
.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.profile-head .avatar { width: 92px; height: 92px; font-size: 1.7rem; }
.profile-head h1 { margin: 0 0 .3rem; }
.profile-columns { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .65rem; align-items: end; padding: 1rem; background: #fff; border: 1px solid var(--line); }
.filters label { color: var(--muted); font-size: .82rem; font-weight: 700; }
.filters label span { display: block; margin-bottom: .25rem; }
.pagination { display: flex; justify-content: space-between; margin-top: 1.4rem; }
.empty { padding: 2rem; border: 1px dashed #aeb9af; background: #fff; text-align: center; color: var(--muted); }
.site-footer { background: #26331f; color: #dce6d6; }
.footer-inner { padding: 2rem 0; display: flex; justify-content: space-between; gap: 2rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: .25rem 0; }
.footer-small { font-size: .82rem; color: #bfcbb9; }
code { background: #edf0ec; padding: .1rem .3rem; }

@media (max-width: 820px) {
  .hero, .profile-columns { grid-template-columns: 1fr; }
  .grid, .grid.two { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 92px; }
  .tagline { display: none; }
  .brand img { max-width: 88vw; }
  .site-nav a { flex: 1 1 50%; text-align: center; }
  .grid, .grid.two, .filters { grid-template-columns: 1fr; }
  .filters label:first-child { grid-column: auto; }
  .search-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: 1fr; }
  .footer-inner { display: block; }
}
