/* ==========================================================================
   Greenwood Business & Convention Centre — Public Website Design System v2
   Rebuilt from the homepage design supplied by Minh (Graphic Designer),
   sourced from Figma file "OULUXE 2026", node 844:1588.

   This file replaces the v1 (navy/forest-green/gold) system with the new
   brand direction: warm cream & charcoal, editorial serif headings, taupe
   accents. Every class name already used across resources/views/public and
   resources/views/admin/auth/login.php is preserved — this is a "skin
   transplant", not a markup rewrite, so all 17 page templates and the OMS
   login gateway inherit the new look with zero changes to their PHP.

   Also shared by the admin/portal/introducer login screen (FRS 11.2:
   "portal login screens should use the same brand system as the public
   website"). Hand-built CSS (no Tailwind/build step) so the public site
   ships with no console warnings and a distinctive, non-generic look.

   Google Fonts are loaded via <link rel="preconnect"/stylesheet> tags in
   each page's <head> (resources/views/public/layouts/site.php and
   resources/views/admin/auth/login.php), NOT via @import here — a CSS
   @import creates a render-blocking waterfall and is known to be silently
   stripped by shared-hosting CSS optimisers (LiteSpeed LSCache "Combine
   CSS", cPanel mod_pagespeed, etc). See docs/WEBSITE_ARCHITECTURE.md
   section 2 for the incident this avoids. */

:root {
  /* ---- brand palette (from Minh's Figma tokens) ---- */
  --gw-cream:        #ffebd5;
  --gw-cream-light:  #fff5eb;
  --gw-dark:         #2b3033;
  --gw-dark-2:       #1f2325;
  --gw-taupe:        #9f8781;
  --gw-taupe-light:  #c2ada6;
  --gw-white:        #ffffff;

  /* ---- functional extensions (not in Minh's file — added for forms,
     interior pages and states the homepage design doesn't cover) ---- */
  --gw-border:        rgba(43, 48, 51, 0.16);
  --gw-border-soft:   rgba(43, 48, 51, 0.10);
  --gw-border-dark:   rgba(255, 255, 255, 0.24);
  --gw-border-dark-soft: rgba(255, 255, 255, 0.14);
  --gw-text-soft:     rgba(43, 48, 51, 0.68);
  --gw-text-on-dark-soft: rgba(255, 255, 255, 0.75);
  --gw-success:       #2f6b4f;
  --gw-success-bg:    #e8f1ec;
  --gw-error:         #a8402c;
  --gw-error-bg:      #fbeae5;

  /* ---- type ---- */
  --gw-font-serif:  "Gowun Batang", serif;
  --gw-font-sans:   "Host Grotesk", sans-serif;
  --gw-font-script: "Playfair Display", serif;

  /* ---- layout ---- */
  --gw-container:     1200px;
  --gw-container-narrow: 720px;
  --gw-radius-sm:  4px;
  --gw-radius-md:  8px;
  --gw-radius-lg:  16px;
  --gw-shadow-sm:  0 2px 8px rgba(43, 48, 51, 0.08);
  --gw-shadow-md:  0 8px 28px rgba(43, 48, 51, 0.14);
  --gw-shadow-lg:  0 16px 48px rgba(43, 48, 51, 0.18);

  /* ---- v1 → v2 backward-compatible aliases ----
     A handful of page templates we have NOT rewritten in this pass
     (e.g. space-detail.php) reference the old navy/gold token names
     directly in inline style="" attributes. Rather than hunt down every
     occurrence across 17 templates (and risk missing one — exactly how
     the July incident happened), every old token name is aliased here to
     its nearest new-palette equivalent. Safe to remove once/if those
     inline styles are migrated to classes in a future pass. */
  --gw-navy:           var(--gw-dark);
  --gw-green:          var(--gw-dark);
  --gw-gold-dark:      var(--gw-taupe);
  --gw-charcoal-soft:  var(--gw-text-soft);
  --gw-grey-soft:      var(--gw-border-soft);
  --gw-font-head:      var(--gw-font-serif);
}

/* -------------------------------------------------- reset / base */

* { box-sizing: border-box; min-width: 0; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--gw-cream);
  color: var(--gw-dark);
  font-family: var(--gw-font-sans);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--gw-font-serif);
  font-weight: 400;
  color: var(--gw-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(30px, 4.2vw, 44px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* -------------------------------------------------- typography utilities */

.eyebrow {
  display: inline-block;
  font: 400 15px/1.3 var(--gw-font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gw-taupe);
  margin-bottom: 12px;
}

.eyebrow.on-gold { color: var(--gw-taupe-light); }

.lead {
  font: 300 19px/1.55 var(--gw-font-sans);
  color: var(--gw-text-soft);
  max-width: 640px;
}

.muted { color: var(--gw-text-soft); }

.hint {
  display: block;
  font-size: 13px;
  color: var(--gw-text-soft);
  margin-top: 6px;
  font-weight: 400;
}

.text-center, .center { text-align: center; }

.mt-lg { margin-top: 40px; }

/* -------------------------------------------------- buttons
   (values changed, names untouched — every existing btn-* call site across
   all 17 page templates picks these up automatically) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font: 500 14px/1.2 var(--gw-font-sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--gw-radius-sm);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {          /* primary CTA — was gold-on-navy, now cream-on-dark */
  background: var(--gw-dark);
  color: var(--gw-cream);
}
.btn-gold:hover { background: var(--gw-dark-2); }

.btn-green {          /* solid secondary CTA — was forest green, now dark charcoal */
  background: var(--gw-dark);
  color: var(--gw-white);
}
.btn-green:hover { background: var(--gw-dark-2); }

.btn-cream {          /* Explore Spaces / home CTA — cream fill, hover matches btn-outline-light */
  background: #FFEBD5;
  color: #2B3033;
}
.btn-cream:hover { background: var(--gw-white); color: var(--gw-dark); }

.btn-outline-light {   /* outline for use on dark backgrounds */
  background: transparent;
  color: var(--gw-white);
  border-color: var(--gw-border-dark);
}
.btn-outline-light:hover { background: var(--gw-white); color: var(--gw-dark); }

.btn-outline-dark {    /* outline for use on cream/light backgrounds */
  background: transparent;
  color: var(--gw-dark);
  border-color: var(--gw-border);
}
.btn-outline-dark:hover { background: var(--gw-dark); color: var(--gw-white); border-color: var(--gw-dark); }

.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 12px; }

/* -------------------------------------------------- layout shell */

.container { max-width: var(--gw-container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--gw-container-narrow); margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--gw-cream-light); }
.section-dark { background: var(--gw-dark); color: var(--gw-white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--gw-white); }
.section-green { background: var(--gw-dark); color: var(--gw-white); }

.section-head { max-width: 640px; margin: 0 auto 44px; }
.section-head.center { text-align: center; }
.section-head p { color: var(--gw-text-soft); }
.section-dark .section-head p { color: var(--gw-text-on-dark-soft); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.row { display: flex; flex-wrap: wrap; gap: 16px; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; }
.span-2 { grid-column: span 2; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* -------------------------------------------------- header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gw-cream);
  transition: box-shadow .25s ease;
}

.site-header.is-solid { box-shadow: 0 4px 16px rgba(43, 48, 51, 0.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gw-dark);
  color: var(--gw-cream);
  font-family: var(--gw-font-serif);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--gw-font-serif);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: var(--gw-dark);
  display: flex;
  flex-direction: column;
}

.brand-text small {
  font-family: var(--gw-font-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gw-taupe);
  margin-top: 2px;
}

.brand-logo { display: inline-flex; align-items: center; }
.brand-logo svg, .brand-logo img { display: block; height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.nav-link {
  font: 700 13px/1.3 var(--gw-font-serif);
  letter-spacing: 0.01em;
  color: var(--gw-dark);
  position: relative;
  padding-bottom: 3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--gw-dark);
  transition: right .2s ease;
}
.nav-link:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.phone-link {
  display: inline-flex;
  align-items: center;
  font: 500 13px/1.3 var(--gw-font-sans);
  color: var(--gw-dark);
  white-space: nowrap;
}

.login-link {
  font: 500 13px/1.3 var(--gw-font-sans);
  color: var(--gw-taupe);
  white-space: nowrap;
}
.login-link:hover { color: var(--gw-dark); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--gw-dark);
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--gw-dark);
  color: var(--gw-white);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  display: block;
  font: 700 20px/1.4 var(--gw-font-serif);
  color: var(--gw-white);
  padding: 12px 0;
  border-bottom: 1px solid var(--gw-border-dark-soft);
}
.mm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mm-close { cursor: pointer; }
.mm-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

/* -------------------------------------------------- home hero */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding: 56px 0;
  background: linear-gradient(to right, rgba(20, 22, 24, 0.72) 20%, rgba(20, 22, 24, 0.28) 100%),
              url("../img/hero-meetingrooms.jpg") center/cover no-repeat;
}

.hero-content { max-width: 760px; }

.hero h1, .hero-content h1 {
  color: var(--gw-white);
  font-family: var(--gw-font-sans);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hero .lead, .hero-content .lead {
  color: var(--gw-white);
  opacity: 0.92;
  max-width: 620px;
  margin-top: 16px;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--gw-border-dark);
  background: rgba(255, 255, 255, 0.10);
  font: 500 13px/1.3 var(--gw-font-sans);
  color: var(--gw-white);
}

.hero .btn-row { margin-top: 28px; }

/* script accent + typewriter, available for hero copy variations */
.script-accent {
  font-family: var(--gw-font-script);
  font-weight: 400;
  font-style: italic;
  font-size: 60px;
  line-height: 1.1;
  display: inline-block;
}
.cursor { display: inline-block; margin-left: 2px; animation: gwBlink 1s steps(1) infinite; }
@keyframes gwBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.section-mark { display: flex; justify-content: center; align-items: center; margin-bottom: 30px; }
.section-mark svg { width: 126px; height: 100px; }

/* -------------------------------------------------- interior page hero */

.page-hero {
  background: var(--gw-dark);
  color: var(--gw-white);
  padding: 64px 0 56px;
}

.page-hero h1 { color: var(--gw-white); margin-bottom: 14px; }
.page-hero .eyebrow { color: var(--gw-taupe-light); }
.page-hero .lead { color: var(--gw-text-on-dark-soft); max-width: 680px; }

.breadcrumb {
  font: 400 13px/1.3 var(--gw-font-sans);
  color: var(--gw-text-on-dark-soft);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--gw-text-on-dark-soft); }
.breadcrumb a:hover { color: var(--gw-white); }
.breadcrumb span { color: var(--gw-white); }

/* -------------------------------------------------- cards (general) */

.card {
  background: var(--gw-white);
  border-radius: var(--gw-radius-md);
  overflow: hidden;
}

/* photo-backed cards (space-card, feature-card, membership segment tiles) */
.img-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gw-dark), var(--gw-dark-2));
  color: var(--gw-text-on-dark-soft);
  text-align: center;
  padding: 24px;
}
.img-placeholder.tone-gold { background: linear-gradient(135deg, var(--gw-taupe), var(--gw-dark)); }
.img-placeholder .ph-icon { width: 40px; height: 40px; opacity: 0.85; }
.img-placeholder .ph-label { font-size: 12px; color: var(--gw-text-on-dark-soft); max-width: 220px; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

.map-embed { position: relative; border-radius: var(--gw-radius-md); overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* space-card: used on Spaces Overview + Home. Renders a real photo
   (see resources/views/public/partials/space-card.php) with a bottom
   gradient + title overlay, matching Minh's card treatment exactly. */
.space-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--gw-shadow-sm);
  aspect-ratio: 3 / 4;
}
.space-card .img-placeholder { position: absolute; inset: 0; aspect-ratio: auto; }
.space-card.has-photo .img-placeholder {
  background-size: cover;
  background-position: center;
}
.space-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,15,17,0) 0%, rgba(15,15,17,0.25) 45%, rgba(12,12,14,0.92) 100%);
  pointer-events: none;
}
.sc-overlay {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 26px 26px;
}
.sc-overlay .pill {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: var(--gw-white);
  backdrop-filter: blur(2px);
}
.sc-overlay h3 { color: var(--gw-white); margin: 4px 0 0; }
.sc-overlay p { color: rgba(255, 255, 255, 0.85); font-size: 14px; margin: 0; max-width: 320px; }
.sc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 13px/1.3 var(--gw-font-sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gw-dark);
  border-top: 1px solid var(--gw-border-soft);
  padding-top: 14px;
  margin-top: 4px;
}
.sc-overlay .sc-link {
  width: 100%;
  justify-content: center;
  color: var(--gw-white);
  border-top-color: rgba(255, 255, 255, 0.3);
  margin-top: 8px;
}
.sc-link svg { width: 24px; height: 24px; flex-shrink: 0; }

/* .pill lives on light backgrounds in practice (white card bodies, cream
   section fills) — dark text on a tinted fill, not white-on-white. */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--gw-border);
  background: var(--gw-cream-light);
  font: 600 12px/1.3 var(--gw-font-sans);
  color: var(--gw-dark);
}
.pill-gold { border-color: var(--gw-taupe); color: var(--gw-taupe); background: rgba(159, 135, 129, 0.12); }

/* on a hero/dark image background (e.g. hero-badge reuses .pill markup on
   the home hero) the light-on-light fill is wrong — flip to a light-on-dark
   treatment automatically in dark contexts */
.hero .pill, .section-dark .pill, .page-hero .pill, .split__panel--image .pill {
  border-color: var(--gw-border-dark);
  background: rgba(255, 255, 255, 0.16);
  color: var(--gw-white);
}

/* feature-card: icon-led cards (Why Greenwood / Events & Training grids) */
.feature-card {
  padding: 28px 22px;
  text-align: left;
}
.section-dark .feature-card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--gw-border-dark-soft); }
.section:not(.section-dark) .feature-card { border: 1px solid var(--gw-border-soft); box-shadow: var(--gw-shadow-sm); }
.fc-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gw-dark);
  color: var(--gw-cream);
  margin-bottom: 16px;
}
.fc-icon svg { width: 20px; height: 20px; flex-shrink: 0; }
.section-dark .fc-icon { background: var(--gw-taupe); color: var(--gw-white); }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gw-text-soft); margin: 0; }
.section-dark .feature-card p { color: var(--gw-text-on-dark-soft); }

/* who-it's-for segment tiles on Home — photo background, centered label */
.segment-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--gw-radius-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background-size: cover;
  background-position: center;
}
.segment-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.78) 100%);
}
.segment-card .seg-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.segment-card .fc-icon { flex-shrink: 0; background: rgba(255,255,255,0.16); border: 1px solid var(--gw-border-dark); backdrop-filter: blur(2px); }
.segment-card .seg-label { color: var(--gw-white); font: 700 24px/1.3 var(--gw-font-serif); }

/* membership tier cards */
.membership-card {
  position: relative;
  padding: 32px 26px;
  border: 1px solid var(--gw-border-soft);
  box-shadow: var(--gw-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.membership-card.featured { border-color: var(--gw-dark); box-shadow: var(--gw-shadow-md); }
.mc-badge {
  position: absolute;
  top: -12px; left: 26px;
  background: var(--gw-dark);
  color: var(--gw-cream);
  font: 700 11px/1 var(--gw-font-sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
}
.membership-card h3 { font-size: 20px; margin-bottom: 0; }
.mc-target { font: 500 12px/1.3 var(--gw-font-sans); letter-spacing: 0.03em; text-transform: uppercase; color: var(--gw-taupe); }
.membership-card p { font-size: 14px; color: var(--gw-text-soft); }
.membership-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.membership-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.membership-card li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--gw-dark); }

.fact-check { max-height: 54px; width: auto; flex-shrink: 0; color: var(--gw-green); margin-top: 2px; }
.mc-cta { margin-top: 8px; }

/* gateway cards (login chooser) */
.gateway-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gateway-card {
  padding: 32px 26px;
  text-align: center;
  border: 1px solid var(--gw-border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.gc-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gw-cream-light);
  color: var(--gw-dark);
}
.gateway-card h3 { margin-bottom: 0; }
.gateway-card p { font-size: 14px; color: var(--gw-text-soft); flex: 1; }

/* stat cards */
.stat-card { text-align: center; padding: 20px; }
.stat-icon { display: flex; align-items: center; justify-content: center; height: 36px; margin-bottom: 12px; opacity: 0.65; }
.stat-icon svg { height: 100%; width: auto; }
.stat-num { font-family: var(--gw-font-serif); font-size: 40px; font-weight: 700; color: var(--gw-white); line-height: 1; }
.section-green .stat-num, .section-dark .stat-num { color: var(--gw-white); }
.stat-label { font-size: 13px; color: var(--gw-text-on-dark-soft); margin-top: 8px; }

/* -------------------------------------------------- cta band */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  border-radius: var(--gw-radius-lg);
}
.cta-text { max-width: 560px; }
.cta-text h2 { margin-bottom: 10px; }
.cta-band.tone-navy { background: var(--gw-dark); color: var(--gw-white); }
.cta-band.tone-navy h2 { color: var(--gw-white); }
.cta-band.tone-navy p { color: var(--gw-text-on-dark-soft); }
.cta-band.tone-navy .eyebrow { color: var(--gw-taupe-light); }
.cta-band.tone-gold { background: var(--gw-taupe); color: var(--gw-white); }
.cta-band.tone-gold h2 { color: var(--gw-white); }
.cta-band.tone-gold p { color: rgba(255,255,255,0.85); }
.cta-band.tone-gold .eyebrow { color: rgba(255,255,255,0.8); }
.cta-band.tone-light { background: var(--gw-cream-light); border: 1px solid var(--gw-border-soft); }

/* -------------------------------------------------- forms */

.form-card {
  background: var(--gw-white);
  border: 1px solid var(--gw-border-soft);
  border-radius: var(--gw-radius-lg);
  padding: 40px;
  box-shadow: var(--gw-shadow-sm);
}
.form-card--flat { background: #FFEBD5; box-shadow: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }

.form-group { display: flex; flex-direction: column; }
.form-group label {
  font: 600 13px/1.3 var(--gw-font-sans);
  color: var(--gw-dark);
  margin-bottom: 7px;
}
.form-group label .hint { display: inline; margin: 0 0 0 4px; }

.form-control {
  width: 100%;
  padding: 12px 14px;
  font: 400 15px/1.4 var(--gw-font-sans);
  color: var(--gw-dark);
  background: var(--gw-white);
  border: 1.5px solid var(--gw-border);
  border-radius: var(--gw-radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--gw-dark);
  box-shadow: 0 0 0 3px rgba(43, 48, 51, 0.10);
}
.form-control::placeholder { color: rgba(43, 48, 51, 0.4); }

select.form-control { cursor: pointer; }

.form-section-title {
  font-size: 19px;
  margin: 36px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--gw-border-soft);
}
.form-card > .form-section-title:first-child,
.form-card > *:first-child.form-section-title { margin-top: 0; padding-top: 0; border-top: none; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: 400 14px/1.5 var(--gw-font-sans);
  color: var(--gw-text-soft);
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--gw-dark);
  flex-shrink: 0;
}
.checkbox-row a { color: var(--gw-dark); font-weight: 600; text-decoration: underline; }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }

.portal-user-row { padding: 16px; background: var(--gw-cream-light); border-radius: var(--gw-radius-sm); margin-bottom: 12px; }
.endorsement-referee-row { padding: 16px; background: var(--gw-cream-light); border-radius: var(--gw-radius-sm); }

.form-alert {
  padding: 14px 18px;
  border-radius: var(--gw-radius-sm);
  font: 500 14px/1.4 var(--gw-font-sans);
  margin-bottom: 24px;
}
.form-alert.success { background: var(--gw-success-bg); color: var(--gw-success); }
.form-alert.error { background: var(--gw-error-bg); color: var(--gw-error); }

/* honeypot spam-trap field — visually hidden, still in the DOM/tab order
   avoided, per resources/views/public/pages/*.php */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.endorsement-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--gw-cream-light);
  border: 1px solid var(--gw-border-soft);
  border-radius: var(--gw-radius-md);
  margin-bottom: 28px;
}
.en-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gw-dark);
  color: var(--gw-cream);
}

.badge-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* -------------------------------------------------- table (membership compare) */

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font: 400 14px/1.4 var(--gw-font-sans);
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gw-border-soft);
  text-align: left;
}
.compare-table th { font-weight: 700; color: var(--gw-dark); background: var(--gw-cream-light); }
.compare-table td.yes { color: var(--gw-success); font-weight: 700; }
.compare-table td.no { color: var(--gw-text-soft); }

/* -------------------------------------------------- FAQ */

.faq-item {
  border-bottom: 1px solid var(--gw-border-soft);
  padding: 18px 0;
}
.faq-item summary {
  font: 600 16px/1.4 var(--gw-font-sans);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; font-size: 20px; color: var(--gw-taupe); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 14px; color: var(--gw-text-soft); font-size: 14px; }

/* -------------------------------------------------- split panel
   (home page "Why Greenwood" teaser only — Minh's signature two-panel
   dark-text / rotating-caption-photo layout) */

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; }
.split__panel { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.split__panel--dark { background: var(--gw-dark); color: var(--gw-white); }
.split__panel--dark h2 { color: var(--gw-white); }
.split__panel--image {
  position: relative;
  background-size: cover;
  background-position: center;
  justify-content: flex-end;
}
.split__panel--image::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,22,24,0.75), rgba(20,22,24,0) 55%);
}
.split__row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.split__caption { position: relative; z-index: 1; color: var(--gw-white); font: 400 16px/1.5 var(--gw-font-sans); max-width: 380px; transition: opacity .15s ease; }
.split__arrows { display: flex; gap: 14px; }
.split__arrow-btn {
  background: none;
  border: 1px solid var(--gw-border-dark);
  color: var(--gw-white);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s ease;
}
.split__arrow-btn:hover { background: rgba(255,255,255,0.14); }
.split__link-block { display: flex; flex-direction: column; gap: 12px; }
.split__link {
  font: 500 13px/1.3 var(--gw-font-sans);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gw-white);
  border-top: 1px solid var(--gw-border-dark-soft);
  padding-top: 14px;
}

/* -------------------------------------------------- footer */

.site-footer { background: var(--gw-dark); color: var(--gw-white); padding: 64px 0 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gw-border-dark-soft);
}

.footer-brand p { color: var(--gw-text-on-dark-soft); font-size: 14px; }
.footer-brand a[href^="tel:"],
.footer-brand a[href^="mailto:"] { color: var(--gw-white); font-size: 14px; }

.footer-grid h4 {
  color: var(--gw-white);
  font-family: var(--gw-font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--gw-text-on-dark-soft); font-size: 14px; }
.footer-links a:hover { color: var(--gw-white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--gw-text-on-dark-soft);
}
.legal-links { display: flex; gap: 20px; }
.legal-links a { color: var(--gw-text-on-dark-soft); }
.legal-links a:hover { color: var(--gw-white); }

/* -------------------------------------------------- auth shell (admin/portal/introducer login) */

.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

.auth-brand-panel {
  background: linear-gradient(160deg, var(--gw-dark), var(--gw-dark-2)),
              url("../img/see-it-for-yourself.jpg") center/cover;
  background-blend-mode: multiply;
  color: var(--gw-white);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-brand-panel .brand-text,
.auth-brand-panel .brand-text small { color: var(--gw-white); }
.auth-brand-panel .brand-text small { color: rgba(255,255,255,0.7); }

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  background: var(--gw-cream);
}

.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-sub { margin-bottom: 28px; }
.auth-card .form-group { margin-bottom: 18px; }

.auth-switch { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--gw-border-soft); font-size: 13px; }
.auth-switch p { color: var(--gw-text-soft); margin-bottom: 10px; }
.auth-switch-links { display: flex; flex-direction: column; gap: 8px; }
.auth-switch-links a { color: var(--gw-dark); font-weight: 600; }
.auth-switch-links a:hover { text-decoration: underline; }

/* -------------------------------------------------- responsive */

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .gateway-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
}

@media (max-width: 860px) {
  .main-nav, .header-actions .phone-link, .header-actions .login-link { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 52px 0; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .checkbox-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .hero { min-height: 520px; }
}

/* -------------------------------------------------- membership application form
   Styles for the invited application (resources/views/public/pages/apply.php).
   Kept with the rest of the design system rather than inline so the form
   inherits future brand changes automatically. */

.static-value {
  padding: 12px 14px;
  background: var(--gw-cream-light);
  border: 1.5px solid var(--gw-border-soft);
  border-radius: var(--gw-radius-sm);
  font: 500 15px/1.4 var(--gw-font-sans);
  color: var(--gw-dark);
}

/* Mirrored billing fields: visibly derived from the primary contact rather than
   simply disabled, so it is obvious why they cannot be typed into. */
.form-control.is-mirrored {
  background: var(--gw-cream-light);
  color: var(--gw-text-soft);
  cursor: not-allowed;
}

.portal-user-row {
  border: 1px solid var(--gw-border-soft);
  border-radius: var(--gw-radius-md);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--gw-cream-light);
}
.portal-user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.portal-user-head strong {
  font: 600 14px/1.3 var(--gw-font-sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gw-taupe);
}
.portal-user-remove {
  background: none;
  border: none;
  color: var(--gw-text-soft);
  font: 500 13px/1 var(--gw-font-sans);
  cursor: pointer;
  text-decoration: underline;
}
.portal-user-remove:hover { color: var(--gw-error); }

#addPortalUser:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.signature-pad-wrap {
  border: 1.5px solid var(--gw-border);
  border-radius: var(--gw-radius-sm);
  background: var(--gw-white);
  padding: 10px;
}
.signature-pad {
  width: 100%;
  height: 160px;
  /* A ruled baseline makes it read as a signature field rather than a blank box. */
  border-bottom: 1px dashed var(--gw-border);
  cursor: crosshair;
  touch-action: none;   /* stop the page scrolling while signing on mobile */
  display: block;
}
.signature-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.remittance-block {
  margin: 32px 0 24px;
  padding: 22px 24px;
  background: var(--gw-cream-light);
  border: 1px solid var(--gw-border-soft);
  border-radius: var(--gw-radius-md);
}
.remittance-block h3 { font-size: 17px; margin-bottom: 6px; }
.remittance-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  margin: 14px 0;
  font-size: 14px;
}
.remittance-list dt { color: var(--gw-text-soft); }
.remittance-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .signature-pad { height: 130px; }
  .remittance-list { grid-template-columns: 1fr; gap: 2px; }
  .remittance-list dd { margin-bottom: 8px; }
}

/* Password strength meter (resources/views/public/pages/set-password.php).
   Advisory only — the binding rules live in PasswordSetupService::consume(). */
.pw-meter {
  height: 4px;
  background: var(--gw-border-soft);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.pw-meter span {
  display: block;
  height: 100%;
  width: 0;
  transition: width .2s ease, background-color .2s ease;
}
.pw-meter-level-0, .pw-meter-level-1 { background: var(--gw-error); }
.pw-meter-level-2 { background: var(--gw-taupe); }
.pw-meter-level-3 { background: #7a8f5a; }
.pw-meter-level-4 { background: var(--gw-success); }

/* Address autocomplete dropdown (assets/js/application-form.js). */
.address-suggestions {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  margin: 2px 0 0;
  padding: 4px;
  list-style: none;
  background: var(--gw-white);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-sm);
  box-shadow: var(--gw-shadow-md);
  max-height: 260px;
  overflow-y: auto;
}
.address-suggestion {
  padding: 9px 12px;
  font-size: 14px;
  border-radius: var(--gw-radius-sm);
  cursor: pointer;
}
.address-suggestion:hover,
.address-suggestion.is-active { background: var(--gw-cream-light); }

/* The dropdown is absolutely positioned against the field's wrapper. */
.form-group { position: relative; }

/* Member referral code badge (resources/views/portal/referrals/index.php).
   Sized and spaced to be readable when quoted over the phone. */
.referral-code-badge {
  display: inline-block;
  padding: 12px 22px;
  background: var(--gw-dark);
  color: var(--gw-cream);
  border-radius: var(--gw-radius-md);
  font: 700 26px/1 var(--gw-font-sans);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}


/* ==================================================================================
   Payment pages and the pay call-to-action
   ================================================================================== */
.alert {
  padding: 14px 16px; border-radius: 6px; margin: 0 0 20px;
  border-left: 3px solid var(--gw-dark, #2b3033);
  background: var(--gw-cream-light, #fff5eb);
  font-size: 0.94rem;
}
.alert p { margin: 0 0 8px; }
.alert p:last-child { margin-bottom: 0; }
.alert-success { border-left-color: #2f6b4f; background: #e8f1ec; }
.alert-warn    { border-left-color: #9a6a1f; background: #fdf1dc; }
.alert-info    { border-left-color: #17466E; background: #e9eff5; }

.summary-list {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 20px;
  margin: 0 0 24px; font-size: 0.94rem;
}
.summary-list dt { font-weight: 600; color: var(--gw-text-soft, rgba(43,48,51,0.68)); }
.summary-list dd { margin: 0; }

/* The pay panel is deliberately plain: the disclosure above the button matters more
   than the button. Australian Consumer Law expects terms affecting a refund to be
   visible BEFORE payment, not only on the receipt afterwards. */
.pay-cta {
  border: 1px solid var(--gw-border-soft, rgba(43,48,51,0.10));
  border-left: 3px solid var(--gw-dark, #2b3033);
  border-radius: 6px; padding: 22px 24px; background: var(--gw-white, #fff);
}
.pay-cta-h { margin: 0 0 6px; font-size: 1.1rem; }
.pay-cta-amount {
  margin: 0 0 14px; font-size: 1.9rem; font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pay-cta-amount small {
  display: inline-block; margin-left: 8px; font-size: 0.8rem; font-weight: 400;
  color: var(--gw-text-soft, rgba(43,48,51,0.68));
}
.pay-cta-note {
  margin: 0 0 16px; padding: 11px 13px; border-radius: 4px;
  background: var(--gw-cream-light, #fff5eb);
  border-left: 3px solid #9a6a1f;
  font-size: 0.85rem; line-height: 1.5;
}
.pay-cta-fine, .pay-fine {
  margin: 12px 0 0; font-size: 0.8rem;
  color: var(--gw-text-soft, rgba(43,48,51,0.68));
}

@media (max-width: 700px) {
  .pay-cta { padding: 17px 16px; }
  .pay-cta-amount { font-size: 1.6rem; }
  .summary-list { grid-template-columns: 1fr; gap: 3px; }
  .summary-list dd { margin-bottom: 10px; }
}

/* ==========================================================================
   Latest Updates & Gallery (/updates, /updates/{slug}, /gallery, home strip)
   All classes prefixed .cm- so nothing above is affected. Built only from the
   existing brand tokens, so a future re-brand of :root carries through.
   ========================================================================== */

.cm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font: 500 12px/1.4 var(--gw-font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gw-taupe);
  margin-bottom: 8px;
}
.cm-meta span + span::before { content: '·'; margin-right: 14px; color: var(--gw-taupe-light); }

/* ---- lead story ---- */
.cm-lead {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  background: var(--gw-white);
  border-radius: var(--gw-radius-lg);
  overflow: hidden;
  box-shadow: var(--gw-shadow-md);
  margin-bottom: 56px;
}
.cm-lead__media {
  display: block;
  min-height: 420px;
  background: linear-gradient(135deg, var(--gw-taupe), var(--gw-dark)) center / cover no-repeat;
  transition: transform .6s ease;
}
.cm-lead:hover .cm-lead__media { transform: scale(1.02); }
.cm-lead__body {
  position: relative;
  z-index: 1;
  background: var(--gw-white);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.cm-lead__body h2 { margin-bottom: 14px; }
.cm-lead__body h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cm-lead__summary { color: var(--gw-text-soft); font-size: 17px; margin-bottom: 26px; }

/* ---- filter chips ---- */
.cm-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.cm-chip {
  padding: 8px 16px;
  border: 1px solid var(--gw-border);
  border-radius: 999px;
  font: 500 13px/1.2 var(--gw-font-sans);
  color: var(--gw-dark);
  background: transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cm-chip:hover { border-color: var(--gw-dark); }
.cm-chip.is-active { background: var(--gw-dark); border-color: var(--gw-dark); color: var(--gw-cream); }

/* ---- story cards ---- */
.cm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cm-card {
  display: flex;
  flex-direction: column;
  background: var(--gw-white);
  border-radius: var(--gw-radius-md);
  overflow: hidden;
  box-shadow: var(--gw-shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}
.cm-card:hover { box-shadow: var(--gw-shadow-md); transform: translateY(-3px); }
.cm-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gw-taupe), var(--gw-dark));
}
.cm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cm-card:hover .cm-card__media img { transform: scale(1.04); }
.cm-card__pill {
  position: absolute;
  left: 14px; top: 14px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(31, 35, 37, 0.72);
  backdrop-filter: blur(3px);
  color: var(--gw-cream);
  font: 600 11px/1.3 var(--gw-font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cm-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.cm-card__body h3 { font-size: 20px; margin-bottom: 10px; }
.cm-card__body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cm-card__body p {
  font-size: 14px;
  color: var(--gw-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.cm-card__link { margin-top: auto; }

.cm-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.cm-empty {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}
.cm-empty p { color: var(--gw-text-soft); margin-bottom: 26px; }

/* ---- photo grid (albums, gallery, strip) ----
   Row-major grid (not CSS columns) so the round-robin order reads left to
   right; "dense" back-fills gaps left by tall/wide tiles. */
.cm-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 14px;
}
.cm-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--gw-radius-md);
  background: var(--gw-cream-light);
  cursor: zoom-in;
}
.cm-photo.is-tall { grid-row: span 2; }
.cm-photos--strip { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
.cm-photo.is-wide { grid-column: span 2; grid-row: span 2; }
.cm-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s ease; }
.cm-photo:hover img { transform: scale(1.05); }
.cm-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,12,14,0.35), rgba(12,12,14,0) 45%);
  opacity: 0;
  transition: opacity .3s ease;
}
.cm-photo:hover::after { opacity: 1; }
.cm-photo:focus-visible { outline: 2px solid var(--gw-dark); outline-offset: 3px; }

/* video tiles */
.cm-play {
  position: absolute;
  left: 50%; top: 50%;
  width: 58px; height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(31, 35, 37, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1;
  transition: transform .25s ease, background-color .25s ease;
}
.cm-play::after {
  content: '';
  position: absolute;
  left: 23px; top: 18px;
  border-style: solid;
  border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent var(--gw-white);
}
.cm-photo.is-video { background: linear-gradient(135deg, var(--gw-taupe), var(--gw-dark)); }
.cm-photo.is-video:hover .cm-play { transform: translate(-50%, -50%) scale(1.08); background: rgba(31, 35, 37, 0.8); }
.sr-only-cm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- story page ---- */
.cm-preview-bar {
  background: #fff3c4;
  color: var(--gw-dark);
  text-align: center;
  font-size: 14px;
  padding: 10px 16px;
}
.cm-preview-bar a { text-decoration: underline; margin-left: 8px; }
.cm-prose { font-size: 18px; line-height: 1.75; color: var(--gw-dark); }
.cm-prose p { margin-bottom: 22px; }
.cm-prose ul { margin: 0 0 22px; padding-left: 22px; }
.cm-prose li { margin-bottom: 8px; }
.cm-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.cm-share > span { font: 500 13px/1 var(--gw-font-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gw-taupe); margin-right: 6px; }

/* ---- lightbox (built by assets/js/community.js) ---- */
.cm-lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 18, 19, 0.94);
  padding: 56px 72px 88px;
}
.cm-lightbox.is-open { display: flex; }
.cm-lightbox video, .cm-lightbox iframe {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--gw-radius-sm);
  box-shadow: var(--gw-shadow-lg);
  background: #000;
}
.cm-lightbox iframe { width: min(1280px, 100%); aspect-ratio: 16 / 9; height: auto; border: 0; }
.cm-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--gw-radius-sm);
  box-shadow: var(--gw-shadow-lg);
  user-select: none;
}
.cm-lb-btn {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  color: var(--gw-white);
  font-size: 22px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.cm-lb-btn:hover, .cm-lb-btn:focus-visible { background: rgba(255,255,255,0.2); outline: none; }
.cm-lb-close { top: 16px; right: 16px; }
.cm-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.cm-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.cm-lb-caption {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 48px));
  text-align: center;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
}
.cm-lb-caption a { color: var(--gw-cream); text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; white-space: nowrap; }
body.cm-lb-open { overflow: hidden; }

@media (max-width: 980px) {
  .cm-lead { grid-template-columns: 1fr; }
  .cm-lead__media { min-height: 280px; }
  .cm-lead__body { padding: 32px 28px; }
  .cm-grid { grid-template-columns: repeat(2, 1fr); }
  .cm-photos--strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cm-grid { grid-template-columns: 1fr; }
  .cm-photos { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
  .cm-photo.is-wide { grid-column: span 2; grid-row: span 1; }
  .cm-lightbox { padding: 56px 8px 96px; }
  .cm-lb-prev, .cm-lb-next { top: auto; bottom: 20px; transform: none; }
  .cm-lb-caption { bottom: 76px; font-size: 14px; }
  .cm-prose { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-card, .cm-card__media img, .cm-photo img, .cm-lead__media { transition: none; }
}

/* Header: an eighth nav item ("Updates") was added. Tighten spacing on
   laptop-width screens so the row keeps fitting on one line. */
@media (min-width: 861px) and (max-width: 1240px) {
  .main-nav { gap: 16px; }
  .header-actions { gap: 12px; }
  .header-inner { gap: 14px; }
}
