:root {
  --ink: #172b24;
  --ink-soft: #59675f;
  --forest: #245844;
  --forest-dark: #12382b;
  --leaf: #78936d;
  --lime: #d8e4a8;
  --cream: #f2eee4;
  --paper: #fbf9f3;
  --clay: #a54f36;
  --blue: #3e6473;
  --line: rgba(23, 53, 43, 0.15);
  --shadow: 0 20px 60px rgba(30, 60, 47, 0.1);
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--forest); }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 249, 243, 0.96);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-family: Georgia, serif; font-size: 18px; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 650; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--forest); }
.nav-cta { padding: 9px 14px; border: 1px solid var(--forest); border-radius: 3px; color: var(--forest) !important; }
.menu-button { display: none; border: 0; background: transparent; color: var(--ink); font: inherit; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 68px;
  color: var(--ink);
  background: var(--paper);
}

.hero::after { content: none; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,.94fr) minmax(420px,1.06fr); gap: 64px; align-items: center; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--clay); font-size: 13px; font-weight: 800; letter-spacing: 0; }
.hero .eyebrow { color: var(--clay); text-transform: uppercase; letter-spacing: .08em; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.04em; }
h1, .section-heading h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { max-width: 760px; font-size: clamp(50px, 6.3vw, 82px); line-height: .98; }
.hero-lead { max-width: 650px; margin: 26px 0 30px; color: var(--ink-soft); font-size: 19px; }

.search-box { position: relative; max-width: 720px; }
.search-box::before { content: "⌕"; position: absolute; top: 50%; left: 18px; z-index: 2; transform: translateY(-54%); color: var(--forest); font-size: 25px; }
.search-box input { width: 100%; min-height: 62px; padding: 0 48px; border: 1px solid rgba(23,43,36,.28); border-radius: 3px; outline: none; background: white; color: var(--ink); font: inherit; font-size: 16px; box-shadow: none; }
.search-box input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(36,88,68,.1); }
.search-results { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 20; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); box-shadow: var(--shadow); }
.search-result { display: grid; grid-template-columns: 1fr auto; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.search-result .eyebrow { grid-column: 1 / -1; margin: 0; font-size: 10px; }
.search-result span:last-child { color: var(--ink-soft); font-size: 13px; }
.search-empty { margin: 0; padding: 18px; color: var(--ink-soft); }
.directory-search { display: flex; max-width: 720px; gap: 10px; margin-top: 28px; }
.directory-search input { min-width: 0; flex: 1; min-height: 52px; padding: 0 17px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; outline: none; font: inherit; }
.results-heading { display: flex; margin-bottom: 24px; justify-content: space-between; gap: 20px; }
.results-heading p { margin: 0; }.results-heading a { color: var(--forest); font-weight: 750; }
.empty-results { grid-column: 1 / -1; padding: 50px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; background: var(--paper); }
.empty-results h2 { font-size: 34px; }.empty-results p { color: var(--ink-soft); }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; margin-top: 44px; align-items: center; gap: 18px; color: var(--ink-soft); }
.pagination a { color: var(--forest); font-weight: 750; }
.pagination a:last-child { text-align: right; }
.pagination span { text-align: center; }

.hero-panel { padding: 30px; border: 1px solid rgba(255,255,255,.15); border-radius: 30px; background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.hero-panel strong { display: block; font-family: Georgia, serif; font-size: 58px; font-weight: 500; line-height: 1; }
.hero-panel p { margin: 8px 0 22px; color: rgba(255,255,255,.7); }
.hero-panel hr { margin: 22px 0; border: 0; border-top: 1px solid rgba(255,255,255,.14); }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.hero-link { color: var(--forest); font-weight: 750; }
.hero-link:hover { color: var(--clay); }
.hero-storyboard { display: grid; grid-template-columns: 1.35fr .85fr; grid-template-rows: repeat(2, 210px); gap: 9px; min-width: 0; }
.hero-photo { position: relative; overflow: hidden; background: #d9d7ce; }
.hero-photo-1 { grid-row: 1 / 3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-photo:hover img { transform: scale(1.025); }
.hero-photo span { position: absolute; right: 0; bottom: 0; left: 0; padding: 32px 16px 14px; color: white; background: linear-gradient(transparent,rgba(10,31,23,.85)); }
.hero-photo strong,.hero-photo small { display: block; }
.hero-photo small { color: rgba(255,255,255,.76); }
.portal-bar { color: white; background: var(--forest-dark); }
.portal-bar-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.portal-bar a { display: grid; grid-template-columns: auto 1fr; min-height: 112px; padding: 24px 28px; align-content: center; column-gap: 14px; border-right: 1px solid rgba(255,255,255,.12); }
.portal-bar a:first-child { border-left: 1px solid rgba(255,255,255,.12); }
.portal-bar span { grid-row: 1 / 3; color: var(--lime); font-family: Georgia,serif; font-size: 17px; }
.portal-bar strong,.portal-bar small { display: block; }
.portal-bar small { color: rgba(255,255,255,.6); }
.hero-explore { display: grid; gap: 4px; }
.hero-explore > a { display: flex; padding: 18px 0; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,.14); color: white; }
.hero-explore > a:last-child { border-bottom: 0; }
.hero-explore strong { font-family: inherit; font-size: 18px; font-weight: 750; line-height: 1.3; }
.hero-explore span { margin-top: 3px; color: rgba(255,255,255,.62); font-size: 13px; }

.section { padding: 82px 0; }
.section-paper { background: var(--paper); }
.section-editorial { background: var(--cream); }
.section-agenda { border-top: 1px solid var(--line); background: #e7ece6; }
.section-dark { background: var(--forest-dark); color: white; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-heading h2 { max-width: 760px; font-size: clamp(38px, 5vw, 60px); }
.section-heading p { max-width: 440px; margin: 0; color: var(--ink-soft); }
.section-dark .section-heading p { color: rgba(255,255,255,.66); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.stat { padding: 30px; background: var(--paper); }
.stat strong { display: block; margin-bottom: 5px; font-size: 42px; font-weight: 800; line-height: 1; }
.stat span { color: var(--ink-soft); font-size: 14px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home-place-grid { display: grid; grid-template-columns: 1.28fr 1fr 1fr; grid-auto-rows: 1fr; gap: 18px; }
.card { display: flex; min-height: 360px; overflow: hidden; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.card-body { display: flex; min-height: 184px; padding: 22px; flex: 1; flex-direction: column; }
.card-media { position: relative; overflow: hidden; height: 180px; flex: 0 0 auto; background: #dfe2d9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-media-logo { display: grid; padding: 28px; place-items: center; background: #e6e9e2; }
.card-media-logo img { object-fit: contain; }
.card-media-placeholder { display: flex; padding: 20px; align-items: end; justify-content: space-between; background: linear-gradient(145deg,#d7dfd4,#ebe6d8); }
.card-media-placeholder span { color: rgba(23,43,36,.32); font-family: Georgia,serif; font-size: 76px; line-height: 1; }
.card-media-placeholder small { color: var(--ink-soft); font-weight: 700; }
.card-text { padding: 24px; }
.event-card,.teacher-card { min-height: 390px; }
.event-date { display: flex; height: 145px; padding: 22px; align-items: end; justify-content: space-between; color: white; background: var(--clay); }
.event-date strong { font-family: Georgia,serif; font-size: 68px; font-weight: 500; line-height: .8; }
.event-date span { max-width: 120px; text-align: right; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.teacher-avatar { display: grid; height: 145px; place-items: center; color: rgba(23,43,36,.45); background: #eaded2; font-family: Georgia,serif; font-size: 72px; }
.card-featured { grid-row: span 2; min-height: 100%; background: var(--paper); color: var(--ink); }
.card-featured .card-media { height: 380px; }
.card-featured .card-body { padding: 28px; }
.card-featured h3 { max-width: 520px; color: var(--ink); font-family: Georgia,serif; font-size: clamp(34px,4vw,50px); font-weight: 500; }
.card-featured p,.card-featured .card-meta { color: var(--ink-soft); }
.card-featured .eyebrow { color: var(--clay); }
.card-featured .card-footer { color: var(--forest); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card:hover .card-media img { transform: scale(1.025); }
.card-unclaimed { background: rgba(251,249,243,.76); }
.card-unclaimed .eyebrow { color: var(--blue); }
.card h3 { margin-bottom: 10px; font-size: 24px; font-weight: 780; }
.card p { margin: 0; color: var(--ink-soft); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 22px; color: var(--forest); font-size: 14px; font-weight: 750; }
.card-meta { display: block; margin-top: 14px; color: var(--ink-soft); font-size: 13px; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.pill { padding: 5px 10px; border-radius: 999px; background: #e8eee7; color: var(--forest-dark); font-size: 12px; font-weight: 700; }
.pill-warm { background: #f2e2db; color: #7d3e2f; }
.pill-blue { background: #e1eaed; color: #294d5d; }
.profile-facts { margin: 0 0 28px; }
.fact-list { padding-left: 20px; }
.small-note { color: var(--ink-soft); font-size: 13px; }
.opening-hours { display: grid; gap: 7px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.opening-hours > strong { margin-bottom: 4px; }
.opening-hours > div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 13px; }
.official-links { display: grid; gap: 8px; margin-top: 24px; }
.official-links > strong { margin-bottom: 2px; color: var(--ink); }
.official-links a { padding-top: 10px; border-top: 1px solid var(--line); color: var(--forest); font-weight: 750; overflow-wrap: anywhere; }

.territory-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.territory { min-height: 120px; padding: 17px; border: 1px solid rgba(255,255,255,.13); border-radius: 17px; background: rgba(255,255,255,.055); }
.territory strong { display: block; line-height: 1.2; }
.territory span { display: block; margin-top: 12px; color: rgba(255,255,255,.58); font-size: 12px; }
.territory[data-status="confirmed_activity"] { border-color: rgba(216,230,165,.35); background: rgba(216,230,165,.09); }

.button { display: inline-flex; min-height: 48px; padding: 0 20px; align-items: center; justify-content: center; border-radius: 3px; background: var(--forest); color: white; font-size: 14px; font-weight: 750; }
.button:hover { background: var(--forest-dark); color: white; }
.button-light { background: var(--forest); color: white; }
.text-link { color: var(--forest); font-weight: 750; }
.section-link { margin-top: 30px; }

.page-hero { padding: 78px 0 62px; color: white; background: var(--forest-dark); }
.page-hero .eyebrow { color: var(--lime); }
.page-hero h1 { font-size: clamp(44px, 6vw, 74px); }
.page-hero p { max-width: 720px; margin: 20px 0 0; color: rgba(255,255,255,.7); font-size: 18px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; align-items: start; }
.place-cover { padding: 36px 0 0; background: var(--cream); }
.place-cover figure { margin: 0; }
.place-cover img { display: block; width: 100%; max-height: 620px; object-fit: cover; background: #e2e4dd; }
.place-cover .place-cover-logo { display: grid; min-height: 360px; padding: 60px; place-items: center; background: #e4e7df; }
.place-cover .place-cover-logo img { width: min(440px,80%); max-height: 300px; object-fit: contain; }
.place-cover figcaption { padding: 8px 0; color: var(--ink-soft); font-size: 12px; }
.place-cover figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.detail-copy { font-size: 17px; }
.detail-copy h2 { margin: 48px 0 18px; font-size: 36px; font-weight: 780; }
.detail-side { position: sticky; top: 104px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.detail-side dl { margin: 0; }
.detail-side dt { margin-top: 18px; color: var(--ink-soft); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-side dd { margin: 4px 0 0; }
.source-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.source-list a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.source-list small { display: block; color: var(--ink-soft); }
.source-disclosure { padding: 0 0 70px; }
.source-disclosure details { padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.42); }
.source-disclosure summary { cursor: pointer; color: var(--ink-soft); font-weight: 750; }
.source-disclosure .source-list { margin-top: 16px; }

.city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.city-link { display: flex; min-height: 108px; padding: 20px; justify-content: space-between; gap: 12px; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.city-link strong { font-size: 21px; font-weight: 780; }
.city-link span { color: var(--ink-soft); font-size: 13px; }
.owner-cta { display: grid; grid-template-columns: 1fr auto; gap: 50px; padding: 54px; align-items: center; border-radius: 32px; background: var(--lime); }
.owner-cta h2 { max-width: 760px; font-size: clamp(38px, 5vw, 62px); font-weight: 780; }
.owner-cta p { max-width: 680px; margin-bottom: 0; color: var(--ink-soft); }
.owner-cta .eyebrow { color: #743323; }
.owner-cta p { color: #3e5048; }
.owner-actions { display: grid; gap: 16px; justify-items: center; }

.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.action-grid a { display: flex; min-height: 120px; padding: 18px; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.action-grid strong { color: var(--forest); }
.action-grid span { margin-top: 7px; color: var(--ink-soft); font-size: 14px; }
.area-links { margin-top: 28px; }
.stats-three { grid-template-columns: repeat(3, 1fr); }
.participation-layout { display: grid; grid-template-columns: minmax(0,.82fr) minmax(520px,1.18fr); gap: 80px; align-items: start; }
.participation-copy { position: sticky; top: 120px; }
.participation-copy h2, .form-heading h2 { font-size: clamp(38px,5vw,58px); font-weight: 780; }
.large-copy { max-width: 620px; color: var(--ink-soft); font-size: 18px; }
.contribution-types { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 32px; }
.contribution-types > div { display: flex; min-height: 118px; padding: 18px; gap: 6px; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.5); }
.contribution-types span { color: var(--ink-soft); font-size: 13px; }
.privacy-note { margin-top: 28px; padding: 20px; border-radius: 16px; background: #e8eee7; }
.privacy-note p { margin: 5px 0 0; color: var(--ink-soft); font-size: 14px; }
.contribution-card { padding: 36px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.form-heading { margin-bottom: 28px; }
.form-heading h2 { font-size: 42px; }
.form-heading p { margin: 8px 0 0; color: var(--ink-soft); }
.contribution-card form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label, .field > label { color: var(--ink); font-size: 13px; font-weight: 750; }
.field label span { color: var(--ink-soft); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid rgba(23,53,43,.22); border-radius: 13px; outline: none; background: white; color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(35,91,71,.1); }
.contribution-card .check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; color: var(--ink-soft); font-size: 13px; }
.contribution-card .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forest); }
.form-submit { display: flex; align-items: center; gap: 16px; }
.form-submit span { color: var(--ink-soft); font-size: 12px; }
.contribution-card button:disabled { cursor: wait; opacity: .65; }
.honeypot { position: absolute !important; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); }
.form-status { min-height: 24px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.form-status[data-state="success"] { color: var(--forest); font-weight: 750; }
.form-status[data-state="error"] { color: #9d3829; }

.coverage-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 18px; background: var(--paper); }
.coverage-table th, .coverage-table td { padding: 15px; border-bottom: 1px solid var(--line); text-align: left; }
.coverage-table th { color: var(--ink-soft); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.coverage-table td:not(:first-child), .coverage-table th:not(:first-child) { text-align: center; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #d09a59; }
.status-dot.active { background: #5f9b75; }

.cta { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 44px; border-radius: 30px; background: var(--lime); }
.cta h2 { font-size: clamp(34px, 4vw, 52px); font-weight: 780; }
.cta p { max-width: 680px; margin: 12px 0 0; color: var(--ink-soft); }

.site-footer { padding: 55px 0; color: rgba(255,255,255,.7); background: #102f25; }
.sr-only { position: absolute !important; overflow: hidden; width: 1px; height: 1px; padding: 0; border: 0; margin: -1px; clip: rect(0,0,0,0); white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; }
.footer-grid p { max-width: 620px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-content: start; }

@media (max-width: 980px) {
  .hero-grid, .detail-layout { grid-template-columns: 1fr; }
  .hero-panel { max-width: 600px; }
  .hero-storyboard { max-width: 760px; }
  .portal-bar-inner { grid-template-columns: repeat(2,1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .home-place-grid { grid-template-columns: repeat(2,1fr); }
  .card-featured { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
  .territory-grid { grid-template-columns: repeat(3, 1fr); }
  .stats, .stats-three { grid-template-columns: repeat(2, 1fr); }
  .detail-side { position: static; }
  .participation-layout { grid-template-columns: 1fr; gap: 50px; }
  .participation-copy { position: static; }
  .city-grid { grid-template-columns: repeat(2,1fr); }
  .owner-cta { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .menu-button { display: block; }
  .nav { display: none; position: absolute; top: 76px; right: 0; left: 0; padding: 20px; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--paper); }
  .nav[data-open] { display: flex; }
  .hero { padding: 44px 0 48px; }
  h1 { font-size: 48px; }
  .hero-grid { gap: 40px; }
  .hero-storyboard { grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2,150px); }
  .hero-photo span { padding: 28px 12px 10px; }
  .hero-photo strong { font-size: 13px; }
  .portal-bar-inner { grid-template-columns: 1fr 1fr; }
  .portal-bar a { min-height: 94px; padding: 18px 14px; }
  .section { padding: 64px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 16px; }
  .card-grid, .home-place-grid, .territory-grid, .stats, .stats-three, .action-grid, .city-grid, .contribution-types, .contribution-card form, .cta, .owner-cta, .footer-grid { grid-template-columns: 1fr; }
  .card-featured { grid-column: auto; min-height: 420px; }
  .card-featured .card-media { height: 270px; }
  .field-wide { grid-column: auto; }
  .hero-actions, .form-submit { align-items: stretch; flex-direction: column; }
  .directory-search { flex-direction: column; }
  .pagination { grid-template-columns: 1fr 1fr; }
  .pagination span { grid-row: 1; grid-column: 1 / -1; }
  .contribution-card { padding: 24px; }
  .cta { padding: 30px; }
  .coverage-scroll { overflow-x: auto; }
  .coverage-table { min-width: 760px; }
}
