/* Mercer County WV Landlords Association — Design System
   Modeled on enterprise trade associations (TAA / AAGD).
   Single shared stylesheet for all pages. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #10243e;
  --navy-2: #17324f;
  --blue: #1e6fb8;
  --blue-dark: #14568f;
  --gold: #b88b24;
  --gold-dark: #6f5417;
  --green: #2e7d5b;
  --red: #b03a3a;
  --ink: #1b2430;
  --body: #384252;
  --muted: #5b6675; /* darkened from #6a7686 — measured too close to the 4.5:1 AA threshold on white/light backgrounds */
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-softer: #eef2f7;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16,36,62,.06), 0 2px 6px rgba(16,36,62,.06);
  --shadow-md: 0 4px 14px rgba(16,36,62,.10);
  --shadow-lg: 0 18px 48px rgba(16,36,62,.18);
  --maxw: 1200px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section.tight { padding: 2.5rem 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); color: #dbe4f0; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--gold-dark); margin-bottom: .5rem; }
.bg-navy .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.4rem; border-radius: 999px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: #241c00; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-danger { background: #b03a3a; color: #fff; border-color: #b03a3a; }
.btn-danger:hover { background: #8f2b2b; border-color: #8f2b2b; color: #fff; }
.btn-danger[disabled] { background: #d8b3b3; border-color: #d8b3b3; color: #fff; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--blue-dark); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }

/* ---------- Header / Nav ---------- */
.topbar { background: var(--navy); color: #b9c7db; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 1.25rem; }
.topbar a { color: #cdd9ea; }
.topbar-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  box-shadow: inset 0 0 0 2px rgba(200,162,75,.5);
}
.brand .name { line-height: 1.05; }
.brand .name strong { display: block; color: var(--ink); font-size: 1.05rem; }
.brand .name span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: .6rem .8rem; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 8px;
}
.nav-links > li > a:hover { background: var(--bg-soft); color: var(--blue-dark); text-decoration: none; }
.nav-links > li.has-menu > a::after { content: "▾"; font-size: .7rem; margin-left: .3rem; color: var(--muted); }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-radius: 10px;
  padding: .4rem; list-style: none; margin: .3rem 0 0; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all .15s ease;
}
.nav-links > li.has-menu:hover .submenu,
.nav-links > li.has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: .55rem .7rem; border-radius: 6px; color: var(--ink); font-size: .92rem; }
.submenu a:hover { background: var(--bg-soft); color: var(--blue-dark); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; cursor: pointer; font-size: 1.2rem; }
/* Login/Join are duplicated as items inside the mobile hamburger menu so they
   are never fully unreachable on small screens (the always-visible .nav-cta
   buttons are hidden below 800px to avoid a crowded header). Hidden on
   desktop since the .nav-cta buttons already cover that case there. */
.nav-links .mobile-cta { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue-dark) 100%); color: #e8eef7; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(200,162,75,.25), transparent 70%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero h1 { color: #fff; }
.hero p { color: #c9d6e8; font-size: 1.15rem; }
.hero .btnrow { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 1.5rem; backdrop-filter: blur(6px); }
.hero-card h3 { color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1rem; }
.hero-stats .stat { text-align: center; }
.hero-stats .num { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.hero-stats .lbl { font-size: .78rem; color: #b9c7db; text-transform: uppercase; letter-spacing: .05em; }

.page-hero { background: linear-gradient(120deg, var(--navy), var(--blue-dark)); color: #e8eef7; padding: 3rem 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c9d6e8; max-width: 64ch; }
.breadcrumb { font-size: .85rem; color: #a9bad2; margin-bottom: .6rem; }
.breadcrumb a { color: #cdd9ea; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: var(--bg-softer); margin-bottom: 1rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: .75rem; }
.card .arrow { font-weight: 700; color: var(--blue); }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: .5rem 0 .5rem 1.9rem; position: relative; border-bottom: 1px solid var(--line); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: .5rem; color: var(--green); font-weight: 800; }
.feature-list li:last-child { border-bottom: none; }

/* ---------- Pricing / Membership tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; align-items: stretch; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2rem 1.6rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.tier.featured { border: 2px solid var(--gold); box-shadow: var(--shadow-md); position: relative; }
.tier.featured::before { content: "Most Popular"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #241c00; font-size: .75rem; font-weight: 700; padding: .3rem .9rem; border-radius: 999px; }
.tier h3 { font-size: 1.3rem; }
.tier .price { font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: .3rem 0; }
.tier .price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; flex: 1; }
.tier ul li { padding: .4rem 0 .4rem 1.6rem; position: relative; font-size: .95rem; }
.tier ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.data thead th { background: var(--navy); color: #fff; font-weight: 600; }
table.data tbody tr:hover { background: var(--bg-soft); }

/* ---------- Badges / tags ---------- */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.badge-blue { background: #e3eefb; color: var(--blue-dark); }
.badge-gold { background: #f6edd6; color: var(--gold-dark); }
.badge-green { background: #e0f0e8; color: var(--green); }
.badge-red { background: #f6e2e2; color: var(--red); }

/* ---------- Events ---------- */
.event { display: grid; grid-template-columns: 88px 1fr auto; gap: 1.25rem; align-items: center; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.event .date { background: var(--navy); color: #fff; border-radius: 10px; text-align: center; padding: .6rem; }
.event .date .m { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.event .date .d { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.event h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.event .meta { color: var(--muted); font-size: .9rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .9rem; color: var(--ink); }
input, select, textarea {
  font-family: inherit; font-size: 1rem; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,111,184,.15); }
.form-note { font-size: .85rem; color: var(--muted); }
.form-msg { padding: .9rem 1rem; border-radius: 8px; font-weight: 600; margin-top: 1rem; }
.form-msg.ok { background: #e0f0e8; color: var(--green); }
.form-msg.error { background: #fbe2e2; color: #9c2a2a; }

/* ---------- Directory search ---------- */
.searchbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.searchbar input, .searchbar select { flex: 1; min-width: 180px; }

/* ---------- Accordion / FAQ ---------- */
.accordion details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .75rem; background: #fff; overflow: hidden; }
.accordion summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); font-weight: 400; }
.accordion details[open] summary::after { content: "–"; }
.accordion details > p, .accordion details > ul { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--body); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--navy)); color: #fff; border-radius: 18px; padding: 2.5rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ccd8ea; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- Logos strip ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.logos .logo { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.4rem; font-weight: 700; color: var(--muted); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9bad2; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer a { color: #bccbe0; font-size: .92rem; display: block; padding: .2rem 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; color: #8698b3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-brand .mark { width: 40px; height: 40px; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(16,36,62,.55); display: none; place-items: center; z-index: 100; padding: 1rem; }
.modal-backdrop.open { display: grid; }
.modal { background: #fff; border-radius: 14px; max-width: 460px; width: 100%; padding: 2rem; box-shadow: var(--shadow-lg); }
.modal h3 { margin-top: 0; }
.modal .close { float: right; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); line-height: 1; }

/* ---------- Utility ---------- */
.stack > * + * { margin-top: 1rem; }
.pill-row { display: flex; gap: .5rem; flex-wrap: wrap; }
/* Footer CTA buttons: override generic .site-footer a rules so they render as real buttons on dark navy */
.site-footer .pill-row .btn { display: inline-flex; padding: .5rem 1.1rem; font-size: .9rem; }
.site-footer .pill-row .btn-gold { color: #241c00; }
.site-footer .pill-row .btn-gold:hover { color: #fff; }
.site-footer .pill-row .btn-ghost { color: #fff; }
/* Footer social icons: circular icon buttons instead of text links */
.site-footer .social-links { gap: .6rem; }
.site-footer .social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #cdd9ea;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.site-footer .social-links a:hover {
  background: var(--gold, #d4af37); color: #241c00; transform: translateY(-2px);
}
.site-footer .social-links svg { display: block; }
.divider { height: 1px; background: var(--line); border: none; margin: 2rem 0; }
.callout { border-left: 4px solid var(--gold); background: var(--bg-soft); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; box-shadow: var(--shadow-lg); padding: .5rem; gap: 0; display: none;
    max-height: 75vh; overflow-y: auto; border-top: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: .8rem; border-radius: 6px; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 1rem; }
  .nav-links > li.has-menu > a::after { float: right; }
  .nav-cta .btn { display: none; }
  .nav-links .mobile-cta { display: block; padding: .5rem; }
  .nav-links .mobile-cta .btn { display: block; width: 100%; text-align: center; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .tiers, .form-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 72px 1fr; }
  .event .btn { grid-column: 2; justify-self: start; }
  .topbar-links { display: none; }
}

/* ============================================================
   Design enhancement layer — frog (craft/a11y) + Fantasy (premium/motion)
   Appended so these rules take precedence.
   ============================================================ */

/* Typography: serif display, tightened rhythm */
h1, h2 { font-family: var(--serif); letter-spacing: -.025em; line-height: 1.06; font-weight: 600; }
h3 { line-height: 1.25; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.55; }

/* Responsive spacing rhythm */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section.tight { padding: clamp(2rem, 4vw, 3.25rem) 0; }
.grid { gap: clamp(1rem, 2vw, 1.75rem); }

/* Keyboard focus (a11y) */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.card:focus-visible, .btn:focus-visible, .nav-links a:focus-visible,
.tier a:focus-visible, .accordion summary:focus-visible {
  box-shadow: 0 0 0 4px rgba(200,162,75,.28);
}

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--gold); color: #241c00;
  padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; }

/* Visually hidden but still available to screen readers/AT */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Active nav state */
.nav-links a.active, .nav-links a[aria-current="page"] {
  background: #eaf2fb; color: var(--blue-dark);
  box-shadow: inset 0 -2px 0 var(--blue);
}

/* Premium hero — Mercer County scenic backdrop */
.hero { min-height: 660px; display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(101deg, rgba(6,17,33,.94) 0%, rgba(8,22,42,.84) 40%, rgba(10,28,52,.52) 68%, rgba(12,34,62,.30) 100%),
    radial-gradient(circle at 84% 6%, rgba(200,162,75,.20), transparent 26rem),
    url('../assets/hero-mercer.jpg') center 34% / cover no-repeat,
    #0b1c30;
}
.hero::after { display: none; } /* scrim + gold glow now handled by layered background */
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -.04em; max-width: 13ch;
  text-shadow: 0 2px 24px rgba(4,12,24,.45); }
.hero p { max-width: 56ch; font-size: clamp(1.08rem, 1.5vw, 1.28rem); text-shadow: 0 1px 14px rgba(4,12,24,.4); }
.hero .eyebrow { color: var(--gold); text-shadow: 0 1px 10px rgba(4,12,24,.5); }
/* Elevated glass card over the photo */
.hero-card { background: rgba(9,22,42,.52); border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 26px 64px rgba(3,10,22,.42); backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1); }

/* Framed scenic photo (value band, sections) */
.photo-frame { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem;
  color: #fff; font-size: .86rem; font-weight: 600; letter-spacing: .01em;
  background: linear-gradient(0deg, rgba(6,17,33,.85), rgba(6,17,33,.35) 55%, transparent); }

/* Tactile buttons */
.btn { transition: transform .16s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary:hover, .btn-gold:hover { box-shadow: 0 12px 28px rgba(16,36,62,.20); }

/* Card micro-interactions */
.card { position: relative; transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover, .card:focus-visible { transform: translateY(-5px); border-color: rgba(30,111,184,.35); box-shadow: 0 18px 42px rgba(16,36,62,.14); }
.card .arrow { display: inline-block; transition: transform .18s ease; }
.card:hover .arrow { transform: translateX(4px); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* Table usability on mobile */
table.data { min-width: 720px; }
table.data th:first-child, table.data td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
table.data thead th:first-child { background: var(--navy); }
table.data tbody tr:hover td:first-child { background: var(--bg-soft); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Mobile nav grouping */
@media (max-width: 800px) {
  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links > li:last-child { border-bottom: none; }
  .submenu { background: var(--bg-soft); border-radius: 8px; margin: 0 0 .5rem; }
  .submenu a { padding: .7rem 1rem; }
}

/* Small-screen hero + brand polish */
@media (max-width: 520px) {
  .hero { min-height: 0; }
  .hero .container { padding-top: 3rem; padding-bottom: 3rem; }
  .hero-stats { grid-template-columns: 1fr; text-align: left; }
  .hero-stats .stat { display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid rgba(255,255,255,.16); padding-top: .75rem; }
  .brand .name span { display: none; }
  .brand .mark { width: 40px; height: 40px; }
}

/* Footer policies row */
.footer-policies { display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.footer-policies a { display: inline; padding: 0; color: #8698b3; font-size: .82rem; }
.footer-policies a:hover { color: #fff; }

/* ==================== ICON SYSTEM (auto-generated: build-icons.js) ==================== */
.i{display:inline-block;width:1.1em;height:1.1em;flex:none;vertical-align:-.18em;background-color:currentColor;-webkit-mask:var(--i) no-repeat center/contain;mask:var(--i) no-repeat center/contain;}
.i-file-text{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8M8 17h6'/%3E%3C/svg%3E")}
.i-cap{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5z'/%3E%3Cpath d='M6 12v5c0 1 2.7 3 6 3s6-2 6-3v-5'/%3E%3C/svg%3E")}
.i-landmark{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M4 21V10M20 21V10M8 21v-7M12 21v-7M16 21v-7'/%3E%3Cpath d='M12 3 3 8h18z'/%3E%3C/svg%3E")}
.i-search{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E")}
.i-calendar{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E")}
.i-book{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E")}
.i-users{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E")}
.i-user{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E")}
.i-handshake{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11 17 2 2a1 1 0 1 0 3-3'/%3E%3Cpath d='m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.9-3.9a2 2 0 0 0-2.8 0l-.8.8a1 1 0 0 1-1.4 0l-2-2a1 1 0 0 0-1.4 0L3 12'/%3E%3Cpath d='m21 3-3 3-3-3M3 12l3 3'/%3E%3C/svg%3E")}
.i-leaf{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6'/%3E%3C/svg%3E")}
.i-mail{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E")}
.i-phone{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2 4.2 2 2 0 0 1 4 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.4 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7A2 2 0 0 1 22 16.9z'/%3E%3C/svg%3E")}
.i-lock{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E")}
.i-pin{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")}
.i-home{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.5 12 3l9 6.5V21a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z'/%3E%3Cpath d='M9 22V12h6v10'/%3E%3C/svg%3E")}
.i-chat{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E")}
.i-megaphone{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E")}
.i-card{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E")}
.i-receipt{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1V2l-2 1-2-1-2 1-2-1-2 1-2-1z'/%3E%3Cpath d='M8 7h8M8 11h8M8 15h5'/%3E%3C/svg%3E")}
.i-shield{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E")}
.i-chart{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 15v3M12 9v9M17 5v13'/%3E%3C/svg%3E")}
.i-money{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 1v22'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E")}
.i-clipboard{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E")}
.i-wrench{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.6 5.6L2.7 18.3a2 2 0 1 0 2.8 2.8l6.4-6.4a4 4 0 0 0 5.6-5.6l-2.9 2.9-2.1-2.1z'/%3E%3C/svg%3E")}
.i-scale{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M6 21h12'/%3E%3Cpath d='M5 7h14'/%3E%3Cpath d='M5 7 2 13a3 3 0 0 0 6 0z'/%3E%3Cpath d='M19 7l-3 6a3 3 0 0 0 6 0z'/%3E%3C/svg%3E")}
.i-mountain{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3l4 8 3-4 6 13H2z'/%3E%3Cpath d='m12 11-2-3'/%3E%3C/svg%3E")}
.i-bell{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.9 1.9 0 0 0 3.4 0'/%3E%3C/svg%3E")}
.i-check{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E")}
.i-close{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E")}
.i-menu{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E")}
.i-eye{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
.i-eye-off{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.9 17.9A10 10 0 0 1 12 20C5 20 2 12 2 12a18 18 0 0 1 5-6M9.9 4.2A9 9 0 0 1 12 4c7 0 10 8 10 8a18 18 0 0 1-2.2 3.2'/%3E%3Cpath d='M1 1l22 22'/%3E%3C/svg%3E")}
.i-bed{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4v16M2 9h18a2 2 0 0 1 2 2v9M2 16h20M6 9V5h12'/%3E%3C/svg%3E")}
.i-bath{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12V5a2 2 0 0 1 2-2h1'/%3E%3Cpath d='M4 12h16a1 1 0 0 1 1 1v3a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4v-3z'/%3E%3Cpath d='M6 20v2M18 20v2'/%3E%3C/svg%3E")}
.i-alert{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h16.9a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E")}
.i-arrow-right{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E")}
.i-arrow-left{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 19l-7-7 7-7'/%3E%3C/svg%3E")}
.i-clock{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}
.i-star{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E")}
.i-quote{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 17h3l2-4V7H5v6h3zM15 17h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E")}
.i-key{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='m10.8 12.2 8.2-8.2M17 5l2 2M15 7l2 2'/%3E%3C/svg%3E")}
.i-network{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2.5'/%3E%3Ccircle cx='5' cy='19' r='2.5'/%3E%3Ccircle cx='19' cy='19' r='2.5'/%3E%3Cpath d='M12 7.5 6.5 17M12 7.5 17.5 17'/%3E%3C/svg%3E")}
.card .ico{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(30,111,184,.12),rgba(184,139,36,.14));color:var(--blue-dark);margin-bottom:1.1rem;box-shadow:inset 0 0 0 1px rgba(30,111,184,.12);}
.card .ico .i{width:26px;height:26px;}
.card:hover .ico{color:var(--blue);}
/* ==================== END ICON SYSTEM ==================== */

/* ==================== EVENTS: detail + registration ==================== */
.event-list .event { transition: box-shadow .15s ease, transform .15s ease; }
.event-list .event:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.event .btnrow { display: flex; gap: .4rem; flex-wrap: wrap; }
.btnrow { display: flex; gap: .8rem; flex-wrap: wrap; }
.modal.wide, #evDetailModal .modal { max-width: 560px; }
.ev-detail-meta { display: grid; gap: .5rem; background: #f7f9fc; border: 1px solid var(--line);
  border-radius: 10px; padding: .9rem 1rem; font-size: .95rem; }
.ev-detail-meta .ev-k { display: inline-block; min-width: 5.5rem; font-weight: 700; color: var(--navy); }
.reg-cost { font-size: 1.05rem; }
.event-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin: .2rem 0 1.2rem; }
.ev-filter-btn { padding: .45rem 1rem; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--navy);
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.ev-filter-btn:hover { border-color: var(--navy); }
.ev-filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 720px) {
  .event-list .event .btnrow { grid-column: 2; justify-self: start; }
}
/* ==================== END EVENTS ==================== */

/* ==================== ACCESSIBILITY WIDGET ==================== */
button,.btn,a.btn,.a11y-opt{touch-action:manipulation}
@media(max-width:520px){ input,select,textarea{font-size:16px} } /* stop iOS zoom-on-focus */

/* Bigger-text option (elderly / low vision) — rem-based design scales site-wide */
html[data-textscale="lg"]{font-size:113%}
html[data-textscale="xl"]{font-size:125%}

/* High-contrast option */
html[data-contrast="high"]{
  --ink:#000; --body:#000; --muted:#1c1c1c; --line:#000;
  --bg:#fff; --bg-soft:#fff; --bg-softer:#fff; --white:#fff;
  --navy:#00204a; --blue:#0a4d8f; --gold:#6f5417;
}
html[data-contrast="high"] a:not(.btn){text-decoration:underline}
html[data-contrast="high"] .btn{border:2px solid currentColor}
html[data-contrast="high"] :focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* Underline-links option */
html[data-underline="on"] a:not(.btn):not(.brand){text-decoration:underline}

/* Accessibility widget: floating button + panel */
.a11y-fab{display:inline-flex;align-items:center;gap:9px;border:2px solid var(--gold);background:var(--navy);color:#fff;
  border-radius:999px;padding:11px 18px;font-size:1rem;font-weight:800;line-height:1;cursor:pointer;font-family:inherit}
.a11y-fab .a11y-fab-ico{font-size:1.35rem;line-height:1}
.a11y-fab:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
/* Persistent labeled pill, fixed in the bottom-right corner on every page. */
.a11y-fab--float{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));
  z-index:1200;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.a11y-panel{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(86px + env(safe-area-inset-bottom));
  z-index:1200;width:min(340px,calc(100vw - 32px));max-height:calc(100vh - 140px);overflow:auto;background:var(--white);
  color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-lg);padding:18px;display:none}
.a11y-panel.open{display:block}
.a11y-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.a11y-panel h2{font-size:1.2rem;margin:0;color:var(--navy)}
.a11y-panel .a11y-sub{color:var(--muted);font-size:.86rem;margin:2px 0 6px}
.a11y-close{background:none;border:0;font-size:1.5rem;line-height:1;cursor:pointer;color:var(--muted);padding:4px 6px}
.a11y-group{margin:14px 0}
.a11y-group>span{display:block;font-weight:800;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:8px}
.a11y-btns{display:flex;gap:8px;flex-wrap:wrap}
.a11y-opt{flex:1 1 auto;min-width:60px;min-height:48px;border:2px solid var(--line);background:var(--bg-soft);
  color:var(--ink);border-radius:12px;font-weight:700;font-family:inherit;cursor:pointer;font-size:1rem}
.a11y-opt[aria-pressed="true"]{border-color:var(--navy);background:var(--navy);color:#fff}
.a11y-reset{margin-top:6px;width:100%;min-height:44px;border:0;border-radius:12px;background:var(--gold);color:#fff;font-weight:800;cursor:pointer;font-family:inherit}
@media(prefers-reduced-motion:reduce){.a11y-fab,.a11y-panel{transition:none}}
/* ==================== END ACCESSIBILITY WIDGET ==================== */
