/* What's on Harvey — community listings look (20 Nov): slate navy + orange, Source Sans 3,
   white page, soft slate cards with a blue left rule, pill controls. */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-var.woff2") format("woff2");
}

:root {
  --navy: #2F4A63;
  --navy-ink: #1F2933;
  --orange: #E67B29;
  --orange-soft: #F39A52;
  --ink: #16181D;
  --muted: #5C6570;
  --page: #FFFFFF;
  --card: #E2E7EE;
  --card-rule: #1E4B8A;
  --chip-bg: #F3F5F8;
  --chip-hover: #E8ECF1;
  --line: #D8DCE3;
  --line-strong: #C9D1DB;
  --pill-line: #C9D0DA;
  --band-kicker: #C9D6E3;
  --band-lede: #E6ECF2;
  --badge-ink: #F7F9FC;
  --footer-bg: #F7F8FA;
  --footer-ink: #2B2F36;
  --radius-card: 21.42px;
  --radius-band: 18px;
  --pad: 1rem;
  --max: 48rem;
  --tap: 2.75rem;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.35;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--navy); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  z-index: 30;
  font-weight: 600;
}
.skip:focus { top: 0.75rem; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---- Top bar (white, hairline under) ---- */
.topbar {
  background: #fff;
  border-bottom: 1px solid #E5E8EC;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.brandmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.brandmark span { color: var(--orange); }

/* ---- Hero (sits directly under the What's on Harvey title card) ---- */
.masthead {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1.1rem;
  padding-bottom: 0.9rem;
}
.hero { margin: 0; }
.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-band);
  background: #1A2430;
}
.hero-frame img,
.hero-frame picture,
.hero-frame picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero-frame picture { overflow: hidden; }
.hero-ph-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(to top, rgba(22, 24, 29, 0.72), rgba(22, 24, 29, 0));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}
.hero figcaption {
  padding: 0.35rem 0.25rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}
@media (min-width: 800px) {
  .masthead {
    gap: 1.1rem;
    padding-top: 1.35rem;
    padding-bottom: 1.1rem;
  }
  .hero-frame { aspect-ratio: 21 / 9; max-height: 340px; }
  .hero-frame img,
  .hero-frame picture img { object-position: 50% 50%; }
}

/* ---- Title band (slate band, white text) ---- */
.title-band {
  background: var(--navy);
  border-radius: var(--radius-band);
  padding: 1.25rem 1.25rem 1.3rem;
}
.kicker {
  margin: 0;
  color: var(--band-kicker);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wordmark {
  margin: 0.35rem 0 0;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.wordmark em { font-style: normal; color: var(--orange-soft); }
.lede {
  margin: 0.6rem 0 0;
  max-width: 36rem;
  color: var(--band-lede);
  font-size: 1.0625rem;
  line-height: 1.5;
}
@media (min-width: 640px) {
  .title-band { padding: 1.6rem 1.75rem; }
  .kicker { font-size: 0.875rem; }
  .wordmark { font-size: 2.5rem; }
  .lede { font-size: 1.125rem; }
}

/* ---- Buttons ---- */
.btn,
.btn-add-event,
.btn-remind,
.btn-primary,
.btn-secondary,
.btn-submit,
.btn-cancel,
.btn-a2hs,
.btn-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: var(--tap);
  padding: 0.5rem 1.1rem;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  max-width: 100%;
  text-align: center;
}
.btn-add-event,
.btn-primary,
.btn-submit {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
}
.btn-add-event:hover,
.btn-primary:hover,
.btn-submit:hover { background: #263D52; }
.btn-add-event-top {
  min-height: 2.35rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: #2B2F36;
  border-color: #2B2F36;
  font-size: 0.875rem;
  white-space: nowrap;
}
.btn-add-event-top:hover { background: #16181D; }
.btn-secondary,
.btn-cancel,
.btn-a2hs {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
}
.btn-secondary:hover,
.btn-cancel:hover,
.btn-a2hs:hover { background: var(--chip-bg); }
.btn-dismiss {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: var(--tap);
  padding: 0.45rem 0.7rem;
}
.btn-add-event-footer { width: 100%; max-width: 22rem; }

/* Remind me: white pill inside the card */
.btn-remind {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--pill-line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}
.btn-remind:hover { background: var(--chip-bg); }
.btn-remind:active { background: #EEF1F5; }
.btn-remind svg { flex-shrink: 0; width: 18px; height: 18px; }

/* ---- Add to Home Screen banner ---- */
.a2hs {
  display: none;
  padding: 0.75rem 0 0;
}
.a2hs.is-visible { display: block; }
@media (display-mode: standalone) {
  .a2hs { display: none !important; }
}
html.hide-a2hs .a2hs,
html.hide-a2hs .a2hs-overlay,
html.hide-a2hs dialog.ios-help {
  display: none !important;
}
.a2hs .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.a2hs .wrap::before {
  content: "";
  display: none;
}
.a2hs p {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--navy-ink);
  font-weight: 600;
}
.a2hs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}

/* ---- Section tabs (segmented pill control) ---- */
.controls {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #E5E8EC;
  padding: 0.6rem 0;
  margin-top: 1rem;
}
.jump {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0;
  padding: 3px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
}
.jump::-webkit-scrollbar { display: none; }
.jump a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #4A5563;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.jump a:hover { background: var(--chip-hover); color: var(--ink); }
.jump a:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.jump a[aria-current="true"] {
  background: #fff;
  color: var(--navy);
  border-color: var(--line-strong);
}
@media (max-width: 639px) {
  .jump {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    border-radius: 22px;
    row-gap: 2px;
  }
  .jump a {
    justify-content: center;
    padding: 0.3rem 0.25rem;
    font-size: 0.875rem;
    min-height: 2.15rem;
  }
  .jump a:nth-child(1),
  .jump a:nth-child(2),
  .jump a:nth-child(3) { grid-column: span 2; }
  .jump a:nth-child(4),
  .jump a:nth-child(5) { grid-column: span 3; }
}

/* ---- Filters: compact inline label + pill field ---- */
.filter-bar { padding: 0.75rem 0 0; }
.filters { display: grid; gap: 0.6rem; }
@media (min-width: 640px) {
  .filters { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0.6rem 1rem; }
}
.filters label.field {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.filters label.field input,
.filters label.field select {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}
.filters select {
  padding-right: 2.25rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232F4A63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}

label.field,
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-ink);
}

input[type="search"],
input[type="text"],
input[type="date"],
input[type="time"],
select,
textarea {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  background-color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  min-height: var(--tap);
  padding: 0.4rem 0.8rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
input[type="date"],
input[type="time"] { display: block; line-height: 1.3; }
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value { text-align: left; }
textarea { min-height: 5rem; resize: vertical; padding-top: 0.55rem; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

.filter-status {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.filter-status:empty { display: none; }

/* ---- Sections ---- */
main.wrap { padding-bottom: 2.5rem; }
section { margin-top: 2rem; scroll-margin-top: 7.5rem; }
#today { margin-top: 1.5rem; }
.section-head h2 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-head h2 .count { color: var(--muted); font-weight: 500; }
.section-head p {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}
.day-group, .date-group { margin-top: 1rem; }
.day-group h3, .date-group h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

/* ---- Cards: slate tint, blue left rule, big radius ---- */
.cards {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cards > li { margin: 0; }
.card {
  position: relative;
  background: var(--card);
  border-left: 3px solid var(--card-rule);
  border-radius: var(--radius-card);
  padding: 10px 14px 12px 15px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
#closing-soon .cards { gap: 13.5px; }
.card-body { display: block; min-width: 0; }
.card-main { min-width: 0; }

/* Date pill (top of card): "Fri 21 Nov", "Closes 30 Nov", "Mon · Weekly" */
.date-block {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  margin: 2px 0 6px;
  padding: 2.25px 8px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--badge-ink);
  font-size: 12.6px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.date-block .date-dow { order: 1; }
.date-block .date-label { order: 0; }
.date-block .date-num { order: 2; }
.date-block .date-mon { order: 3; }
.card .date-block .date-dow::after { content: ""; }

.card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy-ink);
}
.when, .where, .blurb {
  margin: 2px 0 0;
  font-size: 15.75px;
  line-height: 1.3;
  color: var(--navy-ink);
}
.when { font-weight: 600; }
.where { font-weight: 400; }
.blurb { margin-top: 4px; }
.card-image {
  margin: 10px 0 0;
  max-width: 16rem;
}
.card-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
}
.card .btn-remind { margin: 10px 0 2px; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 10px 0 0;
}
.actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--pill-line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.actions a:hover { background: var(--chip-bg); }
details.more { margin-top: 8px; }
details.more summary {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  cursor: pointer;
  font-size: 15.75px;
  font-weight: 400;
  color: var(--navy-ink);
}
details.more .extra {
  margin-top: 0.3rem;
  font-size: 15.75px;
  color: var(--navy-ink);
}
details.more .extra p { margin: 0 0 0.35rem; }
details.more .extra p:last-child { margin-bottom: 0; }
details.more ul { margin: 0.25rem 0 0; padding-left: 1.2rem; }

.empty {
  margin: 0.75rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-card);
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 1rem;
}

/* ---- About note ---- */
.from-duncan-slot { padding: 0 0 2rem; }
html.hide-about .from-duncan-slot { display: none; }
.from-duncan {
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-band);
  padding: 1.1rem 1.25rem;
}
.from-duncan h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}
.from-duncan .note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--navy-ink);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-top: 1px solid #E5E8EC;
  padding: 1.75rem 0 2.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.site-footer p { margin: 0 0 0.7rem; }
.site-footer p:last-child { margin-bottom: 0; }
.footer-actions { margin: 0.95rem 0 0.9rem; }
.site-footer .send a { font-weight: 600; color: var(--navy); }
.updated { color: var(--muted); }

/* ---- Dialogs / sheets ---- */
dialog.add-event,
dialog.sheet,
dialog.ios-help {
  width: calc(100% - 1.5rem);
  max-width: 26rem;
  max-height: calc(100vh - 1.5rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-band);
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  box-shadow: 0 10px 32px rgba(22, 24, 29, 0.22);
  overflow-x: hidden;
  overflow-y: auto;
}
dialog.add-event::backdrop,
dialog.sheet::backdrop,
dialog.ios-help::backdrop {
  background: rgba(22, 24, 29, 0.5);
}
@media (max-width: 639px) {
  dialog.sheet,
  dialog.ios-help {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    max-height: calc(100vh - 2rem);
  }
}

#add-event-form,
#remind-form,
#ios-help-form {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem 1.15rem 1.2rem;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}
#add-event-form h2,
#remind-form h2,
#ios-help-form h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.form-note,
.sheet-event,
.sheet-when {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--muted);
}
.form-note.ink { color: var(--ink); }
.sheet-when { font-size: 1rem; color: var(--navy-ink); }
.sheet-event {
  font-weight: 600;
  color: var(--navy-ink);
  font-size: 1.125rem;
}
.time-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  min-width: 0;
}
.time-fields .field { min-width: 0; }

.choice-set { margin: 0; padding: 0; border: 0; }
.choice-set legend {
  padding: 0;
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-ink);
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--tap);
  padding: 0.2rem 0.85rem;
  margin: 0 0 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
  font-weight: 500;
  color: #4A5563;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--navy);
  font-weight: 600;
}
.choice input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}
.btn-submit, .btn-cancel { flex: 1 1 auto; }
#remind-form .btn-primary,
#remind-form .btn-secondary { width: 100%; }

.a2hs-share-icon {
  display: inline-flex;
  vertical-align: middle;
  color: var(--navy);
  margin: 0 0.1rem;
}
.a2hs-arrow {
  display: none;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 18px solid #fff;
  margin: 0 auto 0.35rem;
  filter: drop-shadow(0 1px 1px rgba(22, 24, 29, 0.2));
}
dialog.ios-help.is-ios-phone .a2hs-arrow { display: block; }
dialog.ios-help.is-ios-pad { margin: 0.75rem auto auto; }
dialog.ios-help.is-ios-pad .a2hs-arrow {
  display: block;
  border-top: 0;
  border-bottom: 18px solid #fff;
  margin: 0.35rem 1.1rem 0 auto;
}

html.hide-remind .btn-remind { display: none; }

@media (min-width: 800px) {
  .a2hs .wrap { flex-wrap: nowrap; align-items: center; gap: 1rem; }
  .a2hs p { flex: 1 1 auto; }
  .a2hs-actions { flex-wrap: nowrap; flex: 0 0 auto; margin-left: 0; }
}

/* Calendar promo sits in the same column */
.promo-cal27-host { margin-top: 0.25rem; }

/* Remind me and the link pills share one row when they fit */
.card .btn-remind { margin: 10px 6px 0 0; vertical-align: top; }
.card-main > .actions { display: inline-flex; vertical-align: top; max-width: 100%; }

/* Under a day heading the date pill would repeat the heading, so hide it there.
   Today, Closing soon and Regulars keep their pill. */
.date-group .card .date-block { display: none; }


/* ---- In-page flyer lightbox (iOS PWA-safe; no navigation away) ---- */
html.flyer-open,
body.flyer-open {
  overflow: hidden;
}
body.flyer-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
.flyer-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: #16181D;
  color: #fff;
}
.flyer-modal[hidden] { display: none; }
.flyer-modal-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: calc(3.25rem + env(safe-area-inset-top, 0px));
  padding: calc(0.55rem + env(safe-area-inset-top, 0px)) 0.75rem 0.55rem;
  background: #1F2933;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.flyer-back,
.flyer-close {
  flex: 0 0 auto;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1F2933;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.flyer-back { min-width: 5.75rem; }
.flyer-close {
  margin-left: auto;
  font-size: 1.25rem;
  padding: 0 0.85rem;
}
.flyer-modal-title {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #F7F9FC;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flyer-modal-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  touch-action: pan-x pan-y pinch-zoom;
}
.flyer-modal-body img,
.flyer-modal-body iframe {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 80px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  width: auto;
  height: auto;
  object-fit: contain;
  background: #0f1216;
}
.flyer-modal-body iframe {
  width: 100%;
  height: calc(100dvh - 80px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  border: 0;
  background: #fff;
}
.flyer-fallback {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 1rem;
}
.flyer-fallback a {
  color: #fff;
  font-weight: 700;
}

/* WHYTOP21: footer explainer tucked into the top-right corner, small and secondary */
.why-corner-row{display:flex;justify-content:flex-end;margin-top:6px;margin-bottom:-2px}
.why-corner{font-size:.78rem;line-height:1.35;opacity:.75;margin:0;text-align:right}
.why-corner-wide{max-width:360px}
.why-corner-narrow{display:none}
.why-corner-narrow summary{cursor:pointer;list-style:none;text-decoration:underline;text-underline-offset:2px}
.why-corner-narrow summary::-webkit-details-marker{display:none}
.why-corner-narrow[open] p{margin:4px 0 0;max-width:280px;margin-left:auto}
@media (max-width:640px){.why-corner-wide{display:none}.why-corner-narrow{display:block}}
/* WHYFULL21: About text spans full width, left-aligned (overrides WHYTOP21 corner) */
.why-corner-row{display:block}
.why-corner-wide{max-width:none;text-align:left}
.why-corner-narrow{text-align:right}
.why-corner-narrow[open] p{max-width:none;margin-left:0;text-align:left}
