/* Lake Griffin Voice — mirrors React/Tailwind theme (HSL tokens from src/index.css) */
:root {
  --background: hsl(40 33% 97%);
  --foreground: hsl(200 25% 15%);
  --primary: hsl(187 55% 28%);
  --primary-foreground: hsl(40 33% 97%);
  --secondary: hsl(40 45% 92%);
  --muted: hsl(200 10% 45%);
  --accent: hsl(35 85% 55%);
  --accent-foreground: hsl(200 25% 15%);
  --border: hsl(40 20% 88%);
  --destructive: hsl(0 70% 45%);
  --radius: 0.5rem;
  --shadow-soft: 0 2px 15px -3px hsl(200 25% 15% / 0.08);
  --shadow-card: 0 4px 25px -5px hsl(200 25% 15% / 0.1);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.narrow-page {
  max-width: 28rem;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.text-center { text-align: center; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.accent { color: var(--accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: hsl(40 33% 97% / 0.95);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

/* Join the Community — ensure white text (global `a` color would otherwise win) */
.site-header .btn-primary {
  color: #fff;
}
.site-header .btn-primary:hover {
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.logo:hover { text-decoration: none; }

.logo-img {
  height: 2.25rem;
  width: auto;
  display: block;
}

.logo-text {
  display: none;
}
@media (min-width: 640px) {
  .logo-text { display: inline; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-desktop a:hover { color: var(--primary); text-decoration: none; }

.nav-icon-form {
  display: inline;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-icon-btn:hover {
  color: var(--primary);
  background: hsl(200 25% 15% / 0.06);
}
.nav-icon-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.nav-search-trigger {
  margin-left: 0.25rem;
}

.nav-desktop a.nav-youtube {
  text-decoration: none;
}

.nav-mobile-secondary {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0.35rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--border);
}
.nav-mobile-secondary:hover {
  color: var(--primary);
  text-decoration: none;
}

.header-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  background: hsl(40 33% 99% / 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 0.75rem 0;
}
.header-search-panel[hidden] {
  display: none !important;
}
.header-search-flyout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.header-search-flyout .input {
  flex: 1;
  min-width: 10rem;
  max-width: none;
}
.header-search-close {
  flex-shrink: 0;
}

.nav-mobile .header-search {
  width: 100%;
  margin-bottom: 0.25rem;
}
.nav-mobile .header-search .input {
  flex: 1;
  max-width: none;
}

.search-page-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.search-page-form-row .input {
  flex: 1;
  min-width: 12rem;
}

.nav-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
}
.nav-toggle::before { content: "☰"; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-desktop { display: flex; }
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}
.nav-mobile[hidden] { display: none !important; }
@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.25rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-light {
  background: transparent;
  border-color: hsl(40 33% 97% / 0.35);
  color: var(--primary-foreground);
}
.btn-outline-light:hover {
  background: hsl(40 33% 97% / 0.1);
  text-decoration: none;
}
.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
}
.btn-accent:hover { filter: brightness(0.95); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: none;
}
.btn-danger {
  background: var(--destructive);
  color: #fff;
  border-color: var(--destructive);
}

.inline-form { display: inline; margin: 0; padding: 0; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, hsl(200 25% 15% / 0.82), hsl(200 25% 15% / 0.45), hsl(200 25% 15% / 0.25)),
    url("../images/hero-lake.jpg") center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 36rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-foreground);
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: hsl(40 33% 97% / 0.88);
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Home welcome band — between hero and news */
.home-intro {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: hsl(187 32% 96%);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .home-intro {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.home-intro-main--full {
  width: 100%;
  max-width: none;
}

.home-intro-main .eyebrow {
  margin-bottom: 0.5rem;
}

.home-intro-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1.25rem;
  color: var(--foreground);
}

.home-intro-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: none;
}

@media (min-width: 768px) {
  .home-intro-lead {
    font-size: 1.125rem;
  }
}

.home-intro-main .home-intro-muted,
.home-intro-main .muted {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  max-width: none;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.post-admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.post-admin-topbar .eyebrow {
  margin-bottom: 0;
}

/* Sections */
.section {
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

.section-alt {
  background: var(--secondary);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-head.center { margin-left: auto; margin-right: auto; }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0;
}

.section-desc {
  margin: 0.75rem auto 0;
  max-width: 36rem;
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  display: block;
}
a.card:hover {
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.card-featured {
  display: grid;
  gap: 0;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
  .card-featured {
    grid-template-columns: 1fr 1fr;
  }
}

.card-featured-media {
  min-height: 200px;
  background: hsl(187 55% 28% / 0.1);
}
.card-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: hsl(187 55% 28% / 0.35);
}

.card-featured-body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title-lg {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.75rem 0;
  line-height: 1.25;
}
.card-title-lg a { color: inherit; }
.card-title-lg a:hover { color: var(--primary); }

/* Home: featured block (label + strip) */
.home-featured-slab {
  margin: 0 0 2.75rem;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid hsl(40 20% 82%);
  background: linear-gradient(
    165deg,
    hsl(40 40% 99%) 0%,
    hsl(187 28% 96%) 45%,
    hsl(40 35% 98%) 100%
  );
  box-shadow: 0 4px 24px hsl(200 25% 15% / 0.07);
}
@media (min-width: 768px) {
  .home-featured-slab {
    padding: 2rem 2rem 1.75rem;
  }
}

.home-featured-banner {
  margin-bottom: 1.25rem;
  max-width: 42rem;
}
.home-featured-eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
}
.home-featured-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw + 0.85rem, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}
.home-featured-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 38rem;
}
.home-featured-intro strong {
  color: var(--foreground);
  font-weight: 600;
}

.home-featured-slab .featured-strip-hint {
  text-align: left;
  margin-top: -0.25rem;
}

.home-more-news-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

/* Home: featured strip (up to 4) — grid on tablet/desktop, scroll-snap row on phones */
.featured-strip-hint {
  text-align: center;
  margin: 0 0 0.75rem;
}

.home-featured-slab .featured-strip {
  margin-bottom: 0;
}

.featured-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
  scroll-padding-right: 1rem;
  padding: 0 0 0.75rem;
  margin: 0 0 2rem;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  -webkit-overflow-scrolling: touch;
}
.featured-strip::-webkit-scrollbar {
  height: 6px;
}
.featured-strip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

@media (min-width: 640px) {
  .featured-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (min-width: 1024px) {
  .featured-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.featured-strip-card {
  flex: 0 0 min(88vw, 20rem);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) {
  .featured-strip-card {
    flex: unset;
    scroll-snap-align: unset;
  }
}

.featured-strip-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: hsl(187 55% 28% / 0.1);
}
.featured-strip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.featured-strip-card:hover .featured-strip-media img {
  transform: scale(1.04);
}
.featured-strip-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: hsl(187 55% 28% / 0.35);
}

.featured-strip-body {
  padding: 1rem 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.featured-strip-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.35rem 0 0.25rem;
}
.featured-strip-title a {
  color: inherit;
  text-decoration: none;
}
.featured-strip-title a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.featured-strip-excerpt {
  margin: 0 0 0.5rem;
  flex: 1;
  line-height: 1.45;
}

.post-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}

.card-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-post-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: hsl(187 55% 28% / 0.08);
}
.card-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.card-post:hover .card-post-media img {
  transform: scale(1.04);
}

.card-post-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-post:not(.card-post-has-img) .card-post-body {
  padding-top: 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.35;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--primary); }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--foreground);
}
.badge-hot {
  background: hsl(0 70% 45%);
  color: #fff;
}
.badge-featured {
  background: hsl(35 85% 55%);
  color: #1d2a2f;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

a.tag-badge {
  color: var(--foreground);
}
a.tag-badge:hover {
  text-decoration: none;
  background: hsl(187 55% 28% / 0.12);
  color: var(--primary);
}
.tag-badge.is-active {
  background: hsl(187 55% 28% / 0.18);
  color: var(--primary);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Forum list */
.forum-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.forum-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.forum-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: hsl(187 55% 28% / 0.1);
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
@media (min-width: 640px) {
  .forum-icon { display: flex; }
}

.forum-main { flex: 1; min-width: 0; }

.forum-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.forum-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: inherit;
}

.forum-stats {
  display: none;
  gap: 1rem;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .forum-stats { display: flex; }
}

.flex-between {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

/* Values & CTA */
.values-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
}

.value-card h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.cta-band {
  background: var(--primary);
  color: var(--primary-foreground);
}
.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0;
  color: var(--primary-foreground);
}
.cta-lead {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: hsl(40 33% 97% / 0.85);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: hsl(40 45% 92% / 0.5);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-brand {
  font-family: var(--font-heading);
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--primary); }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}

.footer-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-disclaimer p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 64rem;
}

.footer-copy {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Forms */
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 36rem;
}

.stack-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.input {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
}
textarea.input.code {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
}

.checkbox-row {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.page-title {
  font-size: 2rem;
  margin: 0 0 1rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.flash-success {
  background: hsl(140 40% 92%);
  color: hsl(140 40% 20%);
}
.flash-error {
  background: hsl(0 60% 95%);
  color: hsl(0 60% 30%);
}

/* HOA assistant */
.hoa-ai-page {
  max-width: 50rem;
}

.hoa-ai-intro {
  max-width: 44rem;
  margin-bottom: 1.25rem;
}

.hoa-ai-form {
  max-width: 44rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: hsl(40 35% 98%);
}

.hoa-ai-form textarea.input {
  min-height: 8rem;
  resize: vertical;
}

.hoa-ai-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hoa-ai-actions .btn.is-busy {
  opacity: 0.9;
  cursor: progress;
}

.hoa-ai-answer {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: transparent;
}

.hoa-ai-answer .font-heading {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.hoa-ai-answer-text {
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.55;
}

.hoa-ai-citations {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.hoa-ai-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
}

.hoa-ai-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 2px solid hsl(187 25% 72%);
  border-top-color: var(--primary);
  animation: hoa-ai-spin 0.9s linear infinite;
}

@keyframes hoa-ai-spin {
  to { transform: rotate(360deg); }
}

/* Interior layout: main + sidebar (WordPress-style) */
.layout-with-sidebar {
  display: grid;
  gap: 2rem;
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .layout-with-sidebar {
    grid-template-columns: minmax(0, 1fr) 17.5rem;
    gap: 2.5rem;
  }
  .sidebar {
    position: sticky;
    top: 5.25rem;
  }
}

.layout-main {
  min-width: 0;
}

.layout-main--narrow {
  max-width: 28rem;
}

.sidebar {
  font-size: 0.9375rem;
}

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--foreground);
}

.sidebar-widget-foot {
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid hsl(40 25% 92%);
  line-height: 1.4;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.sidebar-list a.is-current {
  color: var(--primary);
  font-weight: 700;
}

.sidebar-list--compact li {
  padding: 0.25rem 0;
  border-bottom: none;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sidebar .btn-block {
  width: 100%;
  justify-content: center;
}

/* Article */
.article-page {
  padding: 2rem 0 4rem;
  max-width: 48rem;
}

.layout-with-sidebar > .layout-main > .article-page {
  padding-left: 0;
  padding-right: 0;
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0.5rem 0;
  line-height: 1.2;
}

.article-featured {
  margin: 0 0 2rem;
}
.article-featured img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.prose {
  font-size: 1.05rem;
  line-height: 1.7;
}
.prose img { max-width: 100%; height: auto; }
.prose iframe {
  width: 100%;
  max-width: 100%;
  min-height: 315px;
  border: 0;
}
.prose .media {
  margin: 1.25rem 0;
}

.post-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-comments-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-card {
  padding: 1rem 1.25rem;
  background: var(--secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.comment-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}

.comment-delete-form {
  margin-top: 0.75rem;
}

.comment-form {
  padding: 1.25rem;
  margin-top: 1rem;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-form .input {
  width: 100%;
  margin-bottom: 0.75rem;
}

/* Thread */
.thread {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thread-post {
  padding: 1.25rem;
}

.thread-meta {
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.thread-post-actions {
  margin-left: auto;
  display: inline-flex;
  gap: 0.25rem;
}

.topic-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.thread-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.pagination {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.pagination-info {
  min-width: 6rem;
  text-align: center;
}

/* Admin */
.admin-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.admin-card {
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: inherit;
}
.admin-card strong { font-size: 1.5rem; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0.5rem;
  text-align: left;
}
.admin-table code {
  font-size: 0.75rem;
  background: var(--secondary);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-seo-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  background: hsl(40 30% 99%);
}

.admin-seo-panel h2 {
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.slug-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.slug-row .flex-1 {
  flex: 1 1 12rem;
}

.slug-actions {
  padding-bottom: 0.15rem;
}

.char-count {
  font-weight: 600;
}

.text-warn {
  color: hsl(25 90% 40%);
}

textarea.wysiwyg-editor {
  min-height: 200px;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
}

.admin-thumb {
  max-width: 200px;
  max-height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-edit .stack-form {
  max-width: 52rem;
}

/* Static pages */
.static-page {
  max-width: 56rem;
  padding-bottom: 4rem;
}

/* About / Author page */
.about-page {
  padding-bottom: 4rem;
}

.about-hero {
  background: linear-gradient(180deg, hsl(187 28% 96%) 0%, var(--background) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 3.5rem;
}
@media (min-width: 768px) {
  .about-hero {
    padding: 4rem 0 4.5rem;
  }
}

.about-hero-inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.about-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  color: var(--foreground);
}

.about-hero-sub {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.about-hero-intro {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0;
  color: var(--foreground);
  text-align: left;
}

@media (min-width: 640px) {
  .about-hero-intro {
    text-align: center;
  }
}

.about-body {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2.5rem;
}

.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 1.5rem 2rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
  .about-card {
    padding: 2rem 2.25rem;
  }
}

.about-card-author {
  border-left: 4px solid hsl(187 45% 38%);
}

.about-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--foreground);
}

.about-card-prose p {
  margin: 0 0 1rem;
  line-height: 1.7;
  font-size: 1.02rem;
}

.about-card-prose p:last-child {
  margin-bottom: 0;
}

.about-section-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 2.5rem 0 1.25rem;
}

.about-values-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .about-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .about-values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-value-card {
  padding: 1.25rem 1.35rem;
  height: 100%;
  box-shadow: var(--shadow-soft);
}

.about-value-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--primary);
}

.about-cta-panel {
  text-align: center;
  padding: 2.25rem 1.5rem;
  margin-top: 1rem;
  background: hsl(40 40% 96%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-cta-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.about-cta-text {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  line-height: 1.65;
  color: var(--foreground);
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
}

/* Post author line (blog articles) */
.post-author-attribution {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: 42rem;
}

.post-author-attribution p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.post-author-attribution strong {
  color: var(--foreground);
  font-weight: 600;
}

.board-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .board-grid { grid-template-columns: repeat(3, 1fr); }
}

.board-card-body {
  padding: 1.25rem 1.5rem;
}

.board-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.board-role {
  margin: 0;
  font-weight: 600;
  color: var(--primary);
}

.board-term {
  margin: 0.25rem 0 0;
}

.mgmt-info-body {
  padding: 2rem;
}
.mgmt-info-body h2 {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}

.info-list {
  margin: 0;
  padding: 0;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child {
  border-bottom: none;
}

.info-row dt {
  font-weight: 600;
  min-width: 10rem;
  margin: 0;
}

.info-row dd {
  margin: 0;
  flex: 1;
}

/* Meeting dates table */
.meeting-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.meeting-table {
  width: 100%;
  border-collapse: collapse;
}
.meeting-table th,
.meeting-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.meeting-table th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--secondary);
}
.meeting-table tbody tr:hover {
  background: hsl(40 45% 96%);
}

/* Post polls */
.post-poll {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
}
.post-poll-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.post-poll-disclaimer {
  margin: 0 0 1rem;
}
.post-poll-form .post-poll-fieldset {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}
.poll-option-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}
.poll-option-label input {
  margin-top: 0.2rem;
}
.post-poll-results {
  list-style: none;
  margin: 1rem 0 0.5rem;
  padding: 0;
}
.poll-result-row {
  margin-bottom: 0.75rem;
}
.poll-result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.poll-result-label {
  font-weight: 500;
}
.poll-meter {
  height: 0.35rem;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.poll-meter-fill {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  min-width: 0;
  transition: width 0.25s ease;
}
