/* -- components-additions.css ---------------------------------------
   New component styles added during site build.
   Loaded after components.css in default.html.
   All rules here are additive - no !important except where
   specifically noted and justified.
-------------------------------------------------------------------- */

/* -- Featured posts slideshow (homepage) -------------------------- */
.featured-section { margin-bottom: 0; }
.featured-slider {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
  background: #080d1a;
}
.featured-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.featured-slide {
  min-width: 100%;
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background: #080d1a;
}
.featured-img-right {
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #080d1a;
}
.featured-blur-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    #080d1a 0%,
    #080d1a 30%,
    rgba(8,13,26,.8) 42%,
    rgba(8,13,26,.25) 58%,
    rgba(8,13,26,.05) 72%,
    transparent 100%
  );
}
.featured-bg-base {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(8,13,26,.45) 0%, transparent 40%);
}
.featured-content {
  position: relative;
  z-index: 2;
  padding: 2rem 2.5rem 2rem 3.5rem;
  width: 52%;
  max-width: 580px;
}
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(232,160,32,.18);
  border-radius: 99px;
  padding: .2rem .65rem;
  margin-bottom: .6rem;
}
.featured-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .6rem;
  color: white;
}
.featured-link { color: white; text-decoration: none; }
.featured-link:hover { color: var(--gold); }
.featured-excerpt {
  font-size: .9rem;
  color: rgba(255,255,255,.78);
  margin-bottom: .6rem;
  line-height: 1.6;
  max-width: 65ch;
}
.featured-meta {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}
.featured-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}
.featured-nav:hover { background: rgba(255,255,255,.28); }
.featured-nav--prev { left: .85rem; }
.featured-nav--next { right: .85rem; }
.featured-dots {
  position: absolute;
  bottom: .85rem;
  right: 1.25rem;
  display: flex;
  gap: .35rem;
  z-index: 2;
}
.featured-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.featured-dot.active { background: white; width: 18px; border-radius: 4px; }
.featured-dot[data-pinned="true"] { background: rgba(232,160,32,.6); }
.featured-dot[data-pinned="true"].active { background: var(--gold); }

/* Mobile slideshow handled in mobile.css */

/* -- Featured post cards (news page) ------------------------------ */
.news-featured-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.news-featured-grid .card--featured {
  flex: 0 1 340px;
  max-width: 420px;
}
.card--featured {
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.card-featured-badge {
  position: absolute;
  top: .6rem; left: .6rem;
  z-index: 1;
  background: var(--gold);
  color: var(--navy);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 99px;
}
.card-img-link { display: block; }
.card-img-link:hover img { opacity: .9; }

/* -- Regular news card border ------------------------------------- */
/* .card sets overflow:hidden on the same element, which clips any  */
/* border also set on that element. Fix: override overflow to visible */
/* so the border renders, and use outline instead which ignores      */
/* overflow. outline sits outside the box model entirely.            */
article.card--regular {
  outline: 2px solid rgba(13,32,68,.18);
  outline-offset: -1px;
  box-shadow: 0 2px 8px rgba(13,32,68,.08);
  transition: transform var(--transition), box-shadow var(--transition), outline-color var(--transition);
}
article.card--regular:hover {
  outline-color: rgba(13,32,68,.35);
  box-shadow: 0 6px 20px rgba(13,32,68,.13);
  transform: translateY(-2px);
}

/* -- Section label - dash on both sides --------------------------- */
.section-label::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  opacity: .6;
}

/* -- Meeting modal ------------------------------------------------ */
.meeting-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.meeting-modal-inner {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
}
.meeting-modal-close {
  position: absolute;
  top: .85rem; right: .85rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--gray);
  padding: .25rem;
}

/* -- Live nav indicators ------------------------------------------ */
.live-nav-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gray);
  display: inline-block;
  flex-shrink: 0;
}
.live-nav-dot--on {
  background: #ef4444;
  animation: pulse-live-nav 1.5s infinite;
}
@keyframes pulse-live-nav {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  70%  { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.alert-banner--live { background: #c8102e; color: white; }
.live-pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  margin-right: .3rem;
  animation: pulse-live-nav 1.2s infinite;
}

/* -- Nav join/donate pill buttons --------------------------------- */
.nav-join { margin-left: .5rem; }
.nav-join a {
  background: #3b82f6;
  color: white;
  padding: .35rem .9rem;
  border-radius: 99px;
  font-weight: 700;
  transition: background var(--transition);
}
.nav-join a:hover { background: #2563eb; color: white; }
.nav-donate { margin-left: .25rem; }
.nav-donate a {
  background: var(--accent);
  color: white;
  padding: .35rem .9rem;
  border-radius: 99px;
  font-weight: 700;
}
.nav-donate a:hover { background: #a50d24; color: white; }

/* -- Live always-visible nav link (mobile) ------------------------ */
.nav-live-wrap {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-right: .5rem;
  border-right: 1px solid rgba(255,255,255,.2);
  margin-right: .5rem;
}
.nav-live-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: white;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  opacity: .85;
  transition: opacity var(--transition);
}
.nav-live-link:hover { opacity: 1; color: white; }

/* -- Alert banner - keep single line, no wrapping ----------------- */
.alert-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: .3rem;
  white-space: nowrap;
  overflow: hidden;
}
.alert-banner > * { flex-shrink: 0; }
#banner-days { color: var(--navy); opacity: .85; }
@media (max-width: 600px) {
  .alert-banner { font-size: .78rem; padding: .55rem .5rem; gap: .2rem; }
}

/* -- Get Involved tabs -------------------------------------------- */
.gi-tabs {
  display: flex;
  flex-wrap: nowrap;
  border-bottom: 2px solid var(--light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gi-tabs::-webkit-scrollbar { display: none; }
.gi-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: .75rem 1.1rem;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: all .2s;
  white-space: nowrap;
}
.gi-tab i { font-size: .8rem; }
.gi-tab:hover { color: var(--navy); }
.gi-tab.active { color: var(--navy); border-bottom-color: var(--accent); }

/* -- Voter links (get-involved) ----------------------------------- */
.gi-voter-links { list-style: none; padding: 0; }
.gi-voter-links li { margin-bottom: .5rem; }
.gi-voter-links a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .85rem;
  background: var(--off);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: all var(--transition);
  border-left: 3px solid var(--light);
}
.gi-voter-links a:hover { background: var(--light); border-left-color: var(--accent); }
.gi-voter-links i { color: var(--accent); font-size: .75rem; flex-shrink: 0; }
.gi-voter-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.gi-voter-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  background: var(--off);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  transition: all var(--transition);
  border-left: 3px solid var(--light);
  flex: 1 1 calc(50% - .3rem);
  min-width: 140px;
}
.gi-voter-link:hover { background: var(--light); border-left-color: var(--accent); color: var(--navy); }
.gi-voter-link i { color: var(--accent); font-size: .72rem; flex-shrink: 0; }
@media (max-width: 500px) { .gi-voter-link { flex: 1 1 100%; } }

/* -- Home about band ---------------------------------------------- */
.home-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .home-about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .home-about-grid > div {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

/* -- Homepage mobile overflow ------------------------------------- */
html, body { overflow-x: hidden; }
@media (max-width: 768px) {
  .band { overflow: hidden; }
  .band .container { overflow: hidden; }
}

/* -- Homepage event days remaining badges ------------------------- */
.home-event-days {
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 800;
  padding: .2rem .5rem;
  border-radius: 99px;
  white-space: nowrap;
}
.home-event-days--today { background: var(--accent); color: white; }
.home-event-days--soon  { background: rgba(232,160,32,.2); color: #92620a; }
.home-event-days--future { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }

/* -- Post gallery ------------------------------------------------- */
.post-gallery { border: 1px solid var(--light); border-radius: var(--radius); overflow: hidden; }
.post-gallery-slider { position: relative; overflow: hidden; background: #000; }
.post-gallery-track { display: flex; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.post-gallery-slide {
  min-width: 100%; background: #000;
  display: flex; align-items: center; justify-content: center; min-height: 300px;
}
.post-gallery-slide img { width: 100%; max-height: 520px; object-fit: contain; display: block; cursor: zoom-in; }
.post-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2);
  color: white; width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition); z-index: 2;
}
.post-gallery-nav:hover { background: rgba(0,0,0,.7); }
.post-gallery-nav--prev { left: .75rem; }
.post-gallery-nav--next { right: .75rem; }
.post-gallery-dots {
  position: absolute; bottom: .75rem; right: .85rem;
  display: flex; gap: .35rem; z-index: 2;
}
.post-gallery-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer; padding: 0;
  transition: all var(--transition);
}
.post-gallery-dot.active { background: white; width: 18px; border-radius: 4px; }
.post-gallery-thumbs {
  display: flex; gap: .4rem; padding: .5rem;
  background: var(--off); flex-wrap: wrap;
}
.post-gallery-thumb {
  width: 64px; height: 48px; border-radius: 4px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent; padding: 0;
  transition: border-color var(--transition); flex-shrink: 0;
}
.post-gallery-thumb.active { border-color: var(--gold); }
.post-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-gallery-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  z-index: 99999; display: flex; align-items: center; justify-content: center;
}
.post-gallery-lb-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.15); border: none; color: white;
  font-size: 1.25rem; width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.post-gallery-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: white; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.post-gallery-lb-nav--prev { left: 1rem; }
.post-gallery-lb-nav--next { right: 1rem; }
@media (max-width: 600px) {
  .post-gallery-slide img { max-height: 300px; }
}

/* -- Event info blocks -------------------------------------------- */
.event-info-block { display: flex; gap: 1.25rem; align-items: flex-start; }
.event-info-label {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  white-space: nowrap; padding-top: .15rem; min-width: 56px;
}
.event-info-label i { margin-right: .3rem; }
.event-info-content { flex: 1; }
.event-info-primary { font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.event-countdown {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .35rem; font-size: .82rem; font-weight: 700;
  padding: .2rem .65rem; border-radius: 99px;
}
.event-countdown.today  { background: rgba(200,16,46,.1); color: var(--accent); }
.event-countdown.soon   { background: rgba(232,160,32,.15); color: #92620a; }
.event-countdown.future { background: var(--light); color: var(--gray); }
.event-countdown.past   { background: #f3f4f6; color: var(--gray); }
.event-map iframe { box-shadow: 0 2px 12px rgba(0,0,0,.1); }

/* -- Livestream page ---------------------------------------------- */
.live-status-bar {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1.25rem; background: var(--off);
  border-radius: var(--radius); margin-bottom: 1.5rem;
  font-size: .9rem; color: var(--gray); transition: background var(--transition);
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.live-dot--live { background: #ef4444; animation: pulse-live 1.5s infinite; }
.live-dot--offline { background: var(--gray); }
@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.jitsi-container {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.15); margin-bottom: 1.5rem;
}
.pre-meeting-box {
  border: 1px solid var(--light); border-radius: var(--radius);
  padding: 3rem 2rem; text-align: center;
  background: var(--off); margin-bottom: 1.5rem;
}
.pre-meeting-box p  { max-width: 50ch; margin: 0 auto; }
.pre-meeting-box h3 { text-align: center; }
.pre-meeting-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--light); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-size: 1.5rem; color: var(--gray);
}
.live-info-box {
  background: var(--off); border-radius: var(--radius);
  padding: 1.25rem; border-left: 4px solid var(--blue);
}
.live-info-box p { max-width: none; }
.join-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .join-options { grid-template-columns: 1fr; } }
.join-option {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--light);
  border-radius: var(--radius); padding: 1.25rem;
}
.join-option-icon {
  width: 44px; height: 44px; background: var(--navy);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; flex-shrink: 0;
}
.join-option-title { font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.join-option-desc  { font-size: .85rem; color: var(--gray); margin: 0 0 .5rem; }
.next-meeting-info {
  background: white; border: 1px solid var(--light);
  border-radius: var(--radius); padding: 1.25rem;
  max-width: 320px; margin: 1.5rem auto 0;
  text-align: left; font-size: .9rem;
}

/* -- Membership tabs ---------------------------------------------- */
.membership-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  border-bottom: 2px solid var(--light); margin-bottom: 2rem;
}
.mem-tab {
  background: none; border: none; border-bottom: 3px solid transparent;
  padding: .75rem 1.25rem; font-family: var(--sans); font-size: .9rem;
  font-weight: 600; color: var(--gray); cursor: pointer; margin-bottom: -2px;
  display: flex; align-items: center; gap: .4rem; transition: all .2s; white-space: nowrap;
}
.mem-tab i { font-size: .85rem; }
.mem-tab:hover { color: var(--navy); }
.mem-tab.active { color: var(--navy); border-bottom-color: var(--accent); }
.mem-panel { display: none; }
.mem-panel.active { display: block; }
@media (max-width: 600px) { .mem-tab { padding: .6rem .75rem; font-size: .82rem; } }

/* -- Events calendar (events.md) ---------------------------------- */
.cal-wrap { margin-top: 1.5rem; }
.cal-header,
.calendar-nav {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy); padding: .75rem 1.25rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.cal-title {
  color: white; font-weight: 700; font-size: 1.05rem;
  text-align: center; flex: 1; min-width: 160px;
}
.cal-nav-btn {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: white; border-radius: var(--radius); padding: .3rem .75rem;
  cursor: pointer; font-size: 1rem; line-height: 1; transition: background var(--transition);
}
.cal-nav-btn:hover { background: rgba(255,255,255,.3); }
.cal-grid,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(56px, auto);
  border-left: 1px solid var(--light);
  border-radius: 0 0 var(--radius) var(--radius);
}
.cal-dow,
.cal-day-header {
  background: var(--off); text-align: center; padding: .5rem 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  color: var(--gray); text-transform: uppercase;
  border-bottom: 1px solid var(--light);
}
.cal-cell {
  background: var(--white); min-height: 56px; padding: .3rem .25rem;
  position: relative; transition: background var(--transition);
  border-top: 1px solid var(--light);
  border-right: 1px solid var(--light);
  min-width: 0; word-break: break-word;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell--empty  { background: var(--off); }
.cal-cell--past   { background: #fafafa; }
.cal-cell--today  { background: rgba(232,160,32,.08); border-bottom: 2px solid var(--gold); }
.cal-cell--today .cal-day-num {
  background: var(--gold); color: var(--navy); border-radius: 50%;
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.cal-cell--has-event { cursor: pointer; }
.cal-cell--has-event:hover { background: rgba(13,32,68,.06); }

/* -- Calendar event cell highlight - rotating border shimmer ------ */
.cal-cell--has-event:not(.cal-cell--past) {
  position: relative;
  z-index: 0;
}
.cal-cell--has-event:not(.cal-cell--past)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  padding: 2px;
  background: linear-gradient(
    var(--cal-angle, 0deg),
    var(--gold),
    var(--accent),
    var(--blue),
    var(--gold)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cal-spin 3s linear infinite;
  pointer-events: none;
}
/* Today cell gets a stronger gold shimmer */
.cal-cell--today::before {
  background: linear-gradient(
    var(--cal-angle, 0deg),
    var(--gold),
    #fff,
    var(--gold),
    var(--accent)
  );
  animation: cal-spin 2s linear infinite;
}
@keyframes cal-spin {
  to { --cal-angle: 360deg; }
}
@property --cal-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.cal-day-num {
  font-size: .82rem; font-weight: 600; color: var(--navy);
  display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center;
}
.cal-event-dot {
  background: var(--navy); color: white; font-size: .62rem; font-weight: 700;
  padding: .15rem .4rem; border-radius: 99px; margin-top: .2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
  box-shadow: 0 1px 3px rgba(13,32,68,.25); border-left: 3px solid var(--gold);
  transition: all var(--transition);
}
.cal-event-dot:hover { background: var(--accent); border-left-color: white; }
.cal-event-dot--past { background: var(--gray); border-left-color: rgba(255,255,255,.3); opacity: .65; }
.cal-event-dot--past:hover { background: #555; opacity: .9; }
.cal-popover {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.cal-popover-inner {
  background: white; border-radius: var(--radius); padding: 1.5rem;
  max-width: 380px; width: 100%; max-height: 80vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2); position: relative;
}
.cal-popover-close {
  position: absolute; top: .75rem; right: .75rem;
  background: none; border: none; font-size: 1rem; cursor: pointer; color: var(--gray); padding: .25rem;
}
.cal-pop-date  { font-weight: 700; color: var(--navy); margin-bottom: .75rem; font-size: .95rem; }
.cal-pop-event { padding: .75rem 0; border-bottom: 1px solid var(--light); }
.cal-pop-event:last-child { border-bottom: none; }
.cal-pop-title { font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.cal-pop-meta  { font-size: .82rem; color: var(--gray); margin-top: .2rem; display: flex; align-items: center; gap: .4rem; }
.cal-pop-link  { display: inline-block; margin-top: .5rem; font-size: .82rem; font-weight: 600; color: var(--blue); }
@media (max-width: 600px) {
  .cal-cell { min-height: 44px; padding: .2rem .1rem; }
  .cal-day-num { font-size: .7rem; width: 18px; height: 18px; line-height: 18px; }
  .cal-event-dot {
    width: 8px; height: 8px; border-radius: 50%; padding: 0; font-size: 0;
    overflow: hidden; margin-top: .3rem; display: inline-block;
    border-left: none; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  }
  .cal-event-dot--past { opacity: .5; }
}

/* -- Events upcoming strip ---------------------------------------- */
.upcoming-strip { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.upcoming-card {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--white); border: 1px solid var(--light);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 1rem 1.25rem; text-decoration: none; transition: all var(--transition);
}
.upcoming-card:hover { border-left-color: var(--blue); box-shadow: var(--shadow); transform: translateX(3px); }
.upcoming-date-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  width: 52px; height: 52px; flex-shrink: 0;
}
.upcoming-month { font-size: .62rem; font-weight: 700; letter-spacing: .1em; opacity: .75; }
.upcoming-day   { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.upcoming-info  { flex: 1; min-width: 0; }
.upcoming-title { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upcoming-meta  { font-size: .82rem; color: var(--gray); margin-top: .15rem; }
.upcoming-meta i { margin-right: .3rem; color: var(--accent); }
.upcoming-countdown { margin-top: .3rem; }
.badge-today    { background: var(--accent); color: white; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 99px; }
.badge-soon     { background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 99px; }
.badge-upcoming { background: var(--light); color: var(--gray); font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 99px; }

/* -- Live admin panel --------------------------------------------- */
.live-admin-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f1f5f9; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.live-admin-card {
  background: white; border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  padding: 2rem; width: 100%; max-width: 440px;
}
.live-admin-header { text-align: center; margin-bottom: 2rem; }
.live-admin-logo {
  width: 48px; height: 48px; background: #0d2044; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem;
}
.live-admin-logo svg { width: 24px; height: 24px; fill: white; }
.live-admin-header h1 { font-size: 1.3rem; color: #0d2044; margin-top: .5rem; font-family: inherit; }
.live-admin-header p  { font-size: .85rem; color: #6b7280; margin-top: .25rem; }
.live-admin-status {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem; border-radius: 8px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem; font-size: .88rem; color: #6b7280;
}
.live-admin-dot { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; flex-shrink: 0; }
.live-admin-dot.live { background: #ef4444; animation: la-pulse 1.5s infinite; }
@keyframes la-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  70%  { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.live-admin-label { display: block; font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: .3rem; margin-top: 1rem; }
.live-admin-input {
  width: 100%; padding: .6rem .85rem;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: .92rem; transition: border-color .2s; font-family: inherit;
}
.live-admin-input:focus { outline: none; border-color: #0d2044; }
.live-admin-divider { border: none; border-top: 1px solid #e2e8f0; margin: 1.5rem 0; }
.live-admin-btn-group { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; }
.live-admin-btn {
  padding: .8rem; border: none; border-radius: 8px;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: opacity .2s; font-family: inherit; width: 100%;
}
.live-admin-btn:hover { opacity: .88; }
.live-admin-btn:disabled { opacity: .5; cursor: not-allowed; }
.live-admin-btn--live { background: #16a34a; color: white; }
.live-admin-btn--end  { background: #c8102e; color: white; }
.live-admin-btn--pass { background: #0d2044; color: white; }
.live-admin-btn--back { background: #f1f5f9; color: #374151; font-size: .85rem; padding: .6rem; }
.live-admin-msg { margin-top: 1rem; padding: .75rem 1rem; border-radius: 8px; font-size: .88rem; display: none; }
.live-admin-msg.ok  { background: #dcfce7; color: #166534; }
.live-admin-msg.err { background: #fee2e2; color: #991b1b; }

/* -- Admin CMS nav (admin/index.html) ----------------------------- */
.admin-nav-html, .admin-nav-body { margin: 0; padding: 0; height: 100%; }
#custom-admin-nav {
  background: #0d2044;
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 1.25rem;
  font-family: system-ui, sans-serif; font-size: .85rem;
  color: rgba(255,255,255,.7); height: 40px; box-sizing: border-box;
}
#custom-admin-nav .brand { font-weight: 700; color: white; }
#custom-admin-nav .links { display: flex; gap: .75rem; align-items: center; }
#custom-admin-nav a { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 600; transition: color .2s; }
#custom-admin-nav a:hover { color: white; }
#custom-admin-nav a.live-link {
  background: #c8102e; color: white; border-radius: 99px;
  padding: .3rem .85rem; display: flex; align-items: center; gap: .4rem;
}
#custom-admin-nav a.live-link:hover { background: #a50d24; }
#custom-admin-nav .dot { width: 7px; height: 7px; border-radius: 50%; background: white; }
#nc-root { height: calc(100% - 40px); }
@media (max-width: 480px) {
  #custom-admin-nav { height: auto; min-height: 40px; flex-wrap: wrap; gap: .35rem; padding: .4rem .85rem; }
  #custom-admin-nav .brand { font-size: .75rem; }
  #nc-root { height: calc(100% - 56px); }
}

/* -- Member carousel ---------------------------------------------- */
.member-carousel {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.carousel-nav-row {
  display: flex;
  align-items: center;
  justify-content: center; /* always center the row content */
  gap: .75rem;
}
.carousel-track-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.carousel-track {
  display: flex;
  align-items: stretch; /* Make all cards same height in a row */
  will-change: transform;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
/*
  Card width: we use a percentage of the track width with
  a fixed pixel gutter baked into the calc. With 3 visible
  and 8px gap each side: width = (100% - 16px) / 3
*/
.carousel-card {
  flex: 0 0 calc((100% - 16px) / 3);
  max-width: calc((100% - 16px) / 3);
  margin-right: 8px;
  min-width: 0;
  text-align: left;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
/* Clones and real cards always the same width - prevents sizing shift
   when fewer than 3 cards exist in a carousel */
.carousel-track-wrap { overflow: hidden; flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .carousel-card {
    flex: 0 0 calc((100% - 8px) / 2);
    max-width: calc((100% - 8px) / 2);
  }
}
@media (max-width: 600px) {
  .carousel-card {
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 0;
  }
}

/* Buttons sit beside the track */
.carousel-btn {
  flex-shrink: 0;
  background: var(--white);
  border: 1.5px solid var(--light);
  color: var(--navy);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.carousel-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.carousel-dots {
  display: flex;
  gap: .4rem;
  justify-content: center;
}
.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--light);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.carousel-dot.active { background: var(--navy); width: 18px; border-radius: 4px; }
/* Center section above carousel */
.gi-about .section-label { display: flex; justify-content: center; }

/* -- Social share ------------------------------------------------- */
@media (max-width: 600px) {
  .social-share {
    display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  }
  .social-share .share-btn {
    flex: 1 1 auto; text-align: center; justify-content: center; min-width: 0;
  }
  .social-share-label { width: 100%; margin-bottom: .1rem; }
}

/* -- Nav desktop/mobile show/hide --------------------------------- */
@media (min-width: 769px) {
  .nav-live-wrap { display: none; }
  .nav-live-desktop { display: flex; }
}
@media (max-width: 768px) {
  .nav-live-desktop { display: none !important; }
  .nav-join, .nav-donate { width: 100%; }
  .nav-join a, .nav-donate a {
    display: block; text-align: center; margin: 0; border-radius: var(--radius);
  }
  .nav-join { margin-left: 0; }
  .nav-donate { margin-left: 0; }
}

/* -- Get Involved mobile tabs ------------------------------------- */
@media (max-width: 500px) {
  .gi-tab { padding: .6rem .7rem; font-size: .78rem; }
  .gi-tab i { display: none; }
}

/* -- Meetings map full width on mobile ---------------------------- */
@media (max-width: 768px) {
  .gi-meetings-map { width: 100vw; margin-left: -1rem; border-radius: 0; }
  .gi-meetings-map iframe { border-radius: 0; }
}


/* -- Subcommittee section spacing --------------------------------- */
/* Each subcommittee group gets breathing room from the one above */
.gi-about .section-label.mt-5 {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light);
  display: flex;
}
/* Subcommittee email shown below label, not inline with it */
.gi-about .section-label a {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--blue);
  margin-top: .2rem;
}


/* Mobile slideshow handled in mobile.css */

/* -- Alert banner mobile - compact single line -------------------- */
@media (max-width: 600px) {
  .alert-banner {
    font-size: .76rem;
    padding: .5rem .75rem;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    gap: .2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  /* Hide less-important banner parts on very small screens */
  .alert-banner #banner-days { display: none; }
}



/* -- Event featured image: crop / full-size / zoom --------------- */
/* Generated by Sveltia CMS fork crop patch. Matches the crop math  */
/* in the CMS preview and the Liquid render in event.html.          */
.event-featured {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: block;
}
.event-featured--full {
  max-height: none;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.event-featured--cropped {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: none;
  cursor: zoom-in;
  background: var(--off);
}
.event-featured--cropped img {
  display: block;
  height: auto;
  max-width: none;
  transform-origin: top left;
}
.event-featured-zoom-hint {
  position: absolute;
  bottom: .6rem;
  right: .75rem;
  background: rgba(0,0,0,.5);
  color: white;
  font-size: .8rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.event-featured--cropped:hover .event-featured-zoom-hint { opacity: 1; }

.event-image-zoom {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, .92);
  align-items: center;
  justify-content: center;
}
.event-image-zoom img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.event-image-zoom-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 1.5rem;
  cursor: pointer;
}

/* -- Carousel cards fill full track height uniformly ---------------- */
.carousel-card .officer-card--lg {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.carousel-card .officer-card--lg .officer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.carousel-card .officer-card--lg .officer-social {
  margin-top: auto;
}

/* -- Center carousel track when cards don't fill the full width --- */
/* Applied via JS when total <= vis (no scrolling needed) */
.carousel-track--centered {
  justify-content: center;
}

/* -- Latest news posts grid - flex so partial rows center ---------- */
.news-latest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.news-latest-grid article {
  flex: 0 1 calc(33.333% - 1rem);
  min-width: 280px;
  max-width: 380px;
}
@media (max-width: 900px) {
  .news-latest-grid article { flex: 0 1 calc(50% - .75rem); }
}
@media (max-width: 600px) {
  .news-latest-grid article { flex: 0 1 100%; max-width: 100%; }
}

/* -- Centered section labels ------------------------------------- */
.text-center .section-label,
.section-label[style*="justify-content:center"] {
  display: flex;
  justify-content: center;
}

/* -- Voting sub-tabs (inside gi-voting panel) --------------------- */
.gi-subtabs {
  display: flex;
  gap: .25rem;
  border-bottom: 2px solid var(--light);
  margin-bottom: 1.5rem;
}
.gi-subtab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: .6rem 1rem;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: all .2s;
}
.gi-subtab:hover { color: var(--navy); }
.gi-subtab.active { color: var(--navy); border-bottom-color: var(--blue); }
.gi-subpanel { padding-top: .5rem; }

/* -- Section labels in text-center containers center as flex ----- */
.text-center .section-label {
  display: flex;
  justify-content: center;
}
/* Long-form body text (post content, tab panels) stays left-aligned
   but centered as a block via max-width + margin auto on the wrapper */
.post-content p,
.post-content li,
.gi-panel p,
.gi-panel li,
.gi-panel ul,
.gi-subpanel p,
.gi-subpanel li {
  text-align: left;
}

/* -- Post header descriptions always centered -------------------- */
.post-header .post-meta,
.post-header p {
  text-align: center;
}
/* Information page header description - prevent wrapping on large screens */
.post-header .container {
  max-width: 860px;
}
