/* ==========================================================================
   CANWYF design system — v3 (October 2026)
   Loaded after site.css / pages.css. Re-points the legacy tokens so older
   page sections inherit the new type and colour, and defines the cw-*
   components used by rebuilt pages, the header and the footer.
   Fonts are self-hosted (no requests to third parties). Icons: icons.php.
   ========================================================================== */

/* ── Fonts ─────────────────────────────────────────────────────────────── */
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/spectral-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/spectral-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/spectral-vietnamese-400-normal.woff2') format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/spectral-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/spectral-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/spectral-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/spectral-vietnamese-500-normal.woff2') format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/spectral-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/spectral-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/spectral-vietnamese-600-normal.woff2') format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/public-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/public-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/public-sans-vietnamese-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('../fonts/public-sans-latin-wght-italic.woff2') format('woff2-variations'); }

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  --cw-forest:  #123A28;   /* deep canopy — dark surfaces, headings */
  --cw-leaf:    #1E7A47;   /* brand green — actions, links */
  --cw-leaf-2:  #2E9A5E;
  --cw-sprout:  #E4F1E8;   /* light green tint */
  --cw-cocoa:   #5B3A26;   /* earth — secondary accent */
  --cw-kola:    #C9922B;   /* gold — the single warm highlight */
  --cw-kola-2:  #F6E9CC;
  --cw-paper:   #F6F7F2;   /* page */
  --cw-white:   #FFFFFF;
  --cw-ink:     #17201A;
  --cw-ink-2:   #3F4A42;
  --cw-muted:   #66716A;
  --cw-rule:    #DDE3DA;
  --cw-red:     #9B2C24;

  --cw-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --cw-sans:  'Public Sans', 'Segoe UI', Roboto, Arial, sans-serif;

  --cw-wrap: 1180px;
  --cw-r-sm: 6px;
  --cw-r:    10px;
  --cw-r-lg: 16px;
  --cw-nav-h: 72px;
  --cw-shadow: 0 1px 2px rgba(18,58,40,.06), 0 8px 24px rgba(18,58,40,.07);

  /* Re-point legacy tokens (site.css / pages.css) */
  --green: var(--cw-leaf);
  --green-deep: var(--cw-forest);
  --green-mid: var(--cw-leaf-2);
  --green-light: var(--cw-sprout);
  --green-pale: #EEF4EE;
  --gold: var(--cw-kola);
  --gold-warm: var(--cw-kola);
  --gold-light: var(--cw-kola-2);
  --earth: var(--cw-cocoa);
  --cream: var(--cw-paper);
  --ink: var(--cw-ink);
  --ink-mid: var(--cw-ink-2);
  --ink-soft: var(--cw-muted);
  --rule: var(--cw-rule);
  --ff-display: var(--cw-serif);
  --ff-body: var(--cw-sans);
  --ff-mono: var(--cw-sans);
  --nav-h: var(--cw-nav-h);
}

/* ── Base ──────────────────────────────────────────────────────────────── */
body { font-family: var(--cw-sans); background: var(--cw-paper); color: var(--cw-ink); font-size: 17px; line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--cw-serif); font-weight: 600; color: inherit; letter-spacing: -0.01em; }
a { color: var(--cw-leaf); }
::selection { background: var(--cw-sprout); color: var(--cw-forest); }
:focus-visible { outline: 3px solid var(--cw-kola); outline-offset: 2px; border-radius: 3px; }
.grain-overlay { display: none !important; }
.ic { flex: none; display: inline-block; vertical-align: -0.2em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cw-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--cw-forest); color: #fff; padding: 10px 14px; border-radius: var(--cw-r-sm); text-decoration: none; }
.cw-skip:focus { top: 12px; }

/* Legacy pieces re-skinned so older sections match */
.section-label { font-family: var(--cw-sans) !important; letter-spacing: 0 !important; text-transform: none !important; font-size: .9rem !important; font-weight: 600 !important; }
.section-label::before { display: none !important; }
.btn-primary, .btn-gold, .btn-ghost, .btn-outline { font-family: var(--cw-sans) !important; border-radius: var(--cw-r) !important; font-weight: 600 !important; }
.page-hero { padding-top: calc(var(--cw-nav-h) + 72px) !important; }
.page-hero-title, .section-title { font-family: var(--cw-serif) !important; font-weight: 600 !important; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.cw-wrap { width: 100%; max-width: var(--cw-wrap); margin: 0 auto; padding: 0 24px; }
.cw-narrow { max-width: 760px; }
.cw-section { padding: 96px 0; }
.cw-section--tight { padding: 64px 0; }
.cw-section--white { background: var(--cw-white); }
.cw-section--tint { background: #EEF2EB; }
.cw-section--forest { background: var(--cw-forest); color: #E9F0EA; }
.cw-section--forest h2, .cw-section--forest h3 { color: #fff; }
.cw-section + .cw-section--white, .cw-section--white + .cw-section { border-top: 1px solid var(--cw-rule); }

.cw-h1 { font-family: var(--cw-serif); font-weight: 600; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; color: var(--cw-forest); }
.cw-h2 { font-family: var(--cw-serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 16px; color: var(--cw-forest); }
.cw-h3 { font-family: var(--cw-serif); font-weight: 600; font-size: 1.3rem; line-height: 1.3; margin: 0 0 8px; color: var(--cw-forest); }
.cw-section--forest .cw-h2, .cw-section--forest .cw-h3, .cw-hero--dark .cw-h1 { color: #fff; }
.cw-lede { font-size: 1.18rem; line-height: 1.65; color: var(--cw-ink-2); max-width: 64ch; margin: 0 0 24px; }
.cw-section--forest .cw-lede { color: #C9D8CC; }
.cw-p { color: var(--cw-ink-2); max-width: 68ch; margin: 0 0 16px; }
.cw-small { font-size: .9rem; color: var(--cw-muted); }
.cw-head { max-width: 760px; margin-bottom: 48px; }

.cw-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.cw-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cw-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.cw-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
@media (max-width: 960px) {
  .cw-grid-3, .cw-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cw-section { padding: 64px 0; }
  .cw-wrap { padding: 0 16px; }
  .cw-grid-2, .cw-grid-3, .cw-grid-4 { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.cw-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: var(--cw-r); font: 600 1rem/1.2 var(--cw-sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.cw-btn--primary { background: var(--cw-leaf); color: #fff; }
.cw-btn--primary:hover { background: var(--cw-forest); }
.cw-btn--gold { background: var(--cw-kola); color: #241504; }
.cw-btn--gold:hover { background: #B7801C; }
.cw-btn--line { border-color: var(--cw-leaf); color: var(--cw-leaf); background: transparent; }
.cw-btn--line:hover { background: var(--cw-sprout); }
.cw-btn--light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.cw-btn--light:hover { background: rgba(255,255,255,.1); }
.cw-btn[disabled] { opacity: .6; cursor: progress; }
.cw-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cw-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--cw-leaf); }
.cw-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cw-section--forest .cw-link { color: #F3D58F; }

/* ── Adire pattern (signature element) ─────────────────────────────────── */
.cw-adire { position: relative; isolation: isolate; }
.cw-adire::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%23ffffff' stroke-opacity='.075' stroke-width='1.4'%3E%3Ccircle cx='24' cy='24' r='15'/%3E%3Ccircle cx='24' cy='24' r='9'/%3E%3Ccircle cx='24' cy='24' r='3'/%3E%3Cpath d='M54 10h32M54 18h32M54 26h32M54 34h32'/%3E%3Cg stroke-linecap='round'%3E%3Cpath d='M10 58v0M18 58v0M26 58v0M34 58v0M10 66v0M18 66v0M26 66v0M34 66v0M10 74v0M18 74v0M26 74v0M34 74v0M10 82v0M18 82v0M26 82v0M34 82v0' stroke-width='3'/%3E%3C/g%3E%3Cellipse cx='72' cy='70' rx='9' ry='15'/%3E%3Cpath d='M72 55v30M63 64l9 6 9-6M63 74l9 6 9-6'/%3E%3C/svg%3E");
  background-size: 96px 96px; }
.cw-adire--light::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%231E7A47' stroke-opacity='.10' stroke-width='1.4'%3E%3Ccircle cx='24' cy='24' r='15'/%3E%3Ccircle cx='24' cy='24' r='9'/%3E%3Ccircle cx='24' cy='24' r='3'/%3E%3Cpath d='M54 10h32M54 18h32M54 26h32M54 34h32'/%3E%3Cg stroke-linecap='round'%3E%3Cpath d='M10 58v0M18 58v0M26 58v0M34 58v0M10 66v0M18 66v0M26 66v0M34 66v0M10 74v0M18 74v0M26 74v0M34 74v0M10 82v0M18 82v0M26 82v0M34 82v0' stroke-width='3'/%3E%3C/g%3E%3Cellipse cx='72' cy='70' rx='9' ry='15'/%3E%3Cpath d='M72 55v30M63 64l9 6 9-6M63 74l9 6 9-6'/%3E%3C/svg%3E"); }
.cw-adire--light::before { -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%); mask-image: linear-gradient(90deg, transparent 35%, #000 85%); }
.cw-band { height: 14px; background: var(--cw-forest); position: relative; }
.cw-band::after { content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--cw-kola) 0 18px, transparent 18px 26px, var(--cw-leaf-2) 26px 30px, transparent 30px 38px); opacity: .8; }

/* ── Header ────────────────────────────────────────────────────────────── */
.cw-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--cw-nav-h); background: rgba(246,247,242,.96); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--cw-rule); }
.cw-header.scrolled { box-shadow: 0 2px 16px rgba(18,58,40,.08); }
.cw-header__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.cw-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cw-forest); margin-right: auto; }
.cw-brand img { width: 42px; height: 42px; border-radius: 50%; background: var(--cw-forest); padding: 3px; }
.cw-brand b { display: block; font: 600 1.25rem/1 var(--cw-serif); letter-spacing: .02em; }
.cw-brand small { display: block; font-size: .74rem; color: var(--cw-muted); margin-top: 3px; }
.cw-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.cw-menu > li { position: relative; }
.cw-menu .nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: var(--cw-r-sm); color: var(--cw-ink); text-decoration: none; font-weight: 500; font-size: .97rem; background: none; border: 0; cursor: pointer; font-family: var(--cw-sans); }
.cw-menu .nav-link:hover, .cw-menu .nav-link.active { color: var(--cw-leaf); background: #E9EFE6; }
.cw-menu .nav-link .ic { transition: transform .15s; }
.cw-menu .nav-cta { margin-left: 8px; }
.nav-dropdown { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 320px; background: #fff; border: 1px solid var(--cw-rule); border-radius: var(--cw-r-lg); box-shadow: var(--cw-shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.has-dropdown:hover > .nav-dropdown, .has-dropdown:focus-within > .nav-dropdown, .has-dropdown.dropdown-open > .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown:hover > .nav-link .ic, .has-dropdown.dropdown-open > .nav-link .ic { transform: rotate(180deg); }
.dropdown-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--cw-r); text-decoration: none; color: var(--cw-ink); }
.dropdown-item:hover { background: #F0F4EE; }
.di-icon { width: 38px; height: 38px; flex: none; border-radius: var(--cw-r); display: grid; place-items: center; background: var(--cw-sprout); color: var(--cw-leaf); }
.di-title { display: block; font-weight: 600; font-size: .96rem; color: var(--cw-ink); margin: 0; }
.di-sub { display: block; font-size: .84rem; color: var(--cw-muted); line-height: 1.4; margin-top: 2px; }
.dropdown-divider { height: 1px; background: var(--cw-rule); margin: 6px 8px; }
.cw-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--cw-rule); border-radius: var(--cw-r); background: #fff; color: var(--cw-forest); cursor: pointer; place-items: center; }
.nav-overlay { display: none; }
body { padding-top: 0; }
main#main { display: block; }

@media (max-width: 1100px) {
  .cw-toggle { display: grid; }
  .cw-menu { position: fixed; top: var(--cw-nav-h); right: 0; bottom: 0; width: min(380px, 100%); flex-direction: column; align-items: stretch; gap: 2px; padding: 16px; background: var(--cw-paper); border-left: 1px solid var(--cw-rule); overflow-y: auto; transform: translateX(100%); transition: transform .22s ease; }
  .cw-menu.open { transform: none; }
  .cw-menu .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.02rem; }
  .cw-menu .nav-cta { margin: 12px 0 0; justify-content: center; }
  .nav-dropdown { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; display: none; background: transparent; }
  .has-dropdown.dropdown-open > .nav-dropdown { display: block; }
  .has-dropdown:hover > .nav-dropdown { opacity: 1; }
  .nav-overlay.open { display: block; position: fixed; inset: var(--cw-nav-h) 0 0 0; background: rgba(18,58,40,.35); z-index: 999; }
  .cw-header { z-index: 1001; background: var(--cw-paper); backdrop-filter: none; -webkit-backdrop-filter: none; } /* a backdrop-filter would trap the fixed drawer inside the header bar */
}
@media (max-width: 480px) { .cw-brand small { display: none; } }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.cw-hero { padding: calc(var(--cw-nav-h) + 72px) 0 88px; }
.cw-hero--dark { background: var(--cw-forest); color: #DCE7DE; }
.cw-hero--dark .cw-lede { color: #C9D8CC; }
.cw-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.cw-hero__photos { position: relative; min-height: 460px; }
.cw-hero__photos figure { position: absolute; margin: 0; overflow: hidden; border-radius: var(--cw-r-sm); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.cw-hero__photos figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-hero__photos .p1 { inset: 0 18% 22% 0; }
.cw-hero__photos .p2 { width: 52%; height: 50%; right: 0; bottom: 0; border: 6px solid var(--cw-forest); }
.cw-hero__photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 8px; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.cw-hero__facts { display: flex; flex-wrap: wrap; gap: 24px 36px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.cw-hero__facts div { min-width: 90px; }
.cw-hero__facts b { display: block; font: 600 2rem/1 var(--cw-serif); color: #fff; }
.cw-hero__facts span { font-size: .9rem; color: #A9BFAE; }
@media (max-width: 960px) {
  .cw-hero__grid { grid-template-columns: 1fr; }
  .cw-hero__photos { min-height: 340px; }
}
.cw-pagehead { padding: calc(var(--cw-nav-h) + 64px) 0 56px; background: var(--cw-white); border-bottom: 1px solid var(--cw-rule); }
.cw-pagehead .cw-lede:last-child { margin-bottom: 0; }
.cw-crumb { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--cw-muted); margin-bottom: 18px; text-decoration: none; }
.cw-crumb:hover { color: var(--cw-leaf); }

/* ── Feature rows, cards, lists ────────────────────────────────────────── */
.cw-feature .cw-ico { margin-bottom: 16px; }
.cw-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--cw-sprout); color: var(--cw-leaf); }
.cw-ico--gold { background: var(--cw-kola-2); color: #8A5A0E; }
.cw-ico--cocoa { background: #EFE3D9; color: var(--cw-cocoa); }
.cw-section--forest .cw-ico { background: rgba(255,255,255,.08); color: #F3D58F; }
.cw-feature p { color: var(--cw-ink-2); margin: 0; }
.cw-section--forest .cw-feature p { color: #C2D2C6; }
.cw-card { background: #fff; border: 1px solid var(--cw-rule); border-radius: var(--cw-r-lg); padding: 28px; }
.cw-card--link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.cw-card--link:hover { border-color: #B9CDB9; box-shadow: var(--cw-shadow); }
.cw-card p { color: var(--cw-ink-2); margin: 0 0 12px; }
.cw-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--cw-sprout); color: var(--cw-forest); }
.cw-tag--design { background: var(--cw-kola-2); color: #7A4E0B; }
.cw-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cw-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--cw-ink-2); }
.cw-checks li .ic { color: var(--cw-leaf); margin-top: 3px; }
.cw-section--forest .cw-checks li { color: #C9D8CC; }
.cw-section--forest .cw-checks li .ic { color: #F3D58F; }
.cw-rows { border-top: 1px solid var(--cw-rule); }
.cw-row { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--cw-rule); }
.cw-row h3 { margin-bottom: 4px; }
.cw-row p { margin: 0; color: var(--cw-ink-2); }

/* Photo with caption */
.cw-photo { margin: 0; border-radius: var(--cw-r-sm); overflow: hidden; background: #DDE5DA; }
.cw-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cw-photo figcaption { font-size: .85rem; color: var(--cw-muted); padding: 10px 2px 0; background: var(--cw-paper); }

/* People */
.cw-person { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.cw-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--cw-sprout); color: var(--cw-forest); display: grid; place-items: center; font: 600 1.5rem/1 var(--cw-serif); }
.cw-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cw-person h3 { margin: 4px 0 2px; font-size: 1.15rem; }
.cw-person .role { color: var(--cw-leaf); font-weight: 600; font-size: .92rem; margin: 0 0 6px; }
.cw-person p { margin: 0; color: var(--cw-ink-2); font-size: .97rem; }

/* Quote */
.cw-quote { font: 400 italic clamp(1.4rem, 2.6vw, 1.9rem)/1.4 var(--cw-serif); color: var(--cw-forest); margin: 0 0 24px; padding-left: 24px; border-left: 3px solid var(--cw-kola); }
.cw-section--forest .cw-quote { color: #fff; }

/* Stats */
.cw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--cw-rule); border-radius: var(--cw-r-lg); background: #fff; overflow: hidden; }
.cw-stats > div { padding: 24px; border-right: 1px solid var(--cw-rule); }
.cw-stats > div:last-child { border-right: 0; }
.cw-stats b { display: block; font: 600 2.2rem/1 var(--cw-serif); color: var(--cw-forest); margin-bottom: 8px; }
.cw-stats span { color: var(--cw-muted); font-size: .92rem; }
@media (max-width: 760px) { .cw-stats { grid-template-columns: repeat(2, 1fr); } .cw-stats > div:nth-child(2) { border-right: 0; } .cw-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--cw-rule); } }

/* Forms */
.cw-form { display: grid; gap: 16px; }
.cw-field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--cw-ink); }
.cw-field .hint { font-weight: 400; color: var(--cw-muted); font-size: .88rem; }
.cw-field input, .cw-field select, .cw-field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #C9D2C6; border-radius: var(--cw-r); font: 400 1rem/1.4 var(--cw-sans); color: var(--cw-ink); background: #fff; }
.cw-field textarea { min-height: 110px; resize: vertical; }
.cw-field input:focus, .cw-field select:focus, .cw-field textarea:focus { outline: none; border-color: var(--cw-leaf); box-shadow: 0 0 0 3px rgba(30,122,71,.15); }
.cw-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .cw-form-2 { grid-template-columns: 1fr; } }
.cw-status { padding: 12px 14px; border-radius: var(--cw-r); font-size: .95rem; display: none; }
.cw-status.ok { display: block; background: var(--cw-sprout); color: var(--cw-forest); }
.cw-status.err { display: block; background: #F8E3E1; color: var(--cw-red); }
.cw-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 420px) { .cw-choice { grid-template-columns: 1fr; } }
.cw-choice label { position: relative; display: flex; gap: 10px; align-items: center; padding: 14px; border: 1.5px solid #C9D2C6; border-radius: var(--cw-r); background: #fff; cursor: pointer; font-weight: 500; }
.cw-choice input { accent-color: var(--cw-leaf); width: 18px; height: 18px; }
.cw-choice label:has(input:checked) { border-color: var(--cw-leaf); background: #F1F7F2; }

/* Notice / callout */
.cw-note { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--cw-r); background: #fff; border: 1px solid var(--cw-rule); border-left: 4px solid var(--cw-leaf); }
.cw-note .ic { color: var(--cw-leaf); margin-top: 2px; }
.cw-note p { margin: 0; color: var(--cw-ink-2); }
.cw-note--gold { border-left-color: var(--cw-kola); }
.cw-note--gold .ic { color: #8A5A0E; }

/* Call to action band */
.cw-cta { background: var(--cw-forest); color: #DCE7DE; border-radius: var(--cw-r-lg); padding: 56px; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; overflow: hidden; }
.cw-cta h2 { color: #fff; margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cw-cta p { margin: 0; color: #C2D2C6; max-width: 56ch; }
@media (max-width: 760px) { .cw-cta { grid-template-columns: 1fr; padding: 36px 24px; } }

/* ── Footer ────────────────────────────────────────────────────────────── */
.cw-footer { background: var(--cw-forest); color: #B8C9BC; font-size: .95rem; }
.cw-footer a { color: #DCE7DE; text-decoration: none; }
.cw-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cw-footer__top { padding: 64px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px; }
.cw-footer h4 { font: 600 1rem/1.3 var(--cw-sans); color: #fff; margin: 0 0 14px; letter-spacing: 0; }
.cw-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.cw-footer__brand p { margin: 14px 0 0; max-width: 34ch; line-height: 1.6; }
.cw-footer__contact li { display: flex; gap: 10px; }
.cw-footer__contact .ic { color: #F3D58F; margin-top: 3px; }
.cw-footer__stats { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); font-size: .92rem; }
.cw-footer__stats b { color: #fff; font-weight: 600; }
.cw-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 32px; font-size: .86rem; }
.cw-footer__bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.cw-social { display: flex; gap: 10px; margin-top: 18px; }
.cw-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.cw-social a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
@media (max-width: 1000px) { .cw-footer__top { grid-template-columns: 1fr 1fr; } .cw-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .cw-footer__top { grid-template-columns: 1fr; } }
#back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cw-forest); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; cursor: pointer; }
#back-to-top.btt-visible { opacity: 1; pointer-events: auto; }

/* Reveal: one quiet fade only, and none for people who prefer less motion */
.js-ready .reveal { transition: opacity .5s ease, transform .5s ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* News cards (home, programme pages) */
.cw-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cw-news a { text-decoration: none; color: inherit; display: block; }
.cw-news .ph { aspect-ratio: 16 / 10; border-radius: var(--cw-r-sm); overflow: hidden; background: #E2E9DF; display: grid; place-items: center; color: var(--cw-leaf); margin-bottom: 14px; }
.cw-news .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-news .meta { font-size: .86rem; color: var(--cw-muted); margin-bottom: 6px; }
.cw-news h3 { font-size: 1.2rem; margin: 0 0 6px; }
.cw-news a:hover h3 { color: var(--cw-leaf); }
.cw-news p { margin: 0; color: var(--cw-ink-2); font-size: .97rem; }
@media (max-width: 860px) { .cw-news { grid-template-columns: 1fr; } }

/* Status band shown on programmes still in design */
.cw-design-note { display: flex; gap: 14px; align-items: flex-start; background: var(--cw-kola-2); color: #5C3A06; border-radius: var(--cw-r); padding: 16px 20px; margin-top: 28px; max-width: 760px; }
.cw-design-note .ic { margin-top: 2px; }
.cw-design-note p { margin: 0; }

/* Legacy page heroes (news, gallery, post, legal pages, portal): one calm look */
.page-hero { background: var(--cw-forest) !important; position: relative; isolation: isolate; }
.page-hero .page-hero-title { color: #fff; }
.page-hero .page-hero-desc, .page-hero .page-hero-tagline { color: #C9D8CC; }
.feat-title, .news-title, .post-title, .related-title, .cat-cover-title { font-family: var(--cw-serif) !important; font-weight: 600 !important; letter-spacing: -0.01em; }
.nf-btn .ic, .news-author .ic, .news-read .ic, .pag-btn .ic { vertical-align: -3px; }
