/**
 * Barutem Communities -- compiled front-end stylesheet.
 *
 * Architecture (ITCSS-inspired, flattened into one HTTP request for
 * performance -- see the section banners below for the logical layers):
 *   1. Settings   -- :root custom properties (design tokens)
 *   2. Base       -- element resets, typography
 *   3. Layout     -- containers, sections, grid scaffolding
 *   4. Components -- header, cards, forms, modals, carousels, etc.
 *   5. Utilities  -- .sr-only, .reveal, single-purpose helper classes
 *   6. Responsive -- min-width media queries, mobile-first throughout
 *
 * This file originates from the static Barutem Communities HTML/CSS
 * build; WordPress-specific additions (breadcrumbs, pagination, generic
 * content cards, comments, 404/empty states, form/honeypot styling) are
 * appended at the end under "WORDPRESS TEMPLATE ADDITIONS" rather than
 * interleaved, so the original design system stays diffable.
 */
:root {
  --color-bg: #fbfaf5;
  --color-bg-soft: #f7f4e9;
  --color-surface: #ffffff;
  --color-surface-2: #f4ecd4;
  --color-surface-3: #e9eaf2;
  --color-text: #151936;
  --color-muted: #555a70;
  --color-outline: #d7cba5;
  --color-primary: #192056;
  --color-primary-2: #ebb326;
  --color-primary-light: #f6d675;
  --color-blue: #174c37;
  --color-blue-soft: #dcebe3;
  --color-purple: #7b2506;
  --color-purple-soft: #f3dfd7;
  --color-footer: #143c2c;
  --font-heading: "Geist", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1280px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
  --section: clamp(4rem, 7vw, 7.5rem);
  --gap: clamp(1rem, 2.4vw, 2rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(235, 179, 38, 0.95); outline-offset: 3px; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -10rem;
  z-index: 999;
  background: var(--color-primary);
  color: #fff;
  padding: .8rem 1rem;
  border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}
.section { padding-block: var(--section); }
.section-soft { background: var(--color-bg-soft); }
.section-muted { background: rgba(244, 236, 212, 0.48); }
.centered { text-align: center; margin-inline: auto; }
.section-heading { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.section-heading h2, .section-row h2, .join-card h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.section-heading p, .section-row p, .join-card p { color: var(--color-muted); margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 245, 0.92);
  border-bottom: 1px solid rgba(25, 32, 86, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.03);
}
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand, .footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-primary);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.site-nav {
  position: fixed;
  inset: 76px 0 auto 0;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  background: rgba(251, 250, 245, 0.99);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-outline);
  box-shadow: var(--shadow-hover);
  transform: translateY(-125%);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-list {
  display: grid;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item { position: relative; }
.nav-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .85rem 1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  text-align: left;
}
.nav-link:hover, .nav-link.active, .submenu-toggle[aria-expanded="true"] {
  color: var(--color-primary);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--color-primary-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.submenu-toggle .material-symbols-outlined {
  font-size: 1.25rem;
  transition: transform .2s ease;
}
.submenu-toggle[aria-expanded="true"] .material-symbols-outlined { transform: rotate(180deg); }
.submenu {
  display: none;
  margin: .25rem 0 .55rem;
  padding: .35rem;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid rgba(25, 32, 86, .1);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.has-submenu.is-open > .submenu { display: grid; }
.submenu a,
.submenu button {
  width: 100%;
  border: 0;
  display: block;
  padding: .7rem .85rem;
  border-radius: 10px;
  color: var(--color-muted);
  background: transparent;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.submenu a:hover, .submenu a:focus-visible, .submenu a.active,
.submenu button:hover, .submenu button:focus-visible {
  color: var(--color-primary);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--color-primary-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.header-search {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .2rem;
  padding: .25rem .3rem .25rem .8rem;
  background: var(--color-surface);
  border: 1px solid rgba(25, 32, 86, .14);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.header-search:focus-within {
  border-color: var(--color-primary-2);
  box-shadow: 0 0 0 3px rgba(235, 179, 38, .18);
}
.header-search .search-icon {
  color: var(--color-muted);
  font-size: 1.2rem;
}
.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font-size: .9rem;
}
.header-search input::placeholder { color: var(--color-muted); }
.voice-search-button,
.search-submit {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
  background: transparent;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.voice-search-button:hover,
.search-submit:hover {
  background: rgba(235, 179, 38, .2);
  transform: scale(1.04);
}
.search-submit {
  color: var(--color-primary);
  background: var(--color-primary-2);
}
.voice-search-button.is-listening {
  color: #fff;
  background: #c7352b;
  animation: voice-pulse 1.15s ease-in-out infinite;
}
.voice-search-button:disabled { opacity: .45; cursor: not-allowed; }
.search-match {
  animation: search-highlight 1.8s ease;
}
@keyframes voice-pulse {
  50% { box-shadow: 0 0 0 7px rgba(199, 53, 43, .16); }
}
@keyframes search-highlight {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: inset 0 0 0 4px rgba(235, 179, 38, .7); }
}
.nav-cta { width: 100%; }
.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.whatsapp-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--color-primary);
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.whatsapp-link:hover {
  color: #128c3e;
  background: rgba(18, 140, 62, .1);
  transform: translateY(-1px);
}
.whatsapp-link svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}
.menu-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(25, 32, 86, .18);
  border-radius: 999px;
  display: inline-grid;
  place-content: center;
  gap: 4px;
  background: var(--color-surface);
  color: var(--color-primary);
}
.menu-toggle span { width: 18px; height: 2px; background: currentColor; display: block; border-radius: 99px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 48px;
  padding: .85rem 1.3rem;
  border: 0;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--color-primary-2); color: var(--color-primary); }
.btn-primary:hover { background: #dca316; }
.btn-secondary { background: var(--color-surface-3); color: var(--color-text); }
.btn-outline { background: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-blue { background: var(--color-blue); color: #fff; }
.btn-purple { background: var(--color-purple); color: #fff; }
.btn-small { min-height: 42px; padding: .7rem 1.15rem; border-radius: 999px; }
.btn-full { width: 100%; }

.hero {
  position: relative;
  padding-top: clamp(4.2rem, 7vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 30rem;
  height: 30rem;
  right: -12rem;
  top: 8rem;
  background: radial-gradient(circle, rgba(235,179,38,.25), transparent 64%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  background: #3aa9ff;
  color: #003c63;
  font-family: var(--font-heading);
  font-size: .78rem;
  letter-spacing: .04em;
  font-weight: 700;
  border-radius: 999px;
  padding: .35rem .9rem;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: clamp(2.55rem, 10vw, 5.35rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 0 0 1.35rem;
  max-width: 780px;
}
.hero p { color: var(--color-muted); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 620px; margin: 0 0 2rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-art {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}
.hero-glow {
  width: 21rem;
  height: 21rem;
  border-radius: 999px;
  background: rgba(36, 76, 13, 0.06);
  filter: blur(26px);
}
.glass-card {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: var(--shadow);
}
.float-card {
  position: absolute;
  border-radius: var(--radius);
  padding: 1.1rem;
}
.member-card { width: min(76vw, 270px); top: 0; right: 0; animation: floaty 5s ease-in-out infinite; }
.member-card img { width: 100%; height: 10rem; object-fit: cover; border-radius: 14px; margin-bottom: .9rem; }
.member-card span, .listing-card span { color: var(--color-primary); font-size: .8rem; font-weight: 800; }
.member-card h2, .listing-card h2 { font-family: var(--font-heading); margin: .1rem 0; font-size: 1.15rem; }
.member-card p, .listing-card small { color: var(--color-muted); font-size: .85rem; margin: 0; }
.listing-card { width: min(84vw, 300px); left: 0; bottom: 2rem; animation: floaty 6s ease-in-out infinite reverse; }
.listing-icon { width: 44px; height: 44px; border-radius: 999px; background: #3aa9ff; color: #003c63; display: inline-grid; place-items: center; margin-bottom: .8rem; }
.listing-card strong { color: var(--color-primary); display: block; margin-top: .25rem; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat-card { padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--radius); text-align: center; }
.stat-card strong { display: block; color: var(--color-primary); font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem); line-height: 1; margin-bottom: .5rem; }
.stat-card:nth-child(2) strong, .stat-card:nth-child(5) strong { color: var(--color-blue); }
.stat-card:nth-child(3) strong { color: var(--color-purple); }
.stat-card span { text-transform: uppercase; color: var(--color-muted); font-family: var(--font-heading); font-size: .72rem; letter-spacing: .08em; font-weight: 800; }

.district-grid, .forum-grid, .project-grid { display: grid; gap: var(--gap); }
.district-card {
  position: relative;
  min-height: 390px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.district-card img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .7s ease; }
.district-card:hover img { transform: scale(1.1); }
.district-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: #fff; background: linear-gradient(to top, rgba(36, 76, 13, .95), transparent 65%); }
.district-overlay h3 { font-family: var(--font-heading); font-size: 1.65rem; margin: 0 0 .4rem; }
.district-overlay p { margin: 0 0 1rem; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.district-overlay a { display: inline-flex; align-items: center; gap: .25rem; font-weight: 800; font-family: var(--font-heading); width: fit-content; }
.district-overlay a:hover { transform: translateX(4px); }

.feature-card, .share-card, .testimonial-card, .product-card, .project-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid rgba(194, 201, 185, .3);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover, .share-card:hover, .testimonial-card:hover, .product-card:hover, .project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(36, 76, 13, .2); }
.feature-icon, .share-card > span:first-child, .project-icon {
  width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; color: var(--color-primary); background: rgba(36,76,13,.1); margin-bottom: 1.2rem;
}
.feature-icon.secondary { color: var(--color-blue); background: rgba(0,98,157,.1); }
.feature-icon.tertiary { color: var(--color-purple); background: rgba(110,43,83,.1); }
.feature-card h3, .share-card h3, .product-card h3, .project-card h3 { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.25; margin: 0 0 .7rem; }
.feature-card p, .project-card p { color: var(--color-muted); font-size: .95rem; margin: 0 0 1.5rem; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--color-primary); font-size: .82rem; font-weight: 800; }
.card-meta a { display: inline-flex; align-items: center; }
.card-meta.secondary { color: var(--color-blue); }
.card-meta.tertiary { color: var(--color-purple); }

.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.share-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.share-card > span:first-child { font-size: 2rem; width: 64px; height: 64px; }
.share-card h3 { flex: 1; }

body.modal-open { overflow: hidden; }
.share-modal {
  width: min(100% - 1rem, 840px);
  max-width: 840px;
  max-height: calc(100dvh - 1rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: 0 30px 90px rgba(9, 14, 48, .35);
}
.share-modal::backdrop {
  background: rgba(9, 14, 38, .72);
  backdrop-filter: blur(5px);
}
.share-modal-panel { overflow: hidden; border-radius: inherit; }
.share-modal-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  color: #fff;
  background: var(--color-primary);
}
.modal-eyebrow { display: block; margin-bottom: .25rem; color: var(--color-primary-light); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.share-modal-header h2 { margin: 0; font-family: var(--font-heading); font-size: clamp(1.45rem, 5vw, 2rem); line-height: 1.1; }
.share-modal-header p { margin: .45rem 0 0; color: rgba(255,255,255,.75); font-size: .88rem; }
.modal-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.08);
}
.modal-close:hover { background: rgba(255,255,255,.18); }
.community-news-form {
  max-height: calc(100dvh - 8.5rem);
  overflow-y: auto;
  padding: 1.25rem 1.25rem max(1.75rem, calc(1rem + env(safe-area-inset-bottom)));
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.modal-form-grid { display: grid; gap: 1rem; }
.form-field { display: grid; gap: .45rem; }
.form-field > span { font-family: var(--font-heading); font-size: .86rem; font-weight: 750; }
.form-field strong { color: #b3261e; }
.form-field small { color: var(--color-muted); font-size: .75rem; line-height: 1.4; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(25, 32, 86, .18);
  border-radius: 14px;
  padding: .8rem .9rem;
  outline: 0;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23192056' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-primary-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(235, 179, 38, .18);
}
.report-method-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.report-method-field legend {
  margin-bottom: .65rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: .86rem;
  font-weight: 750;
}
.report-method-field legend strong { color: #b3261e; }
.report-method-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
  padding: .35rem;
  border: 1px solid rgba(25, 32, 86, .14);
  border-radius: 16px;
  background: var(--color-surface-3);
}
.report-method-toggle label { position: relative; cursor: pointer; }
.report-method-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.report-method-toggle label > span {
  min-height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem .7rem;
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 750;
  text-align: center;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.report-method-toggle input:checked + span {
  color: var(--color-primary);
  background: var(--color-primary-2);
  box-shadow: var(--shadow);
}
.report-method-toggle input:focus-visible + span {
  outline: 3px solid rgba(235, 179, 38, .95);
  outline-offset: 3px;
}
.report-method-toggle .material-symbols-outlined { font-size: 1.2rem; }
.report-method-panel { margin-top: .9rem; }
.voice-report-panel {
  padding: 1rem;
  border: 1px solid rgba(25, 32, 86, .12);
  border-radius: 16px;
  background: var(--color-bg-soft);
}
.voice-report-panel[hidden],
.report-method-panel[hidden] { display: none; }
.media-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(25, 32, 86, .1);
}
.modal-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.modal-section-heading h3 { margin: 0; color: var(--color-primary); font-family: var(--font-heading); font-size: 1.05rem; }
.modal-section-heading p { margin: .2rem 0 0; color: var(--color-muted); font-size: .82rem; }
.upload-dropzone {
  min-height: 150px;
  border: 2px dashed rgba(25, 32, 86, .22);
  border-radius: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .3rem;
  padding: 1.25rem;
  text-align: center;
  color: var(--color-muted);
  background: var(--color-bg-soft);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.upload-dropzone:hover,
.upload-dropzone.is-dragging {
  border-color: var(--color-primary-2);
  background: rgba(235, 179, 38, .1);
  transform: translateY(-2px);
}
.upload-dropzone strong { color: var(--color-primary); font-family: var(--font-heading); }
.upload-icon { font-size: 2rem; color: var(--color-primary); }
.upload-preview-list { display: grid; gap: .65rem; margin-top: .85rem; }
.upload-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .6rem;
  border: 1px solid rgba(25, 32, 86, .1);
  border-radius: 14px;
  background: var(--color-bg);
}
.upload-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--color-surface-3); }
.upload-video-icon { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; color: var(--color-primary); background: var(--color-surface-3); }
.upload-info { min-width: 0; }
.upload-info strong { display: block; overflow: hidden; color: var(--color-text); font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.upload-info span { color: var(--color-muted); font-size: .75rem; }
.remove-upload {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #b3261e;
  background: transparent;
}
.remove-upload:hover { background: rgba(179, 38, 30, .1); }
.recording-time { flex: 0 0 auto; color: var(--color-primary); font-family: var(--font-heading); font-weight: 800; font-variant-numeric: tabular-nums; }
.recording-controls { display: flex; flex-wrap: wrap; gap: .65rem; }
.record-button,
.remove-recording {
  min-height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .7rem 1rem;
  font-weight: 750;
}
.record-button { border: 0; color: #fff; background: #b3261e; }
.record-button.is-recording { animation: voice-pulse 1.15s ease-in-out infinite; }
.record-dot { width: 11px; height: 11px; border-radius: 999px; background: currentColor; }
.record-button.is-recording .record-dot { border-radius: 2px; }
.remove-recording { border: 1px solid rgba(25, 32, 86, .16); color: var(--color-muted); background: transparent; }
.voice-upload-button { cursor: pointer; }
.voice-upload-button:focus-within {
  outline: 3px solid rgba(235, 179, 38, .7);
  outline-offset: 2px;
}
.audio-preview { width: 100%; margin-top: .85rem; }
.recording-status,
.submission-message { min-height: 1.35rem; margin: .55rem 0 0; color: var(--color-muted); font-size: .8rem; }
.recording-status.error,
.submission-message.error { color: #b3261e; }
.submission-message.success { color: var(--color-blue); font-weight: 700; }
.consent-field { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.25rem; color: var(--color-muted); font-size: .82rem; }
.consent-field input { width: 18px; height: 18px; margin-top: .12rem; accent-color: var(--color-primary); }
.inline-check-field {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  margin-top: 1rem;
  color: var(--color-text);
  font-size: .86rem;
  font-weight: 650;
}
.inline-check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}
.marketplace-listing-form .modal-section-heading strong { color: #b3261e; }
.progress-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
  gap: .85rem;
}
.form-field .progress-input-row input[type="range"] {
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  accent-color: var(--color-primary);
  background: transparent;
}
.progress-input-row output {
  min-height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
  background: var(--color-surface-3);
  font-family: var(--font-heading);
  font-weight: 800;
}
.event-location-field[hidden] { display: none; }
.culture-accuracy-consent { margin-top: .75rem; }
.share-modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column-reverse;
  gap: .7rem;
  margin: 1.25rem -1.25rem 0;
  padding: 1rem 1.25rem max(1rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(25, 32, 86, .1);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.share-modal-actions .btn { width: 100%; }

.section-row { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pill {
  border: 0;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: var(--color-surface-3);
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 800;
}
.pill.active, .pill:hover { background: var(--color-primary); color: #fff; }
.pill.active { box-shadow: 0 0 0 3px var(--color-bg-soft), 0 0 0 5px var(--color-primary-2); }
.text-link { color: var(--color-primary); font-family: var(--font-heading); font-weight: 800; display: inline-flex; align-items: center; gap: .2rem; width: fit-content; }
.text-link:hover { text-decoration: underline; }
.insights-grid { display: grid; gap: var(--gap); }
.insight-card { color: inherit; }
.post-image { position: relative; overflow: hidden; border-radius: var(--radius); height: clamp(250px, 48vw, 450px); margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.post-image img, .product-image img, .video-card img, .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.featured-post:hover .post-image img, .product-card:hover .product-image img, .video-card:hover img, .gallery-item:hover img { transform: scale(1.06); }
.post-image > span, .product-image > span { position: absolute; top: 1rem; left: 1rem; background: var(--color-primary); color: #fff; border-radius: 999px; padding: .35rem .75rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.product-image span { left: auto; right: .75rem; border-radius: 8px; background: var(--color-blue); }
.featured-post h3 { font-family: var(--font-heading); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; margin: 0 0 .7rem; }
.featured-post p { color: var(--color-muted); margin: 0 0 1rem; }
.author-line { display: flex; align-items: center; gap: .65rem; color: var(--color-muted); font-size: .9rem; font-weight: 600; }
.author-line span { width: 32px; height: 32px; border-radius: 999px; background: var(--color-outline); }
.author-line span:last-child { width: auto; height: auto; border-radius: 0; background: transparent; }
.post-list { display: grid; gap: 1.5rem; align-content: start; }
#mini-insights { display: grid; gap: 1.5rem; }
.insights-bottom-row {
  display: grid;
  gap: 1rem;
  align-items: center;
}
.insights-more {
  justify-self: end;
  flex: 0 0 auto;
  white-space: nowrap;
}
.insights-autoplay-card {
  position: relative;
  min-width: 0;
  min-height: 108px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: .85rem;
  overflow: hidden;
  padding: .65rem;
  color: #fff;
  background: #080808;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.insights-autoplay-card img {
  width: 88px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
}
.insights-autoplay-content {
  min-width: 0;
  display: grid;
  gap: .25rem;
}
.insights-autoplay-content small {
  color: var(--color-primary-2);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.insights-autoplay-content strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: .86rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.insights-autoplay-content > span {
  color: rgba(255,255,255,.66);
  font-size: .68rem;
}
.insights-autoplay-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,.15);
}
.insights-autoplay-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--color-primary-2);
}
.insights-autoplay-card.is-playing .insights-autoplay-progress span {
  animation: insight-card-progress 5s linear forwards;
}
.insights-autoplay-card.is-changing .insights-autoplay-content,
.insights-autoplay-card.is-changing img { animation: insight-card-enter .35s ease both; }
.insights-autoplay-card:hover,
.insights-autoplay-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.mini-post { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; padding: .35rem; margin: -.35rem; border-radius: 18px; overflow: hidden; transition: background .2s ease, transform .2s ease; }
.mini-post:hover { background: rgba(235, 179, 38, .12); transform: translateX(4px); }
.mini-post img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; box-shadow: var(--shadow); }
.mini-post h3 { font-family: var(--font-heading); font-size: 1rem; line-height: 1.24; margin: 0 0 .25rem; }
.mini-post .post-meta { color: var(--color-muted); font-size: .82rem; }
.read-news {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -35%);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  color: var(--color-primary);
  background: var(--color-primary-2);
  font-family: var(--font-heading);
  font-size: .85rem;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.featured-post:hover .read-news,
.featured-post:focus-visible .read-news { opacity: 1; transform: translate(-50%, -50%); }
.read-news-mini {
  position: absolute;
  right: .75rem;
  bottom: .55rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}
.mini-post:hover .read-news-mini,
.mini-post:focus-visible .read-news-mini { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .read-news { opacity: 1; transform: translate(-50%, -50%); }
  .read-news-mini { opacity: 1; transform: translateY(0); }
}

@keyframes insight-card-progress {
  to { transform: scaleX(1); }
}

@keyframes insight-card-enter {
  from { opacity: .25; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-carousel { min-width: 0; }
.testimonial-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: .35rem .15rem 1rem;
}
.testimonial-grid::-webkit-scrollbar { display: none; }
.testimonial-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 calc(100% - .3rem);
  min-height: 285px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.quote { position: absolute; right: 1.3rem; top: .9rem; color: rgba(36, 76, 13, .13); font-size: 4rem; }
.testimonial-card p { position: relative; z-index: 1; font-size: 1.05rem; font-style: italic; margin: 0 0 1.7rem; }
.person { display: flex; align-items: center; gap: .9rem; }
.person > strong { width: 48px; height: 48px; border-radius: 999px; background: rgba(36,76,13,.1); color: var(--color-primary); display: grid; place-items: center; font-family: var(--font-heading); }
.person h3 { font-family: var(--font-heading); margin: 0; font-size: 1rem; }
.person span { color: var(--color-muted); font-size: .82rem; }
.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.testimonial-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(25, 32, 86, .16);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: color .2s ease, background .2s ease, transform .2s ease, opacity .2s ease;
}
.testimonial-arrow:hover:not(:disabled) {
  color: var(--color-primary);
  background: var(--color-primary-2);
  transform: translateY(-2px);
}
.testimonial-arrow:disabled { opacity: .35; cursor: not-allowed; }
.testimonial-dots { display: flex; align-items: center; gap: .45rem; }
.testimonial-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(25, 32, 86, .22);
  transition: width .2s ease, background .2s ease;
}
.testimonial-dot.active {
  width: 26px;
  background: var(--color-primary-2);
}

.video-card { position: relative; border: 0; width: min(100%, 900px); margin-inline: auto; display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-hover); background: #000; padding: 0; text-align: left; color: #fff; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.2)); }
.play-button { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); z-index: 2; width: clamp(58px, 11vw, 84px); height: clamp(58px, 11vw, 84px); border-radius: 999px; background: var(--color-primary-2); display: grid; place-items: center; transition: transform .2s ease; }
.video-card:hover .play-button { transform: translate(-50%, -50%) scale(1.08); }
.play-button span { font-size: 2.6rem; }
.video-card strong { position: absolute; z-index: 2; left: 1.2rem; bottom: 1.2rem; font-family: var(--font-heading); font-size: clamp(1.1rem, 3vw, 1.65rem); }

.carousel-controls { display: none; }
.market-grid { display: grid; gap: var(--gap); }
.product-card { padding: 1rem; }
.product-image { position: relative; height: 250px; border-radius: 16px; overflow: hidden; margin-bottom: 1rem; }
.product-card p { color: var(--color-primary); font-weight: 800; margin: 0 0 1rem; }
.product-card small { color: var(--color-muted); font-weight: 500; }

.project-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.project-top strong { color: var(--color-primary); background: #a3d486; border-radius: 8px; padding: .35rem .55rem; text-transform: uppercase; font-size: .68rem; letter-spacing: .04em; }
.secondary-project .project-top strong { background: var(--color-blue-soft); color: var(--color-blue); }
.tertiary-project .project-top strong { background: var(--color-purple-soft); color: var(--color-purple); }
.secondary-project .project-icon { color: var(--color-blue); background: rgba(0,98,157,.1); }
.tertiary-project .project-icon { color: var(--color-purple); background: rgba(110,43,83,.1); }
.progress-label { display: flex; justify-content: space-between; font-weight: 800; font-size: .78rem; margin-bottom: .55rem; }
.progress { height: 8px; border-radius: 999px; background: var(--color-surface-3); overflow: hidden; margin-bottom: 1.6rem; }
.progress span { display: block; height: 100%; background: var(--color-primary); border-radius: inherit; }
.secondary-project .progress span { background: var(--color-blue); }
.tertiary-project .progress span { background: var(--color-purple); }

.gallery-grid { display: grid; gap: 1rem; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; height: 230px; box-shadow: var(--shadow); }
.gallery-item.tall { height: 330px; }
.gallery-item.wide { height: 280px; }

.join-section { padding-block: clamp(3rem, 5vw, 5rem); }
.join-card { background: var(--color-footer); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1.5rem; box-shadow: var(--shadow-hover); }
.join-card h2 { color: var(--color-primary-light); }
.join-card p { color: rgba(255,255,255,.72); }
.join-form label { display: block; font-family: var(--font-heading); font-weight: 700; margin-bottom: .55rem; }
.form-row { display: grid; gap: .75rem; }
.join-form input { width: 100%; min-height: 52px; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 0 1rem; background: rgba(255,255,255,.08); color: #fff; }
.join-form input::placeholder { color: rgba(255,255,255,.55); }
.form-message { min-height: 1.5rem; margin: .55rem 0 0; font-size: .9rem; color: var(--color-primary-light); }
.form-message.error { color: #ffdad6; }

.site-footer { background: var(--color-footer); color: #fff; padding-block: clamp(4rem, 7vw, 7.5rem) 2rem; }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { display: inline-block; color: var(--color-primary-light); margin-bottom: 1rem; }
.site-footer p { color: rgba(240, 242, 232, .72); margin: 0; max-width: 320px; }
.site-footer h2 { font-family: var(--font-heading); font-size: 1rem; margin: 0 0 1rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.site-footer a:not(.footer-brand) { color: rgba(240, 242, 232, .72); transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.footer-bottom p { font-size: .8rem; }
.footer-icons { display: flex; gap: 1rem; }

.back-to-top {
  position: fixed;
  z-index: 90;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(25, 32, 86, .22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(.9);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, box-shadow .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(25, 32, 86, .3);
}
.back-to-top .material-symbols-outlined {
  position: relative;
  z-index: 2;
  font-size: 1.35rem;
  font-weight: 700;
}
.scroll-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.scroll-ring circle {
  fill: none;
  stroke-width: 3;
}
.scroll-ring-track { stroke: rgba(25, 32, 86, .14); }
.scroll-ring-progress {
  stroke: var(--color-primary-2);
  stroke-linecap: round;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23;
  transition: stroke-dashoffset .08s linear;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 480px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr auto; }
}
@media (min-width: 768px) {
  .container { width: min(calc(100% - 4rem), var(--container)); }
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .forum-grid, .project-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { gap: var(--gap); }
  .testimonial-card { flex-basis: calc((100% - var(--gap)) / 2); }
  .insights-grid { grid-template-columns: 1.6fr .9fr; }
  .section-row { flex-direction: row; align-items: end; justify-content: space-between; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-intro { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .join-card { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .share-modal { width: min(100% - 3rem, 840px); max-height: calc(100dvh - 3rem); }
  .share-modal-header { padding: 1.5rem 1.75rem; }
  .community-news-form { max-height: calc(100dvh - 10rem); padding: 1.5rem 1.75rem max(2rem, calc(1rem + env(safe-area-inset-bottom))); }
  .modal-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-field-wide { grid-column: 1 / -1; }
  .share-modal-actions { bottom: 0; flex-direction: row; justify-content: flex-end; margin: 1.5rem -1.75rem 0; padding: 1rem 1.75rem max(1rem, env(safe-area-inset-bottom)); }
  .share-modal-actions .btn { width: auto; min-width: 150px; }
  .back-to-top {
    right: max(1.5rem, env(safe-area-inset-right));
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
  }
}
@media (min-width: 1180px) {
  .mobile-header-actions { display: none; }
  .site-nav { position: static; max-height: none; overflow: visible; transform: none; opacity: 1; pointer-events: auto; flex-direction: row; align-items: center; gap: .45rem; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .nav-list { display: flex; align-items: center; gap: .05rem; }
  .nav-link { width: auto; padding: .55rem .45rem; border-radius: 999px; white-space: nowrap; }
  .submenu-toggle { justify-content: center; }
  .submenu {
    position: absolute;
    z-index: 20;
    top: calc(100% + .55rem);
    left: 0;
    width: max-content;
    min-width: 190px;
    max-width: 240px;
    margin: 0;
    padding: .5rem;
  }
  .nav-item:last-child .submenu { left: auto; right: 0; }
  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu,
  .has-submenu.is-open > .submenu { display: grid; }
  .header-search {
    width: clamp(170px, 15vw, 220px);
    min-height: 44px;
    flex: 0 1 220px;
    padding-left: .7rem;
  }
  .header-search .search-submit { display: none; }
  .header-search input { font-size: .82rem; }
  .nav-cta { width: auto; flex: 0 0 auto; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr .85fr; }
  .insights-bottom-row { grid-template-columns: minmax(0, 1fr) auto; }
  .testimonial-card { flex-basis: 39%; }
  .hero-art { min-height: 600px; }
  .district-grid { grid-template-columns: repeat(4, 1fr); }
  .share-grid { grid-template-columns: repeat(5, 1fr); }
  .market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .carousel-controls { display: flex; gap: .5rem; }
  .icon-circle { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--color-outline); background: transparent; color: var(--color-muted); display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
  .icon-circle:hover { background: var(--color-primary); color: #fff; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .gallery-item.tall { height: 360px; }
  .gallery-item.wide { grid-column: span 1; height: 360px; }
}
@media (min-width: 1200px) {
  .nav-link { padding-inline: .6rem; }
  .brand { font-size: 1.45rem; }
  .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
  .footer-intro { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .insights-autoplay-progress { display: none; }
}

/* Community news article page */
.news-page { background: var(--color-bg-soft); }
.article-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 245, .95); border-bottom: 1px solid rgba(25, 32, 86, .1); backdrop-filter: blur(16px); }
.article-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.article-back { display: inline-flex; align-items: center; gap: .35rem; color: var(--color-primary); font-weight: 800; }
.article-main { padding-block: clamp(3rem, 7vw, 6rem); }
.article-layout { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.article-content { min-width: 0; }
.article-category { display: inline-block; padding: .4rem .8rem; border-radius: 999px; color: var(--color-primary); background: var(--color-primary-2); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.article-content h1 { max-width: 900px; margin: 1rem 0; color: var(--color-primary); font-family: var(--font-heading); font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -.04em; }
.article-meta { color: var(--color-muted); font-weight: 600; }
.article-image { width: 100%; max-height: 600px; margin: 2rem 0; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-hover); }
.article-lead { color: var(--color-text); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.65; }
.article-body { max-width: 780px; color: var(--color-muted); font-size: 1.05rem; }
.article-body p { margin: 0 0 1.4rem; }
.related-news h2 { margin: 0 0 1.25rem; color: var(--color-primary); font-family: var(--font-heading); }
#related-news-list { display: grid; gap: 1rem; }
.related-story { display: grid; grid-template-columns: 88px 1fr; gap: .85rem; align-items: center; padding: .65rem; border-radius: 16px; background: var(--color-surface); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.related-story:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.related-story img { width: 88px; height: 76px; border-radius: 12px; object-fit: cover; }
.related-story span { display: grid; gap: .35rem; }
.related-story strong { color: var(--color-text); font-family: var(--font-heading); line-height: 1.25; }
.related-story small { color: var(--color-muted); }
.article-footer { padding-block: 2rem; color: rgba(255,255,255,.75); background: var(--color-footer); }
.article-footer p { margin: 0; }
@media (min-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
  .related-news { position: sticky; top: 110px; }
}

/* =========================================================================
   WORDPRESS TEMPLATE ADDITIONS
   Styles for markup introduced by the WordPress conversion that has no
   equivalent in the original static build: breadcrumbs, pagination,
   generic archive/single content cards, comments, 404/empty states,
   author archive header, and form/honeypot styling shared by every
   community-submission modal.
   ========================================================================= */

.container--narrow { max-width: 820px; }

/* Breadcrumbs */
.breadcrumbs { margin-block: 1.5rem 0; }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; font-size: .875rem; color: var(--color-muted); }
.breadcrumb-item:not(:last-child)::after { content: "/"; margin-left: .35rem; color: var(--color-outline); }
.breadcrumb-item a { color: var(--color-muted); }
.breadcrumb-item a:hover { color: var(--color-primary); }

/* Pagination */
.pagination { margin-block: clamp(2rem, 4vw, 3.5rem) 0; }
.pagination-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; justify-content: center; }
.pagination-list a,
.pagination-list span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding-inline: .5rem; border-radius: var(--radius-sm); border: 1px solid var(--color-outline); font-weight: 600; }
.pagination-list .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination-list a:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Generic content card (archive/index/search loops) */
.post-list--archive { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin-block: clamp(2rem, 4vw, 3rem); }
.content-card { display: grid; gap: 1.25rem; background: var(--color-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.content-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.content-card-media img { width: 100%; height: 100%; object-fit: cover; }
.content-card-body { padding: 0 1.5rem 1.5rem; display: grid; gap: .6rem; }
.content-card-category { justify-self: start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--color-primary-2); }
.content-card-title { margin: 0; font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem); }
.content-card-title a { color: var(--color-primary); }
.content-card-excerpt { color: var(--color-muted); margin: 0; }

/* Empty state */
.empty-state { text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; color: var(--color-muted); }
.empty-state .material-symbols-outlined { font-size: 3rem; color: var(--color-outline); }

/* 404 */
.error-404-content { padding-block: clamp(3rem, 8vw, 6rem); display: grid; gap: 1rem; justify-items: center; }
.error-404-icon { font-size: 4rem; color: var(--color-primary-2); }
.error-404-links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1rem; }

/* Author archive header */
.author-heading { display: flex; align-items: center; gap: 1rem; text-align: left; }
.author-avatar { border-radius: 999px; }

/* Term description */
.term-description { color: var(--color-muted); max-width: 720px; }

/* Page / single content */
.page-header { margin-bottom: 1.5rem; }
.page-featured-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.page-featured-image img { width: 100%; height: auto; }
.entry-content { line-height: 1.75; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--color-outline); font-size: .9rem; color: var(--color-muted); }
.reading-time { color: var(--color-muted); font-size: .9rem; margin-left: .75rem; }
.listing-price,
.event-date,
.project-status { font-weight: 700; color: var(--color-primary); }

/* Comments */
.comments-area { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--color-outline); padding-top: 2rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.5rem; }
.comment-list .children { list-style: none; margin-top: 1.5rem; padding-left: clamp(1rem, 4vw, 2.5rem); }
.comment-body { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.comment-author .avatar { border-radius: 999px; }
.comment-form .form-field { margin-bottom: 1rem; }
.no-comments { color: var(--color-muted); }

/* Community-submission forms (modals + comment form + join form share this) */
.form-field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.form-field label { font-weight: 600; font-size: .9rem; }
.form-field input,
.form-field select,
.form-field textarea { width: 100%; padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--color-outline); background: var(--color-surface); font: inherit; color: var(--color-text); }
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible { outline: 3px solid rgba(235, 179, 38, 0.95); outline-offset: 1px; }
.form-field--honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }
.form-message { min-height: 1.25rem; font-size: .9rem; }
.form-message[data-state="error"] { color: #b3261e; }
.form-message[data-state="success"] { color: var(--color-blue); }

/* Live search results dropdown */
.search-results-panel { position: absolute; top: calc(100% + .5rem); left: 0; right: 0; background: var(--color-surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); max-height: 60vh; overflow-y: auto; z-index: 50; padding: .5rem; display: none; }
.search-results-panel.is-open { display: block; }
.search-result-item { display: block; padding: .65rem .75rem; border-radius: var(--radius-sm); }
.search-result-item:hover,
.search-result-item:focus-visible { background: var(--color-bg-soft); }
.search-result-item small { display: block; color: var(--color-muted); }
