/* Fox River View HOA — modern river-themed design system
   -----------------------------------------------------
   Palette, typography, and components in one place. Edit CSS
   variables below to retheme the whole site. */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Brand colors — river, woodland, prairie */
  --river-deep:   #0f3e52;
  --river:        #2b6478;
  --river-mid:    #3e7d92;
  --river-light:  #e5eef2;
  --river-mist:   #f1f6f8;
  --woodland:     #3e6b4f;
  --woodland-dk:  #2c4e39;
  --prairie:      #c9a961;
  --prairie-dk:   #a88843;
  --birch:        #f7f2e7;
  --cream:        #fbf8f1;
  --paper:        #ffffff;

  /* Ink */
  --ink:          #0e2430;
  --ink-soft:     #2e4654;
  --muted:        #60707c;
  --hairline:     #e4dccb;
  --hairline-d:   #cfc6b3;

  /* Status */
  --success:      #3e6b4f;
  --danger:       #a8322b;
  --warn:         #b8791a;

  /* Radii & shadows */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 2px rgba(14, 36, 48, 0.06);
  --shadow-md:  0 6px 18px rgba(14, 36, 48, 0.08);
  --shadow-lg:  0 18px 40px rgba(14, 36, 48, 0.14);
  --shadow-xl:  0 28px 70px rgba(14, 36, 48, 0.22);

  /* Typography */
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Iowan Old Style", "Palatino Linotype", serif;

  --container: 1180px;
  --container-wide: 1320px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==== Typography ==== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 36;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-top: 1.6em; font-variation-settings: "opsz" 72; }
h3 { font-size: 1.25rem; margin-top: 1.4em; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--prairie-dk);
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.eyebrow-light { color: var(--prairie); }

a {
  color: var(--river);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s var(--ease);
}
a:hover { color: var(--river-deep); }

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

/* ==== Layout ==== */
.container      { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 1.25rem; }

main { padding: 0 0 5rem; }

section { padding: 3.5rem 0; }
section.tight { padding: 2rem 0; }

/* ==== Utility bar ==== */
.util-bar {
  background: var(--river-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
}
.util-bar .wrap {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.util-bar a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.util-bar a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.util-bar .util-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255,255,255,0.7);
}
.util-bar .util-note::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--prairie);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(201,169,97,0.25);
}
.util-bar .util-links { display: flex; gap: 0.25rem; }
@media (max-width: 640px) {
  .util-bar .util-note { display: none; }
}

/* ==== Header / Nav ==== */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: var(--container-wide);
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { line-height: 1.05; }
.brand-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-links a:hover { background: var(--river-light); color: var(--river-deep); }
.nav-links a.active { color: var(--river-deep); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.25rem;
  height: 2px;
  background: var(--prairie);
  border-radius: 2px;
}
.nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1rem !important;
  background: var(--river-deep);
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--river) !important; color: #fff !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline-d);
  color: var(--ink-soft);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0.6rem; border-radius: var(--radius-sm); }
  .nav-links a.active::after { display: none; }
  .nav-cta {
    margin: 0.5rem 0 0 !important;
    text-align: center;
    border-radius: var(--radius) !important;
  }
}

/* ==== Hero — home ==== */
.hero {
  position: relative;
  min-height: 620px;
  color: #eef6f9;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #0f3e52 0%, #0c3244 60%, #081f2b 100%);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(11,45,59,0.45) 0%, rgba(8,31,43,0.75) 100%),
    url("/img/fox-river-hero.jpg") center 55% / cover no-repeat;
}
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: -1;
  pointer-events: none;
  line-height: 0;
}
.hero-waves svg { display: block; width: 100%; height: auto; }
.hero .container-wide {
  position: relative;
  z-index: 1;
  padding-top: 5.5rem;
  padding-bottom: 8rem;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  color: #fff;
  max-width: 18ch;
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  margin-bottom: 0.35em;
}
.hero h1 em {
  font-style: italic;
  color: var(--prairie);
  font-weight: 500;
}
.hero p.lead {
  font-size: 1.18rem;
  max-width: 56ch;
  color: rgba(234, 244, 247, 0.92);
  margin-bottom: 0;
}
.hero-actions { margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-stats {
  margin-top: 3rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 680px;
}
.hero-stat { display: block; }
.hero-stat .n {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.85rem;
  color: #fff;
  line-height: 1;
  font-variation-settings: "opsz" 72;
}
.hero-stat .l {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 244, 247, 0.7);
}

/* ==== Page header (interior) ==== */
.page-header {
  position: relative;
  background: linear-gradient(180deg, var(--river-mist) 0%, var(--cream) 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 60px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0,30 C150,15 260,45 420,35 C580,25 700,50 880,38 C1040,28 1140,40 1200,35 L1200,60 L0,60 Z' fill='%23fbf8f1'/></svg>");
  background-size: cover;
  background-repeat: no-repeat;
}
.page-header h1 { margin-bottom: 0.25em; }
.page-header p { color: var(--muted); max-width: 64ch; margin: 0; font-size: 1.05rem; }
.page-header .container { position: relative; }

/* ==== Buttons ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--prairie);
  color: #2a1f0a;
  box-shadow: 0 6px 20px rgba(201,169,97,0.35);
}
.btn-primary:hover { background: var(--prairie-dk); color: #fff; box-shadow: 0 10px 24px rgba(168,136,67,0.4); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-solid {
  background: var(--river-deep);
  color: #fff;
}
.btn-solid:hover { background: var(--river); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--river-deep);
  border-color: var(--hairline-d);
}
.btn-outline:hover { background: var(--river-light); color: var(--river-deep); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.88rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.02rem; }

/* ==== Cards / Grids ==== */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-211 { grid-template-columns: 2fr 1fr; }
.grid-112 { grid-template-columns: 1fr 2fr; }
@media (max-width: 960px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-211, .grid-112 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--river-mid); }
.card h3 { margin-top: 0; color: var(--river-deep); }
.card .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }

/* Icon cards (home quick links) */
.feature-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: -2px -2px auto auto;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, rgba(201,169,97,0.18), transparent 70%);
  pointer-events: none;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--river-light);
  color: var(--river-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin: 0 0 0.35em; color: var(--ink); font-size: 1.18rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.feature-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--river-deep);
  letter-spacing: 0.02em;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-river    { background: var(--river-light); color: var(--river-deep); }
.badge-prairie  { background: rgba(201,169,97,0.18); color: var(--prairie-dk); }
.badge-woodland { background: rgba(62,107,79,0.12); color: var(--woodland-dk); }
.badge-warn     { background: rgba(184,121,26,0.14); color: var(--warn); }

/* Stat tile */
.stat-tile {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  text-align: center;
}
.stat-tile .n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--river-deep);
  line-height: 1;
  display: block;
  font-variation-settings: "opsz" 72;
}
.stat-tile .l {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==== Split / feature row ==== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}
.split .media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--river-light);
}
.split .media img, .split .media svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==== Section headings ==== */
.section-heading {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-heading h2 { margin-top: 0; }
.section-heading p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-heading.left { text-align: left; margin-left: 0; margin-right: 0; }

/* ==== Prose ==== */
.prose { max-width: 70ch; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote {
  border-left: 3px solid var(--prairie);
  padding: 0.5rem 1.2rem;
  margin: 1.5em 0;
  color: var(--ink-soft);
  font-style: italic;
  background: rgba(201, 169, 97, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose hr { border: none; border-top: 1px solid var(--hairline); margin: 2.2em 0; }

/* ==== Placeholder block ==== */
.placeholder {
  background: var(--river-light);
  border: 1px dashed var(--river);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--river-deep);
  font-size: 0.92rem;
  margin: 1rem 0;
}
.placeholder strong { color: var(--river-deep); }

/* ==== Tables ==== */
table.simple {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
}
table.simple th, table.simple td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
}
table.simple th {
  background: var(--river-mist);
  color: var(--river-deep);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  text-transform: uppercase;
}
table.simple tr:last-child td { border-bottom: none; }
table.simple tr:hover td { background: rgba(43,100,120,0.03); }

/* ==== Forms ==== */
form.stacked { display: grid; gap: 1rem; max-width: 520px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--hairline-d);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--river);
  box-shadow: 0 0 0 4px rgba(43,100,120,0.12);
}
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }
.field .hint.ok    { color: var(--woodland-dk, #3e6b4f); }
.field .hint.error { color: var(--danger, #b00020); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 4.2rem; }
.password-toggle {
  position: absolute; top: 50%; right: 0.5rem; transform: translateY(-50%);
  background: transparent; border: 1px solid var(--hairline);
  color: var(--river-deep, #0f3e52);
  font-size: 0.78rem; font-weight: 600;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  cursor: pointer; line-height: 1;
}
.password-toggle:hover  { background: var(--river-light, rgba(43,100,120,0.08)); }
.password-toggle:focus  { outline: 2px solid var(--prairie, #c9a961); outline-offset: 2px; }
.password-toggle[aria-pressed="true"] {
  background: var(--river-deep, #0f3e52); color: #fff; border-color: var(--river-deep, #0f3e52);
}
.form-status { padding: 0.85rem 1.1rem; border-radius: var(--radius); font-size: 0.95rem; }
.form-status.success {
  background: rgba(62, 107, 79, 0.1);
  color: var(--woodland-dk);
  border: 1px solid rgba(62, 107, 79, 0.3);
}
.form-status.error {
  background: rgba(168, 50, 43, 0.08);
  color: var(--danger);
  border: 1px solid rgba(168, 50, 43, 0.3);
}

/* ==== Calendar (month view) ==== */
.calendar {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: var(--river-mist);
  border-bottom: 1px solid var(--hairline);
}
.cal-head h3 { margin: 0; color: var(--river-deep); font-size: 1.2rem; }
.cal-dowrow, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-dowrow {
  background: var(--river-mist);
  border-bottom: 1px solid var(--hairline);
}
.cal-dowrow span {
  padding: 0.5rem 0.3rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.cal-grid .day {
  min-height: 88px;
  padding: 0.5rem 0.6rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: 0.88rem;
  position: relative;
}
.cal-grid .day:nth-child(7n) { border-right: none; }
.cal-grid .day.muted { background: #fafaf5; color: var(--muted); }
.cal-grid .day.today { background: rgba(201,169,97,0.12); }
.cal-grid .day .num { font-weight: 600; color: var(--ink-soft); }
.cal-grid .day.today .num { color: var(--prairie-dk); }
.cal-grid .evt {
  display: block;
  margin-top: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 4px;
  background: var(--river-light);
  color: var(--river-deep);
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-grid .evt.board    { background: rgba(62,107,79,0.14); color: var(--woodland-dk); }
.cal-grid .evt.social   { background: rgba(201,169,97,0.2); color: var(--prairie-dk); }
.cal-grid .evt.deadline { background: rgba(168,50,43,0.1); color: var(--danger); }
/* Source-keyed event chips for the auto-imported feed */
.cal-grid .evt.evt-ch   { background: rgba(201,169,97,0.18); color: var(--prairie-dk); }
.cal-grid .evt.evt-fp   { background: rgba(62,107,79,0.16); color: var(--woodland-dk); }
.cal-grid .evt.evt-frv  { background: rgba(43,100,120,0.16); color: var(--river-deep); }
.cal-grid .evt.evt-more { background: rgba(43,100,120,0.06); color: var(--river-deep); font-weight: 600; text-align: center; }
/* Chips are real <button>s — strip default browser styling so they look like the previous spans, then add hover/focus affordances. */
.cal-grid .evt-chip {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}
.cal-grid .evt-chip:hover  { filter: brightness(0.95); text-decoration: underline; }
.cal-grid .evt-chip:focus  { outline: 2px solid var(--river-deep); outline-offset: 1px; }
.cal-grid .evt-chip.evt-more:hover { text-decoration: none; }
.cal-grid .day.has-events { cursor: pointer; }
.cal-grid .day.has-events:hover { background: rgba(43,100,120,0.05); }
.cal-grid .day.is-selected { box-shadow: inset 0 0 0 2px var(--river-deep); background: rgba(43,100,120,0.08); }
.cal-month-select {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.9rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.cal-month-select:focus { outline: 2px solid var(--prairie); outline-offset: 2px; }
@media (max-width: 640px) {
  .cal-grid .day { min-height: 64px; padding: 0.35rem 0.4rem; font-size: 0.78rem; }
  .cal-grid .evt { font-size: 0.68rem; padding: 1px 4px; }
}

/* ==== Timeline (meeting / voting) ==== */
.timeline { border-left: 2px solid var(--hairline); padding-left: 1.25rem; margin-left: 0.5rem; }
.timeline .t-item { position: relative; padding: 0.25rem 0 1.4rem; }
.timeline .t-item::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 0.55rem;
  width: 12px; height: 12px;
  background: var(--prairie);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--prairie);
}
.timeline .t-item .when {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ==== Voting / motions ==== */
.motion {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 720px) { .motion { grid-template-columns: 1fr; } }
.motion h3 { margin: 0 0 0.35em; color: var(--ink); }
.motion .desc { color: var(--ink-soft); margin: 0 0 0.75rem; }
.motion .vote-stack { display: grid; gap: 0.4rem; min-width: 180px; }
.motion .vote-stack .vote-btn {
  border: 1px solid var(--hairline-d);
  background: var(--paper);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: all 0.15s var(--ease);
}
.motion .vote-btn.yes:hover { background: rgba(62,107,79,0.1); color: var(--woodland-dk); border-color: var(--woodland); }
.motion .vote-btn.no:hover  { background: rgba(168,50,43,0.08); color: var(--danger); border-color: var(--danger); }
.motion .vote-btn.abs:hover { background: var(--river-light); color: var(--river-deep); border-color: var(--river); }

/* Highlight the homeowner's own vote when they've already cast */
.motion .vote-btn.is-mine.yes { background: rgba(62,107,79,0.15); color: var(--woodland-dk); border-color: var(--woodland); }
.motion .vote-btn.is-mine.no  { background: rgba(168,50,43,0.12); color: var(--danger); border-color: var(--danger); }
.motion .vote-btn.is-mine.abs { background: var(--river-light); color: var(--river-deep); border-color: var(--river); }
.motion .vote-btn.is-mine { font-weight: 700; opacity: 1 !important; }
.motion .vote-btn:disabled:not(.is-mine) { opacity: 0.55; cursor: not-allowed; }
.motion .vote-btn.is-loading { opacity: 0.6; cursor: progress; }

.motion .motion-summary {
  background: var(--river-light);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.6rem 0.95rem;
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}
.motion .motion-summary > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--river-deep);
  list-style: none;
}
.motion .motion-summary > summary::-webkit-details-marker { display: none; }
.motion .motion-summary > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.4em;
  transition: transform 0.15s var(--ease);
}
.motion .motion-summary[open] > summary::before { transform: rotate(90deg); }
.motion .motion-summary ul.bare {
  list-style: none;
  padding: 0;
  margin: 0.65rem 0 0.25rem;
  display: grid;
  gap: 0.3rem;
}
.motion .motion-summary ul.bare li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 1.05rem;
  position: relative;
}
.motion .motion-summary ul.bare li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--river);
}
.motion .motion-comment textarea {
  min-height: 0;
  resize: vertical;
  font-size: 0.9rem;
}
.motion .motion-comment textarea:disabled {
  background: var(--river-light);
  opacity: 0.7;
  cursor: not-allowed;
}

.progress-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--hairline);
  overflow: hidden;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--river), var(--river-mid));
  border-radius: 999px;
}

/* ==== Dashboard (pay/account) ==== */
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.dash-card h3 { margin-top: 0; color: var(--river-deep); }
.dash-bill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
}
.dash-bill:last-child { border-bottom: none; }
.dash-bill .icon {
  width: 40px; height: 40px;
  background: var(--river-light);
  border-radius: 10px;
  color: var(--river-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.dash-bill .desc { margin: 0; font-weight: 500; }
.dash-bill .desc small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; font-size: 0.82rem; }

/* ==== News / events list ==== */
.article-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--river-light);
  position: relative;
  overflow: hidden;
}
.article-card .thumb svg, .article-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.article-card .body { padding: 1.2rem 1.3rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-card .when {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.article-card h3 { margin: 0 0 0.4em; color: var(--ink); }
.article-card p { color: var(--muted); margin: 0 0 0.75rem; font-size: 0.95rem; }
.article-card .read {
  margin-top: auto;
  font-weight: 600;
  color: var(--river-deep);
  font-size: 0.9rem;
}

/* ==== Wave divider between sections ==== */
.wave-div {
  display: block;
  width: 100%;
  height: 70px;
  line-height: 0;
}

/* ==== CTA strip ==== */
.cta-strip {
  background: linear-gradient(120deg, var(--river-deep) 0%, var(--river) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300' preserveAspectRatio='none'><path d='M0,180 C120,150 220,210 360,185 C500,160 620,215 760,195 C800,188 800,300 800,300 L0,300 Z' fill='%23ffffff' opacity='0.06'/><path d='M0,220 C140,195 260,245 420,225 C580,205 700,255 800,240 L800,300 L0,300 Z' fill='%23c9a961' opacity='0.15'/></svg>");
  background-size: cover;
  background-repeat: no-repeat;
}
.cta-strip h2 { color: #fff; margin-top: 0; }
.cta-strip p { color: rgba(255,255,255,0.88); max-width: 52ch; margin-bottom: 1.75rem; }
.cta-strip .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-strip { padding: 2rem 1.5rem; } }

/* ==== Footer ==== */
.site-footer {
  background: #06202c;
  color: #b8c6cd;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  font-size: 0.92rem;
  position: relative;
}
.site-footer::before {
  content: "";
  display: block;
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 60px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0,30 C150,10 280,48 440,34 C600,22 720,50 880,36 C1040,24 1140,38 1200,32 L1200,0 L0,0 Z' fill='%23fbf8f1'/></svg>");
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}
.site-footer a { color: #dfe8ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.footer-grid h4 {
  color: #fff;
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.footer-brand .mark {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-meta {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  color: #6e808a;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==== Utility ==== */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1.25rem; }
.mb-3 { margin-bottom: 2rem; }
.flex { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.simple-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.simple-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--hairline); }
.simple-list li:last-child { border-bottom: none; }
.simple-list a { font-weight: 500; }
.pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--river-light);
  color: var(--river-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.divider { height: 1px; background: var(--hairline); margin: 2rem 0; border: 0; }

/* ==== Print ==== */
@media print {
  .site-header, .site-footer, .util-bar, .hero-actions, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
