/*
Theme Name: EKCC Broadsheet
Theme URI: https://eastkingchambers.org/
Author: Bellevue Chamber of Commerce
Description: The East King Chambers Coalition design system v2 "Broadsheet" (2026 redesign). Standalone classic theme; every template is owned here. Source of truth: Comms-Brain/ekcc-site (wp-theme-src/, scripts/build_theme.py).
Version: 1793058221
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: ekcc
*/

/* East King Chambers Coalition — design system v2 "Broadsheet".
   Civic-print aesthetic: navy ink, warm paper, gold rules, hairline ledgers,
   sharp rectangles with offset press shadows. No pills, no floating-card
   clichés. Type: Archivo (display) + Newsreader (editorial serif) + Inter.
   Every component maps to a Gutenberg pattern; see docs/TRANSITION.md. */

:root {
  --navy-950: #0d1730;
  --navy-900: #121e37;
  --navy-800: #16233e;
  --navy-700: #1d3050;
  --blue-600: #33578a;
  --blue-500: #3f6795;
  --blue-100: #d9e4f1;
  --gold-500: #e2a63d;
  --gold-600: #c98f26;
  --gold-700: #96690f;
  --ink: #1c2634;
  --muted: #5a6879;
  --line: #d9dee7;
  --line-dark: rgba(255, 255, 255, 0.16);
  --paper: #f6f4ee;
  --white: #ffffff;
  --grad: linear-gradient(150deg, #3f6795 0%, #24406b 42%, #131f38 100%);
  --shadow-press: 5px 5px 0 var(--gold-500);
  --shadow-press-sm: 3px 3px 0 var(--gold-500);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-text: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --w-max: 1180px;
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@view-transition { navigation: auto; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: 0; }

.wrap { max-width: var(--w-max); margin: 0 auto; padding: 0 26px; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

/* kicker: gold rule + caps, replaces the generic "eyebrow pill" */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--gold-500); }
.on-dark .kicker { color: var(--gold-500); }
.on-dark h1, .on-dark h2 { color: var(--white); }

.lead { font-size: 1.16rem; color: var(--muted); max-width: 44em; }
.on-dark .lead { color: #c6d2e4; }
.lede-serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45;
  color: var(--blue-100);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 26px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; margin-right: auto; }
.brand img { height: 50px; width: auto; display: block; } /* badge line art, alpha-trimmed: nothing to crop */
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; color: var(--navy-900); letter-spacing: 0.03em; }
.brand-name span { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-700); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.93rem; font-weight: 600; color: var(--ink);
  text-decoration: none; padding: 10px 13px;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.active:not(.btn)::after { transform: scaleX(1); }
.nav a.active { color: var(--navy-900); }
.nav .login-link { color: var(--muted); font-weight: 600; }
.nav .login-link:hover { color: var(--navy-900); }
.nav .login-link .ext { font-size: 0.8em; color: var(--gold-600); }
.nav .btn { margin-left: 10px; padding: 11px 18px; }
.nav a.btn { color: var(--white); }
.nav a.btn:hover { color: var(--white); }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--navy-800); border-radius: 3px;
  padding: 8px 14px; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  color: var(--navy-900); cursor: pointer;
}

/* ---------- buttons: sharp, press-shadow, no pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.01em;
  padding: 14px 24px; border-radius: 3px;
  background: var(--navy-800); color: var(--white);
  text-decoration: none; border: 1px solid var(--navy-800);
  box-shadow: var(--shadow-press);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease);
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--gold-500); color: var(--white); }
.btn .arr { transition: transform 0.16s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-light { background: var(--white); border-color: var(--navy-900); color: var(--navy-900); }
.btn-light:hover { color: var(--navy-900); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--white); box-shadow: 5px 5px 0 rgba(226, 166, 61, 0.55); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-sm { padding: 10px 16px; font-size: 0.88rem; box-shadow: var(--shadow-press-sm); }
.btn-sm:hover { box-shadow: 2px 2px 0 var(--gold-500); transform: translate(1px, 1px); }

/* arrow text-links */
.tlink {
  font-family: var(--font-display); font-weight: 700; font-size: 0.94rem;
  color: var(--navy-800); text-decoration: none; white-space: nowrap;
}
.tlink .arr { display: inline-block; transition: transform 0.18s var(--ease); }
.tlink:hover .arr { transform: translateX(5px); }
.tlink:hover { color: var(--blue-600); }

/* ---------- hero ---------- */
.hero { background: var(--grad); color: var(--white); position: relative; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; pointer-events: none;
  background-size: cover; background-position: center;
  background-color: rgba(19, 31, 56, 0.54); background-blend-mode: multiply;
}
.hero-media video {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.46;
}
/* no play-button glyph, ever: hide WebKit's overlay controls, and if autoplay
   is truly refused script.js swaps to the poster background instead */
.hero-media video::-webkit-media-controls,
.hero-media video::-webkit-media-controls-start-playback-button {
  display: none !important; -webkit-appearance: none;
}
.hero-media.vid-failed video { display: none; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(63,103,149,0.38) 0%, rgba(19,31,56,0.66) 70%); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 30px; z-index: 1; }
.hero h1 { color: var(--white); max-width: 12.5em; }
.hero .lede-serif { max-width: 30em; margin: 0 0 14px; }
.hero .lead { margin-bottom: 34px; }
.hero .actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 66px; }
.ridgeline { position: relative; z-index: 1; display: block; width: 100%; height: auto; color: rgba(255, 255, 255, 0.5); }
.ridgeline path { stroke: currentColor; }

/* ambient hero motion (code-built; hero-loop.mp4 slot supersedes when present) */
.hero-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-fx::before {
  content: ""; position: absolute; width: 1100px; height: 1100px; left: -280px; top: -430px;
  background: radial-gradient(circle at center, rgba(96, 150, 205, 0.36), transparent 62%);
  animation: drift1 46s ease-in-out infinite alternate;
}
.hero-fx::after {
  content: ""; position: absolute; width: 840px; height: 840px; right: -260px; bottom: -400px;
  background: radial-gradient(circle at center, rgba(226, 166, 61, 0.12), transparent 60%);
  animation: drift2 58s ease-in-out infinite alternate;
}
.hero-fx .mist {
  position: absolute; inset: -40%;
  background: linear-gradient(100deg, transparent 44%, rgba(255, 255, 255, 0.05) 50%, transparent 56%);
  animation: sweep 16s linear infinite;
}
@keyframes drift1 { to { transform: translate3d(170px, 90px, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-150px, -70px, 0) scale(1.08); } }
@keyframes sweep { from { transform: translateX(-26%); } to { transform: translateX(26%); } }

/* stat strip */
.statline { border-top: 1px solid var(--line-dark); background: rgba(10, 18, 38, 0.45); position: relative; z-index: 1; }
.statline .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 26px 26px 26px 0; border-left: 1px solid var(--line-dark); padding-left: 26px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; color: var(--white); line-height: 1; }
.stat b sup { font-size: 0.5em; color: var(--gold-500); }
.stat span { font-size: 0.86rem; color: #a9b8cf; letter-spacing: 0.02em; }

/* interior page hero */
.page-hero { background: var(--grad); color: var(--white); position: relative; overflow: hidden; }
.page-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.26; }
.page-hero.has-img::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(48, 79, 120, 0.55) 0%, rgba(16, 26, 50, 0.92) 75%);
}
.page-hero.has-img .badge-wm { display: none; }
.page-hero .wrap { padding-top: 66px; padding-bottom: 58px; position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { margin-bottom: 0; }
.page-hero .badge-wm {
  position: absolute; right: clamp(24px, 6vw, 96px); top: 50%;
  transform: translateY(-50%);
  width: min(220px, 26vw); height: auto;
  opacity: 0.09; pointer-events: none;
}
.breadcrumb { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; margin: 0 0 14px; }
.breadcrumb a { text-decoration: none; color: #b9c7db; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- ticker ---------- */
.ticker { background: var(--navy-950); border-top: 1px solid var(--line-dark); border-bottom: 3px solid var(--gold-500); overflow: hidden; }
.ticker-inner { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker:hover .ticker-inner { animation-play-state: paused; }
.ticker span {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-100);
  padding: 13px 0; white-space: nowrap;
}
.ticker .sep { color: var(--gold-500); padding: 13px 22px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- tiles: distinct, contained cards (flat, press-language) ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
  position: relative; background: var(--white); padding: 30px 28px 26px;
  display: flex; flex-direction: column; min-height: 100%;
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(18, 30, 55, 0.05);
  overflow: hidden;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
a.tile:hover { border-color: var(--navy-800); box-shadow: 4px 4px 0 rgba(226, 166, 61, 0.45); }
.tile-img { padding: 0; }
.tile-img .tile-media {
  display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-bottom: 1px solid var(--line); background: var(--grad);
}
.tile-img .tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
a.tile-img:hover .tile-media img { transform: scale(1.045); }
.tile-img .tile-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px; }
.thumb-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--grad); }
.thumb-fallback img { width: 32%; max-height: 70%; opacity: 0.35; }
a.tile { text-decoration: none; color: inherit; }
.tile::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left;
  transition: transform 0.24s var(--ease);
}
a.tile:hover::before { transform: scaleX(1); }
a.tile:hover h3 { color: var(--blue-600); }
.tile h3 { transition: color 0.16s var(--ease); margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0; }
.tile .tile-cta { margin-top: auto; padding-top: 18px; }
.tile-num {
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  color: var(--gold-600); letter-spacing: 0.08em; margin-bottom: 14px;
}
.tile-meta { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 12px; }

/* dark tiles */
.on-dark .tile { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); box-shadow: 4px 4px 0 rgba(9, 15, 30, 0.45); }
.on-dark .tile h3 { color: var(--white); }
.on-dark .tile p { color: #b6c4d8; }

/* ---------- agenda ledger (2027 papers): framed panel ---------- */
.agenda {
  border: 1px solid var(--line); border-top: 3px solid var(--gold-500);
  border-radius: 4px; background: var(--white);
  padding: 4px 26px; box-shadow: 4px 4px 0 rgba(18, 30, 55, 0.05);
}
.agenda-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 26px; align-items: baseline;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
}
.agenda-row .num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--gold-600); }
.agenda-row h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.agenda-row .status {
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px; padding: 6px 10px; white-space: nowrap;
}
/* policy page: agenda rows are buttons that open the topic's past papers */
button.agenda-row {
  width: 100%; text-align: left; background: none;
  border: 0; border-bottom: 1px solid var(--line);
  font: inherit; color: inherit; cursor: pointer;
  transition: background 0.15s var(--ease);
}
button.agenda-row:hover { background: var(--paper); }
button.agenda-row:hover h3 { color: var(--blue-600); }
button.agenda-row:last-child { border-bottom: 0; }
.on-dark .agenda { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); border-top-color: var(--gold-500); box-shadow: 4px 4px 0 rgba(9, 15, 30, 0.45); }
.agenda-row:last-child { border-bottom: 0; }
.on-dark .agenda-row { border-bottom-color: var(--line-dark); }
.on-dark .agenda-row h3 { color: var(--white); }
.on-dark .agenda-row .status { color: #a9b8cf; border-color: var(--line-dark); }

/* ---------- broadsheet news list ---------- */
.featured {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 46px; align-items: center;
  border: 1px solid var(--line); border-radius: 4px; background: var(--white);
  padding: 42px 44px;
  position: relative;
}
.featured::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold-500); }
.featured h2 { margin-bottom: 12px; }
.featured .serif-x { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--muted); line-height: 1.55; }
.featured-img {
  display: block; aspect-ratio: 16 / 11; overflow: hidden;
  border-radius: 4px; border: 1px solid var(--line); background: var(--grad);
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the Chamber's blog headers are 2400x1000 with baked-in titles: render the
   whole coalition-news feed at that native 12:5 so nothing gets cropped */
.wide-media .tile-media, .wide-media .featured-img { aspect-ratio: 12 / 5; }
/* featured: CTA sits centered under the header image to balance the columns */
.featured-media-col { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.featured-media-col .featured-img { width: 100%; }
/* section tabs (advocacy news / legislative updates): squared, rule underline */
.tabbar { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin: 0 0 34px; }
.tab {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  padding: 13px 20px; margin-bottom: -2px;
  background: none; border: 0; border-bottom: 3px solid transparent;
  color: var(--muted); cursor: pointer; letter-spacing: 0.01em;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.tab:hover { color: var(--navy-900); }
.tab.on { color: var(--navy-900); border-bottom-color: var(--gold-500); }
.tab-panel[hidden] { display: none; }

/* archive year dropdowns: a whole session opens into big cards */
.year-fold { border-top: 1px solid var(--line); }
.year-fold:last-of-type { border-bottom: 1px solid var(--line); }
.year-fold summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 18px;
  padding: 22px 6px;
}
.year-fold summary::-webkit-details-marker { display: none; }
.year-fold summary h3 { font-size: 1.6rem; margin: 0; transition: color 0.15s var(--ease); }
.year-fold summary .count { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--gold-700); letter-spacing: 0.1em; text-transform: uppercase; }
.year-fold summary .chev { margin-left: auto; color: var(--gold-600); font-size: 1.15rem; transition: transform 0.2s var(--ease); }
.year-fold[open] summary .chev { transform: rotate(180deg); }
.year-fold summary:hover h3 { color: var(--blue-600); }
.year-fold .fold-body { padding: 4px 0 40px; }

/* ---------- chamber map (real geography) ---------- */
.map-section { background: var(--grad); color: var(--white); position: relative; overflow: hidden; }
.map-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.map-wrap { position: relative; }
.ekccmap { width: 100%; height: auto; display: block; }
.ekccmap .water {
  fill: url(#waterg); stroke: rgba(255, 255, 255, 0.42); stroke-width: 1.2;
  fill-opacity: 0; transition: fill-opacity 1.4s ease 1s;
}
.ekccmap.in .water { fill-opacity: 1; }
.ekccmap .sound { stroke-width: 1; }
.ekccmap .river { fill: none; stroke: rgba(163, 198, 233, 0.34); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ekccmap .contour { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.ekccmap .city-dot { fill: var(--gold-500); stroke: #0d1730; stroke-width: 2; r: 6.5; transition: r 0.18s var(--ease), fill 0.18s; cursor: pointer; }
.ekccmap .city-label {
  font-family: "Oswald", var(--font-display); font-size: 13.5px; font-weight: 500; letter-spacing: 0.09em;
  fill: #d5dfee; text-transform: uppercase; cursor: pointer;
  paint-order: stroke; stroke: rgba(13, 23, 48, 0.8); stroke-width: 3px;
}
.ekccmap .city-dot { cursor: pointer; }
.ekccmap g.city.hot .city-dot, .ekccmap g.city:hover .city-dot, .ekccmap g.city:focus-visible .city-dot { r: 10.5; fill: #ffffff; }
.ekccmap g.city.hot .city-label, .ekccmap g.city:hover .city-label, .ekccmap g.city:focus-visible .city-label { fill: var(--gold-500); }
.ekccmap .ping {
  fill: none; stroke: var(--gold-500); stroke-width: 2; opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
.ekccmap.in .ping { animation: ping 1.5s var(--pd, 0s) ease-out 1; }
@keyframes ping { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(2.8); } }
.map-tip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--navy-950); border: 1px solid var(--gold-500); border-radius: 4px;
  padding: 11px 15px; min-width: 160px;
  box-shadow: 4px 4px 0 rgba(226, 166, 61, 0.35);
  transform: translate(-50%, -128%);
}
.map-tip b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--white); }
.map-tip span { display: block; font-size: 0.8rem; color: #a9b8cf; margin-top: 2px; }
.map-tip em { display: block; font-style: normal; font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-500); margin-top: 8px; }
.chamber-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin: 28px 0 0; padding: 0;
}
.chamber-list a {
  position: relative; display: block;
  padding: 12px 15px 11px 18px;
  border: 1px solid var(--line-dark); border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--white); text-decoration: none;
  overflow: hidden;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), transform 0.16s var(--ease);
}
.chamber-list a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold-500); transform: scaleY(0);
  transition: transform 0.18s var(--ease);
}
.chamber-list a:hover::before, .chamber-list a.hot::before { transform: scaleY(1); }
.chamber-list a b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; line-height: 1.25; }
.chamber-list a span { display: block; font-size: 0.74rem; color: #a9b8cf; margin-top: 2px; }
.chamber-list a:hover, .chamber-list a.hot {
  border-color: var(--gold-500); background: rgba(226, 166, 61, 0.13);
  transform: translateY(-1px); color: var(--white);
}
.chamber-list a.cl-span { grid-column: 1 / -1; } /* Maple Valley Black Diamond: full row, no double line */

/* ---------- bands ---------- */
.band-navy { background: var(--grad); color: var(--white); }
.band-navy h2 { color: var(--white); }
.band-paper { background: var(--paper); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.section-head h2 { margin-bottom: 0; }

/* sponsors: full-bleed navy band, flush with the footer (no white gap) */
.sponsor-band { background: var(--navy-950); border-top: 3px solid var(--gold-500); padding: 50px 0 54px; }
.sponsor-band .kicker { margin-bottom: 26px; }
.sponsor-rail { padding: 0 clamp(26px, 5vw, 84px); }
.sponsor-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 40px; align-items: center; }
.sponsor-grid img { max-height: 44px; width: auto; max-width: min(100%, 158px); object-fit: contain; opacity: 0.85; margin: 0 auto; display: block; filter: grayscale(35%); transition: opacity 0.15s, filter 0.15s; }
.sponsor-grid img:hover { opacity: 1; filter: grayscale(0%); }
.home-page .footer-ridge { display: none; }
.home-page .site-footer { border-top: 1px solid var(--line-dark); }

/* member chamber cards (About page): logo + listing merged, dark tiles */
.chamber-card { align-items: flex-start; }
.chamber-card .cc-logo {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 66px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line-dark); padding-bottom: 16px;
}
.chamber-card .cc-logo img { max-height: 48px; width: auto; max-width: min(100%, 170px); object-fit: contain; object-position: center; }
.chamber-card h3 { font-size: 1.08rem; margin-bottom: 4px; }
.chamber-card .cc-area { display: block; font-size: 0.84rem; color: #a9b8cf; }
.chamber-card .tile-cta.tlink { color: var(--white); }
.chamber-card .tile-cta .ext { color: var(--gold-500); font-size: 0.85em; }
.on-dark a.tile:hover h3 { color: var(--gold-500); } /* blue-600 drowns on navy */

/* ---------- events timeline: press-plaque markers ---------- */
.timeline { position: relative; margin-top: 14px; }
.timeline::before { content: ""; position: absolute; left: 45px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 108px 1fr; gap: 28px; padding: 26px 0; }
.tl-badge {
  position: relative; z-index: 1; align-self: start;
  width: 92px; min-height: 46px; padding: 10px 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-800); color: var(--white);
  border: 1px solid var(--navy-800); border-radius: 3px;
  box-shadow: var(--shadow-press-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 0.78rem;
  text-align: center; line-height: 1.15; letter-spacing: 0.09em; text-transform: uppercase;
}
.tl-item h3 { font-size: 1.4rem; margin-bottom: 8px; }
.tl-item p { color: var(--muted); max-width: 56em; }

/* ---------- prose (post bodies) ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: 60px; }
.prose { max-width: 720px; font-size: 1.08rem; }
.prose > p:first-child::first-letter {
  font-family: var(--font-serif); font-weight: 500; float: left;
  font-size: 3.4em; line-height: 0.82; padding: 6px 10px 0 0; color: var(--blue-600);
}
.prose h1, .prose h2 { font-size: 1.5rem; margin-top: 1.7em; }
.prose h3, .prose h4 { font-size: 1.2rem; margin-top: 1.5em; }
/* section rules break long reports up, blog-style */
.prose h2::before, .prose h3::before {
  content: ""; display: block; width: 34px; height: 2px;
  background: var(--gold-500); margin-bottom: 12px;
}
.prose img { border-radius: 4px; margin: 1.3em 0; border: 1px solid var(--line); }
.prose li { margin-bottom: 0.45em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold-500); color: var(--muted); font-family: var(--font-serif); font-style: italic; font-size: 1.08em; }
.post-side { position: sticky; top: 100px; align-self: start; font-size: 0.92rem; color: var(--muted); border-top: 2px solid var(--navy-900); padding-top: 16px; }
.post-side b { font-family: var(--font-display); color: var(--navy-900); display: block; margin-bottom: 4px; }
.post-side .row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-recent { padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.side-recent ul { list-style: none; margin: 6px 0 0; padding: 0; }
.side-recent li { padding: 8px 0; border-top: 1px solid var(--line); }
.side-recent li:first-child { border-top: 0; }
.side-recent a { display: block; color: var(--navy-800); text-decoration: none; font-weight: 600; font-size: 0.9rem; line-height: 1.4; }
.side-recent a:hover { color: var(--blue-600); }
.side-recent time { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* flipbook embed on paper pages */
.flipbook-embed {
  position: relative; width: 100%; aspect-ratio: 4 / 3; min-height: 380px;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: var(--navy-950); box-shadow: var(--shadow-press);
}
.flipbook-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.flipbook-links { margin: 16px 0 0; }
.flipbook-links .ext { color: var(--gold-600); font-size: 0.85em; }

/* ---------- dialogs (topic history + flipbook reader) ---------- */
dialog {
  border: 0; border-radius: 4px; padding: 0;
  background: var(--white); color: var(--ink);
  box-shadow: 6px 6px 0 rgba(226, 166, 61, 0.55);
}
dialog::backdrop { background: rgba(13, 23, 48, 0.72); }
.dlg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 22px; border-bottom: 3px solid var(--gold-500); background: var(--navy-900);
}
.dlg-head b { font-family: var(--font-display); font-size: 1.05rem; color: var(--white); }
.dlg-close {
  background: none; border: 0; color: #b3c1d6; font-size: 1.6rem; line-height: 1;
  cursor: pointer; padding: 2px 6px;
}
.dlg-close:hover { color: var(--white); }
.dlg-body { padding: 22px 24px 26px; }
.dlg-lead { font-family: var(--font-serif); font-style: italic; color: var(--muted); }
.dlg-sub { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); margin: 18px 0 8px; }
.topic-dialog { width: min(560px, calc(100vw - 40px)); }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list li { border-bottom: 1px solid var(--line); }
.topic-list li:last-child { border-bottom: 0; }
.topic-list a { display: block; padding: 12px 2px; text-decoration: none; }
.topic-list a b { display: block; font-family: var(--font-display); font-weight: 700; color: var(--navy-900); font-size: 0.97rem; }
.topic-list a span { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.topic-list a:hover b { color: var(--blue-600); }
/* the reader fills the window, dark chrome so the book sits seamless.
   flex ONLY while [open]: an unconditional display overrides the UA's
   dialog:not([open]){display:none} and paints the closed dialog in-flow */
.fb-dialog {
  width: min(1440px, calc(100vw - 28px));
  height: calc(100vh - 36px);
  max-width: none; max-height: none;
  background: var(--navy-950);
}
.fb-dialog[open] { display: flex; flex-direction: column; }
.fb-dialog .dlg-head, .fb-dialog .fb-foot { flex: none; }
.fb-dialog .dlg-head { border-bottom-width: 2px; }
/* cap the frame to the viewer's natural ratio: FlipHTML5 fills its window
   height then stops growing sideways, leaving its own white body beyond
   ~1.57:1 — so never hand it more width than that */
.fb-frame {
  position: relative; flex: 1; min-height: 0; align-self: center;
  width: min(100%, calc((100vh - 132px) * 1.57));
  background: var(--navy-950);
}
.fb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fb-foot { display: flex; justify-content: space-between; gap: 18px; padding: 12px 22px; border-top: 1px solid var(--line-dark); background: var(--navy-950); }
.fb-foot .tlink { color: #d5dfee; }
.fb-foot .tlink:hover { color: var(--gold-500); }
.fb-foot .ext { color: var(--gold-500); font-size: 0.85em; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 64px; }
.prevnext a { background: var(--white); padding: 22px 24px; text-decoration: none; transition: background 0.15s; }
.prevnext a:hover { background: var(--paper); }
.prevnext .lbl { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); display: block; margin-bottom: 6px; }
.prevnext .ttl { font-weight: 600; color: var(--navy-900); font-size: 0.98rem; }
.prevnext a.empty { pointer-events: none; opacity: 0.45; }
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold-500); width: 0; z-index: 100; }

.notice {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold-500);
  border-radius: 4px; padding: 20px 24px; color: var(--muted); font-size: 0.98rem;
}

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 720px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; color: var(--navy-900); letter-spacing: 0.02em; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--white);
  transition: border-color 0.15s;
}
input:hover, textarea:hover { border-color: var(--blue-500); }
input:focus, textarea:focus { outline: 2px solid var(--gold-600); outline-offset: 1px; border-color: var(--navy-800); }
button.btn { cursor: pointer; }

/* ---------- footer ---------- */
.footer-ridge { display: block; width: 100%; height: auto; color: var(--navy-900); background: var(--white); }
.site-footer { background: var(--navy-950); color: #b3c1d6; font-size: 0.95rem; }
.site-footer .wrap { padding: 60px 26px 36px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 44px; }
.site-footer h4 { color: var(--white); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-display); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b3c1d6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { height: 54px; width: auto; }
.footer-brand b { font-family: var(--font-display); color: var(--white); font-size: 1.06rem; }
/* all eleven member chambers, side by side, no favorites */
.footer-chambers { border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 26px; }
.footer-chambers h4 { margin-bottom: 12px; }
.footer-chambers p { margin: 0; line-height: 2; font-size: 0.92rem; }
.footer-chambers .fdot { color: var(--gold-600); padding: 0 10px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.84rem; color: #8496b1;
}

/* screenshot/testing mode: everything settled, no motion */
.static-shot .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
.static-shot .ekccmap .water { fill-opacity: 1 !important; transition: none !important; }
.static-shot .ticker-inner { animation: none; }
.static-shot .hero-media video { display: none; }

/* ---------- reveal animations ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; } .rv-d2 { transition-delay: 0.16s; } .rv-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .ticker-inner { animation: none; flex-wrap: wrap; width: auto; }
  .hero-media video { display: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .featured { grid-template-columns: minmax(0, 1fr); padding: 32px 30px; gap: 22px; }
  .statline .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 18px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sponsor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-side { position: static; }
}
@media (max-width: 700px) {
  .section { padding: 58px 0; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .chamber-list { grid-template-columns: minmax(0, 1fr); }
  .agenda { padding: 2px 18px; }
  .agenda-row { grid-template-columns: 54px 1fr; }
  .agenda-row .status { grid-column: 2; justify-self: start; }
  .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabbar { flex-wrap: wrap; }
  .tab { padding: 11px 14px; font-size: 0.93rem; }
  .tl-item { grid-template-columns: 84px 1fr; gap: 18px; }
  .tl-badge { width: 72px; font-size: 0.7rem; }
  .timeline::before { left: 35px; }
  .year-fold summary h3 { font-size: 1.25rem; }
  .fb-foot { flex-direction: column; gap: 10px; }
  .footer-chambers .fdot { padding: 0 7px; }
  .prevnext { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px 26px 20px; gap: 2px; box-shadow: 0 14px 30px rgba(13, 23, 48, 0.12);
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero .wrap { padding-top: 64px; }
}

/* ---------- WordPress integration (appended by scripts/build_theme.py) ---------- */
/* self-hosted fonts are loaded from assets/fonts/fonts.css */
body.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.prose img, .prose figure img { max-width: 100%; height: auto; }
.prose .wp-caption, .prose figure { margin: 22px 0; }
.prose .wp-caption-text, .prose figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.prose .alignleft { float: left; margin: 6px 22px 12px 0; }
.prose .alignright { float: right; margin: 6px 0 12px 22px; }
.prose .aligncenter { display: block; margin: 22px auto; }
.prose iframe { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
/* WPForms inside the Broadsheet contact form column */
.form-grid .wpforms-container { width: 100%; }
.wpforms-container .wpforms-field-label { font-weight: 600; font-size: 0.9rem; }
.wpforms-container input[type=text], .wpforms-container input[type=email], .wpforms-container textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); background: #fff; }
.wpforms-container .wpforms-field { margin-bottom: 18px; }
.wpforms-container .wpforms-field-label, .wpforms-container .wpforms-field-sublabel { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.wpforms-container .wpforms-field-sublabel { font-weight: 500; color: var(--muted); }
.wpforms-container .wpforms-required-label { color: var(--gold-700); }
.wpforms-container input[type=text], .wpforms-container input[type=email], .wpforms-container input[type=tel], .wpforms-container textarea, .wpforms-container select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); max-width: 100%; }
.wpforms-container input:focus, .wpforms-container textarea:focus { outline: 2px solid var(--gold-600); outline-offset: 1px; border-color: var(--navy-800); }
.wpforms-container button[type=submit], .wpforms-container .wpforms-submit {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 14px 24px; border-radius: 3px; background: var(--navy-800); color: var(--white); border: 1px solid var(--navy-800); box-shadow: var(--shadow-press);
  cursor: pointer; transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease); }
.wpforms-container button[type=submit]:hover, .wpforms-container .wpforms-submit:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--gold-500); }
.wpforms-container .wpforms-error { color: #9b2c2c; font-size: 0.88rem; margin-top: 6px; }
.wpforms-confirmation-container-full, .wpforms-confirmation-container { background: var(--paper); border-left: 3px solid var(--gold-500); padding: 18px 22px; }
/* archive / search listings (index.php) */
.listing-pager { display: flex; gap: 18px; justify-content: center; margin-top: 40px; }
