/* =========================================================
   KENEWA public website design (October 2026)
   Calm, warm and editorial: forest green, cream, white cards,
   with red and gold used sparingly, and a thin "bead" band
   inspired by Kenyan beadwork.
   Fonts: Manrope (headings) and Inter (text), both stored in
   fonts/ under the SIL Open Font License.
   ========================================================= */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  /* colour */
  --green: #14532D;          /* primary: navigation, headings, buttons, trust */
  --green-hover: #0F4223;
  --green-tint: #EAF1EA;     /* soft green wash */
  --deep: #102A24;           /* footer and dark sections */
  --deep-2: #17362F;
  --red: #B42318;            /* accent: urgent things only */
  --red-tint: #FCEDEB;
  --gold: #D99A18;           /* accent: small details */
  --gold-tint: #FBF2DD;
  --gold-on-dark: #EDB548;
  --cream: #FAF8F2;          /* page background */
  --white: #FFFFFF;          /* cards */
  --ink: #1F2933;            /* text */
  --muted: #4A5560;          /* secondary text (7.3:1 on cream) */
  --line: #E5E0D2;           /* borders */
  --line-strong: #D3CCB9;
  --on-dark: #E8EFEA;
  --on-dark-muted: #B8C9C1;

  /* type */
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h4: 1.125rem;
  --fs-h3: clamp(1.2rem, 1.12rem + 0.35vw, 1.375rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem);
  --fs-h1: clamp(2.25rem, 1.55rem + 3.1vw, 3.75rem);
  --fs-display: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);

  /* space */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section: clamp(3.5rem, 2.5rem + 4.5vw, 7rem);
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
  --max: 1200px;

  /* shape */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 36, .05);
  --shadow: 0 1px 2px rgba(16, 42, 36, .04), 0 10px 30px -12px rgba(16, 42, 36, .14);
  --shadow-lg: 0 2px 4px rgba(16, 42, 36, .04), 0 24px 50px -20px rgba(16, 42, 36, .25);
  --focus: 0 0 0 3px var(--cream), 0 0 0 6px var(--green);

  /* the bead band: green, gold, red and charcoal "beads" with cream gaps */
  --beads: repeating-linear-gradient(90deg,
    var(--green) 0 14px, transparent 14px 18px,
    var(--gold) 18px 24px, transparent 24px 28px,
    var(--green) 28px 42px, transparent 42px 46px,
    var(--red) 46px 52px, transparent 52px 56px,
    var(--green) 56px 70px, transparent 70px 74px,
    var(--ink) 74px 80px, transparent 80px 84px);
  /* kanga-style diamond lattice (decoration only) */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23D99A18' stroke-width='1'%3E%3Cpath d='M20 2 38 20 20 38 2 20z'/%3E%3Cpath d='M20 12l8 8-8 8-8-8z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.65;
  font-feature-settings: "cv11", "ss01"; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green); margin: 0 0 var(--s-4); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 750; line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 750; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
h4 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -0.005em; color: var(--ink); }
p, ul, ol, dl { margin: 0 0 var(--s-4); }
p { text-wrap: pretty; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--green-hover); text-decoration-thickness: 2px; }
strong { font-weight: 650; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.on-dark :focus-visible, .site-footer :focus-visible { box-shadow: 0 0 0 3px var(--deep), 0 0 0 6px var(--gold-on-dark); }
::selection { background: var(--gold-tint); color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--green); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--s-3); color: #fff; }
main:focus { outline: none; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
.measure { max-width: 38rem; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 40rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.stack > * + * { margin-top: var(--s-4); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--green); --btn-fg: #fff; --btn-bd: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7rem 1.4rem; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font: 650 1rem/1.2 var(--font-head); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { color: var(--btn-fg); text-decoration: none; }
.btn--primary:hover { --btn-bg: var(--green-hover); --btn-bd: var(--green-hover); box-shadow: 0 6px 16px -8px rgba(20, 83, 45, .6); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--green); --btn-bd: var(--green); }
.btn--secondary:hover { --btn-bg: var(--green-tint); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--green); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--cream); --btn-bd: var(--cream); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--ghost-light:hover { --btn-bg: rgba(255,255,255,.08); --btn-bd: #fff; }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--deep); --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: var(--gold-on-dark); --btn-bd: var(--gold-on-dark); }
.btn--red { --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: var(--red); }
.btn--red:hover { --btn-bg: #951C13; --btn-bd: #951C13; }
.btn--sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.btn .ic { width: 1.15em; height: 1.15em; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.link-strong { font-family: var(--font-head); font-weight: 700; display: inline-flex; gap: .4em; align-items: center; }

/* ---------- bead band ---------- */
.beads { height: 6px; background: var(--beads); opacity: .95; }
.beads--hero { height: 5px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 242, .94); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(250, 248, 242, .85); backdrop-filter: saturate(1.4) blur(12px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(16, 42, 36, .35); }
.site-header__in { display: flex; align-items: center; gap: var(--s-4); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--green); min-width: 0; }
.brand img { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font: 800 1.35rem/1 var(--font-head); letter-spacing: 0.02em; }
.brand__full { font-size: 0.72rem; color: var(--muted); margin-top: 0.25rem; letter-spacing: 0.005em; }
.brand--light { color: #fff; }
.brand--light .brand__full { color: var(--on-dark-muted); }
.brand--light img { background: #fff; border-radius: 50%; }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; }
.nav__list a { display: block; padding: 0.55rem 0.7rem; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font: 600 0.95rem/1.2 var(--font-head); white-space: nowrap; }
.nav__list a:hover { background: var(--green-tint); color: var(--green); }
.nav__list a[aria-current="page"] { color: var(--green); background: var(--green-tint); }
.nav__members { display: none; }
.site-header__actions { display: flex; align-items: center; gap: var(--s-2); }
.signin-link { white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .7rem; color: var(--green); font: 600 .95rem/1 var(--font-head); text-decoration: none; border-radius: var(--r-pill); min-height: 44px; }
.signin-link:hover { background: var(--green-tint); }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--green); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ic { width: 22px; height: 22px; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }

@media (max-width: 1340px) {
  .brand__full { display: none; }
}
@media (max-width: 1180px) {
  .signin-link span { display: none; }
  .nav__list a { padding-inline: .55rem; }
}
@media (max-width: 1080px) {
  .brand__full { display: block; }
  .menu-btn { display: inline-flex; }
  .signin-link { display: none; }
  .nav { margin-left: auto; }
  .nav__list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: var(--s-3) var(--gutter) var(--s-5);
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(16,42,36,.35);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { padding: 0.9rem 0.75rem; font-size: 1.05rem; border-radius: var(--r-sm); border-bottom: 1px solid var(--line); }
  .nav__list li:last-child a { border-bottom: 0; }
  .nav__members { display: block; }
  .nav__members a { display: flex; gap: .5rem; align-items: center; color: var(--green); }
  .site-header__in { position: relative; }
}
@media (max-width: 520px) {
  .brand__full { display: none; }
  .site-header__in { min-height: 68px; gap: var(--s-2); }
  .brand img { width: 40px; height: 40px; }
  .site-header__actions .btn--sm { padding-inline: .9rem; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--tint { background: var(--green-tint); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section-head { max-width: 44rem; margin-bottom: var(--s-7); }
.section-head p:last-child { margin-bottom: 0; }
.section-head--split { max-width: none; display: grid; gap: var(--s-5); align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr 1fr; gap: var(--s-8); } }
.section-foot { margin-top: var(--s-6); }

.on-dark { background: var(--deep); color: var(--on-dark); position: relative; isolation: isolate; }
.on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark a:not(.btn) { color: #fff; }
.on-dark .lead, .on-dark .muted { color: var(--on-dark-muted); }
.lattice::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--lattice); background-size: 40px 40px; opacity: .08; pointer-events: none; }

/* ---------- home hero ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem); position: relative; overflow: hidden; }
.hero__in { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (min-width: 960px) { .hero__in { grid-template-columns: 1.02fr 1fr; } }
.hero__kicker { display: inline-flex; align-items: center; gap: .6rem; font: 650 1rem/1 var(--font-head); color: var(--green); margin-bottom: var(--s-5); }
.hero__kicker::before { content: ""; width: 34px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--green) 0 50%, var(--gold) 50% 70%, var(--red) 70% 100%); }
.hero h1 { font-size: var(--fs-display); margin-bottom: var(--s-5); max-width: 13ch; }
.hero .lead { margin-bottom: var(--s-6); }
.hero__secondary { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
.hero__secondary span[lang] { font-style: italic; }
.hero__media { position: relative; }
.hero__frame { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--green-tint); aspect-ratio: 4 / 3.3; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__pattern { position: absolute; z-index: -1; right: -28px; top: -28px; width: 62%; height: 62%; border-radius: var(--r-xl); background: var(--deep); overflow: hidden; }
.hero__pattern::after { content: ""; position: absolute; inset: 0; background-image: var(--lattice); background-size: 32px 32px; opacity: .35; }
.hero__media .beads { position: relative; margin: -3px 12% 0; border-radius: 3px; }
.location-chip { position: absolute; left: var(--s-4); bottom: var(--s-5); display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem .55rem .7rem; background: rgba(255,255,255,.96); border-radius: var(--r-pill); font: 650 .9rem/1.2 var(--font-head); color: var(--green); box-shadow: var(--shadow); }
.location-chip .ic { color: var(--red); }
.hero__caption { margin-top: var(--s-4); font-size: .85rem; color: var(--muted); }
@media (max-width: 959px) { .hero__pattern { right: -12px; top: -12px; } }

/* ---------- inner page banner ---------- */
.page-hero { position: relative; padding-block: clamp(2rem, 1.2rem + 3vw, 4.5rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-hero__in--aside { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 960px) { .page-hero__in--aside { grid-template-columns: 1.2fr 1fr; } }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-bottom: var(--s-5); }
.page-hero .beads { position: absolute; left: 0; bottom: -3px; width: min(260px, 40vw); }
.page-hero__photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--fs-sm); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.card--link { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.grid { display: grid; gap: clamp(1rem, .8rem + .8vw, 1.5rem); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.icon-badge { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--green-tint); color: var(--green); margin-bottom: var(--s-5); }
.icon-badge .ic { width: 26px; height: 26px; }
.icon-badge--gold { background: var(--gold-tint); color: #7A5308; }
.icon-badge--red { background: var(--red-tint); color: var(--red); }

/* service cards */
.service { display: flex; flex-direction: column; }
.service h3 { margin-bottom: var(--s-3); }
.service p { color: var(--muted); }
.service__more { margin-top: auto; padding-top: var(--s-3); }

/* ---------- trust / register ---------- */
.trust { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .trust { grid-template-columns: 1fr 1fr; align-items: start; } }
.register { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.register__head { display: flex; align-items: center; gap: .75rem; padding: var(--s-4) var(--s-5); background: var(--green); color: #fff; font: 700 1rem/1.3 var(--font-head); }
.register__head img { width: 34px; height: 34px; background: #fff; border-radius: 50%; }
.register dl { margin: 0; }
.register__row { position: relative; padding: var(--s-4) var(--s-5) var(--s-4) calc(var(--s-5) + 2.35rem); border-top: 1px solid var(--line); }
.register__row:first-child { border-top: 0; }
.register__row .ic { position: absolute; left: var(--s-5); top: calc(var(--s-4) + .15rem); color: var(--green); }
.register dt { font-size: var(--fs-sm); color: var(--muted); }
.register dd { margin: 0; font-weight: 600; }
.register .num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- about split ---------- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-text { grid-template-columns: .9fr 1.1fr; } }
.split__media { position: relative; }
.split__media img { border-radius: var(--r-xl); box-shadow: var(--shadow); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.split__media figcaption { margin-top: var(--s-3); font-size: .85rem; color: var(--muted); }
.values { list-style: none; padding: 0; margin: var(--s-6) 0; display: grid; gap: var(--s-4); }
.values li { display: grid; grid-template-columns: 6px 1fr; gap: var(--s-4); }
.values li::before { content: ""; border-radius: 3px; background: var(--green); }
.values li:nth-child(2)::before { background: var(--gold); }
.values li:nth-child(3)::before { background: var(--red); }
.values h3 { font-size: var(--fs-h4); margin-bottom: .2rem; color: var(--green); }
.values p { margin: 0; color: var(--muted); }

/* ---------- region ---------- */
.region { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .region { grid-template-columns: 1fr 1.05fr; } }
.towns { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: var(--s-3); }
.towns li { display: flex; gap: .75rem; align-items: flex-start; }
.towns .ic { color: var(--gold-on-dark); margin-top: .15rem; }
.towns strong { color: #fff; }
.map-card { background: var(--deep-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-xl); padding: clamp(1rem, .5rem + 2vw, 2rem); }
.map-card > svg { width: 100%; height: auto; }
.map-card figcaption { display: flex; gap: .5rem; align-items: flex-start; }
.map-card figcaption .ic { color: var(--gold-on-dark); margin-top: .1rem; }
.map-card figcaption { font-size: .85rem; color: var(--on-dark-muted); margin-top: var(--s-3); }

/* ---------- involvement rows ---------- */
.involve { display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .involve { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); } }
.involve__item { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4) var(--s-5); align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.3rem, 1rem + 1vw, 2rem); }
.involve__item .icon-badge { margin: 0; }
.involve__item h3 { margin-bottom: var(--s-2); }
.involve__item p { color: var(--muted); }
.involve__item .btn { margin-top: var(--s-2); }

/* ---------- events and news ---------- */
.feed { display: grid; gap: clamp(1rem, .8rem + .8vw, 1.5rem); }
@media (min-width: 720px) { .feed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feed { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.post__img { aspect-ratio: 16/9; background: var(--green-tint); overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.post__body > * { margin: 0; }
.post__top { display: flex; gap: var(--s-4); align-items: flex-start; }
.date-tile { flex: none; width: 64px; border-radius: 14px; overflow: hidden; text-align: center; border: 1px solid var(--line); font-family: var(--font-head); }
.date-tile__m { display: block; background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem 0; letter-spacing: .02em; }
.date-tile__d { display: block; font-size: 1.6rem; font-weight: 800; color: var(--green); padding: .25rem 0 .3rem; line-height: 1.1; }
.post h3 { font-size: 1.15rem; line-height: 1.3; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--green); text-decoration: underline; }
.post__meta { list-style: none; padding: 0; display: grid; gap: .35rem; font-size: var(--fs-sm); color: var(--muted); }
.post__meta li { display: flex; gap: .5rem; align-items: flex-start; }
.post__meta .ic { width: 1.05rem; height: 1.05rem; margin-top: .2rem; color: var(--green); }
.post__text { color: var(--muted); font-size: var(--fs-sm); }
.post__foot { margin-top: auto !important; padding-top: var(--s-2); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.tag { display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; padding: .25rem .65rem; border-radius: var(--r-pill); font: 650 .78rem/1.3 var(--font-head); background: var(--green-tint); color: var(--green); }
.tag--culture { background: var(--gold-tint); color: #6E4A06; }
.tag--welfare { background: var(--red-tint); color: #8F1C13; }
.tag--volunteer { background: #EEEAF6; color: #4B3A78; }
.tag--news { background: #E8EEF3; color: #24445C; }
.status { font-size: .8rem; font-weight: 600; color: #6E4A06; }
.empty p { max-width: 40rem; margin-inline: auto; }
.empty { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: var(--s-6); text-align: center; color: var(--muted); background: rgba(255,255,255,.5); }
.empty .ic { width: 32px; height: 32px; margin: 0 auto var(--s-3); color: var(--green); }
.noticeboard { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.noticeboard li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.noticeboard li:first-child { border-top: 0; }
.noticeboard .ic { color: var(--gold); margin-top: .2rem; }

/* ---------- testimonials ---------- */
.quotes { display: grid; gap: var(--s-5); }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); position: relative; }
.quote::before { content: ""; position: absolute; left: var(--s-6); top: 0; width: 48px; height: 5px; border-radius: 0 0 3px 3px; background: var(--gold); }
.quote blockquote { margin: 0 0 var(--s-5); font: 500 1.15rem/1.6 var(--font-head); color: var(--ink); }
.quote figcaption { display: flex; gap: var(--s-3); align-items: center; font-size: var(--fs-sm); color: var(--muted); }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption strong { display: block; color: var(--ink); }

/* ---------- support band ---------- */
.band { border-radius: var(--r-xl); padding: clamp(2rem, 1.2rem + 3vw, 4rem); position: relative; overflow: hidden; isolation: isolate; }
.band--gold { background: var(--gold-tint); border: 1px solid #EFDDB0; }
.band--gold::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -40px; width: 300px; height: 300px; background-image: var(--lattice); background-size: 36px 36px; opacity: .45; -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 30%, transparent 70%); mask-image: radial-gradient(circle at 70% 30%, #000 30%, transparent 70%); }
.band--dark { background: var(--deep); color: var(--on-dark); }
.band--dark h2 { color: #fff; }
.band h2 { max-width: 22ch; }
.band p { max-width: 40rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: var(--s-5) var(--s-1); font: 650 1.075rem/1.4 var(--font-head); color: var(--ink); border-radius: 8px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--green); }
.faq__chev { width: 22px; height: 22px; color: var(--green); transition: transform .2s ease; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__body { padding: 0 var(--s-1) var(--s-5); color: var(--muted); max-width: 46rem; }
.faq__body > :last-child { margin-bottom: 0; }

/* ---------- notes ---------- */
.note { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--green-tint); border: 1px solid #D3E2D5; }
.note p { margin: 0; }
.note .ic { color: var(--green); margin-top: .2rem; }
.note--alert { background: var(--red-tint); border-color: #F3CFCA; }
.note--alert .ic { color: var(--red); }
.note--alert a { color: #8F1C13; font-weight: 700; }
.note--gold { background: var(--gold-tint); border-color: #EFDDB0; }
.note--gold .ic { color: #7A5308; }

/* ---------- contact ---------- */
.contact { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .contact { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: grid; gap: var(--s-5); }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: start; }
.contact-list li > .ic { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--green); }
.contact-list div { display: flex; flex-direction: column; }
.contact-list__label { font-size: var(--fs-sm); color: var(--muted); }
.contact-list a, .contact-list span:not(.contact-list__label):not(.contact-list__meta) { font-weight: 600; color: var(--ink); }
.contact-list a { color: var(--green); }
.contact-list__meta { font-size: var(--fs-sm); color: var(--muted); }
.contact-list__meta a { font-weight: 500; }

/* ---------- forms ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 1rem + 1.6vw, 2.5rem); box-shadow: var(--shadow); }
.form__grid { display: grid; gap: var(--s-5); margin-bottom: var(--s-5); }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font: 650 .95rem/1.4 var(--font-head); color: var(--ink); margin-bottom: .45rem; padding: 0; }
.field__opt { font-weight: 500; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem; border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314532D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A9A18C; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 83, 45, .18); }
.field [aria-invalid="true"] { border-color: var(--red) !important; }
.field__hint { font-size: .875rem; color: var(--muted); margin: .4rem 0 0; }
.field__error { display: flex; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--red); margin: .45rem 0 0; }
.field__error::before { content: "!"; flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--red); color: #fff; font-size: .75rem; display: grid; place-items: center; margin-top: .15rem; }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.field .choice { display: inline-flex; align-items: center; gap: .55rem; font: 500 1rem/1.4 var(--font-body); padding: .6rem 1.1rem .6rem .85rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); cursor: pointer; min-height: 48px; margin: 0; background: #fff; }
.field .choice:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.field .choice input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; flex: none; }
.field .choice--consent { display: flex; border-radius: var(--r-md); align-items: flex-start; padding: .9rem 1rem; }
.field .choice--consent input { margin-top: .15rem; }
.form__privacy { display: flex; gap: .6rem; font-size: .875rem; color: var(--muted); margin-bottom: var(--s-5); }
.form__privacy .ic { color: var(--green); margin-top: .15rem; }
.form__summary { border: 1.5px solid var(--red); background: var(--red-tint); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); }
.form__summary h3 { font-size: 1rem; color: #8F1C13; margin-bottom: var(--s-2); }
.form__summary ul { margin: 0; padding-left: 1.2rem; }
.form__summary a { color: #8F1C13; font-weight: 600; }
.form__success { display: flex; gap: var(--s-4); margin-top: var(--s-5); padding: var(--s-5); border-radius: var(--r-md); background: var(--green-tint); border: 1.5px solid var(--green); }
.form__success[hidden] { display: none; }
.form__success > .ic { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--green); color: #fff; }
.form__success h3 { font-size: 1.1rem; color: var(--green); margin-bottom: .3rem; }
.form__success p { margin: 0; }
.form.is-sent .form__grid, .form.is-sent .form__privacy, .form.is-sent > .btn { display: none; }
.form.is-sent .form__success { margin-top: 0; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.inline-form { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: end; }
.inline-form .field { flex: 1 1 16rem; }
.nl-msg { margin-top: var(--s-3); font-weight: 600; }
.nl-msg.is-ok { color: var(--green); }
.nl-msg.is-error { color: var(--red); }

/* ---------- prose (policies and long text) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--green); }
.updated { font-size: var(--fs-sm); color: var(--muted); }
.table-wrap:focus-visible { box-shadow: var(--focus); }
.table-wrap { overflow-x: auto; margin: 0 0 var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: left; padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; background: var(--green-tint); font-family: var(--font-head); color: var(--green); font-weight: 700; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; }

/* definition list "facts" */
.facts { display: grid; gap: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.facts > div { display: grid; gap: .2rem var(--s-5); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
@media (min-width: 640px) { .facts > div { grid-template-columns: 11rem 1fr; } }
.facts dt { color: var(--muted); font-size: var(--fs-sm); }
.facts dd { margin: 0; font-weight: 600; }

/* steps (a real sequence) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; gap: var(--s-4); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.steps > li::before { content: counter(step); width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font: 800 1.1rem/1 var(--font-head); }
.steps h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--muted); }

/* tick lists */
.ticks { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: .6rem; }
.ticks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; }
.ticks li::before { content: ""; width: 1.4rem; height: 1.4rem; margin-top: .15rem; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314532D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* plans (membership) */
.plan { display: flex; flex-direction: column; }
.plan__price { font: 800 clamp(1.8rem, 1.5rem + 1vw, 2.4rem)/1.1 var(--font-head); color: var(--green); margin-bottom: var(--s-2); letter-spacing: -0.02em; }
.plan__price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan--featured { border-color: var(--green); box-shadow: var(--shadow); position: relative; }
.plan--featured::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 6px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--beads); }

/* people */
.people { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.person { display: flex; gap: var(--s-4); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.person img, .person__initials { width: 56px; height: 56px; border-radius: 50%; flex: none; object-fit: cover; }
.person__initials { display: grid; place-items: center; background: var(--green-tint); color: var(--green); font: 800 1.05rem/1 var(--font-head); }
.person strong { display: block; line-height: 1.3; }
.person span { font-size: var(--fs-sm); color: var(--muted); }

/* resources */
.res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.res-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); display: grid; gap: .2rem; }
.res-list strong { font-family: var(--font-head); }
.res-list span { color: var(--muted); font-size: var(--fs-sm); }
.res-list .res-link { font-size: var(--fs-sm); font-weight: 600; }

/* chairperson message */
.message { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 860px) { .message { grid-template-columns: 220px 1fr; } }
.message img { border-radius: var(--r-lg); width: 100%; max-width: 220px; aspect-ratio: 3/4; object-fit: cover; }

/* gallery */
.albums { display: grid; gap: var(--s-8); }
.album h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
.photos { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.photos button { padding: 0; border: 0; background: var(--green-tint); border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; aspect-ratio: 4/3; }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photos button:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 94vh; }
.lightbox::backdrop { background: rgba(16, 42, 36, .88); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--r-md); }
.lightbox figcaption { color: #fff; text-align: center; padding: var(--s-3); }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--green); display: grid; place-items: center; cursor: pointer; }

/* 404 */
.notfound { text-align: center; padding-block: var(--section); }
.notfound h1 { margin-inline: auto; }
.notfound .actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: var(--on-dark-muted); font-size: var(--fs-sm); padding-bottom: var(--s-6); }
.site-footer .beads { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: var(--s-7); }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer__brand p { max-width: 26rem; }
.site-footer__motto { font: 650 1.15rem/1.4 var(--font-head); color: var(--gold-on-dark); margin: var(--s-5) 0 var(--s-3); }
.site-footer__motto span { color: var(--on-dark); font-weight: 500; }
.site-footer__h { font-size: 1rem; color: #fff; margin-bottom: var(--s-4); letter-spacing: 0; }
.site-footer__links, .site-footer__contact, .site-footer__social, .site-footer__legal ul { list-style: none; padding: 0; margin: 0; }
.site-footer__links { display: grid; gap: .35rem; }
.site-footer__links a { display: inline-block; padding: .2rem 0; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__contact { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.site-footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.site-footer__contact .ic { color: var(--gold-on-dark); margin-top: .15rem; }
.muted-light { color: var(--on-dark-muted); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.site-footer__social a { display: inline-flex; gap: .5rem; align-items: center; padding: .55rem .9rem; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-pill); text-decoration: none; min-height: 44px; }
.site-footer__social a:hover { border-color: rgba(255,255,255,.5); }
.site-footer__ack { margin: var(--s-7) 0 var(--s-5); max-width: 60rem; }
.site-footer__legal { padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; align-items: center; }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
.site-footer__legal a { display: inline-block; padding: .3rem 0; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .beads, .skip-link, .actions, .form { display: none !important; }
  body { background: #fff; }
}

/* resource links side by side */
.res-list li > span:last-child { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
/* newsletter confirm / unsubscribe message (js/newsletter.js) */
.nl-status { display: flex; flex-direction: column; gap: .25rem; padding: var(--s-5); border-radius: var(--r-md); background: var(--green-tint); border: 1px solid #D3E2D5; margin-bottom: var(--s-6); }
.nl-status.is-error { background: var(--red-tint); border-color: #F3CFCA; }
.nl-status h2 { font-size: var(--fs-h3); margin: 0; }
.nl-status p { margin: 0; }
.nl-status .btn-gold { margin-top: var(--s-3); }
.btn-gold { display: inline-flex; min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--r-pill); border: 0; background: var(--green); color: #fff; font: 650 1rem/1.2 var(--font-head); cursor: pointer; }

/* newsletter strip on the home page */
.newsletter-strip { margin-top: var(--s-7); display: grid; gap: var(--s-4) var(--s-6); align-items: end; padding: clamp(1.25rem, 1rem + 1vw, 2rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--cream); }
@media (min-width: 900px) { .newsletter-strip { grid-template-columns: 1fr 1.2fr; } }
.newsletter-strip h3 { margin-bottom: var(--s-2); color: var(--green); }
.newsletter-strip p { margin: 0; }
.newsletter-strip .nl-msg { grid-column: 1 / -1; }

/* welfare appeal progress (js/public-appeal.js) */
#public-appeal-box { display: grid; gap: var(--s-4); }
.pa-head h2 { margin-bottom: var(--s-2); }
.pa-head p { color: var(--muted); margin: 0; }
.pa-card { display: grid; gap: var(--s-4) var(--s-6); align-items: center; padding: clamp(1.25rem, 1rem + 1vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.pa-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--beads); }
@media (min-width: 800px) { .pa-card { grid-template-columns: 1fr auto; } }
.pa-kicker { font: 650 .9rem/1.3 var(--font-head); color: var(--red); margin: 0 0 var(--s-2); }
.pa-title { margin-bottom: var(--s-3); }
.pa-bar { height: 12px; border-radius: 999px; background: var(--green-tint); overflow: hidden; margin-bottom: var(--s-3); }
.pa-bar span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.pa-nums { margin: 0 0 var(--s-2); }
.pa-nums strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--green); }
.pa-people { color: var(--muted); margin-left: .5rem; }
.pa-how { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.pa-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* featured ("next big event") and past-event photo links */
.post--featured { border-color: var(--green); box-shadow: var(--shadow); position: relative; }
.post--featured::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--beads); }
.tag--featured { background: var(--green); color: #fff; }
.photo-strip { margin-top: var(--s-6); display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .photo-strip { grid-template-columns: repeat(4, 1fr); } }
.photo-strip a { display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; background: var(--green-tint); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-strip a:hover img { transform: scale(1.03); }

/* =========================================================
   Guides (portal-guide.html, editor-guide.html)
   ========================================================= */
.guide h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem); }
.guide > .container > h2 { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.guide-msg { padding: var(--s-5); border-radius: var(--r-md); background: var(--green-tint); border: 1px solid #D3E2D5; margin-bottom: var(--s-5); max-width: 52rem; }
.guide-note { padding: var(--s-3) var(--s-4); border-left: 4px solid var(--gold); background: var(--gold-tint); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--fs-sm); max-width: 52rem; }
.guide-toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); margin-bottom: var(--s-6); max-width: 40rem; }
.guide-toc ol { list-style: none; margin: var(--s-2) 0 0; padding-left: 0; display: grid; gap: .3rem; }
.guide-kicker { font: 650 .95rem/1.3 var(--font-head); color: var(--green); margin-bottom: var(--s-2); }
.practice-card { display: grid; gap: var(--s-5) var(--s-7); padding: clamp(1.4rem, 1rem + 1.5vw, 2.5rem); background: var(--white); border: 1px solid var(--green); border-radius: var(--r-lg); box-shadow: var(--shadow); margin-bottom: var(--s-8); position: relative; overflow: hidden; }
.practice-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--beads); }
@media (min-width: 900px) { .practice-card { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.practice-details { margin: 0 0 var(--s-4); display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.practice-details > div { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); }
.practice-details > div:first-child { border-top: 0; }
.practice-details dt { color: var(--muted); font-size: var(--fs-sm); }
.practice-details dd { margin: 0; font-weight: 650; }
.practice-details code, .guide code { font-size: .95em; background: var(--green-tint); color: var(--green); padding: .1em .4em; border-radius: 6px; }
.pd-btn { margin: 0; }
.guide-steps { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: grid; gap: var(--s-5); }
.guide-step { display: grid; gap: var(--s-5) var(--s-7); align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1.2vw, 2.25rem); }
@media (min-width: 860px) { .guide-step { grid-template-columns: 1.2fr minmax(0, 1fr); } .guide-step.no-shot { grid-template-columns: 1fr; } }
.guide-text > :last-child { margin-bottom: 0; }
.guide-text h2, .guide-text h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); color: var(--ink); margin-bottom: var(--s-3); }
.guide-text p, .guide-text li { color: var(--muted); }
.guide-text strong { color: var(--ink); }
.guide-num { display: inline-flex; align-items: center; gap: .5rem; font: 700 .9rem/1 var(--font-head); color: var(--green); background: var(--green-tint); padding: .4rem .75rem; border-radius: var(--r-pill); margin-bottom: var(--s-3); }
.guide-shot { margin: 0; justify-self: center; }
.guide-shot img { max-height: 560px; width: auto; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--cream); }
.tick-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.tick-list li { display: grid; grid-template-columns: 1.3rem 1fr; gap: .55rem; }
.tick-list li::before { content: ""; width: 1.3rem; height: 1.3rem; margin-top: .2rem; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314532D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.guide pre.code { background: var(--deep); color: var(--on-dark); padding: var(--s-4); border-radius: var(--r-md); overflow-x: auto; font-size: .85rem; }
.guide-help { margin-top: var(--s-7); padding: var(--s-6); border-radius: var(--r-lg); background: var(--deep); color: var(--on-dark); }
.guide-help h2 { color: #fff; margin-top: 0; }
.guide-help a { color: #fff; }
