/* ==========================================================================
   Lakeridge HOA — styles
   Built for a 55+ community: large type, strong contrast (WCAG AA/AAA),
   big tap targets (48–64px), clear focus rings, no auto-moving content.
   ========================================================================== */

:root {
  --bg: #f9f7f0;
  --surface: #ffffff;
  --sand: #f1ecdf;
  --sand-2: #e6dcc6;
  --ink: #14232b;
  --ink-2: #33434b;
  --muted: #4f5e65;
  --line: #ddd4c3;
  --line-strong: #857862; /* 3:1+ on white, sand and tint: form borders must stand out (WCAG 1.4.11) */

  --brand: #2c5e3f;
  --brand-dark: #214a31;
  --brand-deep: #142e1e;
  --brand-tint: #e4efe6;
  --brand-tint-2: #cde2d2;
  --accent: #9c5b12;
  --accent-tint: #f8ead6;
  --gold: #e9b949;
  --gold-soft: #f5dea0;
  --palm: #24603a;
  --palm-tint: #e1efe3;
  --red: #9b1c1c;
  --red-tint: #fbe7e7;

  --focus-ring: 0 0 0 3px #fff, 0 0 0 6px var(--brand-dark), 0 0 0 9px rgba(233, 185, 73, .9);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 35, 43, .06), 0 2px 8px rgba(20, 35, 43, .06);
  --shadow: 0 2px 4px rgba(20, 35, 43, .05), 0 12px 32px rgba(20, 35, 43, .12);
  --shadow-lg: 0 4px 8px rgba(20, 35, 43, .06), 0 24px 60px rgba(20, 35, 43, .18);

  /* Atkinson Hyperlegible: designed by the Braille Institute for low-vision readers */
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --container: 1260px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 88px;
}

/* ---------- Accessibility preferences (set from the top bar) ---------- */
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--sticky-h, 90px) + 1.5rem); scroll-padding-bottom: 6.5rem; }
html.text-lg { font-size: 112.5%; }
html.text-xl { font-size: 125%; }

/* Spanish preview: hide the page for a moment while text is swapped in */
html.i18n-pending body { visibility: hidden; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1875rem;   /* 19px */
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 3px; }
strong { font-weight: 700; }
::selection { background: var(--gold-soft); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 3px solid transparent; outline-offset: 2px; box-shadow: var(--focus-ring); border-radius: 6px; }
main:focus { box-shadow: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
/* Long words (email addresses, web links) wrap instead of pushing the page sideways,
   and layout columns may shrink below their content's width (small phones, WCAG 1.4.10) */
body { overflow-wrap: break-word; }
.hero-grid > *, .two-col > *, .board-layout > *, .doc-layout > *, .contact-layout > *, .help-grid > *,
.footer-grid > *, .teaser > *, .resident-grid > *, .login-wrap > *, .req-controls > * { min-width: 0; }
.stack { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--ink); font-weight: 700; padding: .9rem 1.25rem; border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }
.icon-lg { width: 1.75rem; height: 1.75rem; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 56px; padding: .75rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1.125rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 64px; padding: .9rem 1.9rem; font-size: 1.2rem; }
.btn-sm { min-height: 48px; padding: .55rem 1.15rem; font-size: 1.05rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--brand-dark); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-gold { background: var(--gold); color: var(--brand-deep); }
.btn-gold:hover { background: #f0c763; color: var(--brand-deep); }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: 1.1rem; min-height: 48px; }
.link-arrow .icon { transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Top accessibility bar ---------- */
.utility-bar { background: var(--brand-deep); color: #eef5f6; font-size: 1rem; }
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; flex-wrap: wrap; }
.utility-bar a { color: #fff; font-weight: 700; }
.utility-bar .u-call { display: inline-flex; align-items: center; gap: .5rem; }
.a11y-tools { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin-left: auto; }
.a11y-group { display: flex; align-items: center; gap: .4rem; }
.a11y-label { font-weight: 700; margin-right: .25rem; }
.a11y-btn {
  min-width: 44px; min-height: 44px; padding: 0 .7rem;
  border-radius: var(--radius-sm); border: 2px solid rgba(255,255,255,.45);
  background: transparent; color: #fff; font: 700 1rem/1 var(--font-body); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
}
.a11y-btn:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.a11y-btn[aria-pressed="true"] { background: #fff; color: var(--brand-deep); border-color: #fff; }
.a11y-btn .s1 { font-size: 1rem; } .a11y-btn .s2 { font-size: 1.2rem; } .a11y-btn .s3 { font-size: 1.4rem; }
.lang-btn { padding: 0 .9rem; }
@media (max-width: 640px) {
  .utility-bar .u-call { display: none; }
  .utility-bar .container { padding-block: .35rem; }
  .a11y-tools { width: 100%; justify-content: space-between; margin: 0; gap: .5rem; flex-wrap: nowrap; }
  .a11y-group { gap: .3rem; }
  .a11y-btn { min-width: 42px; padding: 0 .55rem; }
  .lang-btn { padding: 0 .75rem; }
}

/* Spanish preview notice */
.lang-notice { background: #fff6e3; border-bottom: 1px solid var(--gold-soft); color: #4d3500; font-size: 1.05rem; }
.lang-notice .container { display: flex; gap: .6rem; align-items: center; padding-block: .6rem; }
.lang-notice .icon { color: var(--accent); }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(8px); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 52px; height: 52px; flex: none; }
.brand-name { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.75rem; line-height: 1; letter-spacing: -.01em; }
.brand-tag { display: block; font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; }
.main-nav a {
  display: flex; align-items: center; min-height: 52px; padding: .4rem 1rem;
  border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; position: relative;
}
.main-nav a:hover { background: var(--sand); color: var(--brand-dark); }
.main-nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-tint); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 6px; height: 3px; border-radius: 3px; background: var(--brand); }
.header-signin { white-space: nowrap; }
.menu-toggle { display: none; }
.mobile-only { display: none; }

.main-nav a, .brand-tag, .header-signin { white-space: nowrap; }
@media (max-width: 1340px) {
  .main-nav a { padding: .4rem .75rem; }
  .main-nav a[aria-current="page"]::after { left: .75rem; right: .75rem; }
  .header-inner { gap: 1rem; }
}
/* Collapsed ("Menu" button) navigation. site.js adds .nav-collapsed to <html>
   whenever the full menu doesn't fit, which depends on screen width AND the
   chosen text size, so it can't be a fixed pixel breakpoint. */
.nav-collapsed { --header-h: 76px; }
.nav-collapsed .menu-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: .5rem 1.1rem;
  border-radius: 999px; border: 2px solid var(--brand); background: var(--surface); color: var(--brand-dark);
  font: 700 1.1rem/1 var(--font-body); cursor: pointer;
}
.nav-collapsed .menu-toggle[aria-expanded="true"] { background: var(--brand); color: #fff; }
.nav-collapsed .header-signin { display: none; }
.nav-collapsed .main-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.nav-collapsed .main-nav.open { display: block; }
.nav-collapsed .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; max-width: var(--container); margin: 0 auto; }
.nav-collapsed .main-nav li { border-bottom: 1px solid var(--line); }
.nav-collapsed .main-nav a { min-height: 60px; font-size: 1.25rem; padding: .5rem .75rem; justify-content: space-between; }
.nav-collapsed .main-nav a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; }
.nav-collapsed .main-nav li.mobile-only { display: block; border-bottom: 0; padding-top: 1rem; }
.nav-collapsed .main-nav .btn { width: 100%; min-height: 60px; justify-content: center; border-radius: 999px; }
.nav-collapsed .main-nav a.btn-primary, .nav-collapsed .main-nav a.btn-primary:hover { color: #fff; background: var(--brand); }
.nav-collapsed .main-nav .btn-secondary, .nav-collapsed .main-nav .btn-secondary:hover { color: var(--brand-dark); background: var(--surface); }
body.menu-open .chat-launcher { display: none; }

/* Phones: one simple bar (logo + Menu). The dark top bar is gone; text size, contrast and
   language sit at the bottom of the menu (site.js moves them there). The open menu fills the
   screen under the header and scrolls on its own, so nothing else can sit on top of it. */
@media (max-width: 759.98px) {
  .utility-bar { display: none; }
  /* A blurred header would trap the full-screen menu inside it, so phones get a plain one */
  .site-header { backdrop-filter: none; background: var(--surface); }
  .nav-collapsed .main-nav {
    position: fixed; top: var(--menu-top, var(--header-h)); bottom: 0; left: 0; right: 0;
    max-height: none; overscroll-behavior: contain; box-shadow: none;
  }
  body.menu-open { overflow: hidden; }
  .nav-collapsed .main-nav .menu-prefs { display: block; margin: 0 var(--gutter) 1.5rem; padding: 1rem; border-radius: var(--radius); background: var(--brand-deep); color: #eef5f6; }
  .menu-prefs .a11y-tools { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; margin: 0; width: auto; }
  .menu-prefs .a11y-group { justify-content: space-between; }
  .menu-prefs .a11y-group .a11y-btn { flex: 1; min-height: 52px; }
  .menu-prefs .a11y-label { flex: 1 0 100%; margin: 0 0 .1rem; }
  .menu-prefs .a11y-group { flex-wrap: wrap; }
  .menu-prefs .contrast-btn, .menu-prefs .lang-btn { width: 100%; min-height: 52px; justify-content: flex-start; padding: 0 1rem; font-size: 1.1rem; }
  .menu-prefs .lang-btn .lang-caret { margin-left: auto; }
  .menu-prefs .contrast-btn span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  /* The logo name never breaks mid-word; with big text on a small phone it shrinks a little
     and the "55+ Community" line steps aside (the welcome says it too) */
  .brand-name { white-space: nowrap; }
  .brand { min-width: 0; gap: .6rem; }
  .nav-collapsed .menu-toggle { flex: none; font-size: min(1.1rem, 5.5vw); padding: .5rem .8rem; gap: .4rem; }
  .header-inner { gap: .75rem; }
  /* The language list opens in place, pushing the rest down instead of covering it */
  .menu-prefs .lang-list { position: static; width: auto; min-width: 0; max-width: none; max-height: none; margin-top: .5rem; box-shadow: none; }
  .menu-prefs .lang-list .lm-note { max-width: none; }
}
@media (max-width: 420px) {
  html.text-lg .brand-tag, html.text-xl .brand-tag { display: none; }
}
@media (max-width: 520px) {
  .brand-mark { width: min(44px, 12vw); height: min(44px, 12vw); }
  .brand-name { font-size: min(1.5rem, 7vw); }
  .brand-tag { font-size: .8rem; letter-spacing: .04em; }
  .menu-toggle { padding: .5rem .9rem; }
}

/* ---------- Generic sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-alt { background: var(--sand); }
.section-head { margin-bottom: 2rem; max-width: 760px; }
.section-head p { color: var(--muted); font-size: 1.2rem; margin: 0; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; max-width: none; }
.section-head.row h2 { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 .75rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6.5rem); overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(233,185,73,.22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(44,94,63,.10), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.25rem); margin: 0 0 1.25rem; }
.hero h1 .hl { color: var(--brand); font-style: italic; }
.lede { font-size: clamp(1.25rem, 1.9vw, 1.45rem); color: var(--ink-2); max-width: 32ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.75rem; }
.hero-call { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; color: var(--ink-2); margin: 0; flex-wrap: wrap; }
.hero-call a { font-weight: 700; }
.hero-media { position: relative; isolation: isolate; }
.hero-media::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -12%; top: -14%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(233,185,73,.55), rgba(233,185,73,0) 68%); }
.hero-photo { margin: 0; border-radius: 32px 32px 32px 120px; overflow: hidden; aspect-ratio: 5 / 4.4; box-shadow: var(--shadow-lg); background: var(--brand-tint-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
img.lift { filter: brightness(1.45) saturate(1.2) contrast(1.06); }

.meeting-card {
  position: absolute; left: -2.5rem; bottom: -2.75rem; width: min(400px, 90%);
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--surface); border-radius: 20px; padding: 1.25rem 1.35rem; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.meeting-card .mc-label { font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .2rem; }
.meeting-card h2 { font-size: 1.35rem; margin: 0 0 .35rem; }
.meeting-card p { margin: 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.45; }
.meeting-card a { font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; min-height: 40px; }

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .lede { max-width: none; }
  .hero-photo { aspect-ratio: 16 / 11; border-radius: 24px 24px 24px 80px; }
  .meeting-card { position: relative; left: auto; bottom: auto; width: auto; margin: -3rem 1rem 0; }
}

/* ---------- Date chip ---------- */
.date-chip { flex: none; width: 4.75rem; border-radius: 14px; overflow: hidden; text-align: center; background: var(--surface); border: 2px solid var(--brand); line-height: 1.05; }
.date-chip .dc-mon { display: block; background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem 0 .3rem; }
.date-chip .dc-day { display: block; font-family: var(--font-head); font-weight: 600; font-size: 2rem; color: var(--ink); padding: .3rem 0 0; }
.date-chip .dc-dow { display: block; font-weight: 700; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: .1rem 0 .45rem; }
.date-chip.board { border-color: var(--accent); }
.date-chip.board .dc-mon { background: var(--accent); }

/* ---------- Help tiles ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tile {
  display: flex; gap: 1.1rem; align-items: flex-start; height: 100%;
  padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--line);
  text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tile:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.tile-icon { flex: none; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.tile-icon .icon { width: 30px; height: 30px; }
.tile h3 { font-size: 1.35rem; margin: .1rem 0 .3rem; display: flex; align-items: center; gap: .4rem; }
.tile p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.45; }
.tile .go { margin-left: auto; align-self: center; color: var(--brand); flex: none; }
.tile.t-accent .tile-icon { background: var(--accent-tint); color: var(--accent); }
.tile.t-palm .tile-icon { background: var(--palm-tint); color: var(--palm); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tiles { grid-template-columns: minmax(0, 1fr); gap: .9rem; } .tile { padding: 1.15rem; } }
.tile > div { min-width: 0; } /* long words wrap inside the tile instead of pushing it off a small phone */

/* ---------- Home: events + news ---------- */
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.panel .section-head { margin-bottom: 1rem; }
.panel h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }

.event-list { list-style: none; margin: 0; padding: 0; }
.event-row { display: flex; gap: 1.1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.event-row:last-child { border-bottom: 0; }
.event-row h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; margin: 0 0 .2rem; letter-spacing: 0; line-height: 1.3; }
.meta { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; color: var(--muted); font-size: 1.08rem; margin: 0; }
.meta span { display: inline-flex; align-items: center; gap: .4rem; }

.news-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: .25rem; }
.news-item:last-child { border-bottom: 0; }
.news-item h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; letter-spacing: 0; margin: .5rem 0 .25rem; line-height: 1.3; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--brand-dark); text-decoration: underline; }
.news-item p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.news-top { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; color: var(--muted); font-size: 1rem; }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .75rem; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.5; background: var(--brand-tint); color: var(--brand-dark); }
.tag .icon { width: 1em; height: 1em; }
.tag-social, .tag-Social { background: var(--accent-tint); color: #7d3407; }
.tag-health { background: var(--palm-tint); color: #1d4f2f; }
.tag-community { background: #f6ecd0; color: #5f450a; }
.tag-Maintenance { background: #e8ecf4; color: #2b3a5c; }
.tag-Safety { background: var(--red-tint); color: var(--red); }
.tag-board, .tag-Announcements { background: var(--brand-tint); color: var(--brand-dark); }
.tag-pinned { background: var(--gold-soft); color: #4d3500; }

/* ---------- Amenity strip (home) ---------- */
.amenity-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.amenity-mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; height: 100%; box-shadow: var(--shadow-sm); }
.amenity-mini img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand-2); }
.amenity-mini div { padding: 1rem 1.15rem 1.2rem; }
.amenity-mini h3 { font-size: 1.25rem; margin: 0 0 .3rem; }
.amenity-mini p { margin: 0; color: var(--muted); font-size: 1.02rem; display: flex; gap: .4rem; align-items: center; }
@media (max-width: 960px) { .amenity-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .amenity-strip { grid-template-columns: 1fr; } }

/* ---------- Photo mosaic (home) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.mosaic a { display: block; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--sand-2); }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic .mosaic-cap { position: absolute; left: .75rem; bottom: .75rem; right: .75rem; background: rgba(20,46,30,.86); color: #fff; font-weight: 700; font-size: 1rem; padding: .4rem .75rem; border-radius: 10px; width: fit-content; }
@media (max-width: 820px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }

/* ---------- Help band ---------- */
.help-band { background: var(--brand-deep); color: #e9f2f3; padding: clamp(3rem, 7vw, 5rem) 0; position: relative; overflow: hidden; }
.help-band::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(233,185,73,.35), rgba(233,185,73,0) 70%); pointer-events: none; }
.help-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: center; position: relative; z-index: 1; }
.help-band h2 { color: #fff; }
.help-band p { color: #d5e4e6; font-size: 1.2rem; }
.help-phone { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 4vw, 2.75rem); color: #fff; text-decoration: none; line-height: 1.1; }
.help-phone:hover { color: var(--gold); }
.help-phone .icon { width: 2.25rem; height: 2.25rem; color: var(--gold); }
.help-meta { margin: .75rem 0 1.5rem; }
.help-band a:not(.btn):not(.help-phone) { color: #fff; }
@media (max-width: 900px) { .help-grid { grid-template-columns: 1fr; } }

/* ---------- Interior page header ---------- */
.page-hero { background: var(--sand); padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2.25rem, 5vw, 3.5rem); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(233,185,73,.35), rgba(233,185,73,0) 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin: 0 0 .6rem; }
.page-hero p { font-size: clamp(1.2rem, 1.8vw, 1.35rem); color: var(--ink-2); max-width: 46ch; margin: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1rem; font-size: 1.05rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--muted); }
.breadcrumb a { color: var(--brand-dark); font-weight: 700; }

/* ---------- Filter chips ---------- */
.chip-group { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; padding: 0; border: 0; }
.chip-group legend { font-weight: 700; margin-bottom: .6rem; padding: 0; width: 100%; font-size: 1.1rem; }
.chip {
  min-height: 52px; padding: .5rem 1.2rem; border-radius: 999px; border: 2px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 700 1.05rem/1 var(--font-body); cursor: pointer;
  display: inline-flex; align-items: center; gap: .45rem;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .icon { width: 1.05em; height: 1.05em; }
.chip:not([aria-pressed="true"]) .icon-check { display: none; }

/* ---------- Bulletin board ---------- */
.board-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
@media (max-width: 960px) { .board-layout, .side-stack { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .callout { padding: 1.15rem; } .callout .btn { white-space: normal; } }
.posts { display: grid; gap: 1.25rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow-sm); }
.post-card.pinned { border: 2px solid var(--gold); background: linear-gradient(180deg, #fffaf0, #fff 50%); }
.post-card h2 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); margin: .65rem 0 .5rem; }
.post-card .summary { font-size: 1.15rem; color: var(--ink-2); margin: 0; }
.post-card details { margin-top: .75rem; }
.post-card summary { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; cursor: pointer; font-weight: 700; color: var(--brand); list-style: none; }
.post-card summary::-webkit-details-marker { display: none; }
.post-card summary:hover { text-decoration: underline; }
.post-card summary .icon { transition: transform .15s ease; }
.post-card details[open] summary .icon { transform: rotate(90deg); }
.post-card details p { margin: .5rem 0 0; font-size: 1.15rem; }
.side-stack { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 960px) { .side-stack { position: static; } }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.callout h2, .callout h3 { font-size: 1.35rem; margin: 0 0 .5rem; }
.callout p { color: var(--ink-2); font-size: 1.08rem; }
.callout-brand { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.callout-gold { background: #fff6e3; border-color: var(--gold-soft); }
.empty { padding: 2rem; text-align: center; color: var(--muted); background: var(--surface); border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); }

/* ---------- Calendar ---------- */
.next-banner { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 2.5rem; }
.next-banner .nb-body { flex: 1 1 440px; }
.next-banner .mc-label { font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .25rem; }
.next-banner h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .4rem; }
.next-banner .date-chip { width: 5.5rem; }
.next-banner .date-chip .dc-day { font-size: 2.4rem; }
.month-head { display: flex; align-items: center; gap: 1rem; font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 2.5rem 0 1rem; }
.month-head::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.month-head:first-child { margin-top: 0; }
.event-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.event-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; box-shadow: var(--shadow-sm); }
.event-card h3 { font-size: 1.4rem; margin: .45rem 0 .35rem; }
.event-card .desc { margin: .5rem 0 0; color: var(--ink-2); font-size: 1.08rem; }
.event-card .ec-actions { align-self: center; }
@media (max-width: 700px) {
  .event-card { grid-template-columns: auto 1fr; padding: 1.1rem; gap: 1rem; }
  .event-card .ec-actions { grid-column: 1 / -1; }
  .event-card .ec-actions .btn { width: 100%; }
}
.weekly { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.weekly-row { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: .85rem 1rem; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); }
.weekly-row strong { font-size: 1.1rem; }
.weekly-row .w-time { font-weight: 700; color: var(--brand-dark); text-align: right; }
.weekly-row .w-sub { color: var(--muted); font-size: 1rem; grid-column: 1 / -1; }

/* ---------- Amenities page ---------- */
.amenity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.amenity-card { display: grid; grid-template-columns: 220px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.amenity-card img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; background: var(--sand-2); }
.amenity-card .ac-body { padding: 1.35rem 1.4rem; }
.amenity-card h2 { font-size: 1.5rem; margin: 0 0 .4rem; }
.amenity-card p { margin: 0 0 .75rem; color: var(--ink-2); font-size: 1.08rem; }
.hours { display: inline-flex; align-items: center; gap: .5rem; background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; padding: .4rem .8rem; border-radius: 10px; font-size: 1.05rem; }
.amenity-card .note { display: flex; gap: .45rem; align-items: flex-start; margin: .8rem 0 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 1060px) { .amenity-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .amenity-card { grid-template-columns: 1fr; } .amenity-card img { aspect-ratio: 16 / 9; min-height: 0; } }
.nearby-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 1.25rem; }
.nearby-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.nearby-grid h3 { font-size: 1.2rem; margin: 0 0 .25rem; }
.nearby-grid .dist { font-weight: 700; color: var(--accent); font-size: 1rem; margin: 0 0 .4rem; }
.nearby-grid p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }

/* ---------- Photo gallery ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 1rem; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--sand-2); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.25rem .9rem .8rem; color: #fff; font: 700 1.02rem/1.3 var(--font-body); text-align: left; text-shadow: 0 1px 2px rgba(0,0,0,.45);
  background: linear-gradient(180deg, rgba(20,46,30,0) 0, rgba(20,46,30,.88) 1.9rem, rgba(20,46,30,.92) 100%); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(8, 20, 25, .9); }
.lb-inner { background: var(--brand-deep); color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.lb-inner img { width: 100%; max-height: 72vh; object-fit: contain; background: #000; }
.lb-bar { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; flex-wrap: wrap; }
.lb-bar p { margin: 0 auto 0 0; font-weight: 700; font-size: 1.15rem; }
.lb-bar .btn { min-height: 52px; }
.lb-bar .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.lb-bar .btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Documents ---------- */
.doc-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
@media (max-width: 960px) { .doc-layout { grid-template-columns: 1fr; } }
.doc-group + .doc-group { margin-top: 2.5rem; }
.doc-search { margin: 0 0 2rem; max-width: 34rem; }
.doc-search label { display: block; font-weight: 700; margin-bottom: .4rem; }
.doc-search input { width: 100%; min-height: 52px; padding: .6rem .9rem; font: 400 1.1rem/1.3 var(--font-body); color: var(--ink); background: var(--surface);
  border: 2px solid var(--line-strong); border-radius: 12px; }
.doc-search input:focus { border-color: var(--brand); box-shadow: var(--focus-ring); outline: none; }
.doc-found { margin: .5rem 0 0; font-weight: 700; color: var(--muted); }
.doc-found:empty { display: none; }
.doc-sub { margin: .25rem 0 .6rem; font-weight: 700; color: var(--muted); }
.doc-year { margin-top: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.doc-year > summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; font-weight: 700; font-size: 1.15rem; list-style: none; }
.doc-year > summary::-webkit-details-marker { display: none; }
.doc-year > summary::before { content: ''; width: .6rem; height: .6rem; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: none; }
.doc-year[open] > summary::before { transform: rotate(45deg); }
.doc-year > summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: var(--radius); }
.doc-year .doc-count { font-weight: 400; }
.doc-year > .doc-list { padding: 0 .75rem .75rem; }
@media (prefers-reduced-motion: reduce) { .doc-year > summary::before { transition: none; } }
.doc-group h2 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.doc-item { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; flex-wrap: wrap; }
.doc-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); }
.doc-body { flex: 1 1 260px; min-width: 0; }
.doc-body h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; letter-spacing: 0; margin: 0 0 .2rem; line-height: 1.35; }
.doc-body p { margin: 0; color: var(--muted); font-size: 1rem; }
.doc-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.lock-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: 1rem; font-weight: 700; color: var(--muted); }
@media (max-width: 560px) { .doc-actions { width: 100%; } .doc-actions .btn { flex: 1; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .tile-icon { width: 52px; height: 52px; border-radius: 14px; }
.info-list .tile-icon .icon { width: 26px; height: 26px; }
.info-list h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .15rem; }
.info-list p { margin: 0; font-size: 1.2rem; }
.big-link { font-size: 1.45rem; font-weight: 700; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
.hours-table th, .hours-table td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.hours-table td { text-align: right; font-weight: 700; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.board-list li:last-child { border-bottom: 0; }
.board-list span:last-child { color: var(--muted); font-style: italic; }
.map-frame { width: 100%; height: 380px; border: 0; border-radius: var(--radius-lg); display: block; background: var(--sand-2); }
.emergency { display: flex; gap: .9rem; align-items: flex-start; background: var(--red-tint); color: #5c1010; border-radius: var(--radius); padding: 1.1rem 1.25rem; border: 1px solid #f1c9c9; }
.emergency strong { color: var(--red); }
.emergency p { margin: 0; color: #5c1010; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3.5vw, 2.25rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.field { margin-bottom: 1.35rem; }
.field label, .field .label { display: block; font-weight: 700; font-size: 1.15rem; margin-bottom: .45rem; }
.field .hint { display: block; color: var(--muted); font-size: 1rem; margin: -.2rem 0 .5rem; font-weight: 400; }
.req { color: var(--muted); font-weight: 400; font-size: 1rem; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field select, .field textarea {
  width: 100%; min-height: 58px; padding: .8rem 1rem;
  font: 400 1.15rem/1.4 var(--font-body); color: var(--ink);
  background: #fff; border: 2px solid var(--line-strong); border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5566' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.4rem; padding-right: 3rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: var(--focus-ring); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: .75rem; min-height: 48px; font-size: 1.1rem; cursor: pointer; }
.check input { width: 28px; height: 28px; accent-color: var(--brand); flex: none; margin: 0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 7.5rem; }
.pw-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 .9rem; border-radius: 10px; border: 0; background: var(--brand-tint); color: var(--brand-dark); font: 700 1rem/1 var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.form-success { display: flex; gap: 1rem; align-items: flex-start; background: var(--palm-tint); border: 2px solid #9cc7a6; color: #173f26; border-radius: var(--radius); padding: 1.25rem; margin-top: 1rem; }
.form-success p { margin: 0; }

/* ---------- Login ---------- */
.login-wrap { min-height: calc(100vh - 200px); display: grid; grid-template-columns: 1fr 1fr; }
.login-art { position: relative; overflow: hidden; background: var(--brand-deep); color: #fff; }
.login-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.login-art .la-inner { position: relative; z-index: 1; padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: flex-end; height: 100%;
  background: linear-gradient(180deg, rgba(20,46,30,0) 20%, rgba(20,46,30,.92) 100%); }
.login-art h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.75rem); }
.login-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: 1.2rem; }
.login-art li { display: flex; gap: .7rem; align-items: center; }
.login-art li .icon { color: var(--gold); }
.login-main { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 4rem) var(--gutter); }
.login-card { width: 100%; max-width: 500px; }
.login-card h1 { font-size: clamp(2.2rem, 4vw, 2.9rem); margin-bottom: .4rem; }
.login-card .sub { color: var(--ink-2); font-size: 1.2rem; margin-bottom: 2rem; }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); margin: 2rem 0 1.25rem; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.login-help { margin-top: 1.75rem; color: var(--ink-2); font-size: 1.08rem; text-align: center; }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: #102419; color: #dde8df; padding: clamp(3rem, 6vw, 4.5rem) 0 0; font-size: 1.08rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.3rem; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-grid ul a { display: inline-flex; min-height: 36px; align-items: center; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand-tag { color: #b7c9cc; }
.footer-brand p { color: #c3d3d6; max-width: 34ch; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { margin-top: .25rem; color: var(--gold); }
.footer-bottom { margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.25rem; padding-bottom: 6.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; font-size: 1rem; color: #b7c9cc; }
.footer-bottom ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 7rem; transform: translateX(-50%) translateY(20px); z-index: 90; background: var(--brand-deep); color: #fff; padding: 1rem 1.4rem; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 1.1rem; font-weight: 700; display: flex; gap: .6rem; align-items: center; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 2rem); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .icon { color: var(--gold); }

/* ---------- Lakeridge Helper (chat) ---------- */
.chat-launcher {
  position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem); z-index: 70;
  display: inline-flex; align-items: center; gap: .75rem; min-height: 68px; padding: .55rem 1.5rem .55rem .6rem;
  border-radius: 999px; border: 3px solid #fff; background: var(--brand); color: #fff;
  font: 700 1.15rem/1.15 var(--font-body); text-align: left; cursor: pointer;
  box-shadow: 0 12px 32px rgba(7,63,76,.38), 0 2px 6px rgba(7,63,76,.25);
  transition: transform .15s ease, background-color .15s ease;
}
.chat-launcher:hover { background: var(--brand-dark); transform: translateY(-2px); }
.chat-launcher .cl-bubble { width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: var(--brand-deep); display: grid; place-items: center; flex: none; }
.chat-launcher .cl-bubble .icon { width: 26px; height: 26px; }
.chat-launcher small { display: block; font-size: .9rem; font-weight: 400; opacity: .92; }
.chat-launcher[aria-expanded="true"] { display: none; }
@media (max-width: 420px) { .chat-launcher small { display: none; } .chat-launcher { padding-right: 1.15rem; } }

.chat-panel {
  position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem); z-index: 80;
  width: min(440px, calc(100vw - 2rem)); height: min(680px, calc(100vh - 2rem));
  display: flex; flex-direction: column; background: var(--surface); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(8,25,30,.35), 0 4px 12px rgba(8,25,30,.15); border: 1px solid var(--line);
  animation: chatIn .2s ease;
}
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1rem 1rem 1.15rem; background: var(--brand-deep); color: #fff; }
.chat-head .brand-mark { width: 46px; height: 46px; }
.chat-head h2 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; letter-spacing: 0; margin: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.chat-head p { margin: 0; font-size: 1rem; color: #c9dadd; }
.chat-close { margin-left: auto; min-height: 48px; padding: 0 1rem; border-radius: 12px; border: 2px solid rgba(255,255,255,.45); background: transparent; color: #fff; font: 700 1.05rem/1 var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; flex: none; }
.chat-close:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 1.25rem 1.1rem; display: flex; flex-direction: column; gap: .85rem; background: var(--bg); }
.msg { max-width: 88%; padding: .85rem 1.1rem; border-radius: 20px; font-size: 1.12rem; line-height: 1.5; }
.msg p { margin: 0 0 .5rem; } .msg p:last-child { margin: 0; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; box-shadow: var(--shadow-sm); }
.msg.user { background: var(--brand); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg a { font-weight: 700; }
.msg .ans-card { margin-top: .6rem; padding: .75rem .9rem; border-radius: 12px; background: var(--brand-tint); }
.msg .ans-card strong { display: block; font-size: 1.12rem; }
.typing { display: inline-flex; gap: 5px; padding: 1rem 1.1rem; }
.typing span { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: .5rem; padding: .25rem 0 0; }
.chat-suggest button { min-height: 48px; padding: .45rem 1rem; border-radius: 999px; border: 2px solid var(--brand); background: var(--surface); color: var(--brand-dark); font: 700 1rem/1.2 var(--font-body); cursor: pointer; text-align: left; }
.chat-suggest button:hover { background: var(--brand-tint); }
/* The question box gets its own full-width row; Speak and Send share the row under it */
.chat-form { display: flex; flex-wrap: wrap; gap: .6rem; padding: .9rem 1rem; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form input { flex: 1 1 100%; min-width: 0; min-height: 56px; padding: .7rem 1rem; font: 400 1.12rem/1.3 var(--font-body); border: 2px solid var(--line-strong); border-radius: 14px; color: var(--ink); }
.chat-form input:focus { border-color: var(--brand); box-shadow: var(--focus-ring); outline: none; }
.chat-form .btn { flex: 1 1 0; justify-content: center; min-height: 56px; border-radius: 14px; padding: .6rem 1.15rem; }
.chat-foot { margin: 0; padding: 0 1rem .8rem; font-size: 1rem; color: var(--muted); background: var(--surface); text-align: center; }
@media (max-width: 600px) {
  .chat-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
}

/* ---------- Section tabs (Amenities | Photos, Bulletin | Documents) ---------- */
.sub-tabs { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.sub-tabs a {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 60px; padding: .6rem 1.4rem;
  border-radius: 16px; border: 2px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-weight: 700; font-size: 1.2rem; text-decoration: none;
}
.sub-tabs a:hover { border-color: var(--brand); color: var(--brand-dark); }
.sub-tabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 520px) { .sub-tabs a { flex: 1 1 100%; justify-content: center; } }

/* ---------- Home extras ---------- */
.today { margin: -.5rem 0 .5rem; color: var(--muted); font-size: 1.08rem; display: flex; align-items: center; gap: .5rem; }
.amenity-mini a { display: block; height: 100%; color: inherit; text-decoration: none; }
.amenity-mini a:hover h3 { color: var(--brand-dark); text-decoration: underline; }
.amenity-mini { transition: border-color .15s ease, box-shadow .15s ease; }
.amenity-mini:hover { border-color: var(--brand); box-shadow: var(--shadow); }
/* Phones: a small photo beside the name, so the four amenities fit on about one screen */
@media (max-width: 600px) {
  .amenity-mini a { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; }
  .amenity-mini img { height: 100%; min-height: 100px; aspect-ratio: auto; }
  .amenity-mini div { padding: .85rem 1rem; }
  .amenity-mini h3 { font-size: 1.18rem; }
}

/* ---------- Form messages ---------- */
.field-error { display: flex; gap: .5rem; align-items: flex-start; margin: .5rem 0 0; color: var(--red); font-weight: 700; font-size: 1.08rem; }
.field-error .icon { margin-top: .2rem; }
.field [aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.form-note { display: flex; gap: .75rem; align-items: flex-start; background: #fff6e3; border: 2px solid var(--gold-soft); color: #4d3500; border-radius: var(--radius); padding: 1rem 1.15rem; margin-top: 1rem; font-size: 1.08rem; }
.form-note p { margin: 0; }

/* ---------- Footer: back to top ---------- */
.to-top { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; }

/* =====================================================================
   RESIDENT PORTAL (accounts, Social, My Lakeridge, Board Dashboard)
   ===================================================================== */

/* ---------- Avatars & small helpers ---------- */
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.avatar-sm { width: 36px; height: 36px; font-size: .9rem; }
.avatar-lg { width: 76px; height: 76px; font-size: 1.6rem; }
.btn .avatar-sm { width: 30px; height: 30px; font-size: .85rem; background: #fff; color: var(--brand-dark); margin-left: -.4rem; }
.small-note { color: var(--muted); font-size: 1rem; margin: .4rem 0 0; display: flex; gap: .45rem; align-items: flex-start; }
.small-note .icon { margin-top: .2rem; }
.link-btn { background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; color: var(--brand); font: 700 1.05rem/1.3 var(--font-body); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.site-footer .link-btn { color: #fff; font-weight: 400; min-height: 36px; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .75rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .icon { color: var(--palm); margin-top: .25rem; }
.ch63-note { display: flex; gap: .5rem; align-items: center; margin: .6rem 0 0; font-weight: 700; color: var(--brand-dark); }
.panel h3 { font-size: 1.35rem; display: flex; align-items: center; gap: .5rem; }
.panel-lede { color: var(--ink-2); }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 760px) { .field-row.three { grid-template-columns: 1fr; } }
.radio-row { border: 0; padding: 0; margin: 0 0 1.35rem; }
.radio-row legend { padding: 0; margin-bottom: .3rem; }
.chip-n { background: rgba(0,0,0,.08); border-radius: 999px; padding: .05rem .5rem; font-size: .95rem; }
.chip[aria-pressed="true"] .chip-n { background: rgba(255,255,255,.25); }

/* ---------- Home: welcome band & tech promo ---------- */
.welcome-band { background: var(--brand-tint); border-block: 1px solid var(--brand-tint-2); padding: 1.25rem 0; }
.welcome-inner { display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap; }
.welcome-inner .avatar { width: 56px; height: 56px; font-size: 1.2rem; }
.wb-text { flex: 1 1 280px; }
.wb-text h2 { font-size: 1.5rem; margin: 0 0 .15rem; }
.wb-text p { margin: 0; color: var(--ink-2); }
.wb-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.promo-card { display: flex; align-items: center; gap: 1.25rem 2rem; flex-wrap: wrap; background: linear-gradient(120deg, #fff6e3, #fff 70%); border: 2px solid var(--gold-soft); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.promo-icon { flex: none; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.promo-icon .icon { width: 36px; height: 36px; }
.promo-text { flex: 1 1 360px; }
.promo-text h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: .35rem; }
.promo-text p { margin: 0; color: var(--ink-2); }
.promo-text .eyebrow { margin-bottom: .4rem; }

/* ---------- Sign-in gate ---------- */
.gate { max-width: 620px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.gate-icon { width: 72px; height: 72px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 1rem; }
.gate h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.gate p { color: var(--ink-2); font-size: 1.15rem; }
.gate-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }

/* ---------- Social: teaser for visitors ---------- */
.teaser { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .teaser { grid-template-columns: 1fr; } }
.feature-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .feature-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .feature-grid, .feature-grid.three { grid-template-columns: 1fr; } }
.feature-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.feature-grid h2, .feature-grid h3 { font-size: 1.25rem; margin: .75rem 0 .3rem; }
.feature-grid p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
/* Phones: the icon sits beside the heading instead of on a row of its own */
@media (max-width: 620px) {
  .feature-grid li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .85rem; align-items: center; padding: 1rem 1.1rem; }
  .feature-grid li > .tile-icon { margin: 0; }
  .feature-grid li > h2, .feature-grid li > h3 { margin: 0; }
  .feature-grid li > p { grid-column: 1 / -1; margin-top: .5rem; }
}
.example-post { position: relative; background: var(--surface); border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 1.25rem; }
.example-post h3 { font-size: 1.3rem; margin: .75rem 0 .3rem; }
.example-label { position: absolute; top: -.85rem; right: 1rem; margin: 0; background: var(--sand-2); color: var(--ink); font-weight: 700; font-size: .95rem; padding: .1rem .7rem; border-radius: 999px; }

/* ---------- Social: composer ---------- */
.composer { background: var(--surface); border: 2px solid var(--brand-tint-2); border-radius: var(--radius-lg); padding: clamp(1.15rem, 3vw, 1.75rem); box-shadow: var(--shadow-sm); margin-bottom: 1.75rem; }
.composer-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.composer-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); margin: 0; }
.type-picker { border: 0; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.type-picker legend { font-weight: 700; font-size: 1.15rem; margin-bottom: .5rem; padding: 0; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-opt span { display: inline-flex; align-items: center; gap: .45rem; min-height: 50px; padding: .45rem 1rem; border-radius: 14px; border: 2px solid var(--line-strong); background: var(--surface); font-weight: 700; cursor: pointer; }
.type-opt input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.type-opt input:focus-visible + span { box-shadow: var(--focus-ring); }
.type-opt span:hover { border-color: var(--brand); }
.event-fields { background: var(--brand-tint); border-radius: var(--radius); padding: 1rem 1rem .1rem; margin-bottom: 1.25rem; }
.event-fields-title { display: flex; gap: .5rem; align-items: center; font-weight: 700; margin: 0 0 .75rem; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.composer-foot .hint { margin: 0; color: var(--muted); display: flex; gap: .4rem; align-items: center; }

/* ---------- Social: posts ---------- */
.feed { display: grid; gap: 1.25rem; }
.social-post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.15rem, 3vw, 1.6rem); box-shadow: var(--shadow-sm); }
.social-post.flagged { border: 2px solid #e2a0a0; }
.flag-note { display: flex; gap: .5rem; align-items: center; background: var(--red-tint); color: var(--red); font-weight: 700; border-radius: 10px; padding: .5rem .8rem; margin: 0 0 1rem; }
.sp-head { display: flex; gap: .8rem; align-items: center; }
.sp-author { font-weight: 700; margin: 0; font-size: 1.1rem; }
.sp-author .you { font-weight: 400; color: var(--muted); }
.sp-meta { margin: 0; color: var(--muted); font-size: 1rem; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.tag-sp { background: var(--sand); color: var(--ink); }
.social-post h3 { font-size: 1.4rem; margin: .9rem 0 .35rem; }
.sp-body { font-size: 1.12rem; margin: 0; white-space: pre-line; }
.sp-event { display: flex; gap: 1rem; align-items: flex-start; background: var(--brand-tint); border-radius: var(--radius); padding: 1rem; margin-top: 1rem; }
.sp-event-body { flex: 1; min-width: 0; }
.sp-event-when { font-weight: 700; font-size: 1.15rem; margin: 0 0 .2rem; }
.rsvp { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 .5rem; }
.rsvp button { min-height: 48px; padding: .4rem 1rem; border-radius: 999px; border: 2px solid var(--brand); background: var(--surface); color: var(--brand-dark); font: 700 1.02rem/1 var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.rsvp button:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--brand); }
.rsvp button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.rsvp button:not([aria-pressed="true"]) .icon { display: none; }
.rsvp-count { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.sp-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.sp-btn { min-height: 48px; padding: .35rem .9rem; border-radius: 12px; border: 2px solid transparent; background: var(--sand); color: var(--ink); font: 700 1.02rem/1 var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.sp-btn:hover { border-color: var(--line-strong); }
.sp-btn .count { font-weight: 400; color: var(--muted); }
.sp-btn[aria-pressed="true"] { background: #fde8e8; color: #9b1c1c; }
.sp-btn[aria-pressed="true"] .icon { fill: currentColor; }
.sp-btn:disabled { opacity: .7; cursor: default; }
.sp-quiet { background: transparent; color: var(--muted); margin-left: auto; }
.sp-danger { background: transparent; color: var(--red); margin-left: auto; }
.replies { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; }
.replies li { display: flex; gap: .65rem; align-items: flex-start; background: var(--bg); border-radius: 14px; padding: .75rem .9rem; }
.replies p { margin: 0; }
.r-head { display: flex; gap: .5rem; flex-wrap: wrap; align-items: baseline; }
.r-head span { color: var(--muted); font-size: .98rem; }
.reply-form { margin-top: 1rem; }
.reply-form label { display: block; font-weight: 700; margin-bottom: .35rem; }
.reply-form textarea { width: 100%; min-height: 80px; padding: .7rem .9rem; font: 400 1.1rem/1.4 var(--font-body); border: 2px solid var(--line-strong); border-radius: 12px; resize: vertical; }
.reply-form textarea:focus { border-color: var(--brand); box-shadow: var(--focus-ring); outline: none; }
.reply-form textarea[aria-invalid="true"] { border-color: var(--red); }
.reply-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.mini-events { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mini-events a { display: grid; gap: .1rem; padding: .7rem .85rem; border-radius: 12px; background: var(--bg); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.mini-events a:hover { border-color: var(--brand); }
.mini-events span { color: var(--muted); font-size: 1rem; }

/* ---------- My Lakeridge ---------- */
.me-hero { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.me-text { flex: 1 1 320px; }
.me-text h1 { margin: 0 0 .3rem; }
.me-text p { margin: 0; }
.me-text .eyebrow { margin-bottom: .4rem; }
.me-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tiles-4 .tile { padding: 1.15rem; flex-direction: column; gap: .75rem; }
.tiles-4 .tile h3 { font-size: 1.2rem; }
@media (max-width: 1060px) { .tiles-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles-4 { grid-template-columns: 1fr; } .tiles-4 .tile { flex-direction: row; } }
.resident-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
@media (max-width: 960px) { .resident-grid { grid-template-columns: 1fr; } }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.req-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--bg); }
.req-item h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; letter-spacing: 0; margin: .4rem 0 .3rem; }
.req-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.req-id { font-weight: 700; color: var(--muted); font-size: 1rem; letter-spacing: .03em; }
.req-when { color: var(--muted); font-size: 1rem; margin-left: auto; }
.status { display: inline-flex; align-items: center; padding: .15rem .7rem; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.5; }
.st-new { background: #e8ecf4; color: #2b3a5c; }
.st-progress { background: var(--brand-tint); color: var(--brand-dark); }
.st-wait { background: #fff1d6; color: #6b4600; }
.st-done { background: var(--palm-tint); color: #1d4f2f; }
.steps { list-style: none; display: flex; gap: .35rem; padding: 0; margin: .75rem 0 0; }
.steps li { flex: 1; text-align: center; font-size: .98rem; font-weight: 700; color: var(--muted); padding-top: .55rem; border-top: 5px solid var(--line); }
.steps li.done { color: var(--palm); border-top-color: var(--palm); }
.req-note { margin-top: .75rem; background: var(--surface); border-left: 4px solid var(--brand); border-radius: 8px; padding: .6rem .8rem; }
.req-note p { margin: .2rem 0 0; }
.forms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 1.25rem; }
.forms-grid h3 { font-size: 1.3rem; }
.form-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.form-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.form-list li:last-child { border-bottom: 0; }
.form-list div { display: grid; gap: .1rem; }
.form-list span { color: var(--ink-2); font-size: 1.02rem; }
.form-list .goes-to { color: var(--muted); font-size: .98rem; }
.form-list .btn { flex: none; }

/* Channel 63 */
.ch63 { display: grid; align-items: start; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 1.5rem); box-shadow: var(--shadow-sm); }
@media (max-width: 960px) { .ch63 { grid-template-columns: 1fr; } }
.ch63-live { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.ch63-live iframe { display: block; width: 100%; height: 100%; border: 0; }
.ch63-screen { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, #1d4c58, #081a1f 75%); color: #fff; display: grid; place-items: center; text-align: center; padding: 1rem; }
.ch63-screen p { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; margin: 0; font-size: 1.05rem; }
.ch63-play { width: 84px; height: 84px; color: var(--gold); }
.live-badge { position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: .4rem; background: #b42318; color: #fff; font-weight: 700; padding: .25rem .7rem; border-radius: 8px; }
.ch63-side h2 { margin-bottom: .4rem; }
.ch63-side h3 { font-size: 1.2rem; margin: 1.25rem 0 .5rem; }
.recordings { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.recordings button { width: 100%; display: flex; align-items: center; gap: .7rem; text-align: left; min-height: 52px; padding: .5rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 1.02rem/1.35 var(--font-body); cursor: pointer; }
.recordings button:hover { border-color: var(--brand); }
.recordings .icon { color: var(--brand); width: 1.6rem; height: 1.6rem; }
.recordings strong { display: block; }
.resource-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 1rem; }
.resource-grid li { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.resource-grid .tile-icon { width: 52px; height: 52px; border-radius: 14px; }
.resource-grid .tile-icon .icon { width: 26px; height: 26px; }
.resource-grid h3 { font-size: 1.2rem; margin: 0 0 .25rem; }
.resource-grid p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.promo-panel .tile-icon { margin-bottom: .75rem; }

/* ---------- Board Dashboard ---------- */
.tabs { position: relative; display: flex; gap: .15rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 1.5rem; }
.tab { display: inline-flex; align-items: center; gap: .5rem; min-height: 56px; padding: .5rem .75rem; border: 2px solid transparent; border-bottom: 0; border-radius: 14px 14px 0 0; background: transparent; color: var(--ink-2); font: 700 1.1rem/1 var(--font-body); cursor: pointer; margin-bottom: -2px; }
.tab:hover { background: var(--sand); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--brand-dark); border-color: var(--line); border-bottom: 2px solid var(--surface); }
.tab-count:not(:empty) { background: var(--accent); color: #fff; border-radius: 999px; padding: .1rem .55rem; font-size: .95rem; }
.tab-panel:focus-visible { border-radius: var(--radius); }
.tab-panel > h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
/* Phones: every tab shows at once, two to a row, so none hides off the edge of the screen */
@media (max-width: 760px) {
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; border-bottom: 0; }
  .tab { min-width: 0; margin: 0; padding: .5rem .8rem; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 1.05rem; line-height: 1.2; text-align: left; }
  .tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
}
.stat-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1060px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat { width: 100%; height: 100%; display: grid; gap: .3rem; justify-items: start; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; cursor: pointer; font-family: var(--font-body); color: var(--ink); }
.stat:hover { border-color: var(--brand); }
.stat-icon { color: var(--brand); }
.stat-n { font-family: var(--font-head); font-size: 2.3rem; font-weight: 600; line-height: 1; }
.stat-l { font-weight: 700; color: var(--ink-2); font-size: 1.02rem; }
.att-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.att-list > li { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; background: var(--bg); }
.att-list p { margin: .2rem 0; }
.admin-reqs { display: grid; gap: 1.1rem; }
.admin-req { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.1rem, 3vw, 1.5rem); box-shadow: var(--shadow-sm); }
.admin-req h3 { font-size: 1.35rem; margin: .5rem 0 .4rem; }
.req-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; margin-top: 1rem; }
@media (max-width: 620px) { .req-controls { grid-template-columns: 1fr; } }
.req-controls .field { margin-bottom: .75rem; }
.note-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.note-list li { border-left: 4px solid var(--brand); background: var(--bg); border-radius: 8px; padding: .55rem .8rem; }
.note-list p { margin: .15rem 0 0; }
.mig-steps { padding-left: 1.4rem; margin: 0 0 1.25rem; display: grid; gap: .4rem; }
.search-field { margin: 0; min-width: min(360px, 100%); }
.search-field label { font-size: 1rem; margin-bottom: .25rem; }
.field input[type="search"], .field input[type="date"], .field input[type="time"], .field input[type="file"] {
  width: 100%; min-height: 58px; padding: .8rem 1rem; font: 400 1.15rem/1.4 var(--font-body); color: var(--ink);
  background: #fff; border: 2px solid var(--line-strong); border-radius: 12px;
}
.field input[type="file"] { padding: .7rem; }
.field input[type="search"]:focus, .field input[type="date"]:focus, .field input[type="time"]:focus, .field input[type="file"]:focus { border-color: var(--brand); box-shadow: var(--focus-ring); outline: none; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; background: var(--surface); }
.data-table th, .data-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--sand); font-size: 1rem; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 760px) {
  .table-wrap { border: 0; overflow: visible; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; padding: .5rem 0; background: var(--surface); }
  .data-table th, .data-table td { border: 0; padding: .3rem 1rem; }
  .data-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
  .data-table th[scope="row"] { font-size: 1.15rem; }
}
/* "Add your phone number" reminder */
.phone-prompt { background: #fff6e3; border-bottom: 2px solid var(--gold-soft); }
.pp-inner { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; padding-block: 1.1rem; }
.pp-icon { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--brand-deep); }
.pp-text { flex: 1 1 320px; }
.pp-text h2 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); margin: 0 0 .2rem; }
.pp-text p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.pp-form { flex: 1 1 380px; }
.pp-form label { display: block; font-weight: 700; margin-bottom: .35rem; }
.pp-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.pp-row input { flex: 1 1 200px; min-width: 0; min-height: 56px; padding: .7rem 1rem; font: 400 1.15rem/1.3 var(--font-body); color: var(--ink); background: #fff; border: 2px solid var(--line-strong); border-radius: 12px; }
.pp-row input:focus { border-color: var(--brand); box-shadow: var(--focus-ring); outline: none; }
.pp-row input[aria-invalid="true"] { border-color: var(--red); }
.pp-done { color: #173f26; }
.pp-done .icon { color: var(--palm); }
.pp-done p { margin: 0; font-size: 1.1rem; }
/* Phones: a smaller box, so the page itself still shows on the first screen */
@media (max-width: 600px) {
  .pp-inner { gap: .6rem; padding-block: .9rem; }
  .pp-icon { display: none; }
  .pp-text h2 { font-size: 1.2rem; }
  .pp-text p { font-size: 1rem; }
  .pp-form { flex-basis: 100%; }
  .pp-row input { flex-basis: 150px; }
}
.phone-summary { display: flex; gap: .6rem; align-items: center; background: #fff6e3; border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: .75rem 1rem; margin: 0 0 1rem; color: #4d3500; }
.access { display: inline-flex; align-items: center; padding: .15rem .65rem; border-radius: 999px; font-weight: 700; font-size: .98rem; background: var(--sand); color: var(--ink-2); white-space: nowrap; }
.acc-board { background: var(--brand-tint); color: var(--brand-dark); }
.acc-events { background: #f6ecd0; color: #5f450a; }
.row-sub { display: block; color: var(--muted); font-size: .95rem; font-weight: 400; margin-top: .2rem; }
.row-note { display: flex; gap: .35rem; align-items: flex-start; color: #7a3b00; font-size: .95rem; font-weight: 400; margin-top: .3rem; max-width: 34ch; }
.row-note .icon { margin-top: .15rem; }
.muted-dash { color: var(--muted); }

/* ---------- Tech help ---------- */
.discount-band { display: flex; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap; background: var(--brand-deep); color: #e3eef0; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.discount-band h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.discount-band p { color: #d0e1e4; font-size: 1.15rem; }
.discount-band > div { flex: 1 1 340px; }
.discount-band .discount-big { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; color: var(--gold); }
.discount-band .discount-big span { display: block; font-family: var(--font-body); font-size: 1.3rem; color: #fff; }
.how-steps { list-style: none; counter-reset: how; padding: 0; margin: 0 0 1rem; display: grid; gap: 1rem; }
.how-steps li { counter-increment: how; display: grid; grid-template-columns: 48px 1fr; gap: 0 .9rem; align-items: start; }
.how-steps li::before { content: counter(how); grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.3rem; }
.how-steps span { color: var(--ink-2); }

/* ---------- Text pages ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.85rem); margin-top: 2rem; }
.prose p, .prose li { font-size: 1.15rem; }

/* Proposal screenshots */
.shot .chat-launcher, .shot .chat-panel, .shot .phone-prompt { display: none !important; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print (e.g. "Print this calendar") ---------- */
@media print {
  html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Resident printouts only (proposal previews use ?shot=1 and keep the full page) */
  html:not(.shot) .utility-bar, html:not(.shot) .lang-notice, html:not(.shot) .site-header,
  html:not(.shot) .chat-launcher, html:not(.shot) .chat-panel, html:not(.shot) .site-footer, html:not(.shot) .toast,
  html:not(.shot) .chip-group, html:not(.shot) .sub-tabs, html:not(.shot) .breadcrumb, html:not(.shot) .ec-actions,
  html:not(.shot) .next-banner .doc-actions, html:not(.shot) .no-print { display: none !important; }
  html:not(.shot) body { background: #fff; font-size: 12pt; }
  html:not(.shot) .page-hero { background: none; border: 0; padding: 0 0 1rem; }
  html:not(.shot) .page-hero::after { display: none; }
  html:not(.shot) .board-layout { display: block; }
  html:not(.shot) .side-stack { position: static; margin-top: 2rem; }
  html:not(.shot) .event-card, html:not(.shot) .callout, html:not(.shot) .next-banner, html:not(.shot) .weekly-row { box-shadow: none; break-inside: avoid; }
}



/* =====================================================================
   LIVE SITE ADDITIONS (alerts, saving states, password reset, dialogs)
   ===================================================================== */
.site-alert { background: var(--red-tint); color: #5c1010; border-bottom: 2px solid #f1c9c9; font-size: 1.05rem; }
.site-alert .container { display: flex; gap: .6rem; align-items: center; padding-block: .7rem; }
.site-alert .icon { color: var(--red); flex: none; }
.site-alert.practice { background: #fff6e3; color: #4d3500; border-bottom: 2px dashed #d9a441; }
.site-alert.practice .icon { color: var(--accent); }

.form-error { display: flex; gap: .75rem; align-items: flex-start; background: var(--red-tint); border: 2px solid #f1c9c9; color: #5c1010; border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: 1rem; }
.form-error p { margin: 0; font-weight: 700; }
.form-error .icon { color: var(--red); flex: none; margin-top: .15rem; }

/* A button that is saving: it can't be pressed twice, and shows it's working */
.btn[aria-busy="true"], button[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn[aria-busy="true"]::after { content: ""; width: 1em; height: 1em; margin-left: .5rem; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: lr-spin .8s linear infinite; }
@keyframes lr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy="true"]::after { animation: none; border-right-color: currentColor; opacity: .5; } }
.btn:disabled { cursor: not-allowed; }

.reset-form { margin-top: 1.75rem; padding: 1.25rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--sand); }
.reset-form h2 { font-size: 1.45rem; margin-bottom: .4rem; }
.reset-form p { color: var(--ink-2); }

.res-dialog { border: 0; border-radius: var(--radius-lg); padding: 0; max-width: min(620px, 94vw); width: 100%; box-shadow: var(--shadow); }
.res-dialog::backdrop { background: rgba(8, 20, 25, .6); }
.rd-form { padding: clamp(1.25rem, 4vw, 2rem); }
.rd-form h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: .35rem; }
.rd-form .meta { margin-bottom: 1rem; }

.attach-row { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 0; }
.req-wait { display: flex; gap: .5rem; align-items: flex-start; background: #fff6e3; border-radius: var(--radius-sm); padding: .7rem .9rem; color: #4d3500; margin: .75rem 0 0; }
.req-history { margin-top: .6rem; }
.req-history summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: .35rem 0; }
.r-del { font-size: .95rem; margin-top: .25rem; display: inline-flex; gap: .3rem; align-items: center; color: var(--muted); }
.sp-body p { margin: 0 0 .6rem; }
.sp-body p:last-child { margin-bottom: 0; }

.container.narrow { max-width: 900px; }
.field input[type="url"] { width: 100%; min-height: 56px; padding: .75rem 1rem; font: 400 1.12rem/1.4 var(--font-body); border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.field input[type="url"]:focus { border-color: var(--brand); box-shadow: var(--focus-ring); outline: none; }
.field input[readonly] { background: var(--sand); color: var(--ink-2); }

/* Spam trap on the contact form: hidden from people, filled in only by robots */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tech-site { margin: .75rem 0 0; }
.tech-site a { color: #fff; font-weight: 700; }

/* =====================================================================
   POLISH AND ACCESSIBILITY PASS (November 2026)
   ===================================================================== */

/* A quiet wave under each page title: the lake ripples from the logo */
.page-hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; pointer-events: none; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18' viewBox='0 0 120 18'%3E%3Cpath d='M0 11c10 0 10-6 20-6s10 6 20 6 10-6 20-6 10 6 20 6 10-6 20-6 10 6 20 6' fill='none' stroke='%23cde4e6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left bottom 4px / 120px 18px;
}

/* Photos show a soft placeholder while they load (and if one ever fails) */
.amenity-mini img, .amenity-card img, .gallery img, .mosaic img, .hero-photo img {
  background: var(--sand-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a89c86' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.09-3.09a2 2 0 0 0-2.82 0L6 21'/%3E%3C/svg%3E") center / 44px no-repeat;
}

/* Home: compact help tiles on phones so titles stay on one line */
@media (max-width: 620px) {
  .tile { gap: .9rem; }
  .tile-icon { width: 50px; height: 50px; border-radius: 15px; }
  .tile-icon .icon { width: 26px; height: 26px; }
  .tile h3 { font-size: 1.25rem; }
}

/* Lakeridge Helper: a smaller button on phones so it doesn't cover the page */
.chat-launcher .cl-short { display: none; }
@media (max-width: 600px) {
  .chat-launcher { min-height: 58px; padding: .4rem 1.1rem .4rem .45rem; gap: .55rem; font-size: 1.1rem; border-width: 2px; }
  .chat-launcher .cl-bubble { width: 44px; height: 44px; }
  .chat-launcher .cl-bubble .icon { width: 23px; height: 23px; }
  .chat-launcher .cl-long, .chat-launcher small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chat-launcher .cl-short { display: inline; }
  /* Footer links: a full finger's height on phones */
  .footer-grid ul a, .footer-grid .link-btn, .footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
}
/* Where it would sit on a button or box, the Helper button slides away until the page is
   scrolled a little (site.js adds .chat-tucked) */
.chat-launcher { transition: transform .2s ease, opacity .2s ease, background-color .15s ease; }
html.chat-tucked .chat-launcher:not(:focus) { transform: translateY(160%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .chat-launcher { transition: none; } }

/* Caps Lock warning under password boxes */
.caps-warn { display: flex; align-items: center; gap: .45rem; margin: .5rem 0 0; font-weight: 700; color: var(--red); }
/* Documents: where the forms are, and jump links to each section */
.doc-forms-note { margin-bottom: 1.25rem; }
.doc-forms-note a { font-weight: 700; }
.doc-jump { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 1.75rem; font-weight: 700; }
.doc-jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.doc-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .95rem; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--brand-dark); text-decoration: none; font-weight: 700; }
.doc-jump a:hover { border-color: var(--brand); }
.doc-group { scroll-margin-top: calc(var(--sticky-h, 80px) + 1rem); }
/* Suggested questions sit above the typing box, outside the conversation */
.chat-log > .chat-suggest:empty { display: none; }
.chat-log:focus-visible { box-shadow: inset 0 0 0 3px var(--brand); }

/* Channel 63: the live feed starts only when the resident asks (no surprise sound) */
.ch63-start {
  width: 100%; height: 100%; border: 0; border-radius: var(--radius); cursor: pointer; color: #fff; text-align: center;
  display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 1rem;
  background: radial-gradient(circle at 50% 40%, #1d4c58, #081a1f 75%); font: 700 1.25rem/1.3 var(--font-body);
}
.ch63-start .ch63-play { width: 84px; height: 84px; color: var(--gold); transition: transform .15s ease; }
.ch63-start:hover .ch63-play { transform: scale(1.06); }
.ch63-start small { display: block; font-weight: 400; font-size: 1rem; color: #d5e4e6; }

/* Keyboard focus and selected states in Windows High Contrast and other forced-color modes */
@media (forced-colors: active) {
  :focus-visible, .field input:focus, .field select:focus, .field textarea:focus, .chat-form input:focus,
  .reply-form textarea:focus, .pp-row input:focus { outline: 3px solid Highlight; outline-offset: 2px; }
  .btn, .chip, .a11y-btn, .tab, .sp-btn, .rsvp button, .sub-tabs a, .type-opt span, .chat-launcher, .stat { border: 2px solid ButtonText; }
  .chip[aria-pressed="true"], .a11y-btn[aria-pressed="true"], .rsvp button[aria-pressed="true"], .sp-btn[aria-pressed="true"],
  .type-opt input:checked + span, .tab[aria-selected="true"], .sub-tabs a[aria-current="page"], .main-nav a[aria-current="page"] {
    forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight;
  }
  .main-nav a[aria-current="page"]::after, .steps li.done { background: Highlight; border-top-color: Highlight; }
  .page-hero::before, .page-hero::after, .hero::before, .hero-media::before, .help-band::after { display: none; }
  .icon { forced-color-adjust: auto; }
}

/* File pickers match the site's buttons instead of the small browser default */
.field input[type="file"] { color: var(--ink-2); font-size: 1.05rem; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font: 700 1.05rem/1.2 var(--font-body); min-height: 46px; padding: .5rem 1.1rem; margin-right: .9rem;
  border-radius: 999px; border: 2px solid var(--brand); background: var(--brand-tint); color: var(--brand-dark); cursor: pointer;
}
.field input[type="file"]:hover::file-selector-button { background: var(--brand-tint-2); }
/* A choice that isn't available right now still reads clearly, with its reason beside it */
.check input:disabled { opacity: .75; }
.check:has(input:disabled) { color: var(--ink-2); cursor: default; }

/* ---------- Language menu (top bar) ---------- */
.lang-menu { position: relative; }
.lang-btn .lang-caret { width: 1.05em; height: 1.05em; transition: transform .15s ease; }
.lang-btn[aria-expanded="true"] { background: #fff; color: var(--brand-deep); border-color: #fff; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60; width: max-content; min-width: 17.5rem; max-width: calc(100vw - 2rem);
  max-height: min(70vh, 34rem); overflow-y: auto; padding: .5rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.lang-list ul { list-style: none; margin: 0; padding: 0; }
.lang-list button {
  width: 100%; min-height: 48px; display: flex; align-items: center; gap: .6rem; padding: .45rem .8rem;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); text-align: left; cursor: pointer;
  font: 700 1.1rem/1.25 var(--font-body);
}
.lang-list button:hover { background: var(--sand); }
.lang-list button[aria-current="true"] { background: var(--brand-tint); color: var(--brand-dark); }
.lang-list button .icon { margin-left: auto; color: var(--brand); }
.lang-list .lm-en { font-weight: 400; font-size: .98rem; color: var(--muted); }
.lang-list .lm-head { margin: .55rem .8rem .25rem; padding-top: .55rem; border-top: 1px solid var(--line); font-size: .92rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lang-list .lm-note { margin: .5rem .8rem .3rem; font-size: .95rem; color: var(--ink-2); max-width: 16rem; }
@media (forced-colors: active) { .lang-list button[aria-current="true"] { border: 2px solid Highlight; } }

/* Larger text or longer words: the menu takes its own row under the logo (all links stay visible) */
.nav-stacked .header-inner { flex-wrap: wrap; row-gap: 0; padding-bottom: .5rem; }
.nav-stacked .main-nav { order: 3; flex-basis: 100%; border-top: 1px solid var(--line); padding-top: .4rem; }
.nav-stacked .main-nav ul { flex-wrap: wrap; gap: .15rem .3rem; margin-left: -.75rem; }
.nav-stacked .side-stack { top: calc(var(--sticky-h, 90px) + 1.5rem); }
/* Small phones: longer language names and taglines wrap instead of pushing the page sideways */
@media (max-width: 640px) {
  .a11y-tools { flex-wrap: wrap; row-gap: .4rem; }
}
@media (max-width: 520px) {
  .header-inner { gap: .6rem; }
  .brand { min-width: 0; gap: .6rem; }
  .brand > span { min-width: 0; }
  .brand-tag { white-space: normal; line-height: 1.15; }
  .nav-collapsed .menu-toggle { padding: .5rem .8rem; flex: none; }
}

/* ---------- High contrast (top bar button) ----------
   Black text on pure white, darker brand colors, strong borders and underlined links.
   Normal colors already meet WCAG AA; this goes further for low vision. */
html.hc {
  --bg: #ffffff; --surface: #ffffff; --sand: #ffffff; --sand-2: #eeeeee;
  --ink: #000000; --ink-2: #111111; --muted: #222222; --line: #4d4d4d; --line-strong: #000000;
  --brand: #003a47; --brand-dark: #00262f; --brand-deep: #00171d; --brand-tint: #e3f0f2; --brand-tint-2: #b9d6da;
  --accent: #6e2a00; --palm: #0f3d20; --red: #7a0000;
  --shadow-sm: none; --shadow: none;
}
html.hc body { background: #fff; }
html.hc .hero, html.hc .page-hero, html.hc .section-alt, html.hc .welcome-band, html.hc .promo-card { background: #fff; }
html.hc .hero-media::before, html.hc .page-hero::after, html.hc .page-hero::before, html.hc .help-band::after { display: none; }
html.hc a:not(.btn):not(.tile):not(.brand):not(.sub-tabs a):not(.mosaic a) { text-decoration: underline; }
html.hc .main-nav a { text-decoration: underline; text-underline-offset: 5px; }
html.hc .card, html.hc .panel, html.hc .callout, html.hc .tile, html.hc .post-card, html.hc .event-card, html.hc .amenity-card,
html.hc .amenity-mini, html.hc .doc-item, html.hc .form-card, html.hc .social-post, html.hc .req-item, html.hc .admin-req,
html.hc .feature-grid li, html.hc .nearby-grid li, html.hc .resource-grid li, html.hc .gate, html.hc .composer { border: 2px solid #000; box-shadow: none; }
html.hc .tile p, html.hc .meta, html.hc .section-head p, html.hc .small-note, html.hc .hint, html.hc .req { color: #222; }
html.hc .tag, html.hc .status, html.hc .access { border: 1px solid currentColor; }
html.hc .contrast-btn[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
html.hc .menu-prefs { background: #000; }
.contrast-btn .icon { width: 1.15em; height: 1.15em; }
@media (max-width: 640px) {
  .contrast-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Lakeridge Helper: voice ---------- */
.chat-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; padding: .5rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.chat-voice { display: inline-flex; align-items: center; gap: .45rem; margin-right: auto; min-width: 0; max-width: 100%; font-weight: 700; color: var(--ink); }
.chat-voice[hidden] { display: none; }
.chat-voice select { min-height: 44px; min-width: 0; max-width: 13rem; padding: .3rem 2rem .3rem .7rem; font: 400 1rem/1.2 var(--font-body); color: var(--ink); background-color: var(--surface);
  border: 2px solid var(--line-strong); border-radius: 12px; }
.chat-voice select:focus-visible { border-color: var(--brand); box-shadow: var(--focus-ring); outline: none; }
.chat-speak { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem .9rem; border-radius: 999px;
  border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 700 1rem/1.2 var(--font-body); cursor: pointer; }
.chat-speak:hover { border-color: var(--brand); }
.chat-speak[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chat-form .chat-mic { padding: .6rem .9rem; }
.chat-mic.listening { background: #b42318; border-color: #b42318; color: #fff; }
.chat-mic.listening .icon { animation: lr-pulse 1.2s ease-in-out infinite; }
@keyframes lr-pulse { 50% { transform: scale(1.18); } }
.chat-status { margin: 0; padding: 0 1rem; background: var(--surface); font-weight: 700; color: var(--brand-dark); font-size: 1.02rem; }
.chat-status:empty { display: none; }
.chat-status:not(:empty) { padding-top: .4rem; }
@media (max-width: 420px) {
  .chat-form { gap: .5rem; padding-inline: .75rem; }
  .chat-form input { padding-inline: .75rem; }
}
@media (forced-colors: active) { .chat-speak[aria-pressed="true"], .chat-mic.listening { forced-color-adjust: none; background: Highlight; color: HighlightText; } }

/* Resident resource pages: small headings inside the page text */
.resource-body .page-sub { font-size: 1.3rem; margin: 1.75rem 0 .35rem; }
.resource-body .page-sub:first-child { margin-top: 0; }
.resource-body p { margin: 0 0 .9rem; }
.resource-body a { overflow-wrap: anywhere; }

/* Today's weather on the home page */
.hero-weather { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1.25rem; padding: .85rem 1.1rem; max-width: 34rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm, none); }
.hero-weather[hidden] { display: none; }
.hero-weather .wx-icon { color: var(--brand); display: grid; place-items: center; }
.hero-weather .wx-icon .icon { width: 2.2rem; height: 2.2rem; }
.hero-weather .wx-body { flex: 1 1 14rem; min-width: 0; }
.hero-weather p { margin: 0; }
.hero-weather .wx-now { font-size: 1.15rem; }
.hero-weather .wx-now strong { font-size: 1.5rem; margin-right: .25rem; }
.hero-weather .wx-next { color: var(--muted); font-size: 1rem; }
.hero-weather .wx-more { font-weight: 700; white-space: nowrap; }

/* Weather alert banner (hurricane, tropical storm, flood, heat...) */
.wx-alert { background: #fff4d6; border-bottom: 3px solid #b45309; color: #3b2a05; }
.wx-alert-inner { display: flex; gap: 1rem; align-items: flex-start; padding-top: 1rem; padding-bottom: 1rem; }
.wx-alert-icon { color: #b45309; flex: none; }
.wx-alert h2 { font-size: 1.3rem; margin: 0 0 .25rem; }
.wx-alert ul { margin: 0 0 .4rem; padding-left: 1.2rem; font-size: 1.1rem; }
.wx-alert p { margin: 0; }
.wx-alert a { color: #3b2a05; font-weight: 700; }
@media print { .wx-alert, .hero-weather { display: none !important; } }

/* What a request type needs (resident request form) */
.form-guide { display: flex; gap: .6rem; align-items: flex-start; margin: -.25rem 0 1.25rem; padding: .8rem 1rem; background: var(--brand-tint);
  border-left: 4px solid var(--brand); border-radius: 8px; font-size: 1.02rem; }
.form-guide .icon { flex: none; margin-top: .2rem; color: var(--brand); }
.form-guide a { font-weight: 700; }
/* Home: today's (or tomorrow's) weekly activities */
.today-weekly { margin: 0 0 1.25rem; padding: .9rem 1.1rem; background: var(--brand-tint); border-radius: var(--radius); }
.today-weekly[hidden] { display: none; }
.today-weekly h3 { display: flex; align-items: center; gap: .45rem; margin: 0 0 .4rem; font-size: 1.2rem; }
.today-weekly h3 .icon { color: var(--brand); }
.today-weekly ul { margin: 0 0 .5rem; padding-left: 1.2rem; }
.today-weekly li { margin: .15rem 0; }
/* Long words (Russian, Greek, German-style compounds) wrap instead of running off small phones */
h1, h2, h3, .me-text, .mc-label, .tile h3 { overflow-wrap: break-word; hyphens: auto; }

/* "On this page" list for long resource pages */
.jump-list { margin: 0 0 2rem; padding: 1rem 1.25rem; background: var(--brand-tint); border-radius: var(--radius); }
.jump-list h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.jump-list ul { margin: 0; padding: 0; list-style: none; columns: 2 14rem; column-gap: 2rem; }
.jump-list li { margin: .2rem 0; break-inside: avoid; }
.resource-body h2.page-sub { scroll-margin-top: calc(var(--sticky-h, 80px) + 1rem); }
@media print { .jump-list { display: none; } }

/* High contrast (white background, black text) for the newer boxes */
html.hc .wx-alert { background: #fff; color: #000; border-bottom: 4px solid #000; }
html.hc .wx-alert a, html.hc .wx-alert-icon { color: #000; }
html.hc .form-guide, html.hc .today-weekly, html.hc .jump-list, html.hc .hero-weather { background: #fff; color: #000; border: 2px solid #000; }
html.hc .form-guide .icon, html.hc .today-weekly h3 .icon, html.hc .hero-weather .wx-icon { color: #000; }

/* Important phone numbers page */
.numbers-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.numbers-911 { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .8rem 1.1rem; background: #fdecea; border-left: 5px solid var(--red, #a12a1f); border-radius: 8px; font-size: 1.15rem; }
.numbers-911 .icon { color: var(--red, #a12a1f); flex: none; }
.numbers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1.5rem 2.5rem; align-items: start; }
.numbers-group h2 { font-size: 1.4rem; margin: 0 0 .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--line); }
.numbers-list { list-style: none; margin: 0; padding: 0; }
.numbers-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.nl-label { min-width: 0; }
.nl-note { display: block; color: var(--muted); font-size: .95rem; }
.nl-num { font-weight: 700; font-size: 1.15rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
a.nl-num { min-height: 44px; display: inline-flex; align-items: center; }
html.hc .numbers-911 { background: #fff; border: 2px solid #000; border-left-width: 6px; }
html.hc .numbers-911 .icon { color: #000; }
@media print {
  .numbers-grid { display: block; columns: 2; column-gap: 1.5rem; font-size: 10.5pt; }
  .numbers-group { break-inside: avoid; margin-bottom: .8rem; }
  .numbers-group h2 { font-size: 12pt; }
  .numbers-list li { padding: .2rem 0; }
  .nl-num { font-size: 10.5pt; color: #000; text-decoration: none; }
  .numbers-911 { background: none; border: 2px solid #000; }
  .numbers-top .btn, #numbers-app .small-note .icon { display: none; }
}

/* Notice choices (My Lakeridge, Board's announcement form) and the password box */
.pf-notices, .an-send { border: 0; padding: 0; margin: 1rem 0 0; }
.pf-notices .check .icon, .an-send .check .icon { color: var(--brand); flex: none; }
.pf-notices .hint { margin: .3rem 0 0; }
.an-count { color: var(--muted); font-size: 1rem; }
.pf-password { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line, #e3dccd); }
.pf-password h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .35rem; }
.pf-password p { margin: 0 0 .8rem; color: var(--muted); }

/* Visitors: sign-in screen note and the "More for residents" box on Home */
.gate-call { margin: 1.25rem 0 0; color: var(--muted); }
.members-promo { display: flex; gap: 1.25rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.members-promo .gate-icon { flex: none; margin: 0; }
.members-promo h2 { margin: 0 0 .75rem; }
.members-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem 1.25rem; }
.members-list li { display: flex; gap: .55rem; align-items: center; font-size: 1.1rem; }
.members-list .icon { color: var(--brand); flex: none; }
@media (max-width: 599.98px) { .members-promo { flex-direction: column; } }

/* Language menu: "Other languages" opens the longer list; Google Translate is the last resort */
.lang-list .lm-more, .lang-list .lm-google { margin-top: .4rem; border-top: 1px solid var(--line); border-radius: 0; padding-top: .7rem; color: var(--brand-dark); }
.lang-list .lm-more .lang-caret { margin-left: auto; }
.lang-list .lm-more[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-list .lm-google { font-weight: 600; font-size: 1.02rem; }
.lang-list .lm-google .icon { margin-left: 0; }
.lm-gt { padding: 0 .8rem .5rem; }
.lm-gt .lm-note { margin: .3rem 0 .5rem; }
.lm-gt select, .goog-te-combo { min-height: 48px; width: 100%; font-size: 1.05rem; padding: .3rem .5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.goog-te-gadget { font-size: .85rem !important; color: var(--muted) !important; }
/* Google adds a bar across the top of translated pages; the language menu already does its job */
iframe.goog-te-banner-frame, .goog-te-banner-frame, iframe.skiptranslate:not(.goog-te-menu-frame) { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt, .goog-tooltip, .goog-text-highlight { display: none !important; background: none !important; box-shadow: none !important; }

/* Right-to-left languages (Arabic, Hebrew) */
[dir="rtl"] .lang-list { right: auto; left: 0; }
[dir="rtl"] .lang-list button { text-align: right; }
[dir="rtl"] .lang-list button .icon:last-child { margin-left: 0; margin-right: auto; }
[dir="rtl"] .icon.go, [dir="rtl"] .link-arrow .icon { transform: scaleX(-1); }
.pf-notices .check, .an-send .check { display: flex; font-weight: 400; font-size: 1.1rem; margin-bottom: 0; }
.setpw-cancel { margin: 1rem 0 0; text-align: center; }
.setpw-cancel a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
/* "Confidential" notes next to phone numbers and account details */
.confidential-note { display: flex; gap: .55rem; align-items: flex-start; margin: .75rem 0 1rem; padding: .7rem .95rem; border-radius: var(--radius-sm);
  background: var(--palm-tint); color: var(--ink); border-left: 4px solid var(--palm); font-size: 1.05rem; }
.confidential-note .icon { flex: none; margin-top: .2rem; color: var(--palm); }
.confidential-note strong { color: var(--palm); }
.phone-prompt .confidential-note { margin: .6rem 0 0; }

/* Voting Registration (My Lakeridge #vote, Board Dashboard > Voting) */
#vote .section-head h2 { display: flex; align-items: center; gap: .5rem; }
#vote .section-head h2 .icon { color: var(--brand); width: 1.6rem; height: 1.6rem; }
.vote-grid { align-items: start; }
.vote-form h3, .vote-closed h3 { margin-top: 0; }
.vote-details { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0 0 1rem; padding: 1rem 1.15rem;
  background: var(--sand); border-radius: var(--radius); font-size: 1.15rem; }
.vote-details dt { font-weight: 700; color: var(--ink-2); }
.vote-details dd { margin: 0; overflow-wrap: anywhere; }
.vote-ack { margin: 1.25rem 0 1.1rem; }
.vote-ack .check { font-size: 1.2rem; font-weight: 700; align-items: flex-start; }
.vote-ack input[type="checkbox"] { width: 1.6rem; height: 1.6rem; flex: none; margin-top: .1rem; }
.vote-done { margin-top: 0; }
.vote-done h3 { color: #173f26; font-size: 1.45rem; margin: 0 0 .6rem; }
.vote-done p + p { margin-top: .45rem; }
.vote-deadline { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1rem; padding: 1rem 1.15rem; border-radius: var(--radius);
  background: var(--palm-tint); border: 2px solid #9cc7a6; color: #173f26; }
.vote-deadline .icon { flex: none; width: 1.6rem; height: 1.6rem; margin-top: .1rem; }
.vote-deadline p { margin: 0; }
.vote-left { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; margin-top: .25rem !important; }
.vote-steps { margin: 0; padding-left: 1.4rem; display: grid; gap: .55rem; }
.vote-faq { margin: 0; }
.vote-faq dt { font-weight: 700; margin-top: .85rem; }
.vote-faq dt:first-child { margin-top: 0; }
.vote-faq dd { margin: .2rem 0 0; color: var(--ink-2); }
.vote-help .callout h3 { margin-top: 0; }
.vote-help .callout p { margin: 0 0 .35rem; overflow-wrap: anywhere; }
.stat-grid.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) { .stat-grid.stat-grid-3 { grid-template-columns: 1fr; } }
div.stat { cursor: default; }
.stat-n.stat-n-sm { font-size: 1.7rem; }
#panel-voting .search-field { max-width: 26rem; margin-bottom: 1rem; }
#panel-voting .small-note { margin: 0 0 1rem; }
html.hc .vote-details, html.hc .vote-deadline { background: #fff; color: #000; border: 2px solid #000; }
