/* EMS support - round 3 (Tyler 11-05). Rules: DESIGN.md.
   ═══════════════════════════════════════════════════════════════════════════
   ems-support.css — "Connect with EMS US" at the foot of the sidebar, the
   "Need a little help?" panel above it, the compact page footer, and the
   Get Support page (assets/js/tools/support.js). Modelled on MPMA Pathways'
   rail foot (rail.css .nav-connect) and Get Support (support.css .sp-*).
   Everything is .sup-* so nothing here reaches another screen.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. The sidebar foot ────────────────────────────────────────────────── */
/* Pinned to the bottom of the navy column on a computer (Pathways' rail). On a
   phone the foot already follows the page (ems.css, order 4). */
@media (min-width: 761px) {
  /* A member's nav is taller than a laptop screen, so the foot also sticks to
     the bottom of the scrolling column: the way to a person is never below
     the fold. Opaque (the sidebar navy, darkened), so the nav slides under it. */
  #app > .sidebar > .sidebar-foot {
    margin-top: auto; padding: 10px 12px 14px;
    position: sticky; bottom: 0; z-index: 2; background: #121a52;
  }
}
.sup-foot { display: flex; flex-direction: column; gap: 2px; }
.sup-foot:empty { display: none; }
.sup-nav {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: var(--ems-r-md); text-decoration: none;
  font-family: var(--ems-font-ui); color: rgba(255, 255, 255, .86);
  transition: background-color var(--ems-dur) var(--ems-ease), color var(--ems-dur) var(--ems-ease);
}
.sup-nav:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sup-nav:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.sup-nav:active { transform: scale(.985); }
.sup-nav.active, .sup-nav.active:hover { background: #fff; color: var(--ems-navy-800); box-shadow: inset 4px 0 0 var(--ems-red-500); }
.sup-nav.active .sup-nav-ic:not(.sup-logo) { background: var(--ems-navy-500); box-shadow: none; }
.sup-nav.active .sup-nav-lbl small { color: var(--ems-mute); }
.sup-nav-ic {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #fff;
  transition: background-color var(--ems-dur) var(--ems-ease);
}
.sup-nav-ic .ic { width: 17px; height: 17px; }
.sup-nav:hover .sup-nav-ic { background: rgba(255, 255, 255, .12); }
/* The logo plate: the EMS US mark on white, like Pathways' MPMA tile. The
   file is the full lockup (eagle, star, wordmark), shown whole: a crop cut the
   eagle or the wordmark in half. */
.sup-nav-ic.sup-logo, .sup-nav:hover .sup-nav-ic.sup-logo { background: #fff; box-shadow: none; overflow: hidden; }
.sup-logo img { display: block; width: 28px; height: 28px; object-fit: contain; }
.sup-nav-lbl { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.25; }
.sup-nav-lbl b { font-size: 14px; font-weight: 600; color: inherit; }
.sup-nav-lbl small { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .64); overflow-wrap: anywhere; }
/* Help, then a hairline, then the team: two different doors. */
.sup-help { margin-bottom: 9px; }
.sup-help::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -6px; height: 1px; background: rgba(255, 255, 255, .1); pointer-events: none; }

/* ── 2. The compact page footer ─────────────────────────────────────────── */
.app-footer.sup-appfoot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px;
  padding: 12px 2px 4px; line-height: 1.45;
}
.sup-by { white-space: nowrap; }
.sup-crisis { color: var(--ems-ink-2); }
.sup-crisis a { color: var(--ems-red-600); text-decoration: none; }
.sup-crisis a:hover { text-decoration: underline; }
.sup-crisis b { color: inherit; font-weight: 600; }
.sup-links { flex: 0 0 auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: auto; margin-right: -8px; }
.sup-links a, .sup-links button {
  font: 500 12px/1.2 var(--ems-font-ui); color: inherit; background: transparent; border: 0; box-shadow: none;
  border-radius: var(--ems-r-pill); padding: 5px 10px; margin: 0; min-height: 0; width: auto; cursor: pointer; text-decoration: none; opacity: 1;
  transition: background-color var(--ems-dur-fast) var(--ems-ease), color var(--ems-dur-fast) var(--ems-ease);
}
.sup-links a:hover, .sup-links button:hover { color: var(--ems-navy-500); background: var(--ems-navy-50); transform: none; box-shadow: none; }
.sup-links a:active, .sup-links button:active { transform: scale(.94); }
.sup-links a:focus-visible, .sup-links button:focus-visible { outline: 2px solid var(--ems-navy-400); outline-offset: 1px; }
@media (max-width: 760px) {
  .app-footer.sup-appfoot { flex-direction: column; justify-content: center; text-align: center; gap: 6px; }
  .sup-by { white-space: normal; }
  .sup-links { margin: 0; justify-content: center; }
}
/* The legal pop-ups the footer opens (Api.modal). */
.sup-legal-p { margin: 0 0 12px; line-height: 1.55; color: var(--ems-ink-2); }
.sup-lines { display: grid; gap: 8px; margin: 4px 0 14px; }
.sup-line { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: var(--ems-r-md); background: var(--ems-red-50); color: var(--ems-red-700); text-decoration: none; transition: background-color var(--ems-dur) var(--ems-ease); }
.sup-line:hover { background: #fbe3e6; }
.sup-line b { font: 700 15px/1.25 var(--ems-font-ui); }
.sup-line span { font-size: 13px; color: var(--ems-ink-2); }

/* ── 3. Get Support ─────────────────────────────────────────────────────── */
.sup { display: flex; flex-direction: column; gap: 18px; }
/* The team stands on one navy stage across the page; a small team gets
   bigger cards, centred (Pathways, Ryan 30 Sep: no "open space"). */
.sup-stage {
  position: relative; border-radius: var(--ems-r-xl); padding: 22px 24px 26px; box-shadow: var(--ems-raise);
  background: radial-gradient(900px 300px at 85% -40%, rgba(255, 255, 255, .10), transparent 60%), linear-gradient(135deg, var(--ems-navy-700), var(--ems-navy-900));
  color: #fff;
}
.sup-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 34px; }
.sup-eyebrow { margin: 0; font: 600 12px/1.2 var(--ems-font-ui); letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.sup-stage .sup-edit-btn { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.sup-stage .sup-edit-btn:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.sup-none { margin: 0; color: rgba(255, 255, 255, .8); }
.sup-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.sup-stage.is-few .sup-team { grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); justify-content: center; }
.sup-person {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  width: 100%; min-height: 0; padding: 22px 16px 16px; margin: 0;
  border: 0; border-radius: var(--ems-r-lg); background: var(--ems-surface); color: var(--ems-ink); box-shadow: var(--ems-lift);
  font: inherit; cursor: pointer;
  transition: transform var(--ems-dur) var(--ems-ease), box-shadow var(--ems-dur) var(--ems-ease);
}
.sup-person:hover { transform: translateY(-2px); box-shadow: var(--ems-lift-hover); background: var(--ems-surface); color: var(--ems-ink); }
.sup-person:active { transform: translateY(0) scale(.985); }
.sup-person:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sup-face { flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.sup-initials {
  background: linear-gradient(140deg, var(--ems-navy-400), var(--ems-navy-700)); color: #fff;
  font: 800 30px/1 var(--ems-font-display); letter-spacing: .02em; box-shadow: 0 0 0 4px var(--ems-navy-50);
}
.sup-who { display: flex; flex-direction: column; gap: 3px; }
.sup-who strong { font: 700 17px/1.25 var(--ems-font-display); color: var(--ems-navy-800); }
.sup-who span { font: 500 13.5px/1.35 var(--ems-font-ui); color: var(--ems-mute); }
.sup-cta { display: inline-flex; align-items: center; gap: 2px; margin-top: auto; font: 600 13px/1 var(--ems-font-ui); color: var(--ems-navy-500); }
.sup-cta i { font-style: normal; display: inline-block; transition: transform var(--ems-dur) var(--ems-ease); }
.sup-person:hover .sup-cta i { transform: translateX(3px); }

/* EMS US's own card */
.sup-org { margin: 0; }
.sup-org-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.sup-org-logo { flex: none; width: 74px; height: 50px; display: grid; place-items: center; }
.sup-org-logo img { width: 74px; height: auto; display: block; }
.sup-org h2 { margin: 0 0 2px; }
.sup-org-head p { margin: 0; color: var(--ems-mute); font-size: var(--ems-fs-sm); }
.sup-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.sup-row, .sup-act {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--ems-r-md);
  background: var(--ems-soft); color: var(--ems-ink); text-decoration: none; text-align: left;
  border: 0; box-shadow: none; width: 100%; min-height: 0; margin: 0; font: inherit; cursor: pointer;
  transition: background-color var(--ems-dur) var(--ems-ease), transform var(--ems-dur-fast) var(--ems-ease);
}
.sup-row:hover, .sup-act:hover { background: var(--ems-navy-50); color: var(--ems-ink); transform: none; box-shadow: none; }
.sup-row:active, .sup-act:active { transform: scale(.985); }
.sup-row > span:last-child, .sup-act > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sup-row b, .sup-act b { font: 600 14.5px/1.25 var(--ems-font-ui); color: var(--ems-navy-800); }
.sup-row small, .sup-act small { font-size: 13px; color: var(--ems-mute); overflow-wrap: anywhere; }
.sup-act.is-on { background: var(--ems-navy-50); box-shadow: inset 0 0 0 1.5px var(--ems-navy-500); }
.sup-act.is-on .ems-plate { background: var(--ems-navy-500); color: #fff; }

/* The spotlight: one person, the ways to reach them. */
.modal.sup-spot { position: relative; max-width: 420px; padding: 30px 24px 20px; text-align: center; overflow: visible; margin-top: 6vh; }
.sup-spot-x { position: absolute; top: 10px; right: 10px; }
.sup-spot-face { width: 104px; height: 104px; margin: 0 auto 14px; }
.sup-spot-face.sup-initials { font-size: 36px; }
.sup-spot h2 { margin: 0; font: 800 22px/1.2 var(--ems-font-display); color: var(--ems-navy-800); }
.sup-spot-title { margin: 4px 0 18px; color: var(--ems-mute); font: 500 14px/1.35 var(--ems-font-ui); }
.sup-acts { display: grid; gap: 8px; }
.sup-compose { margin-top: 14px; text-align: left; }
.sup-compose[hidden] { display: none; }
.sup-compose .field textarea { min-height: 96px; }
.sup-compose-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sup-compose-msg { font-size: 13.5px; color: var(--ems-mute); }
.sup-compose-note { margin: 8px 0 0; font-size: 12.5px; color: var(--ems-mute); }
.sup-spot-logo { display: block; width: 64px; height: auto; margin: 18px auto 0; opacity: .9; }

/* Edit mode (admins) */
.sup-editor { margin: 0; }
.sup-editor h2 { margin: 0 0 4px; }
.sup-edit-sub { margin: 0 0 16px; color: var(--ems-mute); font-size: var(--ems-fs-sm); }
.sup-erows { display: grid; gap: 10px; margin-bottom: 12px; }
.sup-erow { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: end; gap: 12px; padding: 12px 14px; border-radius: var(--ems-r-md); background: var(--ems-soft); }
.sup-erow .field { margin: 0; }
.sup-eface.sup-face { width: 48px; height: 48px; align-self: center; }
.sup-eface.sup-initials { font-size: 17px; box-shadow: none; }
.sup-emove { display: flex; gap: 4px; align-items: center; padding-bottom: 6px; }
.sup-edit-bad { margin: 8px 0 0; color: var(--ems-red-600); font-size: 13.5px; min-height: 1em; }
.sup-edit-bad:empty { display: none; }
.sup-edit-bar { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .sup-stage { padding: 18px 16px 20px; border-radius: 18px; }
  .sup-team, .sup-stage.is-few .sup-team { grid-template-columns: minmax(0, 1fr); }
  .sup-person { flex-direction: row; text-align: left; padding: 14px; gap: 14px; }
  .sup-person .sup-face { width: 60px; height: 60px; }
  .sup-person .sup-initials { font-size: 21px; box-shadow: none; }
  .sup-person .sup-cta { display: none; }
  .sup-erow { grid-template-columns: 48px minmax(0, 1fr); align-items: center; }
  .sup-erow .field, .sup-emove { grid-column: 1 / -1; }
  .sup-erow .sup-eface { grid-row: 1; }
  .modal.sup-spot { margin-top: 2vh; padding: 26px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sup-person:hover, .sup-nav:active, .sup-row:active, .sup-act:active { transform: none; }
}

/* ── 3. The credit: our name, signed with the VisionOne mark (Tyler 11-08:
   "the logo as a signature tag", not a logo block). Wording = the Aug 3
   proposal: VisionOne owns and maintains the Hub, EMS US hosts it. */
.sup-by { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.sup-by-sig { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; border-radius: 4px; }
.sup-by-sig img { display: block; height: 11px; width: auto; }
/* Quiet, one line (Tyler 11-09: "don't want 2 separate rows ... make our text
   smaller"): the credit is small print, the crisis line keeps its weight. */
.sup-by { font-size: 11px; gap: 5px; }
.sup-by-sig b { font-weight: 600; color: var(--ems-mute); }
@media (min-width: 1000px) {
  .app-footer.sup-appfoot { flex-wrap: nowrap; gap: 4px 14px; }
  .app-footer.sup-appfoot > * { white-space: nowrap; }
  .sup-links { gap: 0; }
  .sup-links a, .sup-links button { padding: 5px 7px; }
}
.sup-by-sig:hover b { text-decoration: underline; }
.sup-by-sig:focus-visible { outline: 2px solid var(--ems-navy-400); outline-offset: 2px; }

/* ── 4. Privacy & terms: one wide pop-up with tabs (assets/js/ems-legal.js) ── */
.modal.lg-modal { max-width: 860px; display: flex; flex-direction: column; max-height: calc(100vh - 80px); }
.lg-modal .modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 28px 26px; }
.lg-tabs { position: sticky; top: 0; z-index: 1; display: flex; gap: 4px; margin: 0 -28px 18px; padding: 10px 24px 0; background: #fff; border-bottom: 1px solid var(--ems-line); overflow-x: auto; scrollbar-width: none; }
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tab { flex: none; padding: 9px 12px 11px; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; min-height: 0; width: auto;
  font: 600 14px/1.2 var(--ems-font-ui); color: var(--ems-mute); cursor: pointer; border-bottom: 3px solid transparent; transition: color var(--ems-dur-fast) var(--ems-ease), border-color var(--ems-dur-fast) var(--ems-ease); }
.lg-tab:hover { color: var(--ems-navy-700); background: transparent; transform: none; box-shadow: none; }
.lg-tab[aria-selected="true"] { color: var(--ems-navy-800); border-bottom-color: var(--ems-red-500, #BE1E2D); }
.lg-tab:focus-visible { outline: 2px solid var(--ems-navy-400); outline-offset: -2px; }
.lg-pane[hidden] { display: none; }
.lg-pane { font-size: 15px; line-height: 1.6; color: var(--ems-ink-2); animation: ems-fade var(--ems-dur) ease-out both; }
.lg-date { margin: 0 0 10px; font: 600 12px/1.3 var(--ems-font-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--ems-mute-2); }
.lg-lede { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--ems-r-md); background: var(--ems-navy-50); color: var(--ems-navy-800); }
.lg-pane h3 { margin: 22px 0 6px; font: 700 16px/1.3 var(--ems-font-display); color: var(--ems-navy-800); }
.lg-pane p { margin: 0 0 10px; }
.lg-pane ul { margin: 0 0 10px; padding-left: 20px; }
.lg-pane li { margin: 4px 0; }
.lg-pane a, .lg-link { color: var(--ems-navy-500); font-weight: 600; }
.lg-link { display: inline; padding: 0; margin: 0; min-height: 0; width: auto; border: 0; background: none; box-shadow: none; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.lg-link:hover { background: none; transform: none; box-shadow: none; color: var(--ems-navy-700); }
@media (max-width: 760px) {
  .modal.lg-modal { max-height: calc(100dvh - 64px); }
  .lg-modal .modal-body { padding: 0 18px 20px; }
  .lg-tabs { margin: 0 -18px 14px; padding: 8px 14px 0; }
}

/* ── 5. Below the team: events, news, About, Support EMS US (Tyler 11-09) ── */
/* All from emsus.org: live through api/ems-site, else tenants/ems.json. Tyler:
   "too bland ... static text" -> EMS US's own event photos, brass + sky accents
   beside the navy and red, every date a card that opens the event. */
.sup-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sup-card-head > div { flex: 1; min-width: 0; }
.sup-card-head h2 { margin: 0 0 2px; }
.sup-card-head p { margin: 0; color: var(--ems-mute); font-size: var(--ems-fs-sm); }
.sup-news, .sup-about, .sup-give { margin: 0; }
.sup-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: var(--ems-r-pill);
  font: 600 14px/1.2 var(--ems-font-ui); text-decoration: none; white-space: nowrap; cursor: pointer; width: auto; min-height: 0; margin: 0;
  background: var(--ems-surface); color: var(--ems-navy-700); box-shadow: inset 0 0 0 1.5px var(--ems-navy-100);
  transition: background-color var(--ems-dur) var(--ems-ease), transform var(--ems-dur-fast) var(--ems-ease), box-shadow var(--ems-dur) var(--ems-ease);
}
.sup-btn:hover { background: var(--ems-navy-50); color: var(--ems-navy-800); transform: none; }
.sup-btn.is-main { background: var(--ems-red-500); color: #fff; box-shadow: 0 6px 16px -8px rgba(190, 30, 45, .7); }
.sup-btn.is-main:hover { background: var(--ems-red-600); color: #fff; }
.sup-btn.is-gold { background: linear-gradient(180deg, var(--ems-gold-300), var(--ems-gold-400)); color: var(--ems-navy-900); box-shadow: 0 6px 16px -8px rgba(195, 145, 48, .8); }
.sup-btn.is-gold:hover { background: var(--ems-gold-300); color: var(--ems-navy-900); }
.sup-btn:active { transform: scale(.97); }
.sup-btn .ic { opacity: .85; }
.sup-chip {
  display: inline-flex; align-items: center; padding: 7px 13px; border-radius: var(--ems-r-pill);
  font: 600 13px/1.2 var(--ems-font-ui); text-decoration: none; white-space: nowrap;
  background: var(--ems-navy-50); color: var(--ems-navy-700); box-shadow: inset 0 0 0 1px var(--ems-navy-100);
  transition: background-color var(--ems-dur-fast) var(--ems-ease);
}
.sup-chip:hover { background: var(--ems-navy-100); color: var(--ems-navy-800); }
.sup-chip.is-light { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.sup-chip.is-light:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.sup-btn:focus-visible, .sup-chip:focus-visible, .sup-more:focus-visible, .sup-date:focus-visible, .sup-ev-when:focus-visible, .sup-post:focus-visible { outline: 2px solid var(--ems-gold-400); outline-offset: 2px; }
.sup-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font: 600 13.5px/1.2 var(--ems-font-ui); color: var(--ems-navy-500); text-decoration: none; }
.sup-more:hover { text-decoration: underline; }
.sup-arrows { display: inline-block; vertical-align: middle; margin: -3px 4px 0; }
.sup-live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: var(--ems-r-pill); font: 600 11.5px/1.2 var(--ems-font-ui); letter-spacing: .02em; white-space: nowrap; background: rgba(255, 255, 255, .14); color: #fff; }
.sup-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: sup-pulse 2.2s ease-out infinite; }
.card .sup-live { background: var(--ems-good-50, #e8f5ee); color: var(--ems-good, #1f7a4d); }
.card .sup-live i { background: var(--ems-good, #1f7a4d); }
@keyframes sup-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* Events: a photo hero (EMS US's own Connect<->US evenings), then every date */
.sup-ev { border-radius: var(--ems-r-xl); overflow: hidden; background: var(--ems-surface); box-shadow: var(--ems-raise); }
.sup-ev-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; color: #fff;
  background: radial-gradient(700px 260px at 90% 0%, rgba(214, 170, 76, .22), transparent 60%), linear-gradient(135deg, var(--ems-navy-700), var(--ems-navy-900)); }
.sup-ev-photos { position: absolute; inset: 0; }
.sup-ev-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0; transform: scale(1.04); transition: opacity 1.4s ease, transform 7s ease-out; }
.sup-ev-photos img.is-on { opacity: 1; transform: scale(1); }
.sup-ev-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 21, 71, .94) 0%, rgba(14, 21, 71, .78) 42%, rgba(14, 21, 71, .18) 100%), linear-gradient(0deg, rgba(14, 21, 71, .55), transparent 55%); }
.sup-ev:not(.has-photo) .sup-ev-shade { display: none; }
.sup-ev-in { position: relative; width: 100%; max-width: 660px; padding: 24px 28px 26px; }
.sup-ev-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sup-kicker { margin: 0; font: 700 12px/1.2 var(--ems-font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ems-gold-300); }
.sup-ev-in h2 { margin: 0; color: #fff; font: 800 30px/1.1 var(--ems-font-display); letter-spacing: -.01em; }
.sup-ev-sub { margin: 6px 0 18px; color: rgba(255, 255, 255, .86); font-size: 15px; }
.sup-ev-feature { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.sup-ev-when { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; margin: 0; border: 0; border-radius: var(--ems-r-lg); width: auto; min-height: 0; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); backdrop-filter: blur(6px); font: inherit;
  transition: background-color var(--ems-dur) var(--ems-ease), transform var(--ems-dur-fast) var(--ems-ease); }
.sup-ev-when:hover { background: rgba(255, 255, 255, .18); color: #fff; transform: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.sup-ev-when:active { transform: scale(.985); }
.sup-ev-cal { flex: none; width: 58px; border-radius: 12px; overflow: hidden; text-align: center; background: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.sup-ev-cal > span { display: block; padding: 4px 0; background: var(--ems-red-500); color: #fff; font: 700 11px/1.2 var(--ems-font-ui); letter-spacing: .08em; text-transform: uppercase; }
.sup-ev-cal > b { display: block; padding: 5px 0 7px; font: 800 25px/1 var(--ems-font-display); color: var(--ems-navy-800); }
.sup-ev-what { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sup-ev-what small { font: 700 11.5px/1.2 var(--ems-font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ems-gold-300); }
.sup-ev-what b { font: 700 18px/1.25 var(--ems-font-display); color: #fff; }
.sup-ev-what > span { font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.sup-ev-what i { font-style: normal; display: inline-block; transition: transform var(--ems-dur) var(--ems-ease); }
.sup-ev-when:hover .sup-ev-what i { transform: translateX(3px); }
.sup-ev-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sup-ev-none { margin: 0; color: rgba(255, 255, 255, .85); }
.sup-ev-none a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sup-ev-rail { display: flex; gap: 10px; padding: 14px 16px 16px; overflow-x: auto; scrollbar-width: thin; background: linear-gradient(180deg, var(--ems-soft), var(--ems-surface)); }
.sup-ev-rail > span { flex: none; display: flex; }
.sup-date { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 2px;
  width: 168px; min-height: 0; margin: 0; padding: 10px 12px; border: 0; border-radius: var(--ems-r-md); text-align: left; cursor: pointer; font: inherit;
  background: var(--ems-surface); color: var(--ems-ink); box-shadow: var(--ems-lift);
  transition: transform var(--ems-dur) var(--ems-ease), box-shadow var(--ems-dur) var(--ems-ease); }
.sup-date:hover { transform: translateY(-2px); box-shadow: var(--ems-lift-hover); background: var(--ems-surface); color: var(--ems-ink); }
.sup-date-m { grid-row: 1; grid-column: 1; font: 700 11px/1 var(--ems-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ems-red-500); }
.sup-date > b { grid-row: 2; grid-column: 1; font: 800 24px/1 var(--ems-font-display); color: var(--ems-navy-800); }
.sup-date-w { grid-row: 1; grid-column: 2; font: 600 12.5px/1.2 var(--ems-font-ui); color: var(--ems-ink-2); }
.sup-date-in { grid-row: 2; grid-column: 2; justify-self: start; padding: 2px 8px; border-radius: var(--ems-r-pill); font: 600 11.5px/1.3 var(--ems-font-ui); background: var(--ems-sky-50); color: var(--ems-sky-700); }
.sup-date.is-next { box-shadow: inset 0 0 0 2px var(--ems-gold-400), var(--ems-lift); }
.sup-date.is-next .sup-date-in { background: var(--ems-gold-50); color: var(--ems-gold-700); }

/* One event, in a pop-up */
.modal-overlay.sup-evs-ov { padding: 24px 16px; align-items: center; }
.modal.sup-evs { position: relative; max-width: 640px; width: 100%; padding: 0; overflow: hidden; margin: 0 auto; display: flex; flex-direction: column; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); }
.sup-evs-head { position: relative; flex: none; min-height: 190px; display: flex; align-items: flex-end; color: #fff; background: linear-gradient(135deg, var(--ems-navy-700), var(--ems-navy-900)); }
.sup-evs-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; animation: ems-fade .5s ease-out both; }
.sup-evs-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 21, 71, .92), rgba(14, 21, 71, .2) 75%); }
.sup-evs-x { position: absolute; top: 10px; right: 10px; z-index: 1; background: rgba(255, 255, 255, .92); }
.sup-evs-title { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.sup-evs-title > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.sup-evs-title small { font: 700 11.5px/1.2 var(--ems-font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ems-gold-300); }
.sup-evs-title small .sup-arrows { width: 16px; height: 8px; margin-top: -2px; }
.sup-evs-title > span:last-child > b { font: 800 21px/1.2 var(--ems-font-display); color: #fff; }
.sup-evs-title > span:last-child > span { font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.sup-evs-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 6px; }
.sup-evs-body .sup-steps { margin: 0; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sup-evs-body h3 { margin: 18px 0 8px; font: 700 12px/1.2 var(--ems-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ems-gold-700); }
.sup-know { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
.sup-know li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ems-ink-2); }
.sup-know .ic { flex: none; margin-top: 3px; color: var(--ems-good, #1f7a4d); }
.sup-evs-foot { flex: none; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 22px 16px; border-top: 1px solid var(--ems-line); background: var(--ems-soft); }
.sup-evs-nav { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--ems-font-ui); color: var(--ems-mute); }
.sup-evs-arr { width: 34px; height: 34px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 50%; font: 700 20px/1 var(--ems-font-ui); cursor: pointer; background: var(--ems-surface); color: var(--ems-navy-700); box-shadow: inset 0 0 0 1.5px var(--ems-navy-100); }
.sup-evs-arr:hover:not(:disabled) { background: var(--ems-navy-50); transform: none; }
.sup-evs-arr:disabled { opacity: .35; cursor: default; }
.sup-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sup-steps li { display: flex; gap: 10px; align-items: flex-start; }
.sup-steps li > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.sup-steps b { font: 600 14px/1.3 var(--ems-font-ui); color: var(--ems-navy-800); }
.sup-steps small { font-size: 13px; line-height: 1.45; color: var(--ems-ink-2); }
.sup-step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ems-gold-50); color: var(--ems-gold-700); box-shadow: inset 0 0 0 1px var(--ems-gold-100); font: 700 13px/1 var(--ems-font-ui); }

/* Latest from EMS US */
.sup-news-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sup-post { display: flex; flex-direction: column; border-radius: var(--ems-r-lg); overflow: hidden; text-decoration: none; color: var(--ems-ink); background: var(--ems-surface); box-shadow: var(--ems-lift);
  transition: transform var(--ems-dur) var(--ems-ease), box-shadow var(--ems-dur) var(--ems-ease); }
.sup-post:hover { transform: translateY(-2px); box-shadow: var(--ems-lift-hover); color: var(--ems-ink); }
.sup-post-pic { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ems-navy-50), var(--ems-sky-50)); overflow: hidden; }
.sup-post-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ems-ease); }
.sup-post:hover .sup-post-pic img { transform: scale(1.04); }
.sup-post-txt { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; flex: 1; }
.sup-post-txt small { font: 600 11.5px/1.2 var(--ems-font-ui); letter-spacing: .05em; color: var(--ems-red-500); }
.sup-post-txt b { font: 700 15.5px/1.3 var(--ems-font-display); color: var(--ems-navy-800); }
.sup-post-txt > span { font-size: 13px; line-height: 1.5; color: var(--ems-mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sup-post-txt i { margin-top: auto; padding-top: 4px; font: 600 12.5px/1.2 var(--ems-font-ui); font-style: normal; color: var(--ems-navy-500); display: inline-flex; align-items: center; gap: 4px; }

/* About EMS US */
.sup-lede { margin: 0 0 16px; font-size: 15.5px; line-height: 1.6; color: var(--ems-ink-2); }
.sup-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sup-stat { position: relative; padding: 14px 14px 12px; border-radius: var(--ems-r-md); background: linear-gradient(160deg, var(--ems-navy-700), var(--ems-navy-900)); color: #fff; overflow: hidden; }
.sup-stat::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--ems-gold-400), var(--ems-red-400)); }
.sup-stat b { display: block; font: 800 26px/1.1 var(--ems-font-display); color: var(--ems-gold-300); }
.sup-stat span { font-size: 13px; color: rgba(255, 255, 255, .82); }
.sup-mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.sup-mv > div { padding: 14px 16px; border-radius: var(--ems-r-md); background: var(--ems-soft); box-shadow: inset 4px 0 0 var(--ems-red-500); }
.sup-mv > .is-vision { background: var(--ems-sky-50); box-shadow: inset 4px 0 0 var(--ems-sky-500); }
.sup-mv h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font: 700 12px/1.2 var(--ems-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ems-red-600); }
.sup-mv .is-vision h3 { color: var(--ems-sky-700); }
.sup-mv p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ems-ink-2); }

/* Support EMS US: a navy band with a brass call, then the other ways to help */
.sup-give-band { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: -4px -4px 14px; padding: 18px 20px; border-radius: var(--ems-r-lg); color: #fff;
  background: radial-gradient(500px 200px at 100% 0%, rgba(190, 30, 45, .35), transparent 60%), linear-gradient(135deg, var(--ems-navy-700), var(--ems-navy-900)); }
.sup-give-heart { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--ems-red-200); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.sup-give-txt { flex: 1 1 280px; min-width: 0; }
.sup-give-txt h2 { margin: 0 0 3px; color: #fff; }
.sup-give-txt p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.sup-give-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sup-row.is-static { cursor: default; }
.sup-row.is-static:hover { background: var(--ems-soft); }
.sup-row.is-static:active { transform: none; }

/* Edit team: the face is the photo button */
.sup-ephoto { position: relative; display: grid; justify-items: center; gap: 2px; cursor: pointer; align-self: center; }
/* Only the "Photo" word: a bare `> span` also caught the initials and turned
   them navy on navy (Tyler 11-15: "the letters should be white"). */
.sup-ephoto-lbl { font: 600 11px/1.2 var(--ems-font-ui); color: var(--ems-navy-500); }
.sup-ephoto:hover .sup-ephoto-lbl { text-decoration: underline; }
.sup-ephoto .sup-initials { color: #fff; }

/* Edit page: the people + how to reach EMS US. The rest is emsus.org, read live. */
.sup-editing { padding-bottom: 8px; }
.sup-egrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 14px; }
.sup-egrid .field { margin: 0; }
.sup-edit-live { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 16px; border-radius: var(--ems-r-md); background: var(--ems-soft); color: var(--ems-mute); font-size: var(--ems-fs-sm); line-height: 1.45; }
.sup-edit-live svg { flex: none; margin-top: 2px; color: var(--ems-navy-500); }
.sup-edit-live a { color: var(--ems-navy-600); font-weight: 600; }
/* Save stays in reach while scrolling a long team */
.sup-editing .sup-edit-bar {
  position: sticky; bottom: 0; z-index: 3; margin: 0; padding: 12px 16px; justify-content: flex-end; align-items: center;
  border-radius: var(--ems-r-lg); background: var(--ems-surface); box-shadow: 0 -6px 24px rgba(16, 24, 64, .12);
}
.sup-editing .sup-edit-bad { margin: 0 auto 0 0; }

/* A face with no photo yet: initials on navy with a brass ring */
.sup-initials { box-shadow: 0 0 0 3px var(--ems-surface), 0 0 0 5px var(--ems-gold-300); }

@media (max-width: 900px) {
  .sup-news-row { grid-template-columns: minmax(0, 1fr); }
  .sup-post { flex-direction: row; }
  .sup-post-pic { flex: none; width: 120px; aspect-ratio: auto; }
  .sup-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sup-ev-hero { min-height: 0; }
  .sup-ev-in { padding: 20px 18px 20px; }
  .sup-ev-in h2 { font-size: 25px; }
  .sup-ev-shade { background: linear-gradient(0deg, rgba(14, 21, 71, .95) 30%, rgba(14, 21, 71, .55)); }
  .sup-ev-when { width: 100%; }
  .sup-ev-acts { width: 100%; }
  .sup-ev-acts .sup-btn { flex: 1; justify-content: center; }
  .sup-steps { grid-template-columns: minmax(0, 1fr); }
  .sup-post-pic { width: 96px; }
  .modal-overlay.sup-evs-ov { padding: 10px; }
  .modal.sup-evs { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .sup-evs-head { min-height: 150px; }
  .sup-evs-title b { font-size: 18px; }
  .sup-evs-foot { padding: 10px 14px 12px; }
  .sup-evs-foot .sup-ev-acts .sup-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sup-btn:active, .sup-date:hover, .sup-post:hover { transform: none; }
  .sup-ev-photos img { transition: none; transform: none; }
  .sup-live i { animation: none; }
}
/* Headings on the navy bands stay white (the app's card h2 colour is navy). */
#view .sup-ev-in h2, #view .sup-give-txt h2 { color: #fff; }
/* News pictures are EMS US's newsletter graphics, words and all: shown whole. */
.sup-post-pic { background: #fff; border-bottom: 1px solid var(--ems-line); }
.sup-post-pic img { object-fit: contain; }
@media (max-width: 760px) {
  .sup-card-head { flex-wrap: wrap; }
  .sup-card-head > .sup-live { order: 3; flex-basis: auto; }
  .sup-post { flex-direction: column; }
  .sup-post-pic { width: auto; aspect-ratio: 16 / 9; }
}
