/* ============================================================================
   Krishna Tower AOA — stylesheet v2
   Theme: "Official Society" — slate blue primary, warm neutral paper
   background, gold + maroon accents (echoing Indian official letterheads/
   seals). Restrained, single-accent-forward design in the spirit of
   ux4g.gov.in and gov.uk — generous whitespace, high-contrast text, no
   decoration for its own sake. All contrast pairs verified WCAG AA.
   ============================================================================ */

:root {
  /* Neutrals */
  --ink: #1e2a38;          /* body text */
  --muted: #5f6b7a;        /* secondary text */
  --line: #dfe3e8;         /* borders/dividers */
  --bg: #faf8f4;           /* warm neutral page background (not stark white) */
  --surface: #ffffff;      /* cards, panels */

  /* Brand — slate blue */
  --brand: #2c4a6e;
  --brand-ink: #1c3350;
  --accent-bg: #eef2f6;    /* soft blue-tinted panel */

  /* Gold accent — badges, pinned items, "official seal" highlights */
  --gold: #b8863f;
  --gold-ink: #8a6529;
  --gold-bg: #fbf3e3;

  /* Maroon accent — headings on documents, danger actions */
  --maroon: #6e2430;
  --maroon-ink: #6e2430;
  --maroon-bg: #f7ecee;

  /* Semantic (kept distinct from brand accents on purpose) */
  --ok: #2f6d3a;
  --ok-bg: #e6f4ea;
  --warn-bg: #fff3d6;
  --warn-ink: #7a5a10;

  --maxw: 960px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--brand-ink); }
.muted { color: var(--muted); }
code { background: var(--accent-bg); padding: 1px 5px; border-radius: 4px; font-size: .9em; color: var(--brand-ink); }

/* ---- Header ---- */
.site-header { border-bottom: 3px solid var(--brand); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.2rem; color: var(--brand-ink); }
.brand-tag { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-nav a { color: var(--ink); font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a.active, .site-nav a:hover { color: var(--brand); border-bottom-color: var(--gold); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--brand-ink); }

/* ---- Hero ---- */
.hero { padding: 48px 0 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--maroon-ink); font-weight: 700; margin: 0 0 6px; }
.hero h1 { font-size: 2.2rem; margin: 0 0 8px; color: var(--brand-ink); }
.hero h1 .hi { color: var(--muted); font-weight: 600; font-size: 1.6rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero-cta { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: 600; border: 1px solid var(--brand); }
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--accent-bg); color: var(--brand-ink); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { padding: 6px 14px; font-size: .9rem; border-radius: 5px; }
.btn-danger { border-color: var(--maroon); color: var(--maroon); background: #fff; }
.btn-danger:hover { background: var(--maroon); color: #fff; }
.hi-sub { color: var(--muted); font-size: .85rem; margin: -4px 0 8px; }

/* ---- Quick facts strip ---- */
.quickfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 8px; }
.quickfacts div { text-align: center; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 6px; padding: 14px 8px; background: var(--surface); }
.quickfacts strong { display: block; font-size: 1.4rem; color: var(--brand-ink); }
.quickfacts span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; }
.card { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: var(--surface); color: var(--ink); transition: box-shadow .15s, transform .15s, border-color .15s; }
.card:hover { box-shadow: 0 6px 18px rgba(28,51,80,.10); transform: translateY(-2px); border-color: var(--brand); text-decoration: none; }
.card h3 { margin: 0 0 6px; color: var(--brand-ink); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-cta { display: inline-block; margin-top: 10px; color: var(--brand); font-weight: 600; }
.card.static { cursor: default; }
.card.static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.badge-soon { display: inline-block; background: var(--line); color: var(--muted); font-size: .78rem; padding: 6px 12px; border-radius: 999px; }

/* ---- Sections ---- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 12px; }
.section-head h2 { margin: 0; color: var(--brand-ink); }

/* ---- Notices ---- */
.notices { list-style: none; padding: 0; margin: 0; }
.notices li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.notices li a { font-weight: 600; font-size: 1.05rem; color: var(--brand-ink); }
.notices .date { color: var(--muted); font-size: .85rem; margin-left: 10px; }
.notices p { margin: 6px 0 0; }
.pin { background: var(--gold-bg); color: var(--gold-ink); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; margin-right: 8px; font-weight: 700; border: 1px solid var(--gold); }

/* ---- Downloads ---- */
.downloads { list-style: none; padding: 0; margin: 20px 0; }
.downloads li { padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ---- Prose / documents (About, Bye-laws, FAQ, etc.) ---- */
.prose { max-width: 78ch; padding: 24px 0 8px; }
.prose.wide { max-width: 1000px; }
.prose h1 { margin-top: 8px; color: var(--maroon-ink); }
.prose h2 { margin-top: 28px; color: var(--brand-ink); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.prose h3 { color: var(--brand-ink); }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose blockquote { border-left: 3px solid var(--gold); background: var(--gold-bg); margin: 16px 0; padding: 6px 16px; color: var(--gold-ink); }
.prose .date { color: var(--muted); font-size: .9rem; margin-top: -6px; }
.prose .back { margin-bottom: 16px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose thead th { background: var(--accent-bg); color: var(--brand-ink); }
.fallback-note { background: var(--warn-bg); border: 1px solid #ecd18f; color: var(--warn-ink); padding: 10px 14px; border-radius: 6px; font-size: .9rem; margin: 0 0 18px; }

/* Download PDF button on document pages */
.page-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title-row h1 { margin: 0; }
.btn-pdf { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--brand); border: 1.5px solid var(--brand); padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.btn-pdf:hover { background: var(--brand); color: #fff; text-decoration: none; }
.pdf-icon { font-size: 1rem; }

/* ---- Language switch + accessibility ---- */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .82rem; color: var(--muted); }
.lang-switch:hover { text-decoration: none; border-color: var(--brand); }
.lang-switch .on { color: var(--brand); font-weight: 700; }
.lang-switch .sep { color: var(--line); }
body.lang-hi { line-height: 1.75; }
body.lang-hi .brand-tag { text-transform: none; letter-spacing: 0; }

.header-tools { display: inline-flex; align-items: center; gap: 10px; }
.textsize-ctl { display: inline-flex; align-items: baseline; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.textsize-ctl a { color: var(--muted); line-height: 1; padding: 2px; }
.textsize-ctl a.big { font-size: 1.1em; }
.textsize-ctl a.bigger { font-size: 1.3em; }
.textsize-ctl a.on { color: var(--brand); font-weight: 700; }
.textsize-ctl a:hover { text-decoration: none; color: var(--brand); }
body.text-large { font-size: 1.15rem; }
body.text-xl { font-size: 1.32rem; }

/* ---- Member login chip ---- */
.member-chip { display: inline-block; border: 1px solid var(--brand); color: var(--brand); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.member-chip:hover { background: var(--accent-bg); text-decoration: none; }
.member-login { max-width: 460px; margin: 0 auto; }

/* ---- Forms (native RSVP/Feedback/KYC/reports/notices/meetings) ---- */
.form-wrap { max-width: 640px; }
.kt-form { margin-top: 8px; }
.kt-field { margin: 0 0 20px; }
.kt-label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.kt-hint { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.kt-form input[type=text], .kt-form input[type=tel], .kt-form input[type=email],
.kt-form input[type=number], .kt-form input[type=date], .kt-form textarea,
.kt-form select, .kt-form input[type=file],
.comment-form input, .comment-form textarea, .login-card input, .inline-form input {
  width: 100%; padding: 12px 14px; font: inherit; border: 1px solid #c7ccd1;
  border-radius: 6px; background: #fff; color: var(--ink);
}
.kt-form input[type=file] { border: 1.5px dashed #c7ccd1; background: var(--accent-bg); font-size: .95rem; }
.kt-form input:focus, .kt-form textarea:focus, .kt-form select:focus, .comment-form input:focus,
.comment-form textarea:focus, .login-card input:focus, .inline-form input:focus {
  outline: 3px solid rgba(44,74,110,.25); border-color: var(--brand);
}
.kt-radios { display: flex; flex-direction: column; gap: 8px; }
.kt-radio { display: flex; align-items: center; gap: 10px; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.kt-radio input { width: 20px; height: 20px; }
.kt-radio:hover { background: var(--accent-bg); }
.kt-field.has-error input, .kt-field.has-error textarea { border-color: var(--maroon); background: var(--maroon-bg); }
.kt-field.has-error .kt-label { color: var(--maroon); }
.req { color: var(--maroon); }
.form-errors { background: var(--maroon-bg); border: 1px solid #e2b9bf; color: var(--maroon-ink); padding: 10px 14px; border-radius: 6px; margin: 0 0 18px; }
.confidential-note { background: var(--ok-bg); border: 1px solid #cfe6d2; color: var(--ok); padding: 10px 14px; border-radius: 6px; margin: 0 0 18px; font-size: .95rem; }

/* Thank-you page */
.thanks { text-align: center; max-width: 560px; margin: 0 auto; }
.thanks-check { width: 72px; height: 72px; line-height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 2.2rem; margin: 20px auto; }

/* ---- Comments ---- */
.comments { max-width: 720px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.comments h2 { color: var(--brand-ink); }
.comment-list { list-style: none; padding: 0; margin: 18px 0; }
.comment-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: .92rem; margin-bottom: 4px; }
.comment-date { margin-left: 6px; }
.comment-form { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.comment-form .field-row { display: flex; gap: 12px; }
.comment-form .field-row label { flex: 1; }
.comment-form label span { display: block; font-weight: 600; margin-bottom: 4px; font-size: .92rem; }
.comment-form button { align-self: flex-start; }
.comment-flash { display: none; padding: 10px 14px; border-radius: 6px; margin: 12px 0; }
.comment-flash.ok { background: var(--ok-bg); border: 1px solid #cfe6d2; color: var(--ok); }
.comment-flash.err { background: var(--maroon-bg); border: 1px solid #e2b9bf; color: var(--maroon-ink); }
#comment-thanks:target, #comment-error:target { display: block; }

/* ---- Login (admin + member) ---- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--accent-bg); padding: 20px; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 8px; padding: 32px; width: 100%; max-width: 380px; box-shadow: 0 8px 30px rgba(28,51,80,.08); }
.login-card h1 { margin: 0; color: var(--brand-ink); }
.login-card .kt-label { margin-top: 16px; }
.login-card .btn { width: 100%; margin-top: 20px; }
.login-back { margin-top: 18px; text-align: center; }

/* ---- Admin ---- */
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 20px 0; }
.admin-stats .stat { border: 1px solid var(--line); border-radius: 6px; padding: 16px; text-align: center; background: var(--accent-bg); }
.admin-stats .stat strong { display: block; font-size: 1.8rem; color: var(--brand-ink); }
.admin-stats .stat span { font-size: .82rem; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.filter-tabs a { margin-right: 14px; color: var(--muted); }
.filter-tabs a.on { color: var(--brand); font-weight: 700; border-bottom: 2px solid var(--gold); }
.mod-list { list-style: none; padding: 0; }
.mod-list li { border: 1px solid var(--line); border-radius: 6px; padding: 14px; margin-bottom: 12px; background: var(--surface); }
.mod-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.mod-actions form { margin: 0; }
.status-pill { font-size: .72rem; padding: 2px 8px; border-radius: 999px; margin-left: 6px; font-weight: 600; }
.status-pending { background: var(--gold-bg); color: var(--gold-ink); }
.status-approved { background: var(--ok-bg); color: var(--ok); }
.status-rejected { background: var(--maroon-bg); color: var(--maroon-ink); }
.logout-form { margin-top: 30px; }
.admin-forms-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0 8px; }
.inline-form { flex: 1; min-width: 260px; border: 1px solid var(--line); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.inline-form button { align-self: flex-start; }
.floor-unit-form .field-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.floor-unit-form .field-row label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .88rem; flex: 1; min-width: 110px; }
.floor-unit-form input { padding: 8px 10px; border: 1px solid #c7ccd1; border-radius: 5px; font: inherit; }
.quorum-box { border-radius: 6px; padding: 14px 16px; margin: 16px 0; font-size: .98rem; }
.quorum-box.ok { background: var(--ok-bg); border: 1px solid #cfe6d2; color: var(--ok); }
.quorum-box.warn { background: var(--warn-bg); border: 1px solid #ecd18f; color: var(--warn-ink); }

/* ---- Community reports + meetings ---- */
.reported-by-chip { display: inline-block; background: var(--accent-bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; font-weight: 600; color: var(--brand-ink); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 20px 0; }
.report-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.report-photo img { width: 100%; height: 160px; object-fit: cover; display: block; }
.report-body { padding: 14px; }
.report-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tag { font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; background: var(--accent-bg); color: var(--brand-ink); font-weight: 600; }
.tag-loc { background: var(--gold-bg); color: var(--gold-ink); }
.report-date { font-size: 0.82rem; margin-top: 8px; }
.meeting-thumb img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 20px 0; }
.photo-grid-item img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; display: block; }
.photo-grid-item:hover img { opacity: 0.85; }
.issue-photos { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.issue-photos img { width: 90px; height: 90px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; background: var(--brand-ink); color: #dbe4ee; }
.site-footer strong { color: #fff; }
.site-footer a { color: #cfe0f0; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #a8bcd0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 0; font-size: .9rem; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 8px; padding-top: 10px; }
  body.nav-open .site-nav { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .cards { grid-template-columns: 1fr; }
  .comment-form .field-row { flex-direction: column; }
  .admin-stats { grid-template-columns: 1fr; }
  .header-tools { width: 100%; justify-content: space-between; padding-top: 8px; }
  .member-chip { order: -1; }
  .report-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-title-row { flex-direction: column; align-items: flex-start; }
}

/* ---- Homepage v2: big action tiles (ux4g/gov.uk-style simplified entry) ---- */
.hero-compact { padding: 36px 0 8px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem;
  color: var(--maroon-ink, var(--maroon, #6e2430)); font-weight: 700; margin: 0 0 10px; text-decoration: none; }
.eyebrow:hover { text-decoration: underline; }
.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0 8px; }
.action-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--surface, #fff); color: var(--ink, #1e2a38);
  border: 1px solid var(--line, #dfe3e8); border-top: 4px solid var(--brand, #2c4a6e);
  border-radius: 8px; padding: 26px 24px; text-decoration: none;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.action-tile:hover {
  box-shadow: 0 10px 26px rgba(28,51,80,.14); transform: translateY(-3px);
  border-color: var(--brand, #2c4a6e); text-decoration: none;
}
.action-icon { font-size: 2.1rem; line-height: 1; margin-bottom: 4px; }
.action-title { font-size: 1.2rem; font-weight: 700; color: var(--brand-ink, #1c3350); }
.action-tile .hi-sub { margin: 2px 0 0; font-size: .88rem; color: var(--muted, #5f6b7a); }

.quickfacts-wrap { margin-top: 40px; }
.quickfacts-heading { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted, #5f6b7a); margin: 0 0 10px; font-weight: 700; }

@media (max-width: 640px) {
  .action-grid { grid-template-columns: 1fr; }
}

/* ---- Bye-laws chapter navigation + inline "suggest an edit" widget ---- */
.chapter-toc { background: var(--accent-bg, #eef2f6); border: 1px solid var(--line, #dfe3e8); border-radius: 8px; padding: 16px 20px; margin: 18px 0 28px; }
.chapter-toc strong { display: block; margin-bottom: 8px; color: var(--brand-ink, #1c3350); font-size: .95rem; }
.chapter-toc ol { columns: 2; column-gap: 24px; margin: 0; padding-left: 20px; }
.chapter-toc li { margin: 3px 0; break-inside: avoid; font-size: .92rem; }
.chapter-toc a { color: var(--brand, #2c4a6e); }
.section-feedback { margin: 14px 0 34px; }
.section-feedback-toggle { background: none; border: 1px dashed var(--gold, #b8863f); color: var(--gold-ink, #8a6529); padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; cursor: pointer; }
.section-feedback-toggle:hover { background: var(--gold-bg, #fbf3e3); }
.section-feedback-form { margin-top: 12px; padding: 16px; border: 1px solid var(--line, #dfe3e8); border-radius: 8px; background: var(--surface, #fff); }
@media (max-width: 600px) {
  .chapter-toc ol { columns: 1; }
}

/* ---- Homepage v3: hero with photo + featured Bye-laws + icon-circle tiles ---- */
.hero-banner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: 40px 0 8px; }
.hero-banner.no-image { grid-template-columns: 1fr; }
.hero-banner.no-image .hero-banner-image { display: none; }
.hero-banner-image img { width: 100%; height: 280px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line, #dfe3e8); box-shadow: 0 8px 24px rgba(28,51,80,.10); }
.hero-banner-text .eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--maroon-ink, var(--maroon, #6e2430)); font-weight: 700; margin: 0 0 10px; text-decoration: none; }
.hero-banner-text .eyebrow:hover { text-decoration: underline; }
.hero-banner-text h1 { margin: 0 0 10px; }
.hero-banner-text .lead { margin: 0 0 18px; }

.featured-doc { margin: 30px 0; }
.featured-doc-card {
  display: flex; align-items: center; gap: 22px;
  background: var(--surface, #fff); border: 2px solid var(--gold, #b8863f);
  border-radius: 10px; padding: 26px 30px; text-decoration: none; color: var(--ink, #1e2a38);
  box-shadow: 0 6px 20px rgba(184,134,63,.10);
  transition: box-shadow .15s, transform .15s;
}
.featured-doc-card:hover { box-shadow: 0 12px 28px rgba(184,134,63,.18); transform: translateY(-2px); text-decoration: none; }
.featured-doc-icon { font-size: 2.6rem; line-height: 1; flex-shrink: 0; }
.featured-doc-kicker { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 700; color: var(--gold-ink, #8a6529); margin-bottom: 4px; }
.featured-doc-title { display: block; font-size: 1.35rem; font-weight: 700; color: var(--brand-ink, #1c3350); }
.featured-doc-desc { display: block; color: var(--muted, #5f6b7a); margin: 4px 0 8px; font-size: .95rem; }
.featured-doc-link { display: inline-block; color: var(--brand, #2c4a6e); font-weight: 700; font-size: .92rem; }

.action-grid-3 { grid-template-columns: repeat(3, 1fr); }
.action-icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-bg, #eef2f6); font-size: 1.6rem; margin-bottom: 6px;
}

@media (max-width: 780px) {
  .hero-banner { grid-template-columns: 1fr; }
  .hero-banner-image { order: -1; }
  .hero-banner-image img { height: 200px; }
  .featured-doc-card { flex-direction: column; text-align: center; }
  .action-grid-3 { grid-template-columns: 1fr; }
}

/* ---- RSVP context box (explains which meeting, why, and links to the notice) ---- */
.rsvp-context { background: var(--accent-bg, #eef2f6); border: 1px solid var(--line, #dfe3e8); border-left: 4px solid var(--brand, #2c4a6e); border-radius: 6px; padding: 16px 20px; margin: 0 0 22px; }
.rsvp-context strong { display: block; color: var(--brand-ink, #1c3350); margin-bottom: 6px; }
.rsvp-context p { margin: 6px 0; font-size: .95rem; }

/* ---- Custom SVG icons (replacing emoji) ---- */
.action-icon-circle svg, .featured-doc-icon svg { display: block; }
.action-icon-circle { color: var(--brand-ink, #1c3350); }
.featured-doc-icon { color: var(--gold-ink, #8a6529); }

/* ---- Bye-laws paginated reader ---- */
.byelaws-reader { max-width: 78ch; }
.chapter-nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.chapter-indicator { font-weight: 600; font-size: .92rem; }
.chapter-nav-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chapter-jump { padding: 8px 10px; border: 1px solid var(--line, #dfe3e8); border-radius: 6px; font-size: .88rem; background: var(--surface, #fff); max-width: 260px; }
.chapter-progress { height: 5px; background: var(--line, #dfe3e8); border-radius: 999px; overflow: hidden; margin: 10px 0 22px; }
.chapter-progress-bar { height: 100%; background: var(--gold, #b8863f); border-radius: 999px; transition: width .2s; }
.chapter-pager { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 10px; padding-top: 20px; border-top: 1px solid var(--line, #dfe3e8); }
.chapter-comments { margin-top: 20px; }
.chapter-comments-sub { font-weight: 400; font-size: .85em; }
@media (max-width: 600px) {
  .chapter-nav-bar { flex-direction: column; align-items: flex-start; }
  .chapter-jump { max-width: 100%; width: 100%; }
  .chapter-pager { flex-wrap: wrap; gap: 10px; }
}

/* ---- Footer: slight left-column nudge + proposed-name contrast ---- */
.site-footer .footer-inner > div:first-child { padding-left: 10px; }
.proposed-name-highlight { color: #e0b050; font-weight: 700; }

/* ---- Custom SVG icons (replacing emoji) ---- */
.action-icon-circle svg, .featured-doc-icon svg { display: block; }
.action-icon-circle { color: var(--brand-ink, #1c3350); }
.featured-doc-icon { color: var(--gold-ink, #8a6529); }

/* ---- Custom SVG icons (replacing emoji) ---- */
.action-icon-circle svg, .featured-doc-icon svg { display: block; }
.action-icon-circle { color: var(--brand-ink, #1c3350); }
.featured-doc-icon { color: var(--gold-ink, #8a6529); }

/* ---- Scroll-reveal + counter animations ---- */
/* .reveal-init is added by JS only — if JS never runs, content stays fully
   visible by default (progressive enhancement, no FOUC risk). */
.reveal-init { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-init { opacity: 1 !important; transform: none !important; transition: none !important; }
}
