/* ============================================================
   TVCOG — Tech Valley Center of Gravity
   Component styles for the block theme. Loaded on the front end
   AND inside the editor (add_editor_style) so the editor mirrors
   the front end faithfully.

   Design tokens (the --cog-* variables) are ported verbatim from
   the TVCOG design system (colors_and_type.css) so component
   classes render identically to the source kit. Block-level
   presets (colors, fonts, spacing) live in theme.json.
   ============================================================ */

:root {
  /* Lime — the C, outermost gear */
  --cog-lime-50:#f6fae9; --cog-lime-100:#e9f3c6; --cog-lime-200:#d6e899;
  --cog-lime-300:#c1dc6c; --cog-lime-400:#aed150; --cog-lime-500:#9ccb4a;
  --cog-lime-600:#84ad3d; --cog-lime-700:#6a8a30;
  /* Olive — the O, middle gear */
  --cog-olive-50:#f1f5e3; --cog-olive-100:#e0ebbe; --cog-olive-200:#c8d990;
  --cog-olive-300:#b0c764; --cog-olive-400:#9ab84b; --cog-olive-500:#8aaa44;
  --cog-olive-600:#738f38; --cog-olive-700:#5b7129;
  /* Moss — the G, innermost gear */
  --cog-moss-50:#edf1de; --cog-moss-100:#d8e0b3; --cog-moss-200:#b8c780;
  --cog-moss-300:#97ae52; --cog-moss-400:#819745; --cog-moss-500:#728d3a;
  --cog-moss-600:#5d7430; --cog-moss-700:#485924; --cog-moss-800:#34401a;
  /* Neutrals — warm gray, hint of olive */
  --cog-ink-900:#1c1f17; --cog-ink-800:#2a2d25; --cog-ink-700:#3a3e34;
  --cog-ink-600:#545848; --cog-ink-500:#71755f; --cog-ink-400:#94977e;
  --cog-ink-300:#b8baa1; --cog-ink-200:#d8d9c4; --cog-ink-100:#ececdc;
  --cog-ink-50:#f6f6ee; --cog-paper:#fbfbf5; --cog-white:#ffffff;
  /* Accents */
  --cog-rust:#c25a2c; --cog-amber:#e0a32a; --cog-clay:#a35c3a;
  --cog-steel:#5b7a8c; --cog-berry:#8a3a5e;
  /* Tokens */
  --fg-1:var(--cog-ink-900); --fg-2:var(--cog-ink-700); --fg-3:var(--cog-ink-500);
  --bg-1:var(--cog-paper); --bg-2:var(--cog-white); --bg-3:var(--cog-ink-50);
  --border-1:var(--cog-ink-200); --border-2:var(--cog-ink-300);
  --font-display:"Quicksand","Cabin",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-body:"Cabin","Quicksand",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,monospace;
  --radius-md:6px; --radius-lg:10px; --radius-xl:16px; --radius-pill:999px;
  --shadow-xs:0 1px 2px rgba(28,31,23,0.06);
  --shadow-sm:0 1px 3px rgba(28,31,23,0.08),0 1px 2px rgba(28,31,23,0.04);
  --shadow-md:0 4px 10px rgba(28,31,23,0.08),0 2px 4px rgba(28,31,23,0.04);
  --shadow-lg:0 12px 28px rgba(28,31,23,0.10),0 4px 10px rgba(28,31,23,0.05);
  --shadow-xl:0 28px 60px rgba(28,31,23,0.14);
  --shadow-brand:0 8px 24px rgba(156,203,74,0.32);
  --ease-out:cubic-bezier(0.16,1,0.3,1);
  --dur-1:120ms; --dur-2:200ms;
}

@keyframes cog-rotate { to { transform: rotate(360deg); } }
@keyframes cog-fade-in { from { opacity: 0; } }

/* ───── Shared typographic helpers ───── */
.tvcog-eyebrow {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cog-olive-600); margin: 0 0 6px;
}
.tvcog-lead { font-size: 20px; line-height: 1.5; color: var(--fg-2); }
.tvcog-mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.tvcog-accent { color: var(--cog-lime-500); }
.tvcog-section-head { max-width: 720px; }
.tvcog-section-head.has-text-align-center { margin-inline: auto; }

/* Simple auto-fit grids used across patterns */
.tvcog-grid { display: grid; gap: 18px; }
.tvcog-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tvcog-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tvcog-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .tvcog-grid--3, .tvcog-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tvcog-grid--2, .tvcog-grid--3, .tvcog-grid--4 { grid-template-columns: 1fr; }
}

/* ───── Zone / status tags ───── */
.tvcog-tag {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.02em; text-transform: lowercase;
  padding: 4px 10px 4px 9px; border-radius: 999px; line-height: 1; margin: 0;
}
.tvcog-tag::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; opacity: 0.85; }
.tvcog-tag--wood { background: #fbf1d8; color: #a07014; }
.tvcog-tag--metal { background: #f5dccc; color: #8a3e1d; }
.tvcog-tag--elec { background: #dde7ed; color: #3e5867; }
.tvcog-tag--fiber { background: #ecd5df; color: #6b2845; }
.tvcog-tag--glass { background: #ebd9cc; color: #75412a; }
.tvcog-tag--print3d { background: var(--cog-lime-100); color: var(--cog-olive-700); }
.tvcog-tag--kids { background: #f1e9d8; color: #7b5a1f; }
.tvcog-tag--coworking { background: var(--cog-ink-100); color: var(--cog-ink-700); }

.tvcog-status {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-family: var(--font-mono); font-size: 11px; padding: 3px 8px;
  border-radius: 4px; letter-spacing: 0.02em; margin: 0;
}
.tvcog-status::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.tvcog-status--warn { background: #fbeed1; color: #8a6313; }
.tvcog-status--live { background: var(--cog-lime-100); color: var(--cog-olive-700); }
.tvcog-status--info { background: #dde7ed; color: var(--cog-steel); }

/* ============================================================
   HEADER — sticky blurred nav pill + mega menu + donate CTA
   ============================================================ */
.tvcog-nav-wrap { position: sticky; top: 0; z-index: 60; padding: 14px var(--wp--custom--gutter, 24px) 0; }
.tvcog-nav {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 14px; max-width: 1280px; margin: 0 auto;
  background: rgba(251,251,245,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-1); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.tvcog-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.tvcog-brand img, .tvcog-brand .wp-block-site-logo img { width: 36px; height: 36px; transition: transform 800ms var(--ease-out); }
.tvcog-brand:hover img { transform: rotate(60deg); }
.tvcog-brand__wm { line-height: 1.05; }
.tvcog-brand__wm small { display: block; font-family: var(--font-display); font-size: 10px; font-weight: 500; color: var(--cog-lime-600); letter-spacing: 0.06em; text-transform: lowercase; }
.tvcog-brand__wm strong { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--cog-olive-700); letter-spacing: -0.01em; text-transform: lowercase; }

.tvcog-nav.is-scrolled { box-shadow: var(--shadow-md); }
/* The group renders as is-layout-flow, whose block-gap adds a top margin to
   every child after the first. In this flex row that margin offsets the nav
   and CTAs below center — zero it so align-items:center holds. */
.tvcog-nav > * { margin-block: 0; }
.tvcog-nav .wp-block-navigation { flex: 1; }
.tvcog-nav .wp-block-navigation__container { gap: 0; }
.tvcog-nav .wp-block-navigation-item__content {
  font-family: var(--font-display); font-weight: 500; font-size: 13.5px;
  text-transform: lowercase; color: var(--fg-2); text-decoration: none;
  padding: 6px 9px; border-radius: 999px; transition: all var(--dur-1); white-space: nowrap;
}
/* Drop the dropdown carets on the inline desktop nav so the six mega items hold
   one line; submenus still open on hover/focus and each label links to its hub
   page. The mobile overlay (<= 600px) keeps its carets so submenus can expand. */
@media (min-width: 601px) {
  .tvcog-primary-nav .wp-block-navigation__submenu-icon { display: none; }
  .tvcog-primary-nav .wp-block-navigation-submenu__toggle { padding-inline: 9px; }
}
.tvcog-nav .wp-block-navigation-item__content:hover { background: var(--cog-ink-50); color: var(--fg-1); }
.tvcog-nav .current-menu-item > .wp-block-navigation-item__content { background: var(--cog-lime-100); color: var(--cog-olive-700); }

/* Mega submenu panel */
.wp-block-navigation .wp-block-navigation__submenu-container {
  border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); background: var(--cog-white);
  padding: 10px; margin-top: 8px; min-width: 240px;
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  border-radius: 8px; padding: 8px 12px;
}
.wp-block-navigation__submenu-container .wp-block-navigation-item__label { font-size: 14px; }
/* Wide, multi-column mega dropdowns for flagged items */
.tvcog-mega .wp-block-navigation__submenu-container {
  display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 4px 18px; width: max-content; max-width: min(90vw, 560px); padding: 16px;
}
.tvcog-mega .wp-block-navigation__submenu-container .wp-block-navigation-item__content small {
  display: block; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  text-transform: none; letter-spacing: 0.02em; margin-top: 2px;
}
.tvcog-nav-cta { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.tvcog-nav-cta .wp-block-button__link { border-radius: 999px !important; padding: 8px 15px; white-space: nowrap; }
.tvcog-donate .wp-block-button__link {
  background: var(--cog-olive-500) !important; color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.tvcog-donate .wp-block-button__link:hover { background: var(--cog-olive-600) !important; box-shadow: var(--shadow-brand); }

@media (max-width: 860px) {
  .tvcog-brand__wm strong { font-size: 15px; }
  .tvcog-nav-cta .tvcog-signin { display: none; }
}

/* ───── Mobile hamburger toggle ───── */
.tvcog-nav .wp-block-navigation__responsive-container-open {
  margin-left: auto; color: var(--cog-olive-700);
  width: 40px; height: 40px; border-radius: 999px;
  align-items: center; justify-content: center;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.tvcog-nav .wp-block-navigation__responsive-container-open:hover { background: var(--cog-ink-50); color: var(--fg-1); }
/* Tablets and below use the overlay. Core's `overlayMenu:"mobile"` only collapses
   at 600px, but the inline mega nav needs ~1024px to hold one line — so below
   1024px we hide the inline nav, show the hamburger, and (since the CTAs live in
   the overlay) keep only the prominent donate button in the pill. */
@media (max-width: 1023.98px) {
  .tvcog-primary-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .tvcog-primary-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; position: fixed; }
  .tvcog-nav-cta .wp-block-button:not(.tvcog-donate) { display: none; }
  .tvcog-nav { gap: 8px; }
}

/* ───── Customisable navigation overlay (WordPress 7.0) ───── */
/* The nav pill's backdrop-filter establishes a containing block that would trap
   the fixed overlay inside the pill. Drop the blur while the overlay is open
   (the overlay covers the pill anyway) so the overlay is viewport-relative. */
.tvcog-nav:has(.wp-block-navigation__responsive-container.is-menu-open) {
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.tvcog-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
  position: fixed; inset: 0; z-index: 100000;
  background: var(--cog-ink-900); color: var(--cog-paper);
}
.tvcog-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { width: 100%; }
.tvcog-overlay {
  display: flex; flex-direction: column; gap: 26px;
  min-height: 100dvh; padding: 20px 24px 40px; box-sizing: border-box;
  color: var(--cog-paper); max-width: 560px; margin: 0 auto;
}
.tvcog-overlay > * { margin-block: 0; }
.tvcog-overlay__top { align-items: center; }
.tvcog-brand--light .tvcog-brand__wm strong { color: var(--cog-paper); }
.tvcog-brand--light .tvcog-brand__wm small { color: var(--cog-lime-400); }
.tvcog-brand--light img { width: 40px; height: 40px; }

.tvcog-overlay .wp-block-navigation-overlay-close {
  position: static; color: var(--cog-paper); width: 44px; height: 44px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  transition: background var(--dur-1) var(--ease-out);
}
.tvcog-overlay .wp-block-navigation-overlay-close:hover { background: rgba(255,255,255,0.14); }
.tvcog-overlay .wp-block-navigation-overlay-close svg { width: 22px; height: 22px; fill: currentColor; }

.tvcog-overlay__links { display: flex; flex-direction: column; }
.tvcog-overlay__links a {
  font-family: var(--font-display); font-weight: 600; font-size: 26px; text-transform: lowercase;
  color: var(--cog-paper); text-decoration: none; letter-spacing: -0.01em;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--dur-1) var(--ease-out);
}
.tvcog-overlay__links a:hover, .tvcog-overlay__links a:focus { color: var(--cog-lime-400); }

.tvcog-overlay__cta { display: flex; flex-direction: column; gap: 10px; }
.tvcog-overlay__cta .tvcog-btn { width: 100%; justify-content: center; font-size: 16px; padding: 14px 20px; }

.tvcog-overlay__foot { margin-top: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; }
.tvcog-overlay__foot p { margin: 0; color: rgba(255,255,255,0.5); }
.tvcog-overlay__foot a { color: rgba(255,255,255,0.72); text-decoration: none; }
.tvcog-overlay__foot a:hover { color: var(--cog-lime-400); }

/* ============================================================
   HERO — flat lime wash + rotating cog watermark
   ============================================================ */
.tvcog-hero { position: relative; overflow: clip; }
.tvcog-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--cog-lime-50) 0%, transparent 78%); opacity: 0.75;
}
.tvcog-hero::after {
  content: ""; position: absolute; left: -170px; bottom: -190px; width: 560px; height: 560px;
  z-index: 0; pointer-events: none; opacity: 0.06;
  background: url("../images/cog-mark.svg") center / contain no-repeat;
  animation: cog-rotate 90s linear infinite;
}
.tvcog-hero > * { position: relative; z-index: 1; }
.tvcog-hero__h1 { font-size: clamp(44px, 5.5vw, 76px) !important; line-height: 0.98 !important; letter-spacing: -0.02em; color: var(--cog-moss-500) !important; }
.tvcog-hero__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-3); letter-spacing: 0.02em; }

/* Branded hero panel (photo-card stand-in) */
.tvcog-hero__panel {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; min-height: 320px;
  background:
    radial-gradient(120% 120% at 80% 15%, var(--cog-moss-600) 0%, var(--cog-moss-800) 60%);
  display: flex; align-items: center; justify-content: center;
}
.tvcog-hero__panel::after {
  content: ""; position: absolute; left: -18px; top: -18px; width: 86px; height: 86px;
  background: var(--cog-lime-500); border-radius: 50%; transform: rotate(-12deg); z-index: 3;
}
.tvcog-hero__panel .tvcog-hero__cog {
  width: 58%; max-width: 320px; opacity: 0.92;
  animation: cog-rotate 26s linear infinite; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
}
.tvcog-hero__panel figcaption, .tvcog-hero__cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px;
  background: rgba(28,31,23,0.7); backdrop-filter: blur(8px);
  color: var(--cog-paper); font-family: var(--font-display); font-weight: 500;
  font-size: 12.5px; letter-spacing: 0.01em; text-transform: lowercase; border-radius: 999px; margin: 0;
}
.tvcog-hero__cap::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--cog-lime-500); box-shadow: 0 0 0 3px rgba(156,203,74,0.25); }

/* ============================================================
   STATS BAR
   ============================================================ */
.tvcog-stats { border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1); }
.tvcog-stat__n { font-family: var(--font-display); font-weight: 700; font-size: 38px; color: var(--cog-olive-700); letter-spacing: -0.015em; text-transform: lowercase; line-height: 1; margin: 0; }
.tvcog-stat__n span { font-size: 16px; color: var(--cog-lime-600); font-weight: 500; margin-left: 6px; }
.tvcog-stat__l { font-size: 13.5px; color: var(--fg-3); margin: 8px 0 0; line-height: 1.45; }

/* ============================================================
   ZONE / EQUIPMENT CARDS
   ============================================================ */
.tvcog-zone {
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-sm); transition: all var(--dur-2) var(--ease-out);
  display: flex; flex-direction: column; gap: 8px; min-height: 156px; text-decoration: none; color: inherit;
}
.tvcog-zone:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--border-2); }
.tvcog-zone__icon { color: var(--cog-olive-500); margin: 4px 0 2px; display: flex; }
.tvcog-zone__icon svg { width: 32px; height: 32px; }
.tvcog-zone__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--fg-1); text-transform: lowercase; margin: 0; }
.tvcog-zone__tools { font-size: 13px; color: var(--fg-2); margin: auto 0 0; line-height: 1.4; }
.tvcog-zone__note { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.02em; margin: 0; }

/* ============================================================
   EVENTS — cards (query loop) + list rows
   ============================================================ */
.tvcog-eventcards .wp-block-post {
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--dur-2) var(--ease-out);
  display: flex; flex-direction: column;
}
.tvcog-eventcards .wp-block-post:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.tvcog-eventcards .wp-block-post-featured-image { margin: 0; aspect-ratio: 16/10; }
.tvcog-eventcards .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.tvcog-eventcards .wp-block-post-featured-image a { display: block; height: 100%; }
.tvcog-eventcards .tvcog-eventcard__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tvcog-eventcards .wp-block-post-title { font-size: 19px !important; margin: 0; line-height: 1.15; }
.tvcog-eventcards .wp-block-post-title a { text-decoration: none; color: var(--fg-1); }
.tvcog-eventcards .wp-block-post-date { font-family: var(--font-mono); font-size: 12px; color: var(--cog-olive-700); letter-spacing: 0.02em; }
.tvcog-eventcards .wp-block-post-excerpt { font-size: 13.5px; color: var(--fg-2); }
.tvcog-eventcards .wp-block-post-excerpt__more-link { display: none; }

/* Placeholder shown when an event has no featured image */
.tvcog-eventph {
  aspect-ratio: 16/10; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 10%, var(--cog-moss-500), var(--cog-moss-800));
}
.tvcog-eventph::before { content: ""; position: absolute; left: -14px; top: -14px; width: 64px; height: 64px; background: var(--cog-lime-500); border-radius: 50%; }
.tvcog-eventph::after { content: ""; position: absolute; inset: 0; background: url("../images/cog-mark.svg") 90% 120% / 55% no-repeat; opacity: 0.12; }

/* Self-contained events grid ([tvcog_events] shortcode) */
.tvcog-cardgrid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 18px; }
@media (max-width: 900px) { .tvcog-cardgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tvcog-cardgrid { grid-template-columns: 1fr; } }
.tvcog-eventcard { background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: all var(--dur-2) var(--ease-out); }
.tvcog-eventcard:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.tvcog-eventcard__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.tvcog-eventcard__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; text-transform: lowercase; margin: 0; line-height: 1.15; }
.tvcog-eventcard__title a { text-decoration: none; color: var(--fg-1); }
.tvcog-eventcard__title a:hover { color: var(--cog-olive-700); }
.tvcog-eventcard__more { align-self: flex-start; margin-top: 4px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 13px; text-transform: lowercase; color: var(--cog-olive-700); border: 1px solid var(--cog-olive-500); border-radius: var(--radius-md); padding: 7px 12px; transition: all var(--dur-2) var(--ease-out); }
.tvcog-eventcard__more:hover { background: var(--cog-olive-50); }

/* Event summary line (shortcode, used in query-loop cards) */
.tvcog-eventsummary { display: flex; flex-direction: column; gap: 8px; }
.tvcog-eventsummary__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tvcog-eventsummary__date { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--cog-olive-700); text-transform: lowercase; }
.tvcog-eventsummary__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-3); letter-spacing: 0.01em; margin: 0; }

/* Event details card (single event) */
.tvcog-eventdetails { display: flex; flex-direction: column; gap: 14px; background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-sm); }
.tvcog-eventdetails dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.tvcog-eventdetails dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cog-olive-600); align-self: center; }
.tvcog-eventdetails dd { margin: 0; font-size: 15px; color: var(--fg-1); }

/* Event list rows (archive) */
.tvcog-event {
  display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 18px;
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  padding: 14px 16px; box-shadow: var(--shadow-xs); transition: all var(--dur-2) var(--ease-out);
}
.tvcog-event:hover { box-shadow: var(--shadow-sm); border-color: var(--border-2); }
.tvcog-event__date { display: flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; }
.tvcog-event__date .mo { font-family: var(--font-display); font-size: 11px; font-weight: 600; color: var(--cog-lime-600); text-transform: lowercase; letter-spacing: 0.04em; }
.tvcog-event__date .d { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--cog-olive-700); margin: 2px 0 4px; }
.tvcog-event__date .dow { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); }
.tvcog-event__name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--fg-1); text-transform: lowercase; margin: 4px 0 2px; }
.tvcog-event__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-3); }
.tvcog-eventlist .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.tvcog-event__name { align-self: flex-start; }
.tvcog-event__name a { text-decoration: none; color: var(--fg-1); }
.tvcog-eventlist .wp-block-read-more {
  align-self: center; justify-self: end; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; text-transform: lowercase;
  color: var(--cog-olive-700); border: 1px solid var(--cog-olive-500); border-radius: var(--radius-md);
  padding: 8px 14px; transition: all var(--dur-2) var(--ease-out); white-space: nowrap;
}
.tvcog-eventlist .wp-block-read-more:hover { background: var(--cog-olive-50); }
@media (max-width: 600px) {
  .tvcog-event { grid-template-columns: 72px 1fr; row-gap: 10px; }
  .tvcog-eventlist .wp-block-read-more { grid-column: 2; justify-self: start; }
}

/* ============================================================
   MEMBERSHIP TIERS
   ============================================================ */
.tvcog-tier {
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius-xl);
  padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; position: relative; box-sizing: border-box;
}
.tvcog-tier.is-featured { background: var(--cog-ink-900); border-color: transparent; box-shadow: var(--shadow-lg); }
.tvcog-tier.is-featured :is(.tvcog-tier__name, .tvcog-tier__blurb, .tvcog-tier__perks, .tvcog-tier__perks li) { color: rgba(255,255,255,0.82); }
.tvcog-tier__flag { position: absolute; top: -12px; left: 26px; background: var(--cog-lime-500); color: var(--cog-ink-900); font-family: var(--font-display); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em; text-transform: lowercase; margin: 0; }
.tvcog-tier__name { font-family: var(--font-display); font-size: 24px; font-weight: 600; text-transform: lowercase; margin: 0; color: var(--fg-1); }
.tvcog-tier__price { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--cog-olive-700); margin: 0; }
.tvcog-tier.is-featured .tvcog-tier__price { color: var(--cog-lime-400); }
.tvcog-tier__price span { font-size: 16px; font-weight: 500; color: var(--fg-3); margin-left: 4px; }
.tvcog-tier__blurb { font-size: 14px; color: var(--fg-2); margin: 0; min-height: 36px; }
.tvcog-tier__perks { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--fg-2); }
.tvcog-tier__perks li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.tvcog-tier__perks li::before { content: ""; flex: 0 0 16px; height: 16px; margin-top: 2px; background: var(--cog-lime-600); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.tvcog-tier.is-featured .tvcog-tier__perks li::before { background: var(--cog-lime-400); }
.tvcog-tier .wp-block-button { margin-top: auto; }
.tvcog-tier .wp-block-button__link { width: 100%; text-align: center; justify-content: center; }

/* ============================================================
   CTA BAND
   ============================================================ */
.tvcog-cta-band { background: var(--cog-ink-900); border-radius: var(--radius-2xl, 24px); overflow: hidden; position: relative; }
.tvcog-cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; background: url("../images/cog-mark.svg") center/contain no-repeat; opacity: 0.07; animation: cog-rotate 120s linear infinite; }
.tvcog-cta-band :is(h1,h2,h3) { color: var(--cog-paper) !important; }
.tvcog-cta-band p { color: rgba(255,255,255,0.72); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tvcog-quote {
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius-xl);
  padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; box-sizing: border-box;
}
.tvcog-quote__mark { font-family: var(--font-display); font-size: 46px; font-weight: 700; line-height: 0.6; color: var(--cog-lime-500); }
.tvcog-quote__text { font-size: 17px; line-height: 1.55; color: var(--fg-1); margin: 0; }
.tvcog-quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tvcog-quote__avatar { width: 40px; height: 40px; border-radius: 999px; background: radial-gradient(120% 120% at 30% 20%, var(--cog-lime-300), var(--cog-moss-500)); flex: 0 0 auto; }
.tvcog-quote__name { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--fg-1); text-transform: lowercase; margin: 0; }
.tvcog-quote__role { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); margin: 0; }

/* ============================================================
   SPONSOR LOGOS
   ============================================================ */
.tvcog-sponsors { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tvcog-sponsor {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 150px; height: 76px; padding: 0 22px;
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: lowercase;
  color: var(--cog-ink-400); letter-spacing: -0.01em; box-shadow: var(--shadow-xs);
  transition: color var(--dur-2), border-color var(--dur-2);
}
.tvcog-sponsor:hover { color: var(--cog-olive-600); border-color: var(--border-2); }
.tvcog-sponsor::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("../images/cog-mark.svg") center/contain no-repeat; mask: url("../images/cog-mark.svg") center/contain no-repeat; opacity: 0.55; }

/* ============================================================
   TEAM MEMBERS
   ============================================================ */
.tvcog-person { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tvcog-person__photo {
  width: 128px; height: 128px; border-radius: 999px; margin-bottom: 8px; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 30% 20%, var(--cog-lime-200), var(--cog-moss-600));
  border: 3px solid var(--cog-white); box-shadow: var(--shadow-md);
}
.tvcog-person__photo::after { content: ""; position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; background: var(--cog-lime-500); border-radius: 999px; }
.tvcog-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.tvcog-person__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; text-transform: lowercase; color: var(--fg-1); margin: 0; }
.tvcog-person__role { font-family: var(--font-mono); font-size: 12px; color: var(--cog-olive-600); margin: 0; }
.tvcog-person__bio { font-size: 13.5px; color: var(--fg-3); margin: 4px 0 0; }

/* ============================================================
   CIVICRM EMBED CARDS
   ============================================================ */
.tvcog-embed { border: 1px solid var(--border-1); border-radius: var(--radius-xl); background: var(--bg-2); box-shadow: var(--shadow-sm); padding: 8px; }
.tvcog-embed .civicrm-container { padding: 20px; }
.tvcog-embed__fallback { padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; position: relative; overflow: hidden; }
.tvcog-embed__fallback::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 180px; height: 180px; background: url("../images/cog-mark.svg") center/contain no-repeat; opacity: 0.06; }
.tvcog-embed__badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cog-olive-600); background: var(--cog-lime-50); border: 1px solid var(--cog-lime-200); padding: 4px 9px; border-radius: 999px; }
.tvcog-embed__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; text-transform: lowercase; color: var(--fg-1); margin: 0; }
.tvcog-embed__note { font-size: 14px; color: var(--fg-2); margin: 0; max-width: 52ch; }
.tvcog-embed__note code { font-family: var(--font-mono); font-size: 12.5px; background: var(--cog-ink-50); border: 1px solid var(--border-1); border-radius: 4px; padding: 1px 6px; }
.tvcog-embed .tvcog-btn { z-index: 1; }

/* ── CiviCRM (Riverlea) — brand the embedded FormBuilder forms ────────────────
   Riverlea is CiviCRM's active theme and is driven entirely by --crm-* CSS
   custom properties. We redefine those variables scoped to our embed, so the
   afform inherits the TVCOG palette / type / rounding purely by cascade — no
   CiviCRM extension, and the CiviCRM admin is untouched. Broaden the scope to
   `.crm-container` (drop the `.tvcog-embed`) to brand all front-end CiviCRM. */
.tvcog-embed .crm-container {
  padding: 20px 22px;
  background: var(--bg-2);   /* match the surrounding card, not Riverlea's paper tone */
  /* type */
  --crm-font: var(--font-body);
  /* text + surfaces */
  --crm-text-color: var(--cog-ink-900);
  --crm-text-dark-color: var(--cog-ink-900);
  --crm-paper: var(--cog-white);
  --crm-page-bg-color: var(--cog-white);
  --crm-container-bg-color: var(--cog-white);
  --crm-border-color: var(--cog-ink-200);
  /* links → olive */
  --crm-link-color: var(--cog-olive-600);
  --crm-link-hover-color: var(--cog-olive-700);
  /* primary (submit / contribute) → lime with dark ink text, like .tvcog-btn--primary */
  --crm-primary-color: var(--cog-lime-500);
  --crm-primary-hover-color: var(--cog-lime-600);
  --crm-primary-text-color: var(--cog-ink-900);
  --crm-primary-hover-text-color: var(--cog-ink-900);
  /* secondary → olive */
  --crm-secondary-color: var(--cog-olive-500);
  --crm-secondary-text-color: #fff;
  /* status */
  --crm-success-color: var(--cog-moss-500);
  /* rounding — TVCOG soft radii */
  --crm-l-radius: 10px;
  --crm-btn-radius: var(--radius-md);
  --crm-input-border-radius: 10px;
  --crm-f-input-radius: 10px;
}

/* Riverlea sets input height/padding/shadow and button font/size as hardcoded
   bootstrap values under #bootstrap-theme (an id, so it out-specifies plain-class
   overrides and CSS variables can't reach them). Match the afform fields + submit
   button to TVCOG's own inputs and .tvcog-btn here, scoped under #bootstrap-theme
   so these reliably win. */
.tvcog-embed #bootstrap-theme .form-control,
.tvcog-embed #bootstrap-theme input[type="text"],
.tvcog-embed #bootstrap-theme input[type="email"],
.tvcog-embed #bootstrap-theme input[type="number"],
.tvcog-embed #bootstrap-theme input[type="tel"],
.tvcog-embed #bootstrap-theme input[type="password"],
.tvcog-embed #bootstrap-theme textarea,
.tvcog-embed #bootstrap-theme select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--cog-ink-200);
  border-radius: var(--radius-lg);
  background: var(--cog-white);
  box-shadow: none;
  color: var(--cog-ink-900);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
}
.tvcog-embed #bootstrap-theme .form-control:focus,
.tvcog-embed #bootstrap-theme input:focus,
.tvcog-embed #bootstrap-theme textarea:focus,
.tvcog-embed #bootstrap-theme select:focus {
  outline: none;
  border-color: var(--cog-lime-500);
  box-shadow: 0 0 0 3px var(--cog-lime-100);
}
.tvcog-embed #bootstrap-theme .btn,
.tvcog-embed #bootstrap-theme button.af-button {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  text-transform: lowercase; letter-spacing: 0.01em; line-height: 1;
  padding: 11px 22px; min-height: 44px; border: 1px solid transparent;
  border-radius: var(--radius-md); cursor: pointer;
  transition: all var(--dur-2) var(--ease-out);
}
.tvcog-embed #bootstrap-theme .btn-primary {
  background: var(--cog-lime-500); color: var(--cog-ink-900);
  box-shadow: var(--shadow-sm);
}
.tvcog-embed #bootstrap-theme .btn-primary:hover {
  background: var(--cog-lime-600); color: var(--cog-ink-900);
  box-shadow: var(--shadow-brand);
}

/* Fieldsets + legends: drop Riverlea's fieldset border line + odd side padding,
   align to the container edge, and render the legend as the page's eyebrow label. */
.tvcog-embed #bootstrap-theme fieldset.af-container {
  border: 0; padding: 0; margin: 22px 0 0;   /* section gap ABOVE the legend, not
                                                between legend and first field */
}
.tvcog-embed #bootstrap-theme fieldset.af-container:first-of-type { margin-top: 0; }
.tvcog-embed #bootstrap-theme legend.af-title {
  width: auto; border: 0; padding: 0; margin: 0 0 12px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--cog-olive-600);
}

/* Field rows: vertical rhythm between fields + a clear label-to-input gap
   (Riverlea stacks them ~1px apart with the label almost on top of the input). */
.tvcog-embed #bootstrap-theme .af-container af-field {
  display: block; margin-bottom: 16px;
}
.tvcog-embed #bootstrap-theme .crm-af-field-label {
  display: block; margin-bottom: 7px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  color: var(--cog-ink-800);
}

/* Shared button look for shortcode/HTML contexts */
.tvcog-btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display);
  font-weight: 600; font-size: 15px; text-transform: lowercase; letter-spacing: 0.01em;
  padding: 11px 20px; border-radius: var(--radius-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1; transition: all var(--dur-2) var(--ease-out);
}
.tvcog-btn--primary { background: var(--cog-lime-500); color: var(--cog-ink-900); box-shadow: var(--shadow-sm); }
.tvcog-btn--primary:hover { background: var(--cog-lime-600); box-shadow: var(--shadow-brand); color: var(--cog-ink-900); }
.tvcog-btn--olive { background: var(--cog-olive-500); color: #fff; }
.tvcog-btn--olive:hover { background: var(--cog-olive-600); color: #fff; }
.tvcog-btn--outline { background: transparent; color: var(--cog-olive-700); border-color: var(--cog-olive-500); }
.tvcog-btn--outline:hover { background: var(--cog-olive-50); color: var(--cog-olive-700); }

/* ============================================================
   NEWSLETTER FORM (shortcode)
   ============================================================ */
.tvcog-newsletter { display: flex; gap: 8px; flex-wrap: wrap; }
.tvcog-newsletter input[type="email"] {
  flex: 1 1 200px; font-family: var(--font-body); font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--border-1); border-radius: var(--radius-md); background: var(--bg-2); color: var(--fg-1);
}
.tvcog-newsletter input[type="email"]:focus { outline: none; border-color: var(--cog-olive-500); box-shadow: 0 0 0 3px var(--cog-lime-100); }

/* ============================================================
   FOOTER
   ============================================================ */
.tvcog-footer { background: var(--cog-ink-900); color: rgba(255,255,255,0.78); }
.tvcog-footer :is(h1,h2,h3,h4,h5,h6) { color: var(--cog-lime-400) !important; }
.tvcog-footer__col h5, .tvcog-footer__col .tvcog-footer__h { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cog-lime-400) !important; margin: 0 0 14px; }
.tvcog-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.tvcog-footer a:hover { color: var(--cog-lime-400); }
.tvcog-footer p { color: rgba(255,255,255,0.72); }
.tvcog-footer__brand strong { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--cog-paper); text-transform: lowercase; letter-spacing: -0.01em; display: block; }
.tvcog-footer__brand small { font-family: var(--font-display); font-size: 11px; font-weight: 500; color: var(--cog-lime-400); letter-spacing: 0.06em; text-transform: lowercase; }
.tvcog-footer__blurb { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.6) !important; }
.tvcog-footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,0.5); letter-spacing: 0.02em; }
.tvcog-footer__social a { display: inline-flex; color: rgba(255,255,255,0.6); }
.tvcog-footer__social a:hover { color: var(--cog-lime-400); }
.tvcog-footer__social svg { width: 18px; height: 18px; }
.tvcog-footer .wp-block-navigation-item__content { color: rgba(255,255,255,0.78); }
.tvcog-footer .wp-block-navigation-item__content:hover { color: var(--cog-lime-400); }

/* ============================================================
   POSTS / GENERIC CONTENT
   ============================================================ */
.tvcog-postcards .wp-block-post { background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--dur-2) var(--ease-out); display: flex; flex-direction: column; }
.tvcog-postcards .wp-block-post:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.tvcog-postcards .wp-block-post-featured-image { margin: 0; aspect-ratio: 16/10; }
.tvcog-postcards .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.tvcog-postcards .tvcog-postcard__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.tvcog-postcards .wp-block-post-title { font-size: 20px !important; margin: 0; line-height: 1.15; }
.tvcog-postcards .wp-block-post-title a { text-decoration: none; color: var(--fg-1); }
.tvcog-postcards .wp-block-post-date { font-family: var(--font-mono); font-size: 12px; color: var(--cog-olive-700); }

.tvcog-prose > * + * { margin-top: 1.1em; }

/* Divider used between sections */
.tvcog-rule { border: 0; border-top: 1px solid var(--border-1); }

/* ============================================================
   PILLAR CARDS (mission / programs)
   ============================================================ */
.tvcog-pillar { display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: all var(--dur-2) var(--ease-out); box-sizing: border-box; }
.tvcog-pillar:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--border-2); color: inherit; }
.tvcog-pillar__bar { width: 44px; height: 6px; border-radius: 999px; display: block; }
.tvcog-pillar--lime .tvcog-pillar__bar { background: var(--cog-lime-500); }
.tvcog-pillar--olive .tvcog-pillar__bar { background: var(--cog-olive-500); }
.tvcog-pillar--moss .tvcog-pillar__bar { background: var(--cog-moss-500); }
.tvcog-pillar__name { font-family: var(--font-display); font-weight: 600; font-size: 22px; text-transform: lowercase; color: var(--fg-1); margin: 8px 0 0; }
.tvcog-pillar__blurb { font-size: 14.5px; color: var(--fg-2); margin: 0; line-height: 1.5; }
.tvcog-pillar__more { font-family: var(--font-display); font-weight: 600; font-size: 14px; text-transform: lowercase; color: var(--cog-olive-700); margin-top: auto; padding-top: 6px; }

/* ============================================================
   EQUIPMENT GALLERY
   ============================================================ */
.tvcog-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tvcog-gallery__tile { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.tvcog-gallery__tile.is-wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.tvcog-gallery__tile .tvcog-eventph { position: absolute; inset: 0; display: block; aspect-ratio: auto; }
.tvcog-gallery__tile figcaption { left: 14px; bottom: 12px; }
@media (max-width: 900px) { .tvcog-gallery { grid-template-columns: repeat(2, 1fr); } .tvcog-gallery__tile.is-wide { grid-column: span 2; aspect-ratio: 16 / 7; } }
@media (max-width: 600px) { .tvcog-gallery { grid-template-columns: 1fr; } .tvcog-gallery__tile, .tvcog-gallery__tile.is-wide { grid-column: auto; aspect-ratio: 16 / 10; } }

/* ============================================================
   BLOCK OVERRIDES — outline buttons, read-more, details, pullquote
   ============================================================ */
.wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent; color: var(--cog-olive-700); border: 1px solid var(--cog-olive-500); box-shadow: none;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
  background: var(--cog-olive-50); color: var(--cog-olive-700); box-shadow: none;
}

.tvcog-eventcards .wp-block-read-more,
.tvcog-postcards .wp-block-read-more {
  display: inline-flex; align-self: flex-start; margin-top: 4px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; text-transform: lowercase;
  color: var(--cog-olive-700); border: 1px solid var(--cog-olive-500); border-radius: var(--radius-md);
  padding: 7px 12px; transition: all var(--dur-2) var(--ease-out);
}
.tvcog-eventcards .wp-block-read-more:hover,
.tvcog-postcards .wp-block-read-more:hover { background: var(--cog-olive-50); }
.tvcog-postcards .wp-block-post-excerpt { font-size: 13.5px; color: var(--fg-2); }
.tvcog-postcards .wp-block-post-excerpt__more-link { display: none; }

.wp-block-details { border: 1px solid var(--border-1); border-radius: var(--radius-md); padding: 12px 16px; background: var(--bg-2); margin-bottom: 10px; }
.wp-block-details summary { font-family: var(--font-display); font-weight: 600; cursor: pointer; text-transform: lowercase; color: var(--fg-1); }

.wp-block-pullquote { border-top: 1px solid var(--cog-lime-400); border-bottom: 1px solid var(--cog-lime-400); padding: 24px 0; }
.wp-block-pullquote blockquote p, .wp-block-pullquote p { font-family: var(--font-display); font-size: 27px; line-height: 1.25; text-transform: lowercase; color: var(--cog-moss-500); }

/* ───── Reduced motion ───── */
@media (prefers-reduced-motion: reduce) {
  .tvcog-hero::after, .tvcog-hero__panel .tvcog-hero__cog, .tvcog-cta-band::after,
  .tvcog-brand img { animation: none !important; transition: none !important; }
}