:root {
  color-scheme: light;
  --page: #f4f6f1;
  --surface: #ffffff;
  --surface-soft: #f7f9f4;
  --surface-green: #e8f1d6;
  --pale: #e8f1d6;
  --green: #486f2b;
  --green-dark: #253b22;
  --green-muted: #6f875c;
  --yellow: #f0cf24;
  --line: #d9e2d0;
  --line-strong: #b7c6a9;
  --text: #182015;
  --muted: #63705c;
  --link: #1f5f9b;
  --shadow: 0 18px 44px rgb(37 59 34 / 10%);
  --content-max: 1180px;
  --content-pad: clamp(16px, 3vw, 34px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #153f6a;
}

#vwg-shell {
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px var(--content-pad) 10px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  color: var(--text);
  text-decoration: none;
}

.site-brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 56% 38%;
  box-shadow: 0 0 0 1px var(--line);
}

.site-brand strong {
  display: block;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.05;
}

.site-brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.site-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 440px;
  margin-left: auto;
}

.site-search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.site-search button {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.site-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-join:hover {
  border-color: var(--green);
  background: var(--surface-green);
  color: var(--green-dark);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
}

.site-menu-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad) 12px;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-menu::-webkit-scrollbar {
  display: none;
}

.site-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.site-menu a:hover,
.site-menu a.active {
  background: var(--green-dark);
  color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  max-width: var(--content-max);
  margin: 34px auto 0;
  padding: 24px var(--content-pad) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--text);
}

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

.site-footer a {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px var(--content-pad) 0;
}

.page-head,
.content-section {
  padding: clamp(18px, 3vw, 30px);
}

.page-head {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 1.05;
}

.page-head p {
  margin: 0;
}

.titlebar {
  min-height: 0;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgb(37 59 34 / 88%), rgb(72 111 43 / 70%)),
    var(--hero-photo, url("hero/meijendel-hero-01.jpg")) center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.titlebar h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0;
  line-height: 1.05;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(22px, 4vw, 46px);
  padding: clamp(22px, 4vw, 42px) 0 16px;
}

.home-left {
  min-width: 0;
  padding-right: 0;
}

.home-right {
  min-width: 0;
  padding-left: 0;
  border-left: 0;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: end;
  min-height: clamp(420px, 62vh, 620px);
  padding: clamp(28px, 6vw, 70px);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgb(24 32 21 / 82%) 0%, rgb(24 32 21 / 58%) 45%, rgb(24 32 21 / 8%) 100%),
    var(--hero-photo, url("hero/meijendel-hero-08.jpg")) center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.home-hero-copy {
  max-width: 720px;
}

.home-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: 0;
  line-height: 0.98;
}

.home-hero p {
  max-width: 620px;
  margin: 0;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.42;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.home-actions a,
.home-search button,
.gateway-links a,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.home-actions a {
  background: rgb(255 255 255 / 12%);
}

.home-actions .primary-action {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--green-dark);
}

.home-search {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 8px;
  background: rgb(255 255 255 / 92%);
  color: var(--text);
}

.home-search label {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
}

.home-search div {
  display: flex;
}

.home-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: var(--text);
  font: inherit;
}

.home-search button {
  height: 46px;
  border-color: var(--green);
  border-radius: 0 8px 8px 0;
  background: var(--green);
  color: #fff;
  cursor: pointer;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.home-stats a {
  display: grid;
  gap: 6px;
  min-height: 98px;
  padding: 18px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.home-stats a:hover {
  background: var(--surface-green);
  color: var(--text);
}

.home-stats strong {
  color: var(--green);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.home-stats span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.home-gateway {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.gateway-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 24px rgb(37 59 34 / 6%);
}

.gateway-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--text);
}

.gateway-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gateway-card strong {
  font-size: 20px;
  line-height: 1.16;
}

.gateway-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.gateway-card-muted {
  background: var(--green-dark);
  color: #fff;
}

.gateway-card-muted span,
.gateway-card-muted p {
  color: rgb(255 255 255 / 76%);
}

.gateway-card-muted strong {
  color: #fff;
}

.member-dummy-card {
  cursor: default;
}

.gateway-links {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.gateway-links a {
  min-height: 36px;
  border-color: rgb(255 255 255 / 28%);
  background: rgb(255 255 255 / 10%);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.home-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.home-feature-text-only {
  grid-template-columns: minmax(0, 1fr);
}

.feature-label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-feature h2,
.home-news h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.home-feature .feature-subtitle {
  margin-top: -4px;
  font-style: italic;
}

.home-feature p {
  margin: 0 0 12px;
  color: var(--muted);
}

.home-feature-image,
.home-observation-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
}

.home-feature-image {
  aspect-ratio: 1 / 1;
}

.home-feature-image img,
.home-observation-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-feature-image-credit {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgb(24 32 20 / 72%);
  color: #fff;
  font-size: 10px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-feature-observation {
  grid-template-columns: 220px minmax(0, 1fr);
}

.home-observation-photo {
  aspect-ratio: 4 / 3;
}

.home-observation-photo span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 8px;
  background: rgb(24 32 21 / 70%);
  color: #fff;
  font-size: 12px;
}

.text-link {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--green);
}

.home-news {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.home-section-head h2 {
  margin: 0;
}

.home-section-head a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.home-news-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.home-news-list a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 13px 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.home-news-list a:hover {
  background: var(--surface-soft);
}

.home-news-list span {
  color: var(--muted);
  font-size: 13px;
}

.home-news-list strong {
  line-height: 1.25;
}

.legacy-text h1,
.legacy-text h2,
.legacy-text h3,
.legacy-text h4,
.feature-block h2,
.news-box h2 {
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.2;
}

.legacy-text h2,
.legacy-text h3,
.legacy-text h4,
.feature-block h2,
.news-box h2 {
  font-size: 18px;
}

.legacy-text p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.42;
}

.legacy-text img {
  max-width: 100%;
  height: auto;
}

.legacy-text::after {
  display: block;
  clear: both;
  content: "";
}

.legacy-text figure.image {
  display: table;
  margin: 0 0 16px;
  max-width: 100%;
}

.legacy-text figure.image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.legacy-text figure.image figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.legacy-text figure.image-style-align-left {
  float: left;
  width: min(42%, 260px);
  margin: 2px 18px 12px 0;
}

.legacy-text figure.image-style-align-left img,
.legacy-text figure.image-style-align-right img,
.legacy-text figure.image-style-side img {
  width: 100%;
}

.legacy-text figure.image-style-align-right,
.legacy-text figure.image-style-side {
  float: right;
  width: min(42%, 260px);
  margin: 2px 0 12px 18px;
}

.legacy-text figure.image-style-align-center,
.legacy-text figure.image-style-block {
  display: table;
  margin-right: auto;
  margin-left: auto;
}

.feature-block,
.news-box {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid #ccc;
}

.feature-image {
  display: block;
  width: 325px;
  max-width: 100%;
  height: auto;
  border: 1px solid #999;
}

.small-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.align-right {
  text-align: right;
}

.waarneming-head {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 82px;
  color: #111;
  text-align: center;
  text-decoration: none;
}

.waarneming-head img {
  width: 76px;
}

.waarneming-head strong {
  font-size: 17px;
  line-height: 1.25;
}

.waarneming-head span {
  color: var(--link);
}

.weekly-link {
  display: block;
  margin: 5px 0 12px;
  color: #111;
  text-align: center;
  text-decoration: none;
}

.weekly-link span {
  display: block;
  margin-top: 7px;
  color: #888;
  font-size: 12px;
}

.weekly-photo {
  position: relative;
  display: block;
  width: 325px;
  max-width: 100%;
  margin-left: auto;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
}

.weekly-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #999;
}

.weekly-photo span {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  padding: 4px 6px;
  background: rgba(70, 70, 45, .55);
}

.news-box ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.news-box li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 4px;
  border-top: 1px solid #ccc;
  background: #f4f4f4;
}

.news-box li::before {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 11px;
  margin-top: 3px;
  border: 1px solid #8b9285;
  background: linear-gradient(#e8ece4 0 45%, #cfd6c8 45% 55%, #e8ece4 55%);
}

.news-box li a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #111;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-box li span {
  color: #666;
  font-size: 12px;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 24px;
  padding: 16px 20px;
}

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

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

section,
.table-wrap {
  margin-bottom: 28px;
}

.list {
  padding-left: 20px;
}

.list li {
  margin-bottom: 8px;
}

.list span {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
}

.compact {
  font-size: 0.95rem;
}

.table-wrap {
  margin-left: 20px;
  margin-right: 20px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d8dfd0;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #d8dfd0;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf2e8;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
}

dt {
  color: var(--muted);
}

.bar-row {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 10px;
  align-items: center;
  max-width: 620px;
}

meter {
  width: 100%;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d8dfd0;
}

.search-form button {
  padding: 10px 14px;
  border: 0;
  background: #487a32;
  color: white;
  font-weight: 700;
}

.search-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 16px;
  align-items: end;
}

.search-head p {
  margin: 4px 0 0;
  color: #555;
}

.search-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 20px 14px;
  padding: 10px 12px;
  border: 1px solid #d8dfd0;
  background: #f8faf4;
}

.search-summary strong {
  color: #3f6b22;
  font-size: 24px;
}

.search-results {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
  padding: 0 20px 20px;
}

.search-section {
  min-width: 0;
  border: 1px solid #d8dfd0;
  background: #fff;
}

.search-section:first-child {
  grid-row: span 2;
}

.search-section h2 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 9px 10px;
  border-bottom: 1px solid #d8dfd0;
  background: #f4f8ec;
  font-size: 18px;
}

.search-section h2 span {
  color: #666;
  font-size: 14px;
}

.result-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  padding: 10px;
  border-bottom: 1px solid #eef1e8;
}

.result-list li:last-child {
  border-bottom: 0;
}

.result-list a {
  color: #1f5f9b;
  font-weight: 700;
}

.result-list small {
  display: block;
  margin-top: 2px;
  color: #555;
}

.result-list p {
  margin: 5px 0 0;
  color: #333;
  font-size: 13px;
  line-height: 1.35;
}

.species-result {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: start;
}

.species-result img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid #d8dfd0;
  background: #f8faf4;
}

.search-empty {
  margin: 0 20px 20px;
}

.member-dashboard,
.member-public {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.member-public {
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  align-items: start;
}

.member-login-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.member-login,
.member-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(37 59 34 / 5%);
}

.member-login {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.member-login > span,
.member-card > span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-login h2,
.member-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.12;
}

.member-login p {
  margin: 0;
  color: var(--muted);
}

.member-login label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.member-login input {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
}

.member-login .member-login-checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.member-login .member-login-checkbox input {
  min-height: auto;
  width: 18px;
  height: 18px;
  padding: 0;
}

.member-login button,
.member-welcome button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--green-dark);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.form-error {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #b65b5b;
  background: #fff2f2;
  color: #8f1f1f;
  font-weight: 700;
}

.form-success {
  margin: 18px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-green);
  color: var(--green-dark);
  font-weight: 800;
}

.member-panel {
  padding: 22px;
}

.member-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(37 59 34 / 5%);
}

.member-card-primary {
  background: linear-gradient(135deg, var(--green-dark), #315027);
  color: #fff;
}

.member-card-primary > span,
.member-card-primary p {
  color: rgb(255 255 255 / 78%);
}

.member-card-primary h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.member-welcome {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-top: 12px;
}

.member-welcome p {
  margin: 8px 0 0;
}

.member-gateway {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.analysis-center {
  display: grid;
  gap: 18px;
}

.analysis-intro > span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.analysis-intro p {
  max-width: 900px;
  color: var(--muted);
}

.analysis-action-panel h2 {
  margin-bottom: 14px;
}

.analysis-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.analysis-action-button {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 15px 16px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-dark), #375a2c);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgb(37 59 34 / 12%);
}

.analysis-action-button:hover {
  background: var(--green);
  color: #fff;
}

.analysis-action-button strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}

.analysis-action-button span {
  color: rgb(255 255 255 / 78%);
  font-size: 13px;
  line-height: 1.35;
}

.analysis-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.analysis-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.analysis-topic-grid,
.analysis-method-grid {
  display: grid;
  gap: 12px;
}

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

.analysis-topic-grid section,
.analysis-method-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.analysis-topic-grid h3,
.analysis-method-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.analysis-topic-grid p,
.analysis-method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.analysis-dashboard-choices h2 {
  margin-bottom: 12px;
}

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

.analysis-choice-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.analysis-choice-grid h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.analysis-choice-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.archive-search-form,
.archive-upload-form {
  display: grid;
  gap: 18px;
}

.archive-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 30px;
}

.archive-action-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.archive-action-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.archive-action-card strong {
  font-size: 22px;
  line-height: 1.15;
}

.archive-action-card:hover,
.archive-category-active {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--text);
}

.archive-action-card-active {
  border-color: var(--green);
  background: var(--yellow);
  color: var(--green-dark);
}

.archive-tool-panel {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgb(37 59 34 / 7%);
}

.archive-tool-panel h2 {
  margin-top: 0;
}

.archive-search-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto;
  gap: 10px;
  align-items: end;
}

.archive-search-fields label,
.archive-upload-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 850;
}

.archive-search-fields input,
.archive-search-fields select,
.archive-upload-form input,
.archive-upload-form select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
}

.archive-search-fields input[type="file"],
.archive-upload-form input[type="file"] {
  display: flex;
  align-items: center;
  padding: 9px 12px;
}

.archive-search-fields button,
.archive-upload-form button {
  min-height: 46px;
  font-size: 16px;
  font-weight: 900;
}

.archive-search-results {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.archive-result-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-result-list a {
  color: var(--green);
  font-weight: 850;
}

.archive-category-documents {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.archive-category-documents h2 {
  margin-bottom: 0;
}

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

.archive-document-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.archive-document-list li:first-child {
  border-top: 0;
}

.archive-document-list a {
  color: var(--green);
  font-weight: 850;
}

.archive-document-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.archive-delete-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-dark);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 720px) {
  .archive-actions,
  .archive-search-fields {
    grid-template-columns: 1fr;
  }

  .archive-document-list li {
    align-items: start;
    flex-direction: column;
  }
}

.member-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

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

.member-data div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.member-data .member-data-wide {
  grid-column: 1 / -1;
  white-space: pre-wrap;
}

.member-data dt {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.member-data dd {
  margin: 0;
}

.member-data small {
  display: block;
  margin-top: 2px;
  color: #666;
  font-size: 12px;
}

.member-profile-panel {
  grid-column: 1 / -1;
}

.member-profile-panel h3 {
  margin: 22px 0 10px;
  color: var(--green-dark);
  font-size: 18px;
}

.member-profile-panel h3:first-of-type {
  margin-top: 0;
}

.member-info-page {
  max-width: var(--max-width);
  margin: 28px auto 0;
}

.member-info-article {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.member-info-article section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.member-info-article h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.member-info-article p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.member-info-article a {
  color: var(--green);
  font-weight: 850;
}

.member-capabilities {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.member-capabilities h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.member-help {
  align-self: stretch;
}

.member-help p {
  margin: 0 0 10px;
}

.cms-panel,
.cms-editor,
.cms-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(37 59 34 / 5%);
}

.cms-panel {
  margin-top: 24px;
  padding: 20px;
}

.cms-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.cms-panel-head h2,
.cms-page-row h3 {
  margin: 0;
}

.cms-page-list {
  display: grid;
  gap: 10px;
}

.cms-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.cms-section-card {
  display: grid;
  gap: 8px;
  min-height: 140px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
}

.cms-section-card:hover,
.cms-section-card.active {
  border-color: var(--green);
  background: var(--green-soft);
}

.cms-section-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cms-section-card strong {
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
}

.cms-section-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.cms-public-text > :first-child {
  margin-top: 0;
}

.cms-public-text > :last-child {
  margin-bottom: 0;
}

.cms-page-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.cms-page-row span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cms-page-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cms-page-row nav,
.cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cms-page-row a,
.cms-actions a,
.cms-actions button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-dark);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.cms-page-row .primary-action,
.cms-actions button {
  border-color: var(--green);
  background: var(--yellow);
}

.cms-actions .danger-action {
  background: var(--green);
  color: #fff;
}

.cms-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
  margin-top: 24px;
}

.cms-editor,
.cms-preview,
.member-news-editor-layout .member-panel {
  min-width: 0;
  padding: 20px;
}

.cms-editor {
  display: grid;
  gap: 14px;
}

.cms-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.cms-editor label.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.cms-editor input,
.cms-editor textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
}

.cms-editor textarea {
  min-height: 420px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.cms-editor label.check-row input {
  width: auto;
}

.member-news-editor-layout .cms-editor textarea {
  min-height: 360px;
  font-family: inherit;
  font-size: 16px;
}

.cms-editor .ck.ck-editor {
  color: var(--text);
  font-weight: 500;
  max-width: 100%;
  min-width: 0;
}

.cms-editor .ck.ck-editor__main > .ck-editor__editable {
  min-height: 420px;
  border-color: var(--line-strong);
  box-shadow: none;
}

.member-news-editor-layout .ck.ck-editor__main > .ck-editor__editable {
  min-height: 360px;
}

.member-news-editor-layout .ck.ck-toolbar,
.member-news-editor-layout .ck.ck-editor__main,
.member-news-editor-layout .modern-legacy-panel {
  max-width: 100%;
}

.member-news-editor-layout .modern-legacy-panel {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .member-news-editor-layout {
    grid-template-columns: 1fr;
  }
}

.media-manager {
  display: grid;
  gap: 22px;
}

.media-upload-form {
  max-width: 760px;
}

.media-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-filters button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green-dark);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.media-filters button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.media-search {
  display: grid;
  gap: 6px;
  max-width: 520px;
  color: var(--muted);
  font-weight: 850;
}

.media-search input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.media-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.media-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgb(37 59 34 / 5%);
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-soft);
}

.media-card strong,
.media-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card span {
  color: var(--muted);
  font-size: 13px;
}

.media-card input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
}

.draft-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.draft-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgb(37 59 34 / 5%);
}

.draft-card span {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.draft-card h2 {
  margin: 4px 0;
  font-size: clamp(22px, 3vw, 32px);
}

.draft-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.draft-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.draft-actions a,
.draft-actions button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-dark);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.draft-actions .primary-action {
  border-color: var(--green);
  background: var(--yellow);
}

.cms-preview article {
  max-height: 760px;
  overflow: auto;
}

.account-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.account-admin-card {
  max-width: none;
}

.account-admin-card .danger-action {
  border-color: #7f2d2d;
  background: #7f2d2d;
  color: #fff;
}

.account-table {
  overflow-x: auto;
}

.account-table table {
  width: 100%;
  border-collapse: collapse;
}

.account-table th,
.account-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.account-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-table small,
.account-table span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.member-admin-table td:first-child {
  font-weight: 850;
  color: var(--green);
}

.member-admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.member-admin-actions a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.member-admin-actions svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.page-head-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.member-year-switch,
.member-admin-edit {
  max-width: var(--max-width);
  margin: 20px auto 0;
}

.member-admin-edit,
.member-admin-edit *,
.member-admin-edit *::before,
.member-admin-edit *::after {
  box-sizing: border-box;
}

.member-year-switch label,
.member-year-select,
.member-edit-grid label,
.member-admin-edit label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 850;
}

.member-year-switch select,
.member-edit-grid input,
.member-edit-grid select,
.member-admin-edit input,
.member-admin-edit select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.member-edit-grid select[multiple] {
  min-height: 180px;
  padding: 6px;
}

.member-edit-grid select[multiple] option {
  padding: 4px 6px;
}

.plot-route-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.plot-route-filter a,
.type-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  padding: 8px 12px;
  text-decoration: none;
}

.plot-route-filter a {
  background: var(--surface);
}

.plot-route-filter a.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.plot-route-options {
  align-items: center;
  display: flex;
  gap: 12px;
  margin: -4px 0 18px;
}

.plot-route-options label {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
}

.plot-route-options input {
  accent-color: var(--green);
}

.type-badge {
  background: var(--surface-green);
  white-space: nowrap;
}

.type-badge-bmp {
  background: #eaf4df;
}

.type-badge-winter {
  background: #e5f1f7;
}

.type-badge-bmp_winter {
  background: #f4edcf;
}

.type-badge-ptt {
  background: #f0e9da;
}

.member-admin-detail-grid {
  max-width: var(--max-width);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

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

.member-access-control {
  display: grid;
  gap: 16px;
}

.member-access-control label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.member-access-control input,
.member-access-control select {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
}

.member-access-control button {
  justify-self: start;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--green-dark);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.member-access-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.member-year-select {
  margin: 16px 0 12px;
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--text) !important;
}

.checkbox-line input {
  min-height: auto;
  width: auto;
}

.member-admin-download {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.member-admin-download label {
  min-width: 180px;
  color: var(--muted);
  font-weight: 850;
}

.member-admin-download select {
  margin-top: 6px;
}

.member-admin-download button {
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.member-admin-form-actions {
  max-width: var(--max-width);
  margin: 22px auto 0;
}

.admin-log-panel {
  margin-top: 24px;
}

.admin-log-panel .media-filters a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green-dark);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
}

.admin-log-panel .media-filters a.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.admin-log-table {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgb(37 59 34 / 5%);
}

.admin-log-table table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-log-table th,
.admin-log-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-log-table th {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-log-table span,
.admin-log-table .muted {
  color: var(--muted);
}

.admin-log-details {
  display: grid;
  gap: 4px;
  margin: 0;
}

.admin-log-details div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
}

.admin-log-details dt {
  color: var(--muted);
  font-weight: 850;
}

.admin-log-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.visitor-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.visitor-stat-grid .stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgb(37 59 34 / 5%);
}

.visitor-stat-grid strong {
  display: block;
  color: var(--green);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.visitor-stat-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.visitor-stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.compact-table {
  margin-top: 10px;
  box-shadow: none;
}

.compact-table table {
  min-width: 520px;
}

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

.visitor-top-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.visitor-top-list span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-weight: 750;
}

.visitor-top-list strong {
  color: var(--green-dark);
  font-size: 18px;
}

.species-landing,
.species-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgb(24 32 21 / 86%) 0%, rgb(24 32 21 / 62%) 48%, rgb(24 32 21 / 12%) 100%),
    var(--hero-photo, url("hero/meijendel-hero-03.jpg")) center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.species-landing h1,
.species-detail-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0;
  line-height: 0.98;
}

.species-landing p,
.species-detail-hero p {
  max-width: 660px;
  margin: 0;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.42;
}

.species-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.species-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 8px;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.species-actions .primary-action {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--green-dark);
}

.species-filter,
.species-data-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 8px;
  background: rgb(255 255 255 / 94%);
  color: var(--text);
}

.species-filter label {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 850;
}

.species-filter input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.species-filter p,
.species-data-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stat-card {
  min-height: 96px;
  padding: 18px;
  background: var(--surface);
}

.stat-card strong {
  display: block;
  color: var(--green);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.species-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.species-tools h2,
.family-panel h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.species-tools p,
.family-panel p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.letter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 390px;
}

.letter-nav a {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.letter-nav a:hover {
  border-color: var(--green);
  background: var(--green-dark);
  color: #fff;
}

.species-index {
  margin-top: 18px;
}

.species-letter-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.species-letter-group h2 {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--green);
  font-size: 22px;
  line-height: 1.1;
}

.species-card {
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 24px rgb(37 59 34 / 5%);
}

.species-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--text);
  transform: translateY(-1px);
}

.species-name {
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.15;
}

.species-card em {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
}

.species-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.species-meta b {
  color: var(--green);
  font-weight: 850;
}

.family-panel {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.family-card {
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.family-card strong {
  font-size: 15px;
  line-height: 1.2;
}

.family-card em,
.family-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.species-detail-hero {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  background:
    linear-gradient(90deg, rgb(24 32 21 / 88%) 0%, rgb(24 32 21 / 68%) 58%, rgb(24 32 21 / 18%) 100%),
    var(--hero-photo, url("hero/meijendel-hero-06.jpg")) center / cover;
}

.species-detail-hero p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.species-detail-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
}

.species-detail-head p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.counts-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: end;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgb(24 32 21 / 88%) 0%, rgb(24 32 21 / 62%) 50%, rgb(24 32 21 / 10%) 100%),
    var(--hero-photo, url("hero/meijendel-hero-07.jpg")) center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.counts-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0;
  line-height: 0.98;
}

.counts-hero p {
  max-width: 650px;
  margin: 0;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.42;
}

.counts-source-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 8px;
  background: rgb(255 255 255 / 94%);
  color: var(--text);
}

.counts-source-card strong {
  font-size: 22px;
  line-height: 1.1;
}

.counts-source-card p {
  color: var(--muted);
  font-size: 15px;
}

.counts-layout {
  margin-top: 34px;
  padding: 0;
}

.counts-content {
  min-width: 0;
}

.counts-gateway {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.counts-panels {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

.counts-panel {
  margin-top: 0;
}

.counts-species-link {
  color: var(--text);
  text-decoration: none;
}

.counts-species-link:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.counts-head {
  margin-bottom: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: rgb(255 255 255 / 82%);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.status-pills span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.species-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(20px, 4vw, 42px);
  margin-top: 34px;
}

.species-main {
  min-width: 0;
}

.species-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.species-photo {
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(37 59 34 / 6%);
}

.species-photo img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: var(--surface-soft);
}

.species-photo figcaption {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.species-photo figcaption span {
  font-weight: 850;
}

.species-trend-chart-panel {
  display: grid;
  gap: 14px;
}

.species-line-chart {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.species-line-chart svg {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
}

.chart-bg {
  fill: rgb(255 255 255 / 84%);
}

.chart-grid-line {
  stroke: rgb(79 111 56 / 12%);
  stroke-width: 1;
}

.chart-baseline {
  stroke: rgb(79 111 56 / 45%);
  stroke-dasharray: 5 5;
  stroke-width: 1.4;
}

.chart-baseline-year {
  stroke: rgb(79 111 56 / 28%);
  stroke-dasharray: 4 6;
  stroke-width: 1.2;
}

.chart-y-label,
.chart-x-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.chart-y-label {
  text-anchor: end;
}

.chart-axis-title {
  fill: #344054;
  font-size: 13px;
  font-weight: 850;
  text-anchor: middle;
}

.chart-x-label {
  text-anchor: middle;
}

.trend-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.trend-line.meijendel {
  stroke: var(--green);
}

.trend-point {
  fill: var(--green);
}

.trend-line.national {
  stroke: #2f66b1;
  stroke-dasharray: 8 6;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-line {
  display: inline-block;
  width: 24px;
  height: 0;
  border-top: 3px solid var(--green);
  border-radius: 999px;
}

.legend-line.national {
  border-color: #2f66b1;
  border-style: dashed;
}

.text-block {
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  scroll-margin-top: 18px;
}

.text-block h2,
.info-panel h2,
.count-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.12;
}

.species-characteristics {
  display: grid;
  gap: 18px;
}

.species-characteristics h2 {
  margin-bottom: 0;
}

.characteristics-summary {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

.characteristics-text,
.characteristics-prose p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.characteristics-prose {
  display: grid;
  gap: 10px;
}

.characteristics-text strong,
.characteristics-prose strong {
  color: var(--green-dark);
  font-weight: 850;
}

.info-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-list {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 7px 10px;
  margin: 0;
  font-size: 14px;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
}

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

.mini-stats div {
  min-height: 68px;
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  text-align: center;
}

.mini-stats strong {
  display: block;
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.mini-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.species-mini-stats div {
  background: var(--surface);
}

.related-list {
  max-height: 260px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.related-list li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.related-list li:first-child {
  border-top: 0;
}

.related-list a {
  display: block;
  padding: 7px 0;
  color: var(--text);
  text-decoration: none;
}

.related-list .current a {
  color: var(--green);
  font-weight: 850;
}

.count-panel {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.species-count-panel {
  margin-top: 18px;
}

.count-chart {
  display: grid;
  gap: 7px;
}

.count-row {
  display: grid;
  grid-template-columns: 56px 1fr 48px;
  gap: 10px;
  align-items: center;
  min-height: 28px;
}

.count-year {
  color: var(--muted);
  font-size: 12px;
}

.count-track {
  height: 12px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-green);
}

.count-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--green);
}

.count-row strong {
  font-size: 13px;
  text-align: right;
}

.data-source {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.trend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.trend-item {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.trend-item span {
  color: var(--muted);
  font-size: 12px;
}

.trend-item strong {
  color: var(--green);
  font-size: 16px;
}

.trend-item b {
  font-size: 18px;
}

.section-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: end;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgb(24 32 21 / 88%) 0%, rgb(24 32 21 / 62%) 52%, rgb(24 32 21 / 12%) 100%),
    var(--hero-photo, url("hero/meijendel-hero-01.jpg")) center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.section-hero h1 {
  max-width: 840px;
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0;
  line-height: 0.98;
}

.section-hero p {
  max-width: 720px;
  margin: 0;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.42;
}

.meijendel-hero {
  background:
    linear-gradient(90deg, rgb(24 32 21 / 86%) 0%, rgb(24 32 21 / 58%) 52%, rgb(24 32 21 / 8%) 100%),
    var(--hero-photo, url("hero/meijendel-hero-08.jpg")) center / cover;
}

.groups-hero {
  background:
    linear-gradient(90deg, rgb(24 32 21 / 88%) 0%, rgb(24 32 21 / 62%) 52%, rgb(24 32 21 / 12%) 100%),
    var(--hero-photo, url("hero/meijendel-hero-01.jpg")) center / cover;
}

.news-hero {
  background:
    linear-gradient(90deg, rgb(24 32 21 / 88%) 0%, rgb(24 32 21 / 62%) 52%, rgb(24 32 21 / 12%) 100%),
    var(--hero-photo, url("hero/meijendel-hero-02.jpg")) center / cover;
}

.workgroup-hero {
  background:
    linear-gradient(90deg, rgb(24 32 21 / 88%) 0%, rgb(24 32 21 / 64%) 52%, rgb(24 32 21 / 16%) 100%),
    var(--hero-photo, url("hero/meijendel-hero-09.jpg")) center / cover;
}

.member-hero {
  background:
    linear-gradient(90deg, rgb(24 32 21 / 88%) 0%, rgb(24 32 21 / 64%) 52%, rgb(24 32 21 / 16%) 100%),
    var(--hero-photo, url("hero/meijendel-hero-10.jpg")) center / cover;
}

.modern-section-layout {
  margin-top: 34px;
  padding: 0;
}

.modern-legacy-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(37 59 34 / 5%);
}

.news-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.button-link,
.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.news-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.news-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(37 59 34 / 5%);
}

.news-card h2 {
  margin: 0;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.12;
}

.news-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.news-card h2 a:hover {
  color: #1d58b8;
  text-decoration: underline;
}

.news-card p {
  grid-column: 2 / 4;
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.news-card-full {
  grid-column: 2 / 4;
  color: var(--muted);
}

.news-card-full p,
.news-card-full ul,
.news-card-full ol {
  margin-top: 0;
  margin-bottom: 10px;
}

.news-date {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.read-more {
  min-height: 34px;
  font-size: 12px;
  white-space: nowrap;
}

.pager,
.detail-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 28px;
  padding-top: 0;
  border-top: 0;
}

.pager a,
.pager span,
.detail-nav a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}

.pager span {
  color: #555;
  font-weight: 700;
}

.archive-layout {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  margin-top: 34px;
}

.archive-years {
  display: grid;
  align-content: start;
  gap: 5px;
  position: sticky;
  top: 8px;
}

.archive-years a {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}

.archive-list h2 {
  margin: 0 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 24px;
  line-height: 1.1;
}

.archive-list h2:first-child {
  padding-top: 0;
  border-top: 0;
}

.archive-list ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.archive-list li {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  margin-bottom: 6px;
}

.archive-list li span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.news-detail-head {
  border-bottom: 1px dotted var(--line);
}

.news-body {
  margin-top: 34px;
}

.news-body h1,
.news-body h2,
.news-body h3,
.news-body h4 {
  line-height: 1.2;
}

.news-body img {
  max-width: 100%;
  height: auto;
}

.detail-nav {
  justify-content: space-between;
}

.meijendel-layout {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
}

.section-nav {
  display: grid;
  align-content: start;
  gap: 5px;
}

.section-nav a {
  display: block;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

.section-nav a:hover,
.section-nav a.active {
  border-color: var(--line-strong);
  background: var(--surface-green);
  color: var(--green);
}

.meijendel-content {
  min-width: 0;
}

.route-map {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.route-map img {
  display: block;
  width: 100%;
  height: auto;
}

.route-map figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.legacy-text table {
  max-width: 100%;
}

.legacy-text td,
.legacy-text th {
  vertical-align: top;
}

.stat-strip.compact {
  padding: 0 0 14px;
}

.plots-hero,
.plot-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: end;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgb(24 32 21 / 88%) 0%, rgb(24 32 21 / 62%) 52%, rgb(24 32 21 / 12%) 100%),
    var(--hero-photo, url("hero/meijendel-hero-05.jpg")) center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.plot-detail-hero {
  background:
    linear-gradient(90deg, rgb(24 32 21 / 88%) 0%, rgb(24 32 21 / 64%) 58%, rgb(24 32 21 / 14%) 100%),
    var(--hero-photo, url("hero/meijendel-hero-04.jpg")) center / cover;
}

.plots-hero h1,
.plot-detail-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0;
  line-height: 0.98;
}

.plots-hero p,
.plot-detail-hero p {
  max-width: 660px;
  margin: 0;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.42;
}

.plot-filter {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 8px;
  background: rgb(255 255 255 / 94%);
  color: var(--text);
}

.plot-filter label {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 850;
}

.plot-filter input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.plot-filter p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.plots-layout {
  margin-top: 34px;
  padding: 0;
}

.plot-overview {
  min-width: 0;
}

.plot-map {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(37 59 34 / 6%);
}

.plot-map-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 14px;
}

.plot-map-head h2 {
  margin: 0 0 5px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.plot-map-head p {
  margin: 0;
  color: var(--muted);
}

.plot-map-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-height: 560px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, #53666b 0%, #435c5f 42%, #61715f 100%);
}

.plot-map-stage.leaflet-container {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

.plot-map-stage .leaflet-control-attribution {
  font-size: 10px;
}

.plot-map-stage .pdok-empty-tile {
  opacity: 0;
}

.plot-detail-map-panel {
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.plot-detail-map-stage {
  aspect-ratio: 16 / 9;
  min-height: 420px;
}

.plot-map-label {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  background: transparent;
  border: 0;
}

.plot-map-label span {
  display: block;
  transform: translate(-50%, -50%);
  color: #fffbea;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  paint-order: stroke fill;
  text-shadow:
    0 0 2px #1b2a13,
    0 0 4px #1b2a13,
    0 1px 2px rgb(0 0 0 / 75%);
  cursor: pointer;
  user-select: none;
}

.plot-map-label.active span,
.plot-map-label:hover span {
  color: #fff;
  text-shadow:
    0 0 2px #000,
    0 0 5px #000,
    0 1px 2px rgb(0 0 0 / 80%);
}

.plot-polygon-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.plot-polygon {
  fill: transparent;
  stroke: #f3df35;
  stroke-width: 0.18;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}

.plot-polygon:hover,
.plot-polygon-layer g:focus .plot-polygon,
.plot-polygon-layer g.active .plot-polygon {
  fill: rgb(255 247 168 / 10%);
  stroke: #fff7a8;
  stroke-width: 0.34;
  outline: none;
}

.plot-marker-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.plot-marker-layer[hidden] {
  display: none;
}

.plot-label {
  cursor: pointer;
  fill: #111;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 2.2px;
  font-weight: 900;
  paint-order: stroke fill;
  pointer-events: auto;
  stroke: #f3df35;
  stroke-linejoin: round;
  stroke-width: 0.5px;
  text-shadow:
    0 1px 2px rgb(0 0 0 / 45%);
}

.plot-label:hover,
.plot-label:focus,
.plot-label.active {
  fill: #111;
  stroke: #fff;
  stroke-width: 0.8px;
}

.plot-popup {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 500;
  width: min(320px, calc(100% - 24px));
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 18px 44px rgb(0 0 0 / 22%);
}

.plot-popup h2 {
  margin: 0 28px 6px 0;
  font-size: 20px;
}

.plot-popup p {
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.35;
}

.plot-popup-status {
  color: var(--muted);
  font-weight: 850;
}

.plot-popup-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.plot-map figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
}

.selected-plot {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-green);
}

.selected-plot h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.selected-plot p {
  margin: 0 0 8px;
}

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

.plot-card {
  display: grid;
  gap: 5px;
  min-height: 136px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 24px rgb(37 59 34 / 5%);
}

.plot-card:hover,
.plot-card.active {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--text);
}

.plot-number {
  color: var(--green);
  font-size: 21px;
  font-weight: 900;
}

.plot-card span:not(.plot-number) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.28;
}

.plot-card b {
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 13px;
}

.plot-card span,
.plot-card b {
  font-size: 12px;
  line-height: 1.25;
}

.plot-card b {
  color: #666;
}

.plot-detail-layout {
  display: grid;
  grid-template-columns: 1fr 245px;
  gap: 18px;
  padding: 16px 20px;
}

.plot-detail-main {
  min-width: 0;
}

.table-wrap.flush {
  margin-left: 0;
  margin-right: 0;
}

.list-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.list-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.list-controls select {
  min-width: 120px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
}

.list-controls button {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--green-dark);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.workgroup-chart {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.workgroup-chart h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.12;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, 2fr) 54px;
  gap: 10px;
  align-items: center;
}

.chart-row a {
  color: #1f5f9b;
  font-weight: 850;
}

.chart-bar {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-green);
}

.chart-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.chart-row b {
  text-align: right;
}

.data-table.bird-list td:first-child {
  min-width: 220px;
}

.recent-years-table {
  table-layout: fixed;
}

.recent-years-table th,
.recent-years-table td {
  padding: 10px 14px;
}

.recent-years-table th:first-child,
.recent-years-table td:first-child {
  width: 30%;
}

.recent-years-table th:nth-child(2),
.recent-years-table td:nth-child(2) {
  width: 26%;
}

.recent-years-table th:nth-child(3),
.recent-years-table td:nth-child(3) {
  width: 44%;
}

.bird-list td a {
  color: #2f66b1;
  font-weight: 700;
  text-decoration: none;
}

.bird-list td a:hover {
  text-decoration: underline;
}

.bird-list td span {
  display: block;
  margin-top: 2px;
  color: #666;
  font-size: 12px;
  font-style: italic;
}

.delta {
  font-weight: 700;
}

.delta.positive {
  color: #2f6d24;
}

.delta.negative {
  color: #9c2f22;
}

@media (max-width: 820px) {
  html {
    background: var(--page);
  }

  #vwg-shell {
    min-width: 0;
    box-shadow: none;
  }

  .site-header {
    position: static;
  }

  .site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px var(--content-pad);
  }

  .site-brand {
    min-width: 0;
  }

  .site-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    margin-left: 0;
  }

  .site-join {
    grid-column: 2;
    grid-row: 1;
    min-height: 36px;
    padding: 0 12px;
  }

  .content {
    padding-top: 12px;
  }

  .nav-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0 var(--content-pad) 12px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--green-dark);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: var(--green-dark);
  }

  .nav-toggle-label span {
    position: relative;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-label span::before {
    top: -7px;
  }

  .nav-toggle-label span::after {
    top: 7px;
  }

  .site-menu-wrap {
    display: none;
    height: auto;
    padding-bottom: 12px;
  }

  .nav-toggle:checked + .nav-toggle-label + .site-menu-wrap {
    display: block;
  }

  .site-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    height: auto;
    overflow: visible;
  }

  .site-menu a {
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-size: 15px;
    text-align: center;
  }

  .site-footer {
    display: grid;
    padding-top: 20px;
  }

  .titlebar,
  .page-head {
    padding: 18px;
    border-radius: 10px;
  }

  .titlebar h1,
  .page-head h1 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px 0 0;
  }

  .home-hero {
    grid-template-columns: 1fr;
    align-items: end;
    min-height: 0;
    padding: 28px;
  }

  .home-hero h1 {
    font-size: clamp(36px, 11vw, 56px);
  }

  .home-hero p {
    font-size: 18px;
  }

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

  .home-gateway,
  .home-feature-grid,
  .counts-gateway,
  .counts-panels,
  .plot-grid {
    grid-template-columns: 1fr;
  }

  .home-feature,
  .home-feature-observation {
    grid-template-columns: 1fr;
  }

  .home-feature-image,
  .home-observation-photo {
    max-height: 320px;
  }

  .home-news-list a {
    grid-template-columns: 92px 1fr;
  }

  .home-right {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid #ccc;
  }

  .waarneming-head {
    grid-template-columns: 70px 1fr;
    text-align: left;
  }

  .waarneming-head img {
    width: 64px;
  }

  .weekly-photo {
    margin-right: auto;
  }

  .news-box li {
    align-items: flex-start;
  }

  .news-box li a {
    white-space: normal;
  }

  .news-box li span {
    padding-top: 2px;
  }

  .grid {
    padding: 12px;
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    margin-left: 12px;
    margin-right: 12px;
  }

  dl {
    grid-template-columns: 1fr;
  }

  .search-form {
    max-width: none;
  }

  .search-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .search-summary {
    margin-left: 12px;
    margin-right: 12px;
  }

  .search-results {
    grid-template-columns: 1fr;
    padding: 0 12px 12px;
  }

  .search-section:first-child {
    grid-row: auto;
  }

  .search-empty {
    margin-left: 12px;
    margin-right: 12px;
  }

  .member-public,
  .member-info-grid {
    grid-template-columns: 1fr;
  }

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

  .analysis-actions,
  .analysis-method-grid,
  .analysis-choice-grid,
  .analysis-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .member-data {
    grid-template-columns: 1fr;
  }

  .member-info-article {
    grid-template-columns: 1fr;
  }

  .member-admin-detail-grid,
  .member-edit-grid {
    grid-template-columns: 1fr;
  }

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

  .species-landing,
  .species-detail-hero,
  .counts-hero,
  .plots-hero,
  .plot-detail-hero,
  .section-hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 28px;
  }

  .species-tools {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .letter-nav {
    justify-content: flex-start;
    max-width: none;
  }

  .letter-nav a {
    min-width: 30px;
    min-height: 30px;
  }

  .species-index {
    margin-top: 16px;
  }

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

  .species-card {
    min-height: 66px;
  }

  .family-panel {
    padding: 18px;
  }

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

  .species-detail-layout {
    grid-template-columns: 1fr;
  }

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

  .species-side .info-panel:first-child {
    grid-column: 1 / -1;
  }

  .count-panel {
    padding: 18px;
  }

  .news-head {
    align-items: start;
  }

  .news-list {
    padding: 12px;
  }

  .news-card {
    grid-template-columns: 1fr auto;
  }

  .news-date {
    grid-column: 1 / -1;
  }

  .news-card h2 {
    font-size: 17px;
  }

  .news-card p {
    grid-column: 1 / -1;
  }

  .archive-layout {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .archive-years {
    display: flex;
    flex-wrap: wrap;
    position: static;
  }

  .news-body {
    padding: 12px;
  }

  .meijendel-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .section-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .section-nav a {
    min-height: 34px;
  }

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

  .plot-label {
    font-size: 2px;
  }

  .plot-popup {
    right: 8px;
    bottom: 8px;
    width: min(300px, calc(100% - 16px));
  }

  .plot-map-stage {
    min-height: 420px;
  }

  .plot-detail-layout {
    grid-template-columns: 1fr;
    padding: 12px;
  }

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

  .list-controls select,
  .list-controls button {
    width: 100%;
  }

  .chart-row {
    grid-template-columns: 1fr 54px;
  }

  .chart-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .recent-years-table th,
  .recent-years-table td {
    padding: 10px 10px;
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .site-header-inner {
    grid-template-columns: 1fr;
  }

  .site-join {
    grid-column: 1;
    grid-row: 3;
    justify-self: stretch;
  }

  .site-search {
    grid-row: 2;
  }

  .site-brand small {
    display: none;
  }

  .site-menu {
    grid-template-columns: 1fr;
  }

  .home-layout {
    padding-top: 12px;
  }

  .home-hero {
    margin-left: calc(var(--content-pad) * -1);
    margin-right: calc(var(--content-pad) * -1);
    padding: 22px var(--content-pad);
    border-radius: 0;
  }

  .home-actions,
  .home-search div {
    display: grid;
  }

  .home-actions a {
    min-height: 44px;
  }

  .home-search input,
  .home-search button {
    width: 100%;
    border-radius: 8px;
  }

  .home-search input {
    border-right: 1px solid var(--line-strong);
  }

  .home-search button {
    margin-top: 8px;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

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

  .member-gateway {
    grid-template-columns: 1fr;
  }

  .analysis-actions,
  .analysis-method-grid,
  .analysis-choice-grid,
  .analysis-topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-news {
    padding: 16px;
  }

  .home-section-head,
  .home-news-list a {
    display: grid;
  }

  .home-news-list a {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .legacy-text p,
  .weekly-link {
    font-size: 16px;
  }

  .legacy-text figure.image-style-align-left,
  .legacy-text figure.image-style-align-right,
  .legacy-text figure.image-style-side {
    float: none;
    width: 100%;
    margin: 0 0 16px;
  }

  .feature-image,
  .weekly-photo {
    width: 100%;
  }

  .news-box li {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .news-box li span {
    grid-column: 2;
  }

  .bar-row {
    grid-template-columns: 48px 1fr 44px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form button {
    min-height: 42px;
  }

  .stat-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-card {
    min-height: 58px;
  }

  .stat-card strong {
    font-size: 23px;
  }

  .species-tools,
  .species-filter,
  .species-data-card,
  .plot-filter,
  .counts-source-card,
  .modern-legacy-panel,
  .member-login,
  .member-panel,
  .member-card,
  .text-block,
  .count-panel,
  .family-panel {
    padding: 16px;
  }

  .species-landing,
  .species-detail-hero,
  .counts-hero,
  .plots-hero,
  .plot-detail-hero,
  .section-hero {
    margin-left: calc(var(--content-pad) * -1);
    margin-right: calc(var(--content-pad) * -1);
    padding: 22px var(--content-pad);
    border-radius: 0;
  }

  .species-landing h1,
  .species-detail-hero h1,
  .counts-hero h1,
  .plots-hero h1,
  .plot-detail-hero h1,
  .section-hero h1 {
    font-size: 42px;
    overflow-wrap: anywhere;
  }

  .species-actions {
    display: grid;
  }

  .species-card {
    padding: 10px;
  }

  .species-name {
    font-size: 17px;
  }

  .species-meta {
    display: grid;
    gap: 2px;
  }

  .family-panel {
    margin-top: 22px;
  }

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

  .species-detail-hero p,
  .status-pills {
    display: grid;
    justify-content: stretch;
  }

  .species-letter-group {
    grid-template-columns: 1fr;
  }

  .species-side {
    grid-template-columns: 1fr;
  }

  .counts-gateway,
  .counts-panels,
  .plot-grid {
    grid-template-columns: 1fr;
  }

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

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .count-row {
    grid-template-columns: 44px 1fr 38px;
    gap: 6px;
  }

  .news-head {
    display: grid;
  }

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

  .read-more {
    justify-self: start;
  }

  .archive-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .archive-list li span {
    text-align: left;
  }

  .detail-nav {
    display: grid;
    justify-content: stretch;
  }

  .section-nav {
    display: grid;
  }

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

  .cms-panel,
  .cms-editor,
  .cms-preview {
    padding: 16px;
  }

  .cms-page-row,
  .cms-editor-layout,
  .account-admin-grid {
    grid-template-columns: 1fr;
  }

  .cms-page-row nav,
  .cms-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


.groups-overview {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.group-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(37 59 34 / 6%);
}

.group-card h2,
.group-side-nav h2 {
  margin: 0 0 12px;
}

.group-card h2 a {
  color: var(--green-dark);
  text-decoration: none;
}

.group-card p {
  color: var(--muted);
  line-height: 1.62;
}

.group-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.group-link-list a,
.group-side-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.group-link-list a:hover,
.group-side-nav a:hover,
.group-side-nav a.active {
  border-color: var(--green);
  background: rgb(118 146 84 / 12%);
}

.group-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  margin-top: 28px;
}

.group-side-nav {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.group-chart-stack {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.group-chart {
  margin: 0;
  padding: 0 0 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.group-chart img {
  display: block;
  width: 100%;
  height: auto;
}

.group-species-box {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.group-species-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-900);
}

.group-chart-missing {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 700;
}

.member-edit-wide {
  grid-column: 1 / -1;
}

.member-edit-grid textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.member-inline-pill {
  display: inline-flex;
  margin: 2px 6px 2px 0;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 820px) {
  .group-card,
  .group-detail-layout {
    grid-template-columns: 1fr;
  }

  .draft-card {
    align-items: stretch;
    flex-direction: column;
  }

  .draft-actions {
    justify-content: flex-start;
  }

  .visitor-stat-grid,
  .visitor-stats-layout {
    grid-template-columns: 1fr;
  }
}
