/* City Rhythm — Moving Pin
   A bright, map-led visual layer that differentiates Donde Bailamos from dark editorial
   dance directories. Option A is preserved in theme-option-a.css and the dated theme snapshot. */
:root {
  --ink: #18212b;
  --ink-soft: #23334a;
  --paper: #fff9ee;
  --paper-bright: #fffef9;
  --coral: #2347a5;
  --coral-dark: #18347c;
  --acid: #ffc44d;
  --mint: #d9f3ec;
  --blue: #20a88a;
  --agave: #20a88a;
  --dance-pink: #e94b7a;
  --line: rgba(24, 33, 43, .15);
  --line-light: rgba(255, 249, 238, .22);
  --muted: #5c6773;
  --shadow: 0 24px 70px rgba(35, 71, 165, .12);
}

body { background: var(--paper); font-family: "Source Sans 3", Arial, sans-serif; }
h1, h2, h3, h4, h5,
.hero h1, .section-heading h2, .city-summary h3, .quick-answers-heading h3,
.event-list-heading h3, .event-calendar-header h4, .calendar-day-number time,
.city-guide-copy h2, .passport-copy h2, .organizer-copy h2, .trust-section h2,
.school-map-detail h5, .difference-statement p, .passport-card-head strong,
.stamp span { font-family: "Bricolage Grotesque", Arial, sans-serif; }

.prototype-bar { background: var(--acid); color: var(--ink); }
.site-header {
  background: rgba(255, 249, 238, .96);
  border-bottom-color: rgba(35, 71, 165, .16);
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(35, 71, 165, .1);
}
.brand { gap: 10px; color: var(--ink); letter-spacing: 0; }
.brand, .brand-wordmark { min-width: 0; }
.brand-mark { display: none; }
.brand-logo { width: 34px; height: 42px; flex: 0 0 auto; object-fit: contain; }
.brand-wordmark { display: grid; gap: 1px; line-height: .86; }
.brand-wordmark strong { font-family: "Bricolage Grotesque", Arial, sans-serif; font-size: 17px; font-weight: 750; letter-spacing: -.035em; }
.brand-wordmark small { color: var(--coral-dark); font-size: 7px; font-weight: 750; letter-spacing: .13em; line-height: 1.25; text-transform: uppercase; }
.site-header .desktop-nav a, .site-header .text-button { color: var(--ink-soft); }
.site-header .desktop-nav a:hover, .site-header .text-button:hover { color: var(--coral); }
.site-header .city-picker-wrap { border-color: rgba(35, 71, 165, .2); background: rgba(255, 255, 255, .72); }
.site-header .city-picker-wrap label { color: var(--muted); }
.site-header .city-picker-wrap select { color: var(--ink); background-color: transparent; }
.site-header .city-picker-wrap option { color: var(--ink); background: var(--paper-bright); }
.site-header .button-dark { background: linear-gradient(135deg, var(--coral), #2f62d3); color: #fff; }
.site-header .button-dark:hover { background: #18347c; }

.hero { min-height: min(720px, calc(100vh - 102px)); background: var(--paper); color: var(--ink); }
.hero::before {
  background:
    linear-gradient(90deg, rgba(255, 249, 238, .99) 0%, rgba(255, 249, 238, .94) 38%, rgba(255, 249, 238, .45) 67%, rgba(255, 249, 238, .12) 100%),
    linear-gradient(145deg, rgba(35, 71, 165, .12) 0 18%, transparent 18% 100%);
}
.hero::after { background: #fff9ee var(--city-hero-image, url("assets/dondebailamos-calgary-hero-bachata-v2.png")) 62% 50% / cover no-repeat; }
.hero-glow-one { background: radial-gradient(circle, rgba(32, 168, 138, .28), transparent 68%); }
.hero-glow-two { background: radial-gradient(circle, rgba(255, 196, 77, .42), transparent 68%); }
.hero .eyebrow { color: var(--coral-dark); }
.hero h1 { color: var(--ink); font-weight: 720; letter-spacing: -.055em; }
.hero h1 em { color: var(--coral); }
.hero h1 em::after { content: ""; display: block; width: min(310px, 55%); height: 5px; margin: 10px 0 0 auto; border-radius: 99px; background: var(--agave); transform: rotate(-2deg); }
.hero-proof { border-color: rgba(35, 71, 165, .16); background: rgba(255, 254, 249, .82); }
.hero-proof strong { color: var(--coral-dark); }
.hero-copy { width: min(670px, 100%); overflow-wrap: anywhere; }
.hero-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-actions .button { min-height: 46px; padding-inline: 22px; }
.button-ghost { border: 1px solid rgba(35, 71, 165, .38); background: rgba(255, 254, 249, .74); color: var(--coral-dark); }
.button-ghost:hover { border-color: var(--coral); background: #fff; }
.hero-copy { color: #344150; }
.hero-trust { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin: 15px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.hero-trust span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(32, 168, 138, .16); color: #08745f; }

.activity-hub {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 54px 0 26px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, .78);
  box-shadow: 0 14px 42px rgba(35, 71, 165, .08);
}
.activity-hub h3 { margin: 3px 0 5px; font-size: clamp(28px, 4vw, 45px); line-height: 1; }
.activity-hub p { margin: 0; color: var(--muted); font-size: 12px; }
.activity-switch { display: inline-flex; flex: 0 0 auto; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #eaf3f0; }
.activity-switch button { min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; }
.activity-switch button.is-active { background: var(--coral); color: #fff; box-shadow: 0 7px 18px rgba(35, 71, 165, .2); }
.schedule-pane[hidden] { display: none !important; }

.offer-board {
  margin: 24px 0;
  padding: 26px;
  border: 1px solid rgba(35, 71, 165, .14);
  border-radius: 22px;
  background: linear-gradient(135deg, #fffef9, #e9f7f2 62%, #fff4cf);
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(35, 71, 165, .08);
}
.offer-board-heading { align-items: end; }
.offer-board-heading h4 { margin: 3px 0 6px; font-size: clamp(27px, 4vw, 40px); }
.offer-board-heading p { max-width: 700px; margin: 0; color: var(--muted); }
.offer-grid { gap: 12px; }
.offer-card { min-height: 0; padding: 18px; border-color: rgba(35, 71, 165, .12); background: rgba(255, 255, 255, .82); color: var(--ink); box-shadow: none; }
.offer-card-top { color: var(--coral-dark); }
.offer-card-top strong { color: var(--muted); }
.offer-card h5 { margin: 14px 0 3px; color: var(--ink); font-family: "Bricolage Grotesque", Arial, sans-serif; font-size: 20px; }
.offer-card > p { color: var(--muted); }
.offer-card .offer-value { color: var(--ink); }
.offer-metrics { display: flex; flex-wrap: wrap; }
.offer-metrics div { min-width: 108px; border-color: rgba(35, 71, 165, .1); background: #f2faf7; }
.offer-metrics dt { color: var(--muted); }
.offer-metrics dd { color: var(--ink); }
.offer-card summary { color: var(--coral-dark); }
.offer-card details p { color: var(--muted); }
.offer-card footer { border-top-color: rgba(35, 71, 165, .12); }
.offer-card footer span { color: var(--muted); }
.offer-card footer a { color: var(--ink); }

.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #23334a; }
.button-coral { background: var(--coral); color: #fff; }
.button-coral:hover { background: #18347c; }
.eyebrow-dark, .text-link, .school-profile-prices summary { color: var(--coral-dark); }
.live-dot { background: var(--agave); box-shadow: 0 0 0 5px rgba(32, 168, 138, .16); }
.calendar-day.is-today { background: rgba(244, 185, 66, .18); box-shadow: inset 0 3px 0 var(--acid); }
.class-calendar .event-calendar-header { background: linear-gradient(120deg, rgba(35, 71, 165, .1), rgba(32, 168, 138, .13) 62%, transparent); }
.organizer-panel { background: linear-gradient(135deg, #f7c65a, var(--acid)); }
.difference-section, .trust-section, .passport-section, .site-footer { background: var(--ink); }
.site-footer .brand-logo { width: 36px; height: 43px; }

.calendar-detail-popover {
  width: min(340px, calc(100vw - 24px));
  min-height: 108px;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 5px 14px;
  padding: 14px 16px;
  border-color: rgba(255, 249, 238, .22);
  border-radius: 16px;
  background: rgba(24, 52, 124, .98);
  box-shadow: 0 18px 42px rgba(24, 33, 43, .3);
}
.calendar-detail-popover > small,
.calendar-detail-popover > strong,
.calendar-detail-popover > span:not(.calendar-detail-logo) { grid-column: 1; }
.calendar-detail-popover small { color: var(--acid); }
.calendar-detail-popover strong { padding-right: 2px; font-family: "Bricolage Grotesque", Arial, sans-serif; font-size: 16px; }
.calendar-detail-popover span { color: rgba(255, 249, 238, .82); }
.calendar-detail-popover::after { background: rgba(24, 52, 124, .98); }
.calendar-detail-logo {
  grid-column: 2 !important;
  grid-row: 1 / span 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  align-self: start;
  overflow: hidden;
  border: 2px solid rgba(255, 249, 238, .92);
  border-radius: 14px;
  background: var(--paper-bright);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}
.calendar-detail-logo img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.calendar-detail-logo.is-wide img { padding: 7px 4px; }
.calendar-detail-logo.is-fallback { border-color: rgba(255, 196, 77, .62); background: linear-gradient(145deg, #2347a5, #18347c); }
.calendar-detail-logo.is-fallback img { padding: 6px; }
.calendar-detail-source .calendar-detail-logo { display: none; }

@media (max-width: 860px) {
  .menu-button { border-color: rgba(35, 71, 165, .24); }
  .menu-button span { background: var(--ink); }
  .mobile-nav { background: var(--paper-bright); color: var(--ink); }
  .activity-hub { align-items: stretch; flex-direction: column; }
  .activity-switch { align-self: flex-start; }
}

@media (max-width: 600px) {
  .brand-logo { width: 34px; height: 41px; }
  .brand-wordmark strong { font-size: 13px; }
  .brand-wordmark small { display: none; }
  .hero { min-height: 330px; }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(255, 249, 238, .99) 0%, rgba(255, 249, 238, .92) 56%, rgba(255, 249, 238, .28) 100%),
      linear-gradient(90deg, rgba(35, 71, 165, .14), rgba(32, 168, 138, .05));
  }
  .hero::after { background-position: 62% center; }
  .hero h1 em::after { width: 52%; height: 4px; }
  .hero-actions { align-items: center; flex-direction: row; gap: 8px; width: 100%; margin-top: 14px; }
  .hero-actions .button { min-height: 40px; justify-content: center; padding-inline: 13px; font-size: 10px; }
  .hero-trust { margin-top: 10px; }
  .activity-hub { margin-top: 34px; padding: 18px; border-radius: 17px; }
  .activity-switch { width: 100%; }
  .activity-switch button { flex: 1 1 50%; padding-inline: 10px; }
  .offer-board { padding: 18px; border-radius: 17px; }
  .calendar-detail-popover { grid-template-columns: minmax(0, 1fr) 48px; gap: 5px 10px; }
  .calendar-detail-logo { width: 48px; height: 48px; border-radius: 12px; }
}

@media (max-width: 430px) {
  .site-header { grid-template-columns: minmax(0, 1fr) 104px auto 40px; gap: 6px; padding-right: 12px; padding-left: 12px; }
  .brand { gap: 5px; }
  .brand-logo { width: 27px; height: 33px; }
  .brand-wordmark { overflow: hidden; }
  .brand-wordmark strong { overflow: hidden; font-size: 10px; text-overflow: clip; }
  .header-city-picker select { padding-right: 19px; padding-left: 7px; }
}

/* Decision-first planner: keep the rich views available without stacking them. */
.discover { padding-top: 72px; padding-bottom: 72px; }
.quick-answers { margin-top: 18px; padding: 22px; }
.quick-answers-heading h3 { font-size: clamp(28px, 3vw, 32px); }
.quick-answer-buttons { margin-top: 14px; }
.quick-answer-buttons button { min-height: 36px; padding-inline: 13px; }
.quick-answer-result { margin-top: 14px; }
.quick-answer-summary { grid-template-columns: minmax(220px, .7fr) 1.3fr; gap: 18px; padding: 16px 18px; }
.quick-answer-summary h4 { font-size: 22px; }
.quick-answer-group > header { padding: 10px 16px; }
.quick-answer-item { padding: 12px 16px; }
.quick-answer-empty { padding: 16px; }

.event-list-heading { margin: 32px 0 16px; }
.social-explorer { padding-top: 24px; }
.social-explorer .event-list-heading { align-items: end; margin-top: 0; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(125deg, rgba(35,71,165,.12), rgba(32,168,138,.12) 58%, rgba(244,185,66,.16)); }
.social-explorer .event-list-heading h3 { font-size: clamp(32px, 4vw, 44px); }
.social-explorer .event-card { overflow: hidden; border-top: 0; }
.event-list-heading h3 { font-size: clamp(28px, 3vw, 32px); }
.event-calendar-header h4 { font-size: clamp(25px, 3vw, 30px); }
.event-load-more { width: fit-content; margin: 18px auto 0; }

.class-directory { margin-top: 34px; padding-top: 28px; }
.class-directory-heading { display: block; margin-bottom: 16px; }
.class-directory-heading h3 { font-size: clamp(30px, 3.5vw, 36px); }
.class-directory-heading > div > p:last-of-type { margin-top: 8px; }
.class-view-switch { margin-top: 14px; }
.class-explorer-filters { margin-bottom: 16px; padding: 14px 16px 12px; border-radius: 16px; }
.class-explorer-filters > header { align-items: center; margin-bottom: 10px; }
.class-explorer-filters h4 { font-size: 21px; }
.class-explorer-filters header p:last-child { margin-top: 3px; }
.class-filter-grid { grid-template-columns: minmax(140px, .42fr) minmax(280px, 1.58fr); gap: 8px; }
.class-filter-day,
.class-filter-styles { padding: 10px; border-radius: 11px; }
.class-filter-day { gap: 6px; }
.class-filter-day select { min-height: 36px; }
.class-filter-styles > div { margin-top: 6px; }
.class-filter-styles button { min-height: 29px; }
.class-filter-result { margin-top: 8px; }

.class-grid { grid-template-columns: 1fr; gap: 8px; }
.class-card--school { display: block; padding: 0; overflow: hidden; border-radius: 14px; }
.class-card--school > summary { list-style: none; }
.class-card--school > summary::-webkit-details-marker { display: none; }
.class-card-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.class-card-summary-copy { min-width: 0; display: grid; gap: 2px; }
.class-card-summary-copy small { color: var(--coral-dark); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.class-card-summary-copy strong { overflow: hidden; font-family: "Bricolage Grotesque", Arial, sans-serif; font-size: 19px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.class-card-summary-copy > span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.class-card-summary-styles { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.class-card-summary-styles > span { padding: 5px 7px; border-radius: 999px; background: rgba(32, 168, 138, .12); color: #08745f; font-size: 8px; font-weight: 850; }
.class-card-summary-action { color: var(--coral-dark); font-size: 9px; font-weight: 850; white-space: nowrap; }
.class-card-summary-action::after { content: " +"; }
.class-card--school[open] .class-card-summary { border-bottom: 1px solid var(--line); background: rgba(244, 185, 66, .08); }
.class-card--school[open] .class-card-summary-action::after { content: " −"; }
.class-card-body { padding: 0 16px 16px; }

.offer-board { margin: 18px 0 0; padding: 16px 18px; border-radius: 16px; }
.offer-board-heading { margin-bottom: 10px; }
.offer-board-heading h4 { margin-top: 1px; font-size: 24px; }
.offer-grid { grid-template-columns: 1fr; gap: 6px; }
.offer-card { display: block; padding: 0; overflow: hidden; border-radius: 12px; }
.offer-card-main { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 14px; }
.offer-card-main > div { min-width: 0; }
.offer-card-main span { color: var(--coral-dark); font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.offer-card-main h5 { margin: 3px 0 0; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.offer-card-main .offer-value { margin: 0; font-size: 13px; white-space: nowrap; }
.offer-card-main > a { color: var(--coral-dark); font-size: 9px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.offer-card > details { margin: 0; padding: 9px 14px 12px; border-top: 1px solid rgba(35, 71, 165, .1); }
.offer-card > details > summary { width: fit-content; }
.offer-card > details p { margin-bottom: 0; }

@media (max-width: 600px) {
  .hero { min-height: 228px; padding: 30px 18px 24px; }
  .hero .eyebrow { margin-bottom: 6px; font-size: 8px; }
  .hero h1 { max-width: 300px; font-size: clamp(34px, 9.8vw, 40px); }
  .hero h1 em::after { height: 3px; margin-top: 6px; }
  .discover { padding-top: 8px; padding-bottom: 40px; }
  .quick-answers { padding: 16px 14px; }
  .quick-answers-heading h3 { font-size: 27px; }
  .quick-answer-buttons { flex-wrap: wrap; margin-right: 0; padding-right: 0; overflow: visible; }
  .quick-answer-buttons button { min-height: 34px; padding-inline: 10px; }
  .quick-answer-summary { gap: 6px; padding: 14px; }
  .quick-answer-summary h4 { font-size: 20px; }
  .quick-answer-group > header { padding: 9px 13px; }
  .quick-answer-item { padding: 11px 13px; }
  .event-list-heading { margin-top: 27px; }
  .social-explorer { padding-top: 8px; }
  .social-explorer,
  .social-explorer .event-list-heading,
  .social-explorer .event-list-heading > div { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
  .social-explorer .event-list-heading { align-items: stretch; gap: 10px; margin: 0 0 7px; padding: 13px; border-radius: 14px; }
  .social-explorer .event-list-heading h3 { font-size: 25px; }
  .social-explorer-copy { display: none; }
  .social-range-switch { width: min(100%, calc(100vw - 54px)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 2px; }
  .social-range-switch button { min-width: 0; min-height: 28px; padding: 0 4px; font-size: 7px; }
  .social-explorer .event-scope-filter { align-items: center; flex-direction: row; gap: 8px; margin-bottom: 8px; padding: 9px 11px; border-radius: 12px; }
  .social-explorer .event-scope-filter > div .micro-label,
  .social-explorer .event-scope-filter > div > span { display: none; }
  .social-explorer .event-scope-filter > div > strong { font-size: 10px; }
  .social-explorer .event-scope-switch { margin-left: auto; }
  .event-list-heading h3 { font-size: 27px; }
  .event-view-actions { width: 100%; justify-content: space-between; }

  .class-directory { margin-top: 8px; padding-top: 9px; }
  .class-directory-heading h3 { font-size: 29px; }
  .class-directory,
  .class-directory-heading,
  .class-directory-heading > div { min-width: 0; width: 100%; max-width: 100%; }
  .class-view-switch { width: min(100%, calc(100vw - 28px)); max-width: calc(100vw - 28px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); box-sizing: border-box; }
  .class-view-switch button { min-width: 0; width: auto; }
  .class-explorer-filters { padding: 12px; }
  .class-explorer-filters > header { align-items: end; gap: 10px; }
  .class-explorer-filters h4 { font-size: 20px; }
  .class-explorer-filters header p:last-child { display: none; }
  .class-filter-day,
  .class-filter-styles { padding: 8px; }
  .class-filter-styles > div { margin-right: -8px; padding-right: 8px; }
  .class-directory { margin-top: 8px; padding-top: 9px; }
  .class-directory-heading { margin-bottom: 6px; }
  .class-directory-heading .micro-label { font-size: 7px; }
  .class-directory-heading h3 { margin-top: 1px; font-size: 23px; line-height: 1.02; }
  .class-directory-heading > div > p:last-of-type { display: none; }
  .class-view-switch { min-height: 32px; margin-top: 6px; padding: 2px; }
  .class-view-switch button { min-height: 27px; padding-inline: 5px; font-size: 8px; }
  .class-explorer-filters { margin-bottom: 6px; padding: 5px; border-radius: 10px; }
  .class-explorer-filters > header { display: none; }
  .class-explorer-filters > header > div .micro-label,
  .class-explorer-filters header p:last-child { display: none; }
  .class-explorer-filters h4 { margin: 0; font-size: 16px; }
  .class-explorer-filters .text-link { margin-left: auto; font-size: 9px; }
  .class-filter-grid { grid-template-columns: 82px minmax(0, 1fr); gap: 4px; }
  .class-filter-day,
  .class-filter-styles { min-width: 0; padding: 4px; border-radius: 8px; overflow: hidden; }
  .class-filter-day > span,
  .class-filter-styles legend { font-size: 6px; }
  .class-filter-day { gap: 4px; }
  .class-filter-day select { min-height: 27px; padding-left: 6px; font-size: 8px; }
  .class-filter-styles > div { gap: 3px; margin: 3px 0 0; padding: 0 2px 1px 0; overflow-x: auto; }
  .class-filter-styles button { min-height: 25px; padding-inline: 7px; font-size: 7px; }
  .class-filter-result { display: none; }
  .class-calendar .event-calendar-header { display: none; }
  .class-calendar .event-calendar-header .micro-label { display: none; }
  .class-calendar .event-calendar-header h4 { font-size: 25px; }
  .class-calendar .event-calendar-header p:last-child { max-width: 100%; margin-top: 2px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .activity-date-ribbon { gap: 4px; padding: 5px 8px; }
  .activity-date-ribbon button { min-width: 57px; min-height: 49px; padding: 4px; border-radius: 9px; }
  .activity-date-ribbon strong { font-size: 17px; }
  .class-calendar .calendar-organizer-legend { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 8px; }
  .class-calendar .calendar-organizer-legend > div:first-child { display: none; }
  .class-calendar .calendar-organizer-chips { padding-bottom: 2px; }
  .calendar-agenda .calendar-event { position: relative; }
  .calendar-agenda .calendar-event .calendar-event-organizer { padding-right: 20px; }
  .activity-kind { position: absolute; top: 7px; right: 7px; z-index: 1; padding: 0; border: 0; background: transparent; }
  .activity-kind > span { display: none; }
  .activity-kind b { width: 15px; height: 15px; font-size: 7px; }
  .class-calendar,
  .school-map,
  .class-grid { order: 4; }
  .offer-board { order: 5; padding: 14px; }
  .class-card-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 12px; }
  .class-card-summary-styles { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .class-card-summary-action { grid-column: 2; grid-row: 1; }
  .class-card-body { padding: 0 12px 12px; }
  .offer-card-main { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 11px 12px; }
  .offer-card-main > a { grid-column: 1 / -1; }
  .offer-card > details { padding-inline: 12px; }
}

/* Public city identities; selected before styles load. */
html[data-city="edmonton"] { --city-hero-image: url("assets/city-heroes/edmonton.png?v=2"); }
html[data-city="toronto"] { --city-hero-image: url("assets/city-heroes/toronto.png?v=2"); }
html[data-city="vancouver"] { --city-hero-image: url("assets/city-heroes/vancouver.png?v=2"); }
html[data-city="victoria"] { --city-hero-image: url("assets/city-heroes/victoria.png?v=3"); }
/* Keep city selection and browser geolocation together. */
.header-city-controls { position:relative; display:flex; align-items:center; gap:6px; min-width:0; }
.location-icon-button { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; padding:0; border:1px solid rgba(35,71,165,.24); border-radius:50%; background:rgba(255,255,255,.72); color:var(--coral); cursor:pointer; }
.location-icon-button:hover { background:var(--mint); border-color:var(--coral); }
.location-icon-button:focus-visible { outline:2px solid var(--coral); outline-offset:3px; }
.location-icon-button:disabled { cursor:wait; opacity:.65; }
#city-location-status:not(:empty) { position:absolute; top:calc(100% + 8px); right:0; width:260px; max-width:80vw; padding:10px 14px; border:1px solid var(--line); border-radius:12px; background:var(--paper-bright); color:var(--ink); box-shadow:var(--shadow); font-size:13px; }
@media (max-width:860px) {
  .site-header { grid-template-columns:auto minmax(145px,196px) auto auto; }
  .header-city-controls .header-city-picker { flex:1; width:0; }
}
@media (max-width:430px) {
  .site-header { grid-template-columns:minmax(0,1fr) 158px auto 40px; }
  .location-icon-button { width:36px; height:36px; flex-basis:36px; }
}
@media (max-width:360px) {
  .site-header { grid-template-columns:minmax(0,1fr) 158px 40px; }
  .mobile-class-shortcut { display:none; }
}


/* Compact desktop introduction keeps this week's event cards above the fold. */
@media (min-width: 901px) {
  .hero { min-height: 250px; height: 250px; padding-block: 24px; }
  .hero h1 { font-size: clamp(46px, 4.6vw, 68px); line-height: .95; margin-block: 14px 0; }
  .hero h1 em::after { height: 3px; margin-top: 7px; }
  .discover { padding-top: 24px; }
}
.week-event-range { font-weight: 700; margin: 12px 0; color: #2347a5; }
.week-event-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.week-event-layout .event-grid { grid-template-columns: 1fr; margin-top: 0; }
.week-map-panel { position: sticky; top: 88px; min-width: 0; }
#week-event-map { height: 420px; border-radius: 16px; background: #e5e9e3; border: 1px solid #d0d6ce; z-index: 0; }
#week-map-note { font-size: 13px; line-height: 1.5; }
.week-map-marker { border-radius: 50%; background: #2347a5; color: white; border: 2px solid white; text-align: center; line-height: 24px; font-weight: 700; }
.week-view-toggle { display: none; }
.week-directions { display: inline-block; margin-top: 10px; font-weight: 600; }
.event-map-selected { outline: 3px solid #2347a5; outline-offset: 3px; }
@media (max-width: 900px) {
 .week-event-layout { display: block; }
 .week-view-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
 .week-view-toggle button { border: 1px solid #bbc4d6; border-radius: 18px; padding: 8px 18px; background: white; }
 .week-view-toggle button[aria-pressed="true"] { background: #2347a5; color: white; }
 .week-event-layout[data-view="list"] .week-map-panel, .week-event-layout[data-view="map"] .event-grid { display: none; }
 .week-map-panel { position: static; }
 #week-event-map { height: 360px; }
}

@media (min-width: 901px) {
 .social-explorer .event-list-heading { margin: 12px 0; padding: 16px 22px; }
 .social-explorer .event-list-heading h3 { font-size: 30px; }
 .social-explorer-copy { margin: 8px 0 0; }
 .hero::after { background-position: 62% 20%; }
}
.leaflet-popup-content button { display: block; text-align: left; margin: 6px 0; padding: 8px; border: 1px solid #cbd3e0; background: white; border-radius: 6px; cursor: pointer; }

/* Share the quiet class-map basemap treatment. */
#week-event-map, #week-event-map .leaflet-tile-pane { background: #f2f1ec; }
#week-event-map .school-map-minimal-tiles { filter: grayscale(1) sepia(.08) saturate(.16) contrast(.7) brightness(1.2); }
/* One continuous city scene behind the introduction and events heading. */
@media (min-width: 901px) {
 main { position: relative; isolation: isolate; }
 .hero { background: transparent; overflow: visible; isolation: auto; }
 .hero h1 { max-width: 48%; font-size: clamp(42px, 4.2vw, 62px); }
 .hero > .eyebrow { max-width: 48%; }
 .hero::after { inset: 0; height: 460px; background-size: 100% auto; background-position: center 48%; background-color: var(--paper); transform: none; z-index: -2; opacity: .38; }
 .hero::before { inset: 0; width: 100%; height: 460px; z-index: -1; background: linear-gradient(0deg, var(--paper) 0%, rgba(255,249,238,.7) 5%, transparent 22%), linear-gradient(90deg, rgba(255,249,238,.28), rgba(255,249,238,.08)); }
 .hero-glow { display: none; }
 .social-explorer .event-list-heading { background: transparent; border: 0; box-shadow: none; padding-left: 0; padding-right: 0; }
 .social-explorer .event-list-heading > div:first-child { max-width: 58%; }
}

/* Compact weekly rows: retain details without the tall stacked labels. */
#event-grid .event-card { grid-template-columns: 54px minmax(0, 1fr); border-radius: 13px; }
#event-grid .event-card-body { padding: 10px 42px 10px 12px; gap: 0; }
#event-grid .event-card h4 { margin: 0 0 3px; font-size: 18px; line-height: 1.2; }
#event-grid .event-organizer-line { margin: 2px 0 7px; font-size: 10px; }
#event-grid .event-organizer-line strong { font-size: 12px; }
#event-grid .event-details { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; margin: 0; padding: 0; border: 0; }
#event-grid .event-details > div { display: inline-flex; align-items: baseline; gap: 4px; }
#event-grid .event-details > div > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#event-grid .event-details strong, #event-grid .event-details a { font-size: 12px; line-height: 1.4; }
#event-grid .event-location-inline { min-width: 0; max-width: 100%; }
#event-grid .week-directions { margin: 0; font-weight: 500; }
#event-grid .event-organizer-logo { width: 26px; height: 26px; min-width: 26px; flex-basis: 26px; }
#event-grid .event-card-top { top: 8px; right: 8px; }
#event-grid .save-button { width: 28px; height: 28px; right: 7px; bottom: 7px; }
#event-grid .event-date strong { font-size: 24px; }
#event-grid .event-date span { font-size: 9px; }
#event-grid { gap: 9px; }
@media (max-width: 600px) {
 #event-grid .event-card h4 { font-size: 16px; }
 #event-grid .event-details { gap: 4px 9px; }
}

#event-grid .event-more { font-size: 12px; }
#event-grid .event-more summary { color: #2347a5; cursor: pointer; font-weight: 700; padding: 2px 0; }
#event-grid .event-more-open, #event-grid .event-more[open] .event-more-closed { display: none; }
#event-grid .event-more[open] .event-more-open { display: inline; }
#event-grid .event-more[open] { flex-basis: 100%; }
#event-grid .event-expanded { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(22,24,26,.12); line-height: 1.5; }
#event-grid .event-expanded p { margin: 0 0 7px; }
#event-grid .event-more summary:focus-visible { outline: 2px solid #2347a5; outline-offset: 3px; }
