/* ============================================================
   Component styles — Carolyn Carter homepage
   ============================================================ */

/* ---------- Announcement bar ---------- */
.annbar {
  background: var(--navy-950); color: #e7eefb;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 13.5px;
}
.annbar-in { display: flex; align-items: center; gap: 12px; padding-block: 9px; justify-content: center; }
.annbar p { line-height: 1.35; }
.annbar strong { color: #fff; font-weight: 700; }
.annbar-sep { color: var(--gold-400); }
.annbar-star { color: var(--gold-400); font-size: 13px; flex: none; }
@media (max-width: 640px) {
  .annbar-in { justify-content: flex-start; }
  .annbar .annbar-sep { display: none; }
  .annbar p span:last-child { display: block; color: #aebfd8; }
}

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background .25s; }
.header.is-scrolled { box-shadow: 0 6px 20px rgba(10,24,52,.08); background: rgba(255,255,255,.95); }
.header-in { display: flex; align-items: center; gap: 18px; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--navy-900); }
.brand-text em { font-style: normal; font-size: 11.5px; letter-spacing: .03em; color: var(--muted); font-weight: 600; margin-top: 2px; }

.nav-desktop { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { padding: 9px 13px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  position: relative; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--navy-900); background: var(--blue-050); }
.nav-link.active { color: var(--blue-600); }
.nav-link.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; background: var(--red-600); border-radius: 2px; }

.header-cta { display: flex; gap: 10px; margin-left: 10px; }
.menu-btn { display: none; background: transparent; border: none; padding: 8px; color: var(--navy-900); border-radius: 10px; }
.menu-btn:hover { background: var(--blue-050); }

@media (max-width: 1040px) {
  .nav-desktop { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 720px) {
  .header-cta { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .brand-text em { display: none; }
}

/* ---------- Mobile drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(6,17,42,.5); z-index: 110; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 88vw);
  background: var(--white); z-index: 120; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
  padding: 18px 20px 24px; box-shadow: var(--shadow-lg); overflow-y: auto; }
.drawer.open { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; padding: 16px 8px; font-family: var(--font-display);
  font-weight: 700; font-size: 19px; color: var(--navy-900); border-bottom: 1px solid var(--line); }
.drawer-nav a:hover { color: var(--blue-600); }
.drawer-nav a svg { color: var(--line-strong); }
.drawer-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.drawer-foot { margin-top: auto; padding-top: 20px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(37,102,203,.10), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, var(--paper) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35; mask-image: radial-gradient(circle at 30% 20%, #000, transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px);
  align-items: center; padding-block: clamp(44px, 6vw, 84px); }

.hero-name { font-size: clamp(58px, 10vw, 120px); font-weight: 800; letter-spacing: -0.045em; color: var(--navy-900); margin-top: 20px; }
.hero-slogan { margin-top: 14px; }
.hero-slogan span { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 34px);
  color: var(--red-600); display: inline-block; position: relative; padding-bottom: 8px; letter-spacing: -0.02em; }
.hero-slogan span::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--red-600) 0 60%, var(--gold-500) 60% 100%); }
.hero-sub { margin-top: 22px; font-size: clamp(17px, 1.8vw, 21px); color: var(--ink-soft); max-width: 480px; line-height: 1.5; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px;
  font-size: 14px; font-weight: 600; color: var(--muted); }
.flag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); display: inline-block; }
.hero-trust .flag-dot:nth-of-type(2) { background: var(--red-500); }
.hero-trust .flag-dot:nth-of-type(3) { background: var(--gold-500); }

.hero-media { position: relative; }
.hero-photo { position: relative; z-index: 2; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }
.hero-badge { margin-top: 14px; display: inline-flex; align-items: center; gap: 13px;
  background: var(--white); padding: 13px 18px 13px 13px; border-radius: 16px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.hero-badge strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--navy-900); }
.hero-badge span { display: block; font-size: 12.5px; color: var(--muted); }
.hero-flag { display: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; }
  .hero-flag { display: none; }
}

/* ---------- Community strip ---------- */
.commstrip { background: var(--navy-900); color: #fff; border-block: 1px solid rgba(255,255,255,.08); }
.commstrip-in { display: flex; align-items: center; gap: 18px; padding-block: 16px; }
.commstrip-label { display: inline-flex; align-items: center; gap: 8px; flex: none; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }
.commstrip-track { display: flex; flex-wrap: wrap; gap: 9px; }
.commstrip .chip { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #eaf0fa; }
.commstrip .chip:hover { background: rgba(255,255,255,.14); border-color: var(--gold-400); }
.commstrip .chip .dot { background: var(--gold-400); }
@media (max-width: 720px) { .commstrip-in { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* ---------- Quick actions ---------- */
.quick { padding-block: clamp(40px, 6vw, 72px); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.quick-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--ink); }
.quick-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-050); color: var(--blue-600); border: 1px solid var(--blue-100); }
.quick-card:nth-child(2) .quick-ico { background: #fdeceb; color: var(--red-600); border-color: #f6cfcf; }
.quick-card:nth-child(3) .quick-ico { background: var(--navy-900); color: var(--gold-400); border-color: transparent; }
.quick-card:nth-child(4) .quick-ico { background: var(--gold-100); color: var(--gold-600); border-color: rgba(173,138,31,.25); }
.quick-card h3 { font-size: 22px; color: var(--navy-900); }
.quick-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.quick-cta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--blue-600); }
.quick-card:hover .quick-cta svg { transform: translateX(3px); transition: transform .15s; }
@media (max-width: 980px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .quick-grid { grid-template-columns: 1fr; } }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.story-media { position: relative; }
.story-media .ph { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.story-quote { position: relative; margin-top: -38px; margin-left: 24px; margin-right: -10px; background: var(--navy-900); color: #fff;
  padding: 24px 26px 22px; border-radius: 18px; box-shadow: var(--shadow-lg); border-left: 5px solid var(--gold-500); }
.story-quote .qmark { position: absolute; top: 2px; left: 18px; font-family: var(--font-display); font-size: 64px; color: var(--gold-400); opacity: .5; line-height: 1; }
.story-quote p { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.35; position: relative; letter-spacing: -0.01em; }
.story-quote .qby { display: block; margin-top: 12px; font-size: 13px; color: var(--gold-400); font-weight: 600; }
.story-copy .eyebrow { margin-bottom: 16px; }
.story-copy h2 { font-size: clamp(30px, 4vw, 46px); }
.story-lede { margin-top: 18px; font-size: 18px; color: var(--ink-soft); line-height: 1.55; }
.story-mini { display: grid; gap: 12px; margin-block: 26px; }
.story-mini-card { display: flex; gap: 13px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.mini-check { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--blue-050); color: var(--blue-600); margin-top: 1px; }
.story-mini-card strong { font-family: var(--font-display); font-size: 16px; color: var(--navy-900); }
.story-mini-card p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.ph-note { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } .story-media { max-width: 440px; } }

/* ---------- Bremen ---------- */
.bremen-head { max-width: 820px; }
.bremen-head h2 { font-size: clamp(28px, 4vw, 48px); margin-top: 16px; }
.bremen-head .lede { margin-top: 18px; font-size: 18px; }
.gold { color: var(--gold-400); }
.bremen-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bremen-cell { display: flex; align-items: center; gap: 10px; padding: 18px 18px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-family: var(--font-display);
  font-weight: 700; font-size: 16px; color: #fff; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.bremen-cell:hover { background: rgba(255,255,255,.1); border-color: var(--gold-400); transform: translateY(-2px); }
a.bremen-cell { cursor: pointer; }
a.bremen-cell:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.bremen-star { color: var(--gold-400); font-size: 13px; }
@media (max-width: 860px) { .bremen-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .bremen-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Role explainer ---------- */
.role-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.role-copy { position: sticky; top: 120px; }
.role-copy h2 { font-size: clamp(26px, 3.4vw, 40px); margin-top: 14px; }
.role-lede { margin-top: 16px; font-size: 17px; }
.role-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.role-list li { display: flex; align-items: center; gap: 18px; padding: 20px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 2vw, 21px); color: var(--navy-900); }
.role-num { font-family: var(--font-mono); font-size: 14px; color: var(--red-600); font-weight: 700; flex: none; }
@media (max-width: 860px) { .role-grid { grid-template-columns: 1fr; } .role-copy { position: static; } }

/* ---------- Plan ---------- */
.plan { background: var(--paper-warm); }
.plan-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan-card { position: relative; padding-top: 30px; }
.plan-tag { position: absolute; top: 22px; right: 24px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--gold-600);
  background: var(--gold-100); padding: 5px 10px; border-radius: 8px; }
.plan-card h3 { font-size: 24px; color: var(--navy-900); max-width: 70%; }
.plan-card p { margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.plan-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400)); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.plan-card:hover::before { transform: scaleX(1); }
@media (max-width: 960px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .plan-grid { grid-template-columns: 1fr; } }

.ph-note.on-dark { color: #93a6c6; display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Voter Help Desk ---------- */
.voter-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.voter-copy h2 { font-size: clamp(28px, 3.8vw, 46px); margin-top: 14px; }
.voter-copy .lede { margin-top: 16px; max-width: 520px; }
.voter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.voter-action { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: background .15s, border-color .15s, transform .15s; }
.voter-action:hover { background: rgba(255,255,255,.1); border-color: var(--gold-400); transform: translateY(-2px); }
.voter-action > svg:last-child { color: rgba(255,255,255,.4); margin-left: auto; }
.va-ico { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(37,102,203,.28); color: #bdd4f6; }
.va-text strong { display: block; font-family: var(--font-display); font-size: 16px; color: #fff; line-height: 1.2; margin-bottom: 2px; }
.va-text em { font-style: normal; font-size: 12.5px; color: #9fb2d0; }
@media (max-width: 520px) { .voter-actions { grid-template-columns: 1fr; } }

.voter-reminder { background: #fff; color: var(--ink); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: sticky; top: 116px; }
.vr-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; background: var(--navy-900); color: #fff; }
.vr-head h3 { font-size: 18px; color: #fff; }
.vr-head svg { color: var(--gold-400); }
.vr-list { padding: 8px 22px; }
.vr-list li { display: grid; gap: 2px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.vr-list li:last-child { border-bottom: none; }
.vr-k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); font-weight: 700; }
.vr-v { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy-900); }
.vr-tag { font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }
.vr-foot { padding: 20px 22px; background: var(--paper-warm); border-top: 1px solid var(--line); display: grid; gap: 4px; }
.vr-foot strong { font-family: var(--font-display); font-size: 17px; color: var(--navy-900); }
.vr-foot span { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
@media (max-width: 860px) { .voter-grid { grid-template-columns: 1fr; } .voter-reminder { position: static; } }

/* ---------- Events ---------- */
.events-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.events-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink-soft); transition: all .15s; }
.filter-pill:hover { border-color: var(--blue-500); color: var(--blue-600); }
.filter-pill.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.events-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-card { display: flex; flex-direction: column; }
.event-date { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ed-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  color: var(--red-600); background: #fdeceb; padding: 5px 10px; border-radius: 7px; }
.ed-when { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 600; }
.event-card h3 { font-size: 21px; color: var(--navy-900); }
.event-loc { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--blue-600); font-weight: 600; }
.event-desc { margin-top: 12px; font-size: 14.5px; color: var(--muted); flex: 1; line-height: 1.55; }
.event-rsvp { margin-top: 20px; }
.events-note { margin-top: 24px; }
@media (max-width: 960px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .events-grid { grid-template-columns: 1fr; } }

/* ---------- Volunteer ---------- */
.vol-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.vol-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left;
  padding: 18px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.12);
  color: #eaf0fa; font-family: var(--font-display); font-weight: 700; font-size: 15px; transition: all .16s; position: relative; min-height: 118px; }
.vol-chip:hover { background: rgba(255,255,255,.1); border-color: var(--gold-400); transform: translateY(-2px); }
.vol-chip.on { background: linear-gradient(135deg, var(--red-600), var(--red-700)); border-color: var(--red-500); }
.vc-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(37,102,203,.3); color: #bdd4f6; transition: all .16s; }
.vol-chip.on .vc-ico { background: rgba(255,255,255,.2); color: #fff; }
.vc-check { position: absolute; top: 14px; right: 14px; color: rgba(255,255,255,.35); }
.vol-chip.on .vc-check { color: #fff; }
.vol-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px;
  padding: 16px 22px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  opacity: 0; transform: translateY(8px); transition: all .2s; pointer-events: none; }
.vol-bar.show { opacity: 1; transform: none; pointer-events: auto; }
.vol-bar span { font-size: 16px; color: #eaf0fa; }
.vol-bar strong { font-family: var(--font-display); font-size: 22px; color: var(--gold-400); }
@media (max-width: 980px) { .vol-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .vol-grid { grid-template-columns: repeat(2, 1fr); } .vol-bar { flex-direction: column; align-items: stretch; } }

/* ---------- Contact ---------- */
.contact { background: var(--paper-warm); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-intro { position: sticky; top: 116px; }
.contact-intro h2 { font-size: clamp(28px, 3.6vw, 44px); margin-top: 14px; }
.contact-lede { margin-top: 16px; font-size: 17px; }
.contact-info { margin-top: 26px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-info li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ci-k { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); font-size: 15px; }
.ci-v { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.contact-flag { margin-top: 22px; width: 120px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-intro { position: static; } }

.contact-card { padding: clamp(22px, 3vw, 34px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--navy-900); margin-bottom: 7px; }
.req { color: var(--red-600); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line-strong); border-radius: 11px; background: #fff;
  transition: border-color .15s, box-shadow .15s; width: 100%; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,102,203,.16); }
.field input.err, .field select.err { border-color: var(--red-500); box-shadow: 0 0 0 3px rgba(216,51,63,.14); }
.err-msg { color: var(--red-600); font-size: 13px; font-weight: 600; margin-top: 6px; }
.form-fine { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }

.contact-success { text-align: center; padding: 30px 10px; display: grid; gap: 12px; justify-items: center; }
.cs-ico { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: #e7f6ec; color: #1c8a4e; }
.contact-success h3 { font-size: 28px; color: var(--navy-900); }
.contact-success p { color: var(--muted); max-width: 360px; }
.contact-success p strong { color: var(--red-600); }
.contact-success .btn { margin-top: 6px; }

/* ---------- Donate ---------- */
.donate { background: var(--paper); }
.donate-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); position: relative; box-shadow: var(--shadow-sm); overflow: hidden; }
.donate-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--gold-500), var(--gold-400)); opacity: .55; }
.donate-pending { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gold-600); background: var(--gold-100); padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(173,138,31,.3); margin-bottom: 20px; }
.donate-body { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.donate-body h2 { font-size: clamp(26px, 3.4vw, 40px); margin-top: 12px; color: var(--navy-900); }
.donate-copy { margin-top: 16px; font-size: 17px; color: var(--ink-soft); max-width: 540px; }
.donate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn[disabled]:hover { transform: none; }
.donate-note { font-size: 14px; color: var(--muted); background: var(--paper-warm); padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--line-strong); line-height: 1.55; }
.donate-note strong { color: var(--navy-900); }
.donate-platform { margin-top: 10px; font-size: 13px; color: var(--muted); }
.donate-qr { margin: 22px 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: fit-content; max-width: 100%; }
.donate-qr img { width: 280px; max-width: 100%; height: auto; object-fit: contain; background: #fff; padding: 12px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.08)); }
.donate-qr figcaption { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy-900); }
.donate-disclosure { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.donate-disclosure .dd-org { margin: 0 0 4px; color: var(--ink-soft); }
.donate-disclosure .dd-org strong { color: var(--navy-900); }
.donate-disclosure .dd-text { margin: 0; }
@media (max-width: 760px) { .donate-body { grid-template-columns: 1fr; } }

/* ---------- Compliance ---------- */
.compliance { background: var(--navy-950); color: #aebfd8; padding-block: 32px; }
.compliance-in { display: grid; gap: 12px; max-width: 900px; }
.comp-flag { width: 90px; }
.comp-disclaimer { font-size: 13.5px; line-height: 1.6; color: #c6d4ec; }
.comp-warn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--gold-400); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #c6d4ec; padding-top: clamp(48px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand-text strong { color: #fff; }
.footer .brand-text em { color: #9fb2d0; }
.footer-tag { margin-top: 18px; font-size: 14.5px; color: #9fb2d0; max-width: 320px; line-height: 1.55; }
.footer-pills { margin-top: 18px; }
.footer-col h4 { font-family: var(--font-display); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 15px; color: #c6d4ec; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; font-size: 12.5px; color: #8499b8; }
.footer-disc { font-family: var(--font-mono); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   Public events calendar + event detail
   ============================================================ */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

.pcal { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm); }
.pcal-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; border-bottom:1px solid var(--line); }
.pcal-head h3 { font-size:clamp(20px,2.4vw,28px); color:var(--navy-900); }
.pcal-nav { display:flex; gap:8px; }
.pcal-nav .btn-sm { min-height:40px; }

table.pcal-grid { width:100%; border-collapse:collapse; table-layout:fixed; }
.pcal-grid th { padding:10px 8px; font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted); background:var(--paper-warm); border-bottom:1px solid var(--line); font-weight:700; }
.pcal-grid th .dow-full { display:none; }
.pcal-grid td { vertical-align:top; height:108px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:6px 6px 4px; position:relative; }
.pcal-grid td:nth-child(7n) { border-right:none; }
.pcal-grid td.out { background:var(--paper-warm); }
.pcal-grid td.out .pcal-date { color:var(--line-strong); }
.pcal-date { font-family:var(--font-display); font-weight:700; font-size:13px; color:var(--ink-soft); display:inline-grid; place-items:center; width:24px; height:24px; }
.pcal-grid td.today .pcal-date { background:var(--blue-600); color:#fff; border-radius:50%; }
.pcal-evs { display:flex; flex-direction:column; gap:3px; margin-top:3px; }
.pcal-ev { display:block; font-size:11px; font-weight:700; line-height:1.25; padding:3px 6px; border-radius:5px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:filter .12s; }
.pcal-ev:hover { filter:brightness(.94); }
.pcal-ev b { font-weight:800; }
.pcal-more { font-size:10.5px; font-weight:700; color:var(--blue-600); padding:1px 6px; }
.pcal-flyer { display:block; text-decoration:none; border-radius:6px; overflow:hidden; border:1px solid var(--line);
  background:#fff; transition:filter .12s, box-shadow .12s; }
.pcal-flyer:hover { filter:brightness(.97); box-shadow:0 2px 6px rgba(10,24,52,.14); }
.pcal-flyer img { display:block; width:100%; height:88px; object-fit:cover; }
.pcal-ftext { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  font-size:11px; font-weight:700; line-height:1.2; padding:3px 6px; border-radius:5px;
  background:#eaf1ff; color:#1d51a8; text-decoration:none; transition:filter .12s; }
.pcal-ftext:hover { filter:brightness(.96); }

.pcal-legend { display:flex; flex-wrap:wrap; gap:6px; padding:14px 18px; border-top:1px solid var(--line); }
.pcal-legend .leg { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:var(--ink-soft);
  padding:5px 11px; border-radius:999px; border:1px solid var(--line-strong); background:#fff; }
.pcal-legend .leg:hover { border-color:var(--blue-400); }
.pcal-legend .leg.on { background:var(--navy-900); color:#fff; border-color:var(--navy-900); }
.pcal-legend .leg-dot { width:9px; height:9px; border-radius:3px; }

@media (max-width: 720px) {
  .pcal-grid th span[aria-hidden] { display:inline; }
  .pcal-grid td { height:auto; min-height:54px; padding:4px; }
  .pcal-ev { font-size:0; padding:0; height:8px; border-radius:3px; }
  .pcal-ev b { font-size:0; }
  .pcal-flyer img { height:46px; }
  .pcal-ftext { font-size:9px; -webkit-line-clamp:2; padding:2px 4px; }
  .pcal-more { font-size:9px; }
  .pcal-date { font-size:12px; width:20px; height:20px; }
}

/* Event detail */
.event-detail { display:grid; grid-template-columns:1fr 320px; gap:36px; align-items:start; }
.ed-type { display:inline-block; font-family:var(--font-mono); font-size:12px; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; padding:5px 12px; border-radius:999px; }
.ed-main h1 { font-size:clamp(30px,5vw,52px); color:var(--navy-900); margin-top:16px; }
.ed-summary { font-size:19px; color:var(--ink-soft); margin-top:14px; line-height:1.5; }
.ed-hero { width:100%; border-radius:var(--radius-lg); margin-top:24px; border:1px solid var(--line); box-shadow:var(--shadow-md); }
/* PDF flyer rendered to canvas by PDF.js — one .pdf-page per page, styled like .ed-hero (no viewer chrome). */
.pdf-flyer { margin-top:24px; }
.pdf-flyer .pdf-page { display:block; width:100%; height:auto; border-radius:var(--radius-lg); border:1px solid var(--line); box-shadow:var(--shadow-md); background:#fff; }
.pdf-flyer .pdf-page + .pdf-page { margin-top:18px; }
.pdf-flyer .pdf-fallback { margin-top:24px; }
.ed-body { margin-top:24px; font-size:17px; line-height:1.7; color:var(--ink-soft); }
.ed-related-h { margin-top:40px; font-size:20px; color:var(--navy-900); }
.ed-related { display:grid; gap:12px; margin-top:16px; }
.ed-rel { display:flex; align-items:center; gap:12px; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:#fff; transition:border-color .14s, transform .14s; }
.ed-rel:hover { border-color:var(--blue-400); transform:translateY(-2px); }
.ed-rel-tag { font-family:var(--font-mono); font-size:10.5px; font-weight:700; text-transform:uppercase; padding:4px 9px; border-radius:6px; flex:none; }
.ed-rel strong { font-family:var(--font-display); color:var(--navy-900); font-size:15px; }
.ed-rel .muted { margin-left:auto; font-size:13px; white-space:nowrap; }

.ed-side { position:sticky; top:104px; }
.ed-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow-md); padding:22px; display:flex; flex-direction:column; gap:14px; }
.ed-fact { display:flex; gap:12px; align-items:flex-start; }
.ed-ic { width:38px; height:38px; flex:none; border-radius:10px; background:var(--blue-050); color:var(--blue-600); display:grid; place-items:center; }
.ed-fact b { display:block; font-family:var(--font-display); font-size:13px; color:var(--navy-900); }
.ed-fact span { font-size:14px; color:var(--muted); }
.ed-addcal { border-top:1px solid var(--line); padding-top:14px; }
.ed-addcal-h { font-family:var(--font-display); font-weight:700; font-size:13px; color:var(--navy-900); }
.ed-addcal-row { display:flex; gap:8px; margin-top:8px; }
.ed-addcal-row a { flex:1; text-align:center; font-size:13px; font-weight:700; padding:8px; border-radius:8px; border:1px solid var(--line-strong); color:var(--navy-800); }
.ed-addcal-row a:hover { border-color:var(--blue-500); background:var(--blue-050); }
.ed-share { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:none; border:none; color:var(--blue-600); font-family:var(--font-display); font-weight:700; font-size:14px; cursor:pointer; padding:4px; }
@media (max-width: 760px) { .event-detail { grid-template-columns:1fr; } .ed-side { position:static; } }

/* Homepage featured event banner */
.featured-event { display:block; margin-top:32px; padding:28px clamp(22px,4vw,40px); border-radius:var(--radius-lg);
  background:linear-gradient(135deg, var(--navy-800), var(--navy-950)); color:#fff; position:relative; overflow:hidden;
  border:1px solid rgba(255,255,255,.08); box-shadow:var(--shadow-md); transition:transform .16s, box-shadow .25s; }
.featured-event:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.featured-event::after { content:"★★★"; position:absolute; top:18px; right:22px; color:rgba(221,187,85,.25); letter-spacing:5px; font-size:20px; }
.fe-tag .pill { font-family:var(--font-mono); font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:5px 12px; border-radius:999px; }
.featured-event h3 { font-size:clamp(24px,3.2vw,34px); color:#fff; margin-top:14px; max-width:80%; }
.fe-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:12px; color:#bcd0ee; font-size:14.5px; font-weight:600; }
.fe-meta svg { vertical-align:-3px; }
.fe-desc { margin-top:12px; color:#9fb2d0; font-size:15px; max-width:640px; }
.fe-cta { display:inline-flex; align-items:center; gap:7px; margin-top:18px; font-family:var(--font-display); font-weight:700; color:var(--gold-400); font-size:15px; }
.featured-event:hover .fe-cta svg { transform:translateX(3px); transition:transform .15s; }
@media (max-width:600px){ .featured-event h3{max-width:100%} }
