/* Design system for guimarasph.com.
   One self-hosted variable font (27 KB, cached for a year); everything else is plain CSS. */
@font-face {
  font-family: 'Jakarta';
  src: url('../fonts/jakarta.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Brand: Guimaras green with mango yellow */
  --green-950: #062a0e;
  --green-900: #0a3d15;
  --green-800: #0d5219;
  --green-700: #0f6a1f;
  --green-600: #148a29;
  --green-100: #e6f2e3;
  --green-50: #f1f8ef;
  --mango: #ffc928;
  --mango-600: #f2b200;

  --ink: #0f1a12;
  --ink-2: #2b352e;
  --muted: #5d6862;
  --line: rgba(15, 26, 18, .1);
  --bg: #f4f7f1;
  --surface: #ffffff;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(15,26,18,.04), 0 8px 24px rgba(15,26,18,.06);
  --shadow-lg: 0 2px 4px rgba(15,26,18,.04), 0 24px 48px rgba(15,26,18,.12);
  --wrap: 1600px;
  --gutter: 20px;
  --font: 'Jakarta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }
@media (min-width: 1600px) { :root { --gutter: 80px; } }
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section.soft { background: var(--surface); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  color: var(--green-700); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); }
.muted { color: var(--muted); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 36px; }
.head h2 { margin: 0; max-width: 18ch; }
.head p { margin: 0; max-width: 46ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font: 700 .95rem/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  background: var(--green-700); color: #fff;
}
.btn:hover { background: var(--green-800); transform: translateY(-1px); }
.btn.mango { background: var(--mango); color: var(--green-950); }
.btn.mango:hover { background: var(--mango-600); }
.btn.glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255,255,255,.22); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.arrow { width: 16px; height: 16px; flex: none; }
.link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; }

/* Cards grid used by directory listings */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--green-100); }
.card .ph { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--green-100), var(--green-50)); }
.card .body { padding: 16px 18px 20px; }
.card h3 { margin-bottom: .3em; }
.card .meta { color: var(--muted); font-size: .9rem; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--green-100); color: var(--green-800); margin: 0 4px 8px 0; letter-spacing: .02em;
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===================== Header ===================== */
.official { background: var(--green-950); color: rgba(255,255,255,.78); font-size: .78rem; }
.official .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.official strong { color: #fff; font-weight: 600; }
.official a { color: var(--mango); text-decoration: none; white-space: nowrap; }
@media (max-width: 700px) { .official a { display: none; } }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244,247,241,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.bar { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; line-height: 1; color: var(--green-800); white-space: nowrap; }
.logo .l1 { display: block; font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.logo .l2 { display: block; font-weight: 600; font-size: .7rem; color: var(--green-600); letter-spacing: .04em; margin-top: 3px; }

/* Menu: a checkbox toggle, so it works with no JavaScript at all */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 12px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle:checked + .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
.menu-toggle:checked + .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle:focus-visible + .burger { outline: 3px solid var(--mango); }
.menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); max-height: calc(100vh - 100px); overflow: auto; padding: 8px 16px 20px; box-shadow: var(--shadow-lg); }
.menu-toggle:checked ~ .menu { display: block; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a:not(.btn), .sub > summary { display: block; padding: 12px 6px; text-decoration: none; color: var(--ink); font-weight: 600; cursor: pointer; border-radius: 10px; }
.sub > summary { list-style: none; }
.sub > summary::-webkit-details-marker { display: none; }
.sub > summary::after { content: ''; float: right; width: 7px; height: 7px; margin-top: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.sub[open] > summary::after { transform: rotate(-135deg); margin-top: 9px; }
.menu .current-menu-ancestor > details > summary, .menu a[aria-current] { color: var(--green-700); }

/* Mega menu panels. On phones they are simple lists inside the menu. */
.mega-inner { padding: 0; }
.mega-intro, .mega-links .d { display: none; }
.mega-links { padding-left: 12px; border-left: 2px solid var(--green-100); margin: 0 0 8px 6px; }
.mega-links a:not(.btn) { font-weight: 500; padding: 8px 8px; color: var(--ink-2); }
.menu .mega-links a[aria-current] { color: var(--green-700); font-weight: 700; }

@media (min-width: 1360px) {
  .burger { display: none; }
  .menu { display: flex; align-items: center; gap: 20px; position: static; background: none; border: 0; max-height: none; overflow: visible; padding: 0; box-shadow: none; }
  .menu nav > ul { display: flex; gap: 4px; }
  .menu a:not(.btn), .sub > summary { padding: 9px 11px; font-size: .9rem; white-space: nowrap; }
  .bar { min-height: 76px; }
  .menu nav > ul > li > a:hover, .sub > summary:hover, .sub[open] > summary { background: rgba(15,106,31,.08); }
  .sub > summary::after { float: none; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; }
  .sub[open] > summary::after { margin: 0 0 0 8px; }
  .menu { order: 1; }
  .search-btn { order: 2; margin-left: 8px; }

  /* The panel spans the full width under the header and dims the page behind it. */
  .mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line);
          box-shadow: 0 0 0 100vmax rgba(6,42,14,.28); clip-path: inset(0 0 -100vmax 0); }
  .mega-inner { display: grid; grid-template-columns: 340px 1fr; gap: 64px; padding: 40px var(--gutter) 48px; max-height: calc(100vh - 140px); overflow: auto; }
  .mega-intro { display: block; padding-right: 32px; border-right: 1px solid var(--line); }
  .mega-title { margin: 0 0 14px; font-size: 2.6rem; font-weight: 800; line-height: .95; letter-spacing: -.045em; color: var(--ink); }
  .mega-desc { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
  .mega-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; align-content: start; padding: 0; border: 0; margin: 0; }
  .mega-links.many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-links a:not(.btn) { display: grid; gap: 2px; padding: 12px 14px; white-space: normal; font-size: 1rem; color: var(--ink); transition: background-color .15s ease; }
  .mega-links .t { font-weight: 700; letter-spacing: -.01em; }
  .mega-links .d { display: block; font-weight: 400; font-size: .86rem; line-height: 1.4; color: var(--muted); }
  .mega-links a:not(.btn):hover { background: var(--green-50); }
  .mega-links a:not(.btn):hover .t { color: var(--green-800); }
  .mega-links a[aria-current] .t { color: var(--green-700); }
  .mega-overview a:not(.btn) .t { text-decoration: underline; text-underline-offset: 4px; }

  @media (prefers-reduced-motion: no-preference) {
    .sub[open] .mega { animation: mega-open .22s ease-out both; }
    .sub[open] .mega-links li { animation: mega-item .3s ease-out both; animation-delay: calc(var(--i, 0) * 18ms + 40ms); }
  }
}
@keyframes mega-open { from { opacity: 0; transform: translateY(-6px); } }
@keyframes mega-item { from { opacity: 0; transform: translateY(6px); } }

/* ===================== Search (inc/search.php, assets/js/search.js) ===================== */
.search-btn { order: 1; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--green-700); color: #fff;
  font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.search-btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.search-btn:hover, .search-btn:focus-visible { background: var(--green-800); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,106,31,.25); }
.search-btn:hover svg { transform: rotate(-14deg) scale(1.12); }
.burger { order: 2; }

/* Pop-up */
html:has(.sx[open]) { overflow: hidden; }
.sx { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 12px; border: 0; background: transparent; overflow: auto; }
.sx::backdrop { background: rgba(6,42,14,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sx-panel { width: min(720px, 100%); margin: min(12vh, 96px) auto 24px; background: var(--surface); border-radius: 22px; box-shadow: 0 30px 80px rgba(6,42,14,.35); overflow: hidden; }
.sx-form { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line); }
.sx-form svg { width: 22px; height: 22px; flex: none; color: var(--green-700); }
.sx-form input { flex: 1; min-width: 0; height: 64px; padding: 0; border: 0; outline: 0; background: none; font: 600 1.15rem var(--font); color: var(--ink); }
.sx-form input::placeholder { color: #8b958e; font-weight: 500; }
.sx-form input::-webkit-search-cancel-button { display: none; }
.sx-close { flex: none; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--muted); font: 700 .75rem var(--font); cursor: pointer; transition: background-color .15s ease; }
.sx-close:hover { background: var(--green-50); color: var(--ink); }
.sx-body { max-height: min(60vh, 540px); overflow: auto; padding: 8px; overscroll-behavior: contain; }
.sx-start { padding: 12px 12px 10px; }
.sx-label { margin: 0 0 10px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-chips button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-2); font: 600 .9rem var(--font); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.sx-chips button:hover, .sx-chips button:focus-visible { background: var(--green-50); border-color: var(--green-600); color: var(--green-800); transform: translateY(-1px); }
.sx-list { list-style: none; margin: 0; padding: 0; }
.sx-list a { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background-color .12s ease; }
.sx-list li.on a { background: var(--green-50); }
.sx-t { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.sx-t mark { padding: 0 1px; border-radius: 3px; background: rgba(255,201,40,.5); color: inherit; }
.sx-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .82rem; color: var(--muted); }
.sx-k { padding: 2px 9px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-weight: 700; font-size: .74rem; }
.sx-msg { margin: 0; padding: 14px; color: var(--muted); }
.sx-msg:empty { display: none; }
.sx-all { display: block; margin: 4px 0 2px; padding: 12px 14px; border-radius: 14px; color: var(--green-700); font-weight: 700; text-decoration: none; }
.sx-all:hover, .sx-all:focus-visible { background: var(--green-50); }
.sx-keys { margin: 0; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--bg); font-size: .78rem; color: var(--muted); }
.sx-keys kbd { margin: 0 2px 0 6px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: #fff; font: 700 .72rem var(--font); }
.sx-keys kbd:first-child { margin-left: 0; }
@media (hover: none) { .sx-keys { display: none; } }
@media (max-width: 600px) { .sx-panel { margin-top: 12px; } .sx-body { max-height: calc(100dvh - 110px); } }
@keyframes sx-in { from { opacity: 0; transform: translateY(-16px) scale(.98); } }
@keyframes sx-fade { from { opacity: 0; } }
@keyframes sx-item { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: no-preference) {
  .sx[open] .sx-panel { animation: sx-in .3s cubic-bezier(.2,.7,.2,1); }
  .sx[open]::backdrop { animation: sx-fade .25s ease-out; }
  .sx-list li { animation: sx-item .22s ease-out both; animation-delay: calc(var(--i, 0) * 22ms); }
}

/* Results page */
.search-page-form { display: flex; gap: 10px; max-width: 640px; margin-top: 24px; }
.search-page-form input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: 500 1.05rem var(--font); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease; }
.search-page-form input:focus { outline: 0; border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(20,138,41,.14); }
.search-results h2 { font-size: 1.35rem; margin: 2.2em 0 .5em; }
.search-results h2:first-child { margin-top: 0; }
.search-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.search-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.search-list a { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.search-list a:hover { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.search-detail { display: block; margin-top: 2px; font-size: .85rem; font-weight: 600; color: var(--green-700); }
.search-list p { margin: 6px 0 0; font-size: .95rem; color: var(--muted); }

/* ===================== Footer ===================== */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: .95rem; }
.f-top { display: grid; gap: 40px; }
@media (min-width: 960px) { .f-top { grid-template-columns: 1fr 1.4fr; gap: 64px; } }
.f-big { color: #fff; font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -.025em; margin-bottom: 16px; }
.f-big span { color: var(--mango); }
.site-footer h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--mango); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; overflow-wrap: anywhere; }
.f-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.f-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; font-size: .82rem; }

/* ===================== Page header (inner pages) ===================== */
.page-head { padding: 40px 0 36px; background: linear-gradient(180deg, var(--green-50), var(--bg)); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .page-head { padding: 64px 0 52px; } }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 22ch; }
.page-head .lede { max-width: 62ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: .85rem; margin-bottom: 18px; color: var(--muted); }
.crumbs a { color: var(--green-700); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

/* ===================== Listings ===================== */
.l-count { margin: 16px 0 0; color: var(--muted); }
.l-count strong { color: var(--ink); }
.l-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.l-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.l-chips a:hover { background: var(--green-50); }
.l-chips a[aria-current='page'] { background: var(--green-700); color: #fff; }
.l-chips span { color: var(--green-700); font-weight: 800; }
.l-group { padding: 40px 0; scroll-margin-top: 80px; }
.l-group + .l-group { padding-top: 0; }
@media (min-width: 900px) { .l-group { padding: 56px 0; } .l-group + .l-group { padding-top: 0; } }
.l-group h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.l-group h2 .n { font-size: 1rem; font-weight: 600; color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rows li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 0 16px 0 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows li:hover { background: var(--green-50); }
.row-main { display: grid; gap: 2px; padding: 14px 0 14px 18px; text-decoration: none; color: var(--ink); min-width: 0; }
.row-name { font-weight: 700; line-height: 1.3; }
.row-meta { color: var(--muted); font-size: .88rem; }
.row-call { font-size: .85rem; font-weight: 700; white-space: nowrap; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--green-50); }
.rows .arrow { color: var(--green-700); }
@media (max-width: 560px) {
  .rows li { grid-template-columns: 1fr auto; }
  .row-call { grid-column: 1; justify-self: start; margin: -8px 0 12px 18px; }
  .rows .arrow { grid-row: 1; grid-column: 2; }
}

/* ===================== Detail pages ===================== */
.d-hero { position: relative; color: var(--ink); background: linear-gradient(180deg, var(--green-50), var(--bg)); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.d-hero.has-img { color: #fff; background: var(--green-950); min-height: 340px; display: flex; align-items: flex-end; border: 0; }
@media (min-width: 900px) { .d-hero.has-img { min-height: 460px; } }
.d-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.d-hero.has-img::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,42,14,.15) 20%, rgba(6,42,14,.85) 100%); }
.d-hero .wrap { position: relative; width: 100%; padding-top: 48px; padding-bottom: 36px; }
.d-hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); max-width: 22ch; margin-bottom: 14px; }
.has-img .crumbs a { color: var(--mango); }
.has-img .crumbs span { color: rgba(255,255,255,.6); }
.d-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.d-chips span { padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--green-100); color: var(--green-800); }
.has-img .d-chips span { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.d-body { padding-top: 40px; }
.d-layout { display: grid; gap: 36px; }
@media (min-width: 960px) { .d-layout { grid-template-columns: 1fr 360px; gap: 56px; align-items: start; } }
.d-main { display: grid; gap: 36px; min-width: 0; }
.d-main h2 { font-size: 1.35rem; }
.d-prose { font-size: 1.08rem; color: var(--ink-2); max-width: 68ch; }
.d-prose p:last-child { margin-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.steps .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--green-50); font-size: 1.3rem; }
.steps .step { display: block; color: var(--ink-2); }
.steps .step p { margin: 0; }
.d-empty { padding: 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0; }
.facts { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 960px) { .facts { position: sticky; top: 92px; } }
.facts h2 { font-size: 1.1rem; }
.facts dl { margin: 0 0 20px; display: grid; gap: 14px; }
.facts dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; font-weight: 500; }
.facts .btn { width: 100%; justify-content: center; }

/* ===================== Posts ===================== */
.p-card .p-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--muted); font-size: .9rem; }
.p-card .p-meta .tag { margin: 0; }
.p-card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tabs a { padding: 8px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.tabs a[aria-current='page'] { background: var(--green-700); color: #fff; }
.posts-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 48px; color: var(--muted); }
.pager a { padding: 10px 20px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; }
.narrow { max-width: 820px; }
/* ===================== Articles (template-parts/single-post.php) ===================== */
.a-col { max-width: 760px; margin-inline: auto; }
.a-head { padding-top: clamp(28px, 5vw, 64px); padding-bottom: 28px; }
.a-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 20px 0 14px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.a-meta .tag { margin: 0; text-decoration: none; }
.a-meta time + span::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 12px 3px 0; border-radius: 50%; background: currentColor; opacity: .5; }
.a-head h1 { margin: 0 0 24px; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.a-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.a-share .label { margin-right: 4px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.share-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: 600 .88rem var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.share-btn svg { width: 16px; height: 16px; flex: none; }
.share-btn:hover, .share-btn:focus-visible { border-color: var(--green-600); background: var(--green-50); color: var(--ink); transform: translateY(-1px); }
.share-btn.fb svg { color: #1877f2; }
.share-btn.done { border-color: var(--green-600); background: var(--green-100); color: var(--green-800); }
.a-hero { margin: 0 auto; max-width: calc(1180px + 2 * var(--gutter)); }
.a-frame { overflow: hidden; border-radius: var(--radius-lg); background: var(--green-100); }
.a-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 700px) { .a-frame img { aspect-ratio: 4 / 3; } }
.a-body .prose { padding-top: clamp(28px, 4vw, 48px); }
.a-foot { padding-bottom: 8px; }
.a-foot .a-share { padding-top: 28px; border-top: 1px solid var(--line); }
.a-source { display: grid; gap: 4px; margin-top: 24px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.a-source strong { color: var(--ink); }
.a-source p { margin: 0; color: var(--muted); }
.a-sib { margin-top: 32px; margin-bottom: 72px; }
.a-sib .a-col { display: grid; gap: 12px; }
@media (min-width: 700px) { .a-sib .a-col { grid-template-columns: 1fr 1fr; } }
.a-sib a { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease; }
.a-sib a:hover, .a-sib a:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.a-sib a.r { grid-template-columns: 1fr 84px; text-align: right; }
.a-sib a.r > img, .a-sib a.r > .ph { order: 2; }
.a-sib img, .a-sib .ph { display: block; width: 84px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--green-100); }
.a-sib .dir { display: block; margin-bottom: 2px; font-size: .8rem; font-weight: 700; color: var(--green-700); }
.a-sib strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .98rem; line-height: 1.3; }
/* Reading progress: a thin mango bar that fills as the page scrolls. */
.read-progress { display: none; }
@keyframes read-grow { from { transform: scaleX(0); } }
@keyframes a-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes a-settle { from { opacity: 0; transform: scale(1.05); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .read-progress { display: block; position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 3px; background: var(--mango); transform-origin: 0 50%;
      animation: read-grow linear both; animation-timeline: scroll(root); }
  }
  .a-head .crumbs { animation: a-in .5s ease-out both; }
  .a-meta { animation: a-in .5s ease-out .06s both; }
  .a-head h1 { animation: a-in .7s cubic-bezier(.2,.7,.2,1) .12s both; }
  .a-head .a-share { animation: a-in .5s ease-out .24s both; }
  .a-frame img { animation: a-settle 1.2s cubic-bezier(.2,.7,.2,1) .1s both; }
}

/* ===================== Content written in the block editor (posts and pages) ===================== */
.prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink-2); padding: 24px 0 8px; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.6em 0 .5em; }
.prose h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.prose figure { margin: 1.6em 0; }
.prose img { border-radius: var(--radius-sm); height: auto; background: var(--green-100); }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0 0 .4em; padding-left: .2em; }
.prose li::marker { color: var(--green-600); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--mango); color: var(--ink); font-size: 1.15rem; line-height: 1.6; }
.prose blockquote p { margin: 0; }
/* Articles (inc/markdown.php): subheadings from bold lines, emoji lists, hashtag rows, intro. */
.prose h2.from-bold { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -.02em; }
.prose ul.icon-list { list-style: none; padding: 0; }
.prose .icon-list li { display: grid; grid-template-columns: 1.8em 1fr; gap: 4px; padding: 0; }
.prose .icon-list .ico { line-height: 1.75; }
.prose .post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2em 0 0; }
.prose .post-tags a { padding: 5px 12px; border-radius: 999px; background: var(--green-50); color: var(--green-800); font-size: .86rem; font-weight: 600; text-decoration: none; transition: background-color .15s ease; }
.prose .post-tags a:hover { background: var(--green-100); }
.single-post .prose > p:first-child { font-size: 1.2rem; line-height: 1.7; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.4em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.prose .wp-block-table { overflow-x: auto; }
/* Photo galleries laid out like photo posts on Facebook, in articles (inc/gallery.php) and on
   directory entries (single.php). fbg-n1…fbg-n5 = number of photos (5 means five or more).
   ":not(#individual-image)" matches WordPress's own gallery CSS so these rules win over it. */
.fbg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 1.8em 0; padding: 0; border-radius: var(--radius); overflow: hidden; }
.fbg > figure:not(#individual-image) { position: relative; width: auto !important; margin: 0; grid-column: span 2; overflow: hidden; background: var(--green-100); }
.fbg > figure img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; cursor: zoom-in;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.fbg > figure:hover img { transform: scale(1.04); filter: brightness(1.04); }
.fbg > figure img:focus-visible { outline: 3px solid var(--mango); outline-offset: -3px; }
.fbg > figcaption { grid-column: 1 / -1; }
/* 1 photo: full width at its own shape */
.fbg-n1 > figure:not(#individual-image) { grid-column: 1 / -1; }
.fbg-n1 > figure img { aspect-ratio: auto; max-height: 80vh; }
/* 2 photos: side by side */
.fbg-n2 > figure:not(#individual-image) { grid-column: span 3; }
.fbg-n2 > figure img { aspect-ratio: 4 / 5; }
/* 3 or 4 photos: one large on top, the rest in a row */
.fbg-n3 > figure:not(#individual-image):first-child, .fbg-n4 > figure:not(#individual-image):first-child { grid-column: 1 / -1; }
.fbg-n3 > figure:first-child img, .fbg-n4 > figure:first-child img { aspect-ratio: 16 / 10; }
.fbg-n3 > figure:not(#individual-image):not(:first-child) { grid-column: span 3; }
/* 5 or more: two on top, three below, the rest behind a "+N" tile */
.fbg-n5 > figure:not(#individual-image):nth-child(-n+2) { grid-column: span 3; }
.fbg-n5 > figure:not(#individual-image):nth-child(n+6) { display: none; }
.fbg-last::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  background: rgba(6,42,14,.55); color: #fff; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; transition: background-color .3s ease; }
.fbg-last:hover::after { background: rgba(6,42,14,.4); }
.d-main .fbg { margin: 0; }

/* Full-screen photo viewer (assets/js/viewer.js) */
html:has(.g-viewer[open]) { overflow: hidden; }
.g-viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4,20,8,.95); color: #fff; overflow: hidden; }
.g-viewer[open] { display: grid; place-items: center; }
.g-viewer::backdrop { background: transparent; }
.g-viewer figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.g-viewer img { width: auto; height: auto; max-width: min(94vw, 1600px); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 10px; background: none; user-select: none; }
.g-v-count { min-height: 1.2em; font-size: .9rem; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.g-viewer button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12);
  color: #fff; font: 400 32px/1 var(--font); cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.g-viewer button:hover { background: rgba(255,255,255,.26); }
.g-viewer button:active { transform: scale(.94); }
.g-v-close { top: 16px; right: 16px; }
.g-v-prev, .g-v-next { top: 50%; margin-top: -26px; }
.g-v-prev { left: 16px; } .g-v-next { right: 16px; }
.g-viewer.single .g-v-prev, .g-viewer.single .g-v-next { display: none; }
@media (max-width: 700px) { .g-v-prev, .g-v-next { top: auto; bottom: 18px; margin: 0; } .g-v-prev { left: calc(50% - 64px); } .g-v-next { right: calc(50% - 64px); } .g-viewer img { max-height: calc(100dvh - 170px); } }
@keyframes g-v-fade { from { opacity: 0; } }
@keyframes g-v-zoom { from { opacity: 0; transform: scale(.94); } }
@keyframes g-v-r { from { opacity: 0; transform: translateX(48px); } }
@keyframes g-v-l { from { opacity: 0; transform: translateX(-48px); } }
@media (prefers-reduced-motion: no-preference) {
  .g-viewer[open] { animation: g-v-fade .25s ease-out; }
  .g-viewer[open] img { animation: g-v-zoom .35s cubic-bezier(.2,.7,.2,1); }
  .g-viewer img.in-r { animation: g-v-r .3s cubic-bezier(.2,.7,.2,1); }
  .g-viewer img.in-l { animation: g-v-l .3s cubic-bezier(.2,.7,.2,1); }
}
.prose .wp-block-columns { display: grid; gap: 16px 28px; margin: 1.4em 0; }
@media (min-width: 700px) { .prose .wp-block-columns { grid-auto-flow: column; grid-auto-columns: 1fr; } }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4em 0; }
.prose .wp-block-button__link { display: inline-flex; padding: 12px 22px; border-radius: 999px; background: var(--green-700); color: #fff; text-decoration: none; font-weight: 700; }
.prose .wp-block-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin: 0 0 10px; }
.prose .wp-block-file a:first-child { font-weight: 700; text-decoration: none; }
.prose .wp-block-file__button { padding: 8px 14px; border-radius: 999px; background: var(--green-50); color: var(--green-800); text-decoration: none; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.prose video, .prose iframe { width: 100%; border-radius: var(--radius-sm); }
.prose .wp-block-group.is-style-card, .prose .card-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin: 1.4em 0; }
.prose .alignwide { max-width: none; }
/* Pages: charts, tables, figures and side-by-side sections use the full width; running text keeps a
   comfortable reading width. */
.page-body .prose > p, .page-body .prose > ul, .page-body .prose > ol, .page-body .prose > h2, .page-body .prose > h3, .page-body .prose > .wp-block-details { max-width: 820px; }
.page-body .prose > .wp-block-heading { margin-top: 2em; }
.page-body .prose > .wp-block-heading:first-child { margin-top: 0; }

/* ===================== Charts ===================== */
.g-chart { margin: 1.6em 0; padding: 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.g-chart__title { font-weight: 800; color: var(--ink); font-size: 1.1rem; margin-bottom: 14px; text-align: left; }
.g-chart__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; padding: 0; font-size: .85rem; color: var(--muted); }
.g-chart__legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.g-chart__rows { display: grid; gap: 10px; }
.g-chart__row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr; gap: 12px; align-items: center; font-size: .9rem; }
.g-chart__label { color: var(--ink-2); line-height: 1.3; }
.g-chart__bars { display: grid; gap: 4px; }
.g-chart__bar { position: relative; display: block; height: 26px; width: var(--v); min-width: 4px; border-radius: 6px; }
.g-chart__bar b { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font-size: .85rem; white-space: nowrap; color: var(--ink); }
.g-chart--bar .g-chart__bars, .g-chart--column .g-chart__bars { padding-right: 70px; }
.s0 { background: var(--green-600); } .s1 { background: var(--mango); } .s2 { background: #5aa9e6; } .s3 { background: #8d6cab; }
.g-chart svg { width: 100%; height: auto; overflow: visible; }
.g-chart svg .grid { stroke: var(--line); }
.g-chart svg polyline { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; background: none; }
.g-chart svg polyline.s0, .g-chart svg circle.s0 { stroke: var(--green-600); } .g-chart svg polyline.s1, .g-chart svg circle.s1 { stroke: var(--mango-600); }
.g-chart svg polyline.s2, .g-chart svg circle.s2 { stroke: #5aa9e6; }
.g-chart svg circle { fill: #fff; stroke-width: 3; }
.g-chart svg text { font: 600 13px var(--font); fill: var(--ink-2); text-anchor: middle; }
.g-chart svg .lbl { fill: var(--muted); font-weight: 500; }
.g-chart__data { margin-top: 14px; font-size: .85rem; }
.g-chart__data summary { cursor: pointer; color: var(--green-700); font-weight: 700; }
.g-chart__data table { margin: 10px 0 0; }
.g-chart__note { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }

/* ===================== Contact form ===================== */
.contact-form { display: grid; gap: 4px; background: var(--surface); padding: clamp(20px, 4vw, 32px); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.contact-form p { margin: 0 0 14px; }
.contact-form .row2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .contact-form .row2 { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.contact-form .opt { color: var(--muted); font-weight: 500; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--green-600); background: #fff; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-note { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-note.ok { background: var(--green-100); color: var(--green-900); }
.form-note.err { background: #fde8e8; color: #8a1c1c; }

/* WordPress core helpers */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===================== Page building blocks ===================== */
.prose > .wp-block-media-text { margin: 2.4em 0; gap: 0; align-items: center; }
.prose .wp-block-media-text { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 800px) {
  .prose .wp-block-media-text { grid-template-columns: 1fr 1.1fr; gap: 40px; }
  .prose .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1.1fr 1fr; }
}
.prose .wp-block-media-text__content { padding: 0; }
.prose .wp-block-media-text__content > :first-child { margin-top: 0; }
.prose .wp-block-media-text__media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); }
@media (max-width: 799px) { .prose .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: -1; } }
.prose .wp-block-details { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 0; margin: 0 0 10px; overflow: hidden; }
.prose .wp-block-details summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--ink); position: relative; list-style: none; }
.prose .wp-block-details summary::-webkit-details-marker { display: none; }
.prose .wp-block-details summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green-700); }
.prose .wp-block-details[open] summary::after { content: '–'; }
.prose .wp-block-details > :not(summary) { padding: 0 18px; }
.prose .wp-block-details > :last-child { padding-bottom: 16px; }
.prose .wp-block-details .wp-block-table { padding: 0 8px 12px; margin: 0; }
.prose .downloads { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose .downloads li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.prose .downloads a { font-weight: 700; text-decoration: none; }
.prose .downloads a::before { content: '↓'; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 8px; background: var(--green-50); color: var(--green-700); }
.prose .downloads span { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.prose .is-style-card, .prose .card-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.prose .cards { gap: 16px; }
.prose .cards .wp-block-column { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.prose .cards .wp-block-column > :first-child { margin-top: 0; }
.prose .cards .wp-block-column > :last-child { margin-bottom: 0; }
.prose .cards h3 { font-size: 1.05rem; }
.prose .lede, .prose .is-lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink); }
.prose .eyebrow { margin-bottom: 4px; }
.prose .band { background: var(--green-950); color: rgba(255,255,255,.85); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 48px); margin: 2.4em 0; }
.prose .band h2, .prose .band h3, .prose .band strong { color: #fff; }
.prose .band .eyebrow { color: var(--mango); }
.prose .band a { color: var(--mango); }
.prose .tel-table td:last-child, .prose .tel-table td:last-child a { white-space: nowrap; font-weight: 700; }
.prose .wp-block-buttons .wp-block-button__link:hover { background: var(--green-800); }
.g-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 1.4em 0; }
.g-figure { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 4px; align-content: start; }
.g-figure strong { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; color: var(--green-700); line-height: 1.1; }
.g-figure span { color: var(--ink-2); font-size: .92rem; line-height: 1.35; }
.g-figure small { color: var(--muted); font-size: .78rem; }
.band .g-figure { background: rgba(255,255,255,.08); box-shadow: none; border: 1px solid rgba(255,255,255,.14); }
.band .g-figure strong { color: var(--mango); }
.band .g-figure span { color: rgba(255,255,255,.82); }
.g-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 1.4em 0; }
.g-ring { display: grid; justify-items: center; gap: 10px; text-align: center; }
.g-ring__val { width: 112px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: var(--ink);
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 77%), conic-gradient(var(--green-600) calc(var(--p) * 1%), var(--green-100) 0); }
.g-ring__label { font-size: .9rem; color: var(--ink-2); line-height: 1.3; max-width: 18ch; }
.g-dir-preview { margin: 2em 0; }
.g-dir-preview .grid { margin-bottom: 20px; }
.g-dir-more { margin: 16px 0 0; }
.g-chart svg rect.s0 { fill: var(--green-600); } .g-chart svg rect.s1 { fill: var(--mango); } .g-chart svg rect.s2 { fill: #5aa9e6; } .g-chart svg rect.s3 { fill: #8d6cab; }
.g-chart svg rect { transition: opacity .15s ease; }
.g-chart svg rect:hover { opacity: .8; }
.g-chart svg .axis { text-anchor: end; fill: var(--muted); font-weight: 500; font-size: 12px; }
.g-chart svg .val { font-size: 12px; }
.prose .wp-block-columns .g-chart { margin: 0; height: 100%; }
.g-chart .g-chart__title { font-size: 1.05rem; text-align: left; color: var(--ink); margin: 0 0 12px; font-weight: 800; }
.g-chart--column svg, .g-chart--line svg { max-height: 340px; }

/* Tables: card style, shaded header, horizontal dividers only; scroll sideways on small screens. */
.prose .wp-block-table { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; margin: 1em 0 1.6em; }
.prose .wp-block-table table { margin: 0; min-width: 480px; border-collapse: collapse; width: 100%; }
.prose .wp-block-table th, .prose .wp-block-table td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
.prose .wp-block-table thead th { background: var(--green-50); color: var(--green-800); font-size: .78rem; border-bottom: 1px solid var(--green-100); }
.prose .wp-block-table tbody tr:last-child td { border-bottom: 0; }
.prose .wp-block-table tbody tr:hover { background: var(--bg); }
.prose .wp-block-table td:first-child { font-weight: 600; color: var(--ink); }
.prose .wp-block-details .wp-block-table { box-shadow: none; border-radius: 0; margin: 0; }
.prose .tel-table table { min-width: 0; }
.prose > h3.wp-block-heading { font-size: 1.15rem; margin-top: 1.8em; }
.prose .band .lede a { color: #fff; font-weight: 800; font-size: 1.15em; text-decoration: none; border-bottom: 2px solid var(--mango); }

/* Phones: two figures per row, larger chart labels, tighter page spacing. */
@media (max-width: 600px) {
  .g-figures { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-figure { padding: 14px; }
  .g-figure strong { font-size: 1.25rem; }
  .g-figure span { font-size: .82rem; }
  .g-chart { padding: 16px 14px; }
  .g-chart svg text { font-size: 24px; }
  .g-chart svg .axis, .g-chart svg .val { font-size: 22px; }
  .g-rings { grid-template-columns: 1fr 1fr; }
  .g-ring__val { width: 96px; font-size: 1.15rem; }
}
.page-body { padding-top: 40px; }
@media (min-width: 900px) { .page-body { padding-top: 56px; } }
.page-body .prose { padding-top: 0; }
.prose .downloads span { white-space: nowrap; flex: none; }
/* Schedules on phones: each row becomes a small card (time, then activity and venue). */
@media (max-width: 600px) {
  .prose .schedule table { min-width: 0; }
  .prose .schedule thead { display: none; }
  .prose .schedule tr { display: grid; gap: 2px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .prose .schedule td { padding: 0; border: 0; }
  .prose .schedule td:first-child { font-size: .8rem; font-weight: 700; color: var(--green-700); }
  .prose .schedule td:nth-child(2) { font-weight: 700; color: var(--ink); }
  .prose .schedule td:nth-child(3) { font-size: .85rem; color: var(--muted); }
}

/* ===================== Chart motion =====================
   Bars grow, lines draw and rings sweep as each chart scrolls into view; hovering highlights a value.
   Runs once per view, in under a second, and is skipped for visitors who prefer reduced motion. */
.g-chart svg rect, .g-chart svg circle { transform-box: fill-box; }
.g-chart svg:hover rect, .g-chart svg:hover circle, .g-chart__rows:hover .g-chart__bar { opacity: .55; transition: opacity .2s ease; }
.g-chart svg rect:hover, .g-chart svg circle:hover, .g-chart__row:hover .g-chart__bar { opacity: 1; }
.g-chart svg circle:hover { transform: scale(1.35); transform-origin: center; }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
@keyframes g-rise { from { transform: scaleY(0); } }
@keyframes g-extend { from { width: 0; } }
@keyframes g-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes g-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes g-fade { from { opacity: 0; } }
@keyframes g-sweep { from { --p: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .g-chart svg rect { transform-origin: bottom; animation: g-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .g-chart__bar { animation: g-extend .8s cubic-bezier(.2,.7,.2,1) both; }
  .g-chart svg polyline { stroke-dasharray: 1; animation: g-draw 1s ease-out both; }
  .g-chart svg circle { transform-origin: center; animation: g-pop .4s .6s ease-out both; }
  .g-chart svg .val, .g-chart__bar b { animation: g-fade .4s .5s ease-out both; }
  .g-ring { animation: g-sweep 1s cubic-bezier(.2,.7,.2,1) both; }
  /* Where supported, start each animation as the chart enters the screen rather than on page load. */
  @supports (animation-timeline: view()) {
    .g-chart svg rect, .g-chart__bar, .g-chart svg polyline, .g-chart svg circle, .g-chart svg .val, .g-chart__bar b, .g-ring {
      animation-timeline: view(); animation-range: entry 5% entry 90%; animation-delay: 0s;
    }
  }
}
/* Detail pages with only contact details: the card stands alone instead of a "coming soon" note. */
.d-main:empty { display: none; }
@media (min-width: 960px) { .d-layout:has(.facts-only) { grid-template-columns: minmax(0, 560px); } }
.facts-only { position: static; }

/* Wide screens: more air between menu items. */
@media (min-width: 1500px) {
  .menu a:not(.btn), .sub > summary { padding: 10px 15px; font-size: .95rem; }
  .menu nav > ul { gap: 8px; }
  .logo .l1 { font-size: 1.55rem; }
}
