/* =====================================================================
   Holly Oaks HOA — Stylesheet
   A clean, minimal, mobile-first layout.
   1. Tokens & reset    3. Header & nav    5. Sections
   2. Base & buttons    4. Hero            6. Footer & responsive
   ===================================================================== */

/* ============ 1. TOKENS ============ */
:root {
  --green-900: #11241a;
  --green-800: #1d3a2a;
  --green-700: #25503a;
  --green-600: #2f5b41;

  --gold-600: #a9863f;
  --gold-500: #c2a05a;

  --paper:  #ffffff;
  --cream:  #f6f3ea;
  --ink:    #1f2421;
  --body:   #4b554e;
  --muted:  #717a73;
  --line:   #e6e1d2;

  --radius: 12px;
  --container: 1100px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--green-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-600); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
::selection { background: var(--gold-500); color: #fff; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--green-800); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

/* ============ 2. BASE TYPE & BUTTONS ============ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-600);
  margin-bottom: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 0.5rem + 2.2vw, 2.2rem);
}

.section { padding-block: clamp(3.2rem, 2rem + 5vw, 5.5rem); }
.section--tint { background: var(--cream); }
.section__head { max-width: 680px; margin-bottom: 2.4rem; }
.section__title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
.section__intro { margin-top: 0.7rem; color: var(--muted); }

/* Buttons — solid fills, no gradients */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.72rem 1.5rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.btn--lg { padding: 0.9rem 1.8rem; }

.btn--green { background: var(--green-700); color: #fff; }
.btn--green:hover { background: var(--green-800); color: #fff; }

.btn--gold { background: var(--gold-500); color: var(--green-900); }
.btn--gold:hover { background: var(--gold-600); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--green-700); color: var(--green-800); }

/* ============ 3. HEADER / NAV ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease);
}
.header.scrolled { box-shadow: 0 2px 12px rgba(17, 36, 26, 0.07); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand__mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__ring { fill: var(--green-800); }
.brand__leaf { fill: var(--gold-500); }
.brand__vein { stroke: var(--green-800); stroke-width: 2.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }

.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-family: var(--font-display); font-size: 1.28rem;
  font-weight: 600; color: var(--green-800); }
.brand__sub { font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Nav */
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__list { display: flex; gap: 0.2rem; }
.nav__list a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
}
.nav__list a:hover { color: var(--green-700); }
.nav__list a.is-active { color: var(--green-700); }
.nav__cta { padding: 0.58rem 1.2rem; font-size: 0.9rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
}
.nav-toggle__bar {
  width: 22px; height: 2px;
  background: var(--green-800);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(17, 36, 26, 0.45);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.nav-scrim.show { opacity: 1; }

/* ============ 4. HERO ============ */
.hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  padding-block: clamp(3rem, 2rem + 6vw, 6rem);
  max-width: 720px;
}
.hero__title {
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.7rem);
  color: var(--green-900);
  margin-bottom: 1rem;
}
.hero__title em { font-style: italic; color: var(--green-600); }
.hero__lede {
  font-size: clamp(1.03rem, 1rem + 0.4vw, 1.2rem);
  color: var(--green-800);
  margin-bottom: 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ============ 5. SECTIONS ============ */

/* Services (About) */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.section--tint .service { background: var(--paper); }
.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--cream);
  margin-bottom: 0.9rem;
}
.service__icon svg { width: 24px; height: 24px;
  stroke: var(--green-600); stroke-width: 1.7; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.service p { font-size: 0.92rem; }

/* Note (landscaping) */
.note {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
}
.note__text h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.note__text p { font-size: 0.95rem; max-width: 60ch; }
.note .btn { flex-shrink: 0; }

/* Team */
.team__label, .block__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gold-600);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 1rem;
}
.team__label:nth-of-type(2) { margin-top: 2.2rem; }
.block__label { margin-top: 2.4rem; }
.block__label:first-of-type { margin-top: 0; }

.team__board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.person {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.person__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.person h4 { font-size: 1.12rem; }
.person__role { font-size: 0.88rem; color: var(--muted); }

.manager {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
}
.manager__intro h4 { font-size: 1.35rem; }
.manager__intro .person__role { margin-bottom: 0.7rem; }
.manager__intro p { font-size: 0.95rem; }
.manager__contacts { display: grid; gap: 0.7rem; align-content: center; }
.manager__contacts li { display: flex; flex-direction: column; }
.manager__contacts span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.manager__contacts a { font-weight: 500; }

/* Documents */
.docs {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.docs a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.3rem 1rem;
  padding: 1.05rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.docs a:hover { border-color: var(--gold-500); }
.docs strong { color: var(--ink); font-size: 1.02rem; }
.docs span { font-size: 0.88rem; color: var(--muted); grid-column: 1; }
.docs em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green-700);
  border: 1.5px solid var(--line);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}

/* Resident services cards */
.rcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.rcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.rcard h4 { font-size: 1.18rem; margin-bottom: 0.45rem; }
.rcard p { font-size: 0.93rem; margin-bottom: 1rem; }
.rcard a { margin-top: auto; font-weight: 600; font-size: 0.93rem; }

/* FAQ */
.faq { max-width: 800px; display: grid; gap: 0.6rem; }
.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--gold-500); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__plus::before, .faq__plus::after {
  content: "";
  position: absolute;
  background: var(--gold-600);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.faq__plus::before { left: 0; top: 7px; width: 16px; height: 2.2px; }
.faq__plus::after { left: 7px; top: 0; width: 2.2px; height: 16px; }
.faq__item[open] .faq__plus::after { transform: rotate(90deg); opacity: 0; }
.faq__answer { padding: 0 1.3rem 1.2rem; }
.faq__answer p { color: var(--muted); }

/* Contact */
.contact-info-wrap {
  max-width: 640px;
  margin-inline: auto;
}
.contact-cta {
  margin-top: 1.6rem;
  text-align: center;
}
.contact__list { display: grid; gap: 0.2rem; }
.contact__list div { padding: 1rem 0; }
.contact__list div + div { border-top: 1px solid var(--line); }
.contact__list dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 0.3rem;
}
.contact__list dd { color: var(--body); }
.contact__map {
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact__map iframe { width: 100%; height: 220px; border: 0; }

/* Field — used by the members-area login & inline editor */
.field { display: flex; flex-direction: column; margin-bottom: 0.9rem; }
.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-600);
}
.field input.invalid, .field textarea.invalid { border-color: #c0492f; }

/* ============ 6. FOOTER ============ */
.footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.93rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.3fr;
  gap: 2.2rem;
  padding-block: clamp(2.6rem, 2rem + 2vw, 3.6rem);
}
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__sub { color: var(--gold-500); }
.brand--footer .brand__ring { fill: var(--green-700); }
.footer__brand p { margin-top: 0.9rem; max-width: 40ch; }

.footer__nav h4, .footer__contact h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer__nav ul { display: grid; gap: 0.5rem; }
.footer__nav a, .footer__contact a { color: rgba(255, 255, 255, 0.66); }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold-500); }
.footer__contact address { font-style: normal; line-height: 1.9; }

.footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer__bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-block: 1.2rem;
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Back to top */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 80;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
              background-color 0.2s var(--ease);
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--gold-600); }
.to-top svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.4;
  fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  :root { --header-h: 66px; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 320px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--paper);
    padding: calc(var(--header-h) + 1.2rem) 1.4rem 2rem;
    box-shadow: -16px 0 40px -18px rgba(17, 36, 26, 0.4);
    transform: translateX(105%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    padding: 0.85rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav__cta { margin-top: 1.2rem; }
  .nav-toggle { display: flex; }
}

@media (max-width: 680px) {
  .team__board { grid-template-columns: 1fr; }
  .manager { grid-template-columns: 1fr; gap: 1.4rem; }
  .rcards { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bar-inner { flex-direction: column; gap: 0.25rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .note { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media print {
  .header, .nav-toggle, .to-top, .nav-scrim { display: none !important; }
  body { color: #000; }
  .footer { background: #fff; color: #000; }
  .footer a, .footer h4, .brand--footer .brand__name { color: #000; }
}

/* =====================================================================
   MEMBERS AREA — login + private content layout
   ===================================================================== */

/* Small button variant */
.btn--sm { padding: 0.45rem 0.95rem; font-size: 0.85rem; }

/* "Members Area" nav item gets a subtle lock-indicating accent */
.nav__members {
  position: relative;
}
.nav__members::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.45rem;
  background: var(--gold-500);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='5' y='11' width='14' height='10' rx='2' fill='black'/><path d='M8 11V7a4 4 0 0 1 8 0v4' stroke='black' stroke-width='2' fill='none'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='5' y='11' width='14' height='10' rx='2' fill='black'/><path d='M8 11V7a4 4 0 0 1 8 0v4' stroke='black' stroke-width='2' fill='none'/></svg>") center / contain no-repeat;
  vertical-align: -1px;
}

/* Simplified nav used on the members page */
.nav--members {
  gap: 1rem;
}
.nav__back {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.5rem 0.6rem;
}
.nav__back:hover { color: var(--green-700); }

/* ---- LOGIN SCREEN ---- */
.login {
  min-height: calc(100vh - var(--header-h) - 80px);
  background: var(--cream);
  display: flex;
  align-items: center;
  padding-block: clamp(2rem, 1.5rem + 3vw, 4rem);
}
.login__card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  text-align: center;
  box-shadow: 0 24px 48px -28px rgba(17, 36, 26, 0.25);
}
.login__mark {
  display: inline-flex;
  width: 64px;
  height: 64px;
  margin-bottom: 1.2rem;
}
.login__mark svg { width: 100%; height: 100%; }
.login__card .eyebrow { margin-bottom: 0.6rem; }
.login__card h1 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.85rem);
  color: var(--green-900);
  margin-bottom: 0.7rem;
}
.login__lede {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}
.login__card form { text-align: left; }
.login__card .field { margin-bottom: 0.9rem; }
.login__submit { width: 100%; }
.login__submit:disabled { opacity: 0.6; cursor: progress; }
.login__error {
  margin-top: 0.85rem;
  min-height: 1.1rem;
  font-size: 0.88rem;
  color: #c0492f;
  font-weight: 600;
  text-align: center;
}
.login__help {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- MEMBERS CONTENT ---- */
.members { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); }

.members__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.members__head h1 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem);
  color: var(--green-900);
}
.members__updated {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.members__toc {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.7rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 2.2rem;
}
.members__toc a {
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green-800);
  border-radius: 6px;
}
.members__toc a:hover { background: var(--paper); color: var(--green-700); }

.m-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  margin-bottom: 1.4rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.m-section h2 {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.65rem);
  color: var(--green-900);
  margin-bottom: 0.4rem;
}
.m-section__intro {
  color: var(--muted);
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
}
.m-section__note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

/* Meeting table */
.m-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.m-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.m-table th,
.m-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.m-table thead th {
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--gold-600);
}
.m-table tbody tr:last-child td { border-bottom: 0; }
.m-table tbody tr:hover { background: var(--cream); }

/* Document list (minutes, financials, etc.) */
.m-doc-list { display: grid; gap: 0.5rem; }
.m-doc-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.2rem 1rem;
  padding: 0.95rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease);
}
.m-doc-list a:hover { border-color: var(--gold-500); }
.m-doc-list strong { color: var(--ink); font-size: 0.98rem; }
.m-doc-list span {
  font-size: 0.85rem;
  color: var(--muted);
  grid-column: 1;
}
.m-doc-list em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green-700);
  border: 1.5px solid var(--line);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

/* Announcements */
.m-announcement {
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--gold-500);
  background: var(--cream);
  border-radius: 0 10px 10px 0;
  margin-bottom: 0.7rem;
}
.m-announcement:last-child { margin-bottom: 0; }
.m-announcement time {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.3rem;
}
.m-announcement h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.m-announcement p { font-size: 0.94rem; }

/* Board contacts */
.m-contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.m-contact {
  padding: 1.1rem 1.2rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.m-contact h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.m-contact__role {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.m-contact__note { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 720px) {
  .members__head { align-items: flex-start; }
  .m-contacts { grid-template-columns: 1fr; }
}

/* Header role badge */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-800);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.role-badge[data-role="editor"] {
  color: var(--green-900);
  background: rgba(194, 160, 90, 0.18);
  border-color: var(--gold-500);
}

/* Members head actions */
.members__head-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Read-only empty state */
.m-empty {
  padding: 1rem 1.2rem;
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-style: italic;
}

/* =====================================================================
   EDITOR VIEW — form-based content editor for the board
   ===================================================================== */
.editor { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); }

.editor__head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.8rem;
}
.editor__head h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem);
  color: var(--green-900);
}
.editor__lede {
  margin-top: 0.4rem;
  max-width: 60ch;
  font-size: 0.95rem;
  color: var(--muted);
}
.editor__lede code {
  background: var(--cream);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}
.editor__head-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Change-passwords advanced panel */
.editor__advanced {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 1.6rem;
  overflow: hidden;
}
.editor__advanced summary {
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  color: var(--green-800);
  cursor: pointer;
  list-style: none;
}
.editor__advanced summary::-webkit-details-marker { display: none; }
.editor__advanced summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  font-weight: 700;
  color: var(--gold-600);
}
.editor__advanced[open] summary::before { content: "−"; }
.editor__pw {
  padding: 0 1.2rem 1.2rem;
}
.editor__pw-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.editor__pw-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.6rem;
}
@media (max-width: 640px) { .editor__pw-row { grid-template-columns: 1fr; } }

/* Editor sections */
.editor__sections { display: grid; gap: 1.2rem; }
.editor__section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.2rem, 1rem + 1vw, 1.7rem);
}
.editor__section-head h2 {
  font-size: 1.2rem;
  color: var(--green-900);
  margin-bottom: 0.2rem;
}
.editor__section-head p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.editor__rows { display: grid; gap: 0.8rem; margin-bottom: 0.7rem; }

/* Single editable row */
.editor__row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.editor__row-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.6rem 0.7rem;
  flex: 1;
}
.editor__field { display: flex; flex-direction: column; gap: 0.25rem; }
.editor__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.editor__field input,
.editor__field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font-size: 0.93rem;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.editor__field textarea { resize: vertical; min-height: 80px; }
.editor__field input:focus,
.editor__field textarea:focus {
  outline: none;
  border-color: var(--green-600);
}
.editor__input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.editor__input-wrap:focus-within { border-color: var(--green-600); }
.editor__input-wrap input {
  border: 0 !important;
  border-radius: 0 !important;
  flex: 1;
}
.editor__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.65rem;
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--cream);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

/* 12-column helpers */
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }
@media (max-width: 680px) {
  .col-3, .col-4, .col-5, .col-6, .col-8 { grid-column: span 12; }
}

/* File-upload field (inline PDF picker on minutes/financials/documents rows) */
.editor__file {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.editor__file-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.7rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 7px;
  min-height: 42px;
}
.editor__file-name {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor__file-name em { color: var(--muted); font-style: italic; }

/* Row action buttons */
.editor__row-actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-shrink: 0;
}
.editor__icon {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-800);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.editor__icon:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.editor__icon--danger:hover { background: #c0492f; border-color: #c0492f; }

.editor__add {
  margin-top: 0.4rem;
}

/* Editor footer */
.editor__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.editor__footer-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.editor__status {
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.2rem;
}
.editor__status.ok  { color: var(--green-600); }
.editor__status.err { color: #c0492f; }

@media (max-width: 720px) {
  .editor__row { flex-direction: column; align-items: stretch; }
  .editor__row-actions { flex-direction: row; justify-content: flex-end; }
}

/* =====================================================================
   SAVED OVERLAY — confirmation after Save
   ===================================================================== */
.saved-overlay {
  position: fixed; inset: 0;
  background: rgba(17, 36, 26, 0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 24px;
  animation: saved-fade 0.2s var(--ease);
}
.saved-card {
  background: var(--paper);
  border-radius: 14px;
  padding: 1.8rem 2rem;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 32px 64px -28px rgba(0, 0, 0, 0.4);
  max-height: 90vh;
  overflow-y: auto;
}
.saved-card h3 {
  font-size: 1.5rem;
  color: var(--green-900);
  margin-bottom: 0.5rem;
}
.saved-card p { font-size: 0.95rem; margin-bottom: 0.7rem; }
.saved-card code {
  background: var(--cream);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}
.saved-steps {
  list-style: decimal;
  padding-left: 1.2rem;
  margin: 0.4rem 0 1rem;
  font-size: 0.93rem;
}
.saved-steps li { margin-bottom: 0.5rem; }
.saved-help {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.7rem 0.9rem;
  background: var(--cream);
  border-radius: 8px;
  margin-bottom: 1.2rem;
}
.saved-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@keyframes saved-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
