:root {
  --paper: #fffaf2;
  --paper-2: #f4efe6;
  --ink: #151515;
  --muted: #626262;
  --line: #d9d0c2;
  --red: #d7372f;
  --teal: #00877f;
  --gold: #f4bf30;
  --blue: #2468d8;
  --green: #167a4a;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  color: #fff;
  background: #211f2b;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.consent-banner a {
  color: #fff;
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
}

.consent-banner .consent-actions .button.ghost.dark {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 700px) {
  .consent-banner {
    right: auto;
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    margin: 0;
    overflow-wrap: anywhere;
  }

  .consent-banner,
  .consent-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .consent-actions .button {
    width: 100%;
    white-space: normal;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration-color: rgba(215, 55, 47, 0.45);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 4.25rem;
  line-height: 0.96;
  margin-bottom: 1rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 250, 242, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header .brand {
  flex: 0 0 auto;
}

.brand-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  margin-left: clamp(0.45rem, 1.45vw, 1.15rem);
  margin-right: auto;
  min-width: 0;
}

.brand img {
  width: auto;
  height: clamp(54px, 5.2vw, 76px);
  max-width: min(360px, 42vw);
  object-fit: contain;
}

.brand.mini img {
  width: auto;
  height: clamp(44px, 4.8vw, 60px);
  max-width: min(280px, 38vw);
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
  gap: 0.35rem;
}

.main-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav .nav-cta {
  background: var(--ink);
  color: var(--white);
}

.main-nav .nav-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 900;
}

.main-nav .nav-map-link span,
.map-button span,
.map-inline span {
  line-height: 1;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.main-nav .nav-instagram-link {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.main-nav .nav-instagram-link:hover,
.main-nav .nav-instagram-link:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.social-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-link,
.platform-mark,
.source-name-line {
  display: inline-flex;
  align-items: center;
}

.platform-link {
  gap: 0.32rem;
}

.platform-link .platform-icon,
.platform-mark .platform-icon {
  flex: 0 0 auto;
}

.platform-facebook-icon {
  fill: currentColor;
  stroke: none;
}

.platform-google-maps-icon {
  fill: none;
  stroke: currentColor;
}

.platform-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
}

.platform-icon-only .platform-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.platform-icon-only:hover,
.platform-icon-only:focus-visible {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.platform-facebook-link {
  color: #1769aa;
}

.platform-google-maps-link {
  color: #176b45;
}

.platform-link-network {
  font-size: 0.72em;
  font-weight: 800;
  opacity: 0.72;
}

.platform-mark {
  gap: 0.28rem;
  color: #b51c65;
}

.platform-facebook-mark {
  color: #1769aa;
}

.platform-google-maps-mark {
  color: #176b45;
}

.platform-mark .social-icon {
  width: 1rem;
  height: 1rem;
}

.source-name-line {
  gap: 0.42rem;
}

.source-name-line > span:last-child {
  min-width: 0;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.header-language-toggle {
  min-height: 32px;
  padding: 0.3rem 0.46rem;
  border: 1px solid rgba(217, 208, 194, 0.52);
  background: rgba(244, 239, 230, 0.46);
  color: rgba(21, 21, 21, 0.58);
  font-size: 0.72rem;
}

.header-language-toggle:hover,
.header-language-toggle:focus-visible {
  border-color: rgba(194, 70, 58, 0.18);
  background: rgba(244, 239, 230, 0.72);
  color: rgba(159, 60, 52, 0.78);
}

.header-language-toggle .language-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.62;
}

.header-language-toggle span:last-child {
  opacity: 0.76;
}

.language-toggle span:last-child {
  font-size: 0.74rem;
  letter-spacing: 0;
}

.country-flag {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 0.72rem;
  border: 1px solid rgba(21, 21, 21, 0.22);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.flag-mx {
  background:
    radial-gradient(ellipse 2px 1.5px at 50% 52%, #b89455 0 1.6px, transparent 1.8px),
    linear-gradient(90deg, #006847 0 33%, #fff 33% 66%, #ce1126 66% 100%);
}

.flag-co {
  background: linear-gradient(
    180deg,
    #fcd116 0 50%,
    #003893 50% 75%,
    #ce1126 75% 100%
  );
}

.flag-fr {
  background: linear-gradient(90deg, #0055a4 0 33%, #fff 33% 66%, #ef4135 66% 100%);
}

.flag-de {
  background: linear-gradient(
    180deg,
    #000 0 33.333%,
    #dd0000 33.333% 66.666%,
    #ffce00 66.666% 100%
  );
}

.flag-es {
  background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.flag-it {
  background: linear-gradient(90deg, #009246 0 33%, #fff 33% 66%, #ce2b37 66% 100%);
}

.flag-gb {
  background:
    linear-gradient(90deg, transparent 0 42%, #fff 42% 58%, transparent 58% 100%),
    linear-gradient(0deg, transparent 0 38%, #c8102e 38% 62%, transparent 62% 100%),
    linear-gradient(90deg, transparent 0 45%, #c8102e 45% 55%, transparent 55% 100%),
    #012169;
}

.flag-world {
  background: linear-gradient(135deg, #0f766e, #e0f2fe);
}
.mobile-city-switcher,
.mobile-city-chip,
.mobile-menu-toggle {
  display: none;
}

.hamburger-lines {
  display: grid;
  gap: 4px;
}

.hamburger-lines span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.mobile-city-switcher {
  position: relative;
}

.mobile-city-chip {
  list-style: none;
}

.mobile-city-chip::-webkit-details-marker {
  display: none;
}

.city-switcher {
  position: relative;
  display: inline-flex;
}

.city-switcher summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 58px;
  min-height: 34px;
  padding: 0.36rem 0.58rem;
  border: 1px solid rgba(194, 70, 58, 0.2);
  border-radius: 8px;
  background: rgba(244, 239, 230, 0.72);
  color: rgba(159, 60, 52, 0.88);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.city-switcher summary .country-flag {
  opacity: 0.78;
}

.city-switcher summary::-webkit-details-marker {
  display: none;
}

.city-switcher[open] summary,
.city-switcher summary:hover,
.city-switcher summary:focus-visible {
  border-color: rgba(194, 70, 58, 0.34);
  background: rgba(244, 239, 230, 0.95);
  color: rgba(159, 60, 52, 0.98);
}

.city-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 30;
  width: min(330px, calc(100vw - 2rem));
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(38, 23, 18, 0.16);
}

.city-switcher:not([open]) .city-menu {
  display: none;
}

.brand-controls .city-menu {
  left: 0;
  right: auto;
}

.city-menu a {
  display: flex;
  justify-content: space-between;
  column-gap: 0.55rem;
  align-items: center;
  padding: 0.56rem 0.62rem;
  border-radius: 6px;
  text-decoration: none;
}

.city-menu a .country-flag {
  grid-column: 1;
  grid-row: 1;
}

.city-menu-name {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow-wrap: normal;
  font-size: 0.96rem;
  line-height: 1.18;
  font-weight: 800;
}

.city-menu a.active {
  background: var(--ink);
  color: var(--white);
}

.city-menu-link small {
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.58;
}

.city-menu-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 0.35rem;
}

.city-event-count {
  color: rgba(98, 98, 98, 0.42);
  font-size: 0.7rem;
  font-weight: 400;
}

.city-menu-link.active .city-event-count {
  color: rgba(255, 255, 255, 0.54);
}

.city-region-picker {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 0.62rem;
}

.city-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.city-region-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.city-region-tab.active,
.city-region-tab:hover,
.city-region-tab:focus-visible {
  border-color: var(--ink);
  background: var(--gold);
  color: var(--ink);
}

.city-region-panel {
  display: grid;
  min-width: 0;
  gap: 0.68rem;
}

.js .city-region-panel:not(.active),
.city-region-panel[hidden] {
  display: none;
}

.city-country-group {
  display: grid;
  min-width: 0;
  gap: 0.38rem;
}

.city-country-heading {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.city-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 0.45rem;
}

.city-region-picker-menu .city-region-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.city-region-picker-menu .city-region-tab {
  width: 100%;
  min-height: 32px;
  padding: 0.34rem 0.52rem;
  font-size: 0.78rem;
}

.city-region-picker-menu .city-picker-grid {
  grid-template-columns: 1fr;
  gap: 0.18rem;
}

.city-region-picker-menu .city-country-heading {
  padding: 0.1rem 0.2rem 0;
}

.city-region-picker-mini .city-picker-grid {
  display: flex;
  flex-wrap: wrap;
}

.city-region-picker-mini .city-mini-pill {
  justify-content: center;
  min-width: 132px;
  gap: 0.32rem;
}

.city-region-picker-mini .city-mini-name {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.city-region-picker-home .city-picker-grid {
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
}

.hero {
  display: grid;
  background: var(--ink);
  color: var(--white);
  padding: clamp(2rem, 7vw, 4.5rem) clamp(1rem, 4vw, 3rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.32fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.hero-main {
  min-width: 0;
}

.hero-copy {
  font-size: 1.25rem;
  max-width: 650px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: break-word;
}

.hero-photo {
  justify-self: end;
  width: min(30vw, 320px);
  min-width: 190px;
  margin: 0;
}

.hero-photo img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-next {
  display: grid;
  gap: 0.6rem;
  max-width: 660px;
  margin-top: 1.25rem;
}

.hero-next strong {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-next-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.hero-next-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-height: 58px;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  text-decoration: none;
}

.hero-next-item span {
  color: var(--gold);
  font-weight: 900;
}

.hero-next-item small {
  min-width: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.eyebrow {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
  margin-bottom: 0.7rem;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero-actions,
.title-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  line-height: 1.1;
}

.button.primary,
button.primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost.dark {
  color: var(--ink);
  border-color: var(--ink);
}

.button.platform-icon-only {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
}

.button.platform-icon-only:hover,
.button.platform-icon-only:focus-visible {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.button.quiet {
  border-color: var(--line);
  background: transparent;
}

.button.small {
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
}

.map-button {
  gap: 0.38rem;
  white-space: nowrap;
}

.map-button.dark {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--white);
}

.map-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.city-ribbon {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: clamp(0.9rem, 3vw, 1.4rem) clamp(1rem, 4vw, 3rem);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.city-ribbon-head h2,
.city-ribbon-head p {
  margin-bottom: 0.2rem;
}

.city-ribbon-head h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}
.city-ribbon-compact {
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr);
  align-items: start;
}

.city-ribbon-compact .city-ribbon-head {
  display: grid;
  justify-items: start;
  gap: 0.38rem;
}

.current-city-pill {
  width: fit-content;
}

.home-agenda-city-switcher {
  display: grid;
  gap: 0.72rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(38, 23, 18, 0.12);
}

.home-agenda-city-switcher .city-ribbon-head {
  display: grid;
  justify-items: start;
  gap: 0.36rem;
}

.home-agenda-city-switcher .city-picker-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  max-width: 100%;
}

.home-agenda-city-switcher .city-pill {
  min-height: 52px;
}

.city-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
}

.city-toggle:hover,
.city-toggle:focus-visible {
  color: var(--red);
}

#home-city-list[hidden] {
  display: none;
}

.city-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.55rem;
}

.city-pill,
.city-mini-pill {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.city-pill {
  min-height: 58px;
  padding: 0.58rem 0.68rem;
}

.city-pill.active,
.city-mini-pill.active {
  border-color: var(--ink);
  background: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(21, 21, 21, 0.08);
}

.city-flag {
  flex: 0 0 auto;
  font-size: 1.2rem;
}

.city-pill span:last-child {
  min-width: 0;
  display: grid;
  line-height: 1.1;
}

.city-pill strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.94rem;
}

.city-pill small {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.city-mini-nav {
  max-width: 1060px;
  margin: 0 auto 0.8rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: block;
}

.city-mini-pill {
  min-height: 34px;
  padding: 0.4rem 0.58rem;
  font-size: 0.82rem;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--gold);
}

.metrics-band div {
  padding: 0.62rem clamp(0.85rem, 3vw, 2rem);
  border-right: 1px solid var(--ink);
}

.metrics-band div:last-child {
  border-right: 0;
}

.metrics-band strong {
  display: block;
  font-size: 1.42rem;
  line-height: 1;
}

.metrics-band span {
  font-size: 0.82rem;
  font-weight: 800;
}

.top-spotlight {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  padding: 0.7rem clamp(1rem, 4vw, 2.25rem);
  background: var(--gold);
  border-bottom: 1px solid var(--ink);
}

.spotlight-heading {
  display: grid;
  align-content: start;
  gap: 0.12rem;
}

.spotlight-heading h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.05;
}

.top-spotlight p,
.spotlight-card p {
  margin-bottom: 0;
  color: rgba(0, 0, 0, 0.76);
}

.spotlight-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.spotlight-card {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
}

.spotlight-card h3 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.12;
}

.spotlight-card p:not(.eyebrow) {
  font-size: 0.9rem;
  line-height: 1.35;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.newsletter-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1rem;
  align-items: end;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 3rem);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.newsletter-strip h2,
.newsletter-strip p {
  margin-bottom: 0.35rem;
}

.compact-signup {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
}

.compact-signup label {
  display: grid;
  gap: 0.25rem;
  font-weight: 800;
}

.compact-signup input,
.checkbox-grid input {
  accent-color: var(--red);
}

.ad-slot {
  max-width: 1180px;
  margin: 0 auto 1rem;
  padding: 0.55rem clamp(1rem, 4vw, 1.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.ad-slot span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-slot p {
  flex: 1 1 300px;
  margin: 0;
  font-size: 0.82rem;
}

.ad-slot a {
  font-size: 0.82rem;
  font-weight: 900;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.7fr);
  gap: clamp(0.9rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3.8vw, 3rem) clamp(1rem, 4vw, 3rem);
}

.section-grid.compact {
  padding-top: clamp(1rem, 3vw, 1.8rem);
}

.section-heading {
  max-width: 480px;
}

.section-heading p {
  color: var(--muted);
}

.quick-intents {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.7fr);
  gap: clamp(0.9rem, 3vw, 2rem);
  padding: clamp(0.95rem, 3vw, 1.8rem) clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.intent-card {
  display: grid;
  gap: 0.32rem;
  min-height: 118px;
  min-width: 0;
  padding: 0.82rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.intent-card.primary-intent {
  background: #eaf7f5;
  border-color: rgba(0, 135, 127, 0.28);
}

.intent-card strong {
  font-size: 1.05rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.intent-card span {
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.quick-intents.compact-intents {
  display: block;
  padding-top: 0.85rem;
  padding-bottom: 0.75rem;
}

.compact-intents-head {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.compact-intents-head h2,
.compact-intents-head p {
  margin: 0;
}

.compact-intents-head h2 {
  font-size: 1rem;
}

.quick-intents.compact-intents .intent-grid {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0 0 0.18rem;
  scrollbar-width: thin;
}

.quick-intents.compact-intents .intent-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  max-width: 210px;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
}

.quick-intents.compact-intents .intent-card strong {
  display: block;
  max-width: 185px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  line-height: 1.1;
}

.quick-intents.compact-intents .intent-card span {
  display: none;
}

.intent-note {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.quick-intents.compact-intents .intent-card::after,
.quick-intents.compact-intents .intent-card::before {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.3rem);
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 30;
}

.quick-intents.compact-intents .intent-card::after {
  content: attr(data-tooltip);
  bottom: calc(100% + 0.55rem);
  width: min(260px, 76vw);
  padding: 0.55rem 0.65rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  line-height: 1.32;
  text-align: left;
}

.quick-intents.compact-intents .intent-card::before {
  content: "";
  bottom: calc(100% + 0.22rem);
  width: 0;
  height: 0;
  border-left: 0.38rem solid transparent;
  border-right: 0.38rem solid transparent;
  border-top: 0.38rem solid var(--ink);
}

.quick-intents.compact-intents .intent-card:hover::after,
.quick-intents.compact-intents .intent-card:hover::before,
.quick-intents.compact-intents .intent-card:focus-visible::after,
.quick-intents.compact-intents .intent-card:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.event-list,
.source-list {
  display: grid;
  gap: 0.9rem;
}

.event-list.wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(1.25rem, 3.5vw, 2.5rem);
}

.agenda-section {
  display: grid;
  gap: 0.85rem;
}

.event-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.event-card.has-media {
  grid-template-columns: 74px 118px minmax(0, 1fr) auto;
}

.event-card.slim {
  grid-template-columns: 66px minmax(0, 1fr);
}

.event-thumb {
  position: relative;
  display: block;
  width: 118px;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
  cursor: zoom-in;
  box-shadow: none;
}

.event-thumb img,
.title-photo.flyer-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: none;
}

.profile-avatar-media img,
.venue-media-link .venue-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
}

.event-thumb.profile-avatar-media {
  cursor: pointer;
}

.profile-avatar-media:hover,
.profile-avatar-media:focus-visible {
  border-color: var(--red);
  outline: 3px solid rgba(218, 53, 46, 0.18);
  outline-offset: 2px;
}

.media-platform-badge {
  position: absolute;
  top: 0.42rem;
  right: 0.42rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgba(17, 17, 18, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #b51c65;
  box-shadow: 0 4px 12px rgba(17, 17, 18, 0.16);
}

.media-platform-badge .social-icon {
  width: 1rem;
  height: 1rem;
}

.profile-media-credit {
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.35rem;
  padding: 0.2rem 0.38rem;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(17, 17, 18, 0.78);
  color: var(--white);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flyer-cue {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  max-width: calc(100% - 0.7rem);
  padding: 0.22rem 0.42rem;
  border-radius: 999px;
  background: rgba(17, 17, 18, 0.76);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.flyer-trigger:hover .flyer-cue,
.flyer-trigger:focus-visible .flyer-cue {
  opacity: 1;
  transform: translateY(0);
}

.flyer-trigger:hover,
.flyer-trigger:focus-visible {
  border-color: var(--red);
}

.event-card h2,
.event-card h3 {
  margin-bottom: 0.2rem;
}

.event-card > .card-actions {
  align-self: start;
  justify-content: flex-end;
  max-width: 340px;
}

.event-card.needs-review {
  border-color: var(--gold);
  background: #fff7da;
}

.event-card.event-kind-congress {
  border-left: 5px solid #27866f;
  background: #f4fffb;
}

.event-card.event-kind-concert {
  border-left: 5px solid #577fbf;
}



.class-list {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(1.25rem, 3.5vw, 2.5rem);
  display: grid;
  gap: 0.85rem;
}

.class-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.class-card.needs-review {
  border-color: var(--gold);
  border-style: dashed;
  background: #fff9e7;
}

.class-card-main {
  min-width: 0;
  display: grid;
  gap: 0.5rem;
}

.class-card h2 {
  margin-bottom: 0;
}

.agenda-class-section {
  margin-top: 1rem;
  padding-top: 1.15rem;
  border-top: 2px solid var(--ink);
}

.agenda-class-card {
  border-left: 5px solid var(--teal);
}

.agenda-game-rescue {
  max-width: 620px;
  margin: 1.25rem auto 0;
  padding: 1rem;
  border: 1px dashed var(--blue);
  border-radius: 8px;
  background: #eef5ff;
}

.agenda-game-rescue h3 {
  margin: 0 0 0.35rem;
}

.agenda-game-rescue p:not(.eyebrow) {
  margin: 0 0 0.8rem;
}

.class-specs {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 0.4rem;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-line strong {
  color: var(--red);
}

.class-actions {
  align-self: start;
  justify-content: flex-end;
  max-width: 300px;
}

.date-chip {
  display: grid;
  place-items: center;
  width: 64px;
  min-height: 74px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 0.45rem 0.25rem;
}

.date-chip span {
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 900;
}

.date-chip small {
  color: var(--gold);
  font-weight: 800;
}

.date-chip em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
}

.date-chip.past {
  background: #6b2035;
}

.compact-heading {
  align-items: end;
  margin-bottom: 0.15rem;
}

.tag-alert {
  background: #fff1f0;
  border: 1px solid #e48b80;
  color: #8a1f16;
}

.tag-city {
  background: #eaf7f5;
  border: 1px solid rgba(20, 95, 89, 0.2);
  color: #145f59;
}

.tag-kind {
  border-width: 1px;
  border-style: solid;
  font-weight: 900;
}

.tag-congress {
  background: #e7f7f3;
  border-color: #57ad98;
  color: #106353;
}

.tag-concert {
  background: #eef3ff;
  border-color: #8aa9e6;
  color: #274b86;
}


.ticket-availability {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #b9d7c4;
  background: #f4fff7;
  color: #245a39;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
}

.ticket-availability-unknown {
  border-color: #d8caa5;
  background: #fffaf0;
  color: #6a4c12;
}

.ticket-availability-low {
  border-color: #e4c27d;
  background: #fff6df;
  color: #7a4c00;
}

.ticket-availability-sold_out {
  border-color: #e48b80;
  background: #fff1f0;
  color: #8a1f16;
}

.hero-next-item .ticket-availability {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0;
}

.spotlight-card .ticket-availability {
  margin-top: 0.25rem;
}

.reaction-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  width: fit-content;
  max-width: 100%;
}

.event-card > .card-actions .reaction-widget {
  margin-left: auto;
}

.article-card .reaction-widget,
.article-page header .reaction-widget,
.detail-side .reaction-widget,
.spotlight-card .reaction-widget {
  margin-top: 0.75rem;
}

.reaction-button {
  position: relative;
  min-height: 28px;
  width: auto;
  padding: 0.18rem 0.38rem;
  border: 1px solid #dde0df;
  border-radius: 999px;
  background: #f6f7f6;
  color: #6f7775;
  box-shadow: none;
  gap: 0.24rem;
  font-size: 0.78rem;
  line-height: 1;
}

.reaction-icon {
  display: block;
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.78;
}

.reaction-button:hover,
.reaction-button:focus-visible {
  border-color: #bcc4c1;
  background: #eef1f0;
  color: #5c6663;
}

.reaction-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.reaction-like.active {
  border-color: #accfb9;
  background: #effaf2;
  color: #3f7f53;
}

.reaction-dislike.active {
  border-color: #e3b2ad;
  background: #fff3f1;
  color: #a34b44;
}

.reaction-count {
  display: inline-flex;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.12rem 0.28rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
}

.reaction-like-count {
  background: #effaf2;
  color: #2f6a43;
}

.reaction-dislike-count {
  background: #fff3f1;
  color: #9a3a33;
}

.agenda-quick-nav {
  display: grid;
  gap: 0.7rem;
  margin: 0 auto 1.25rem;
  max-width: min(1180px, calc(100vw - 2rem));
  padding: 0.85rem 0;
  border-top: 1px solid #e4dfd7;
  border-bottom: 1px solid #e4dfd7;
}

.agenda-lead-list {
  padding-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.agenda-controls {
  min-width: 0;
}

.agenda-city-disclosure {
  max-width: 1100px;
  margin: 0 auto 0.75rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.agenda-city-disclosure > summary {
  width: fit-content;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(215, 55, 47, 0.35);
  text-underline-offset: 0.2em;
}

.agenda-city-disclosure > summary:hover,
.agenda-city-disclosure > summary:focus-visible {
  color: var(--red);
}

.agenda-city-disclosure[open] > summary {
  margin-bottom: 0.75rem;
}

.agenda-city-disclosure .city-mini-nav {
  max-width: none;
  margin: 0;
  padding: 0;
}

.quick-nav-group {
  display: grid;
  gap: 0.45rem;
}

.quick-nav-label {
  color: #6f6258;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.4rem 0.68rem;
  border: 1px solid #d9d2c7;
  border-radius: 999px;
  background: #fffdf8;
  color: #45362d;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.quick-chip:hover,
.quick-chip:focus-visible,
.quick-chip.active {
  border-color: #d7372f;
  background: #fff2ef;
  color: #9a2a24;
}

.quick-chip.subtle {
  background: #f7f4ef;
  color: #5f554f;
}

.muted {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tags span,
.tags a,
.status-line strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
}

.tags a {
  color: inherit;
  text-decoration: none;
}

.tags a:hover,
.tags a:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.source-link,
.text-link {
  font-weight: 900;
  color: var(--red);
}

.source-link {
  align-items: center;
  display: inline-flex;
  min-height: 24px;
}

.color-band {
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  background: var(--ink);
  color: var(--white);
}

.color-band .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.criteria-grid div {
  display: grid;
  gap: 0.45rem;
  min-height: 140px;
  padding: 1rem;
  background: var(--ink);
}

.criteria-grid strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.criteria-grid span {
  color: rgba(255, 255, 255, 0.78);
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.venue-grid.directory,
.article-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-grid.inline {
  max-width: none;
  padding: 0;
}

.article-grid.news-grid {
  align-items: stretch;
}

.venue-card,
.article-card {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.venue-thumb,
.title-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 0.8rem;
}

.venue-media-link {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  color: var(--ink);
  text-decoration: none;
}

.venue-media-link.profile-avatar-media {
  aspect-ratio: 1;
  object-fit: initial;
}

.venue-thumb.profile-avatar-media,
.title-photo.profile-avatar-media {
  aspect-ratio: 1;
}

.title-photo {
  width: min(260px, 30vw);
  margin: 0;
}

.title-photo.flyer-trigger {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  cursor: zoom-in;
  box-shadow: none;
}

body.flyer-modal-open {
  overflow: hidden;
}

.flyer-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.flyer-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.flyer-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(218, 53, 46, 0.24), transparent 32%),
    radial-gradient(circle at 82% 20%, rgba(248, 184, 53, 0.18), transparent 34%),
    rgba(17, 17, 18, 0.78);
  box-shadow: none;
}

.flyer-modal-dialog {
  position: relative;
  width: min(920px, 94vw);
  max-height: 92vh;
  display: grid;
  gap: 0.6rem;
  padding: clamp(0.85rem, 2vw, 1.2rem);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.flyer-modal-dialog h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.flyer-modal-dialog img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  background: #111112;
}

.flyer-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
  font-size: 1.25rem;
  line-height: 1;
}

.flyer-modal-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.flyer-modal-credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.flyer-modal-source {
  justify-self: start;
}

.venue-card-actions {
  margin-top: 0.7rem;
}

.venue-card.needs-review {
  border-color: var(--gold);
  background: #fff7da;
}

.map-overview,
.map-layout {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.map-overview {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.map-stat-line,
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.map-stat-line strong,
.map-stat-line span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 850;
}

.map-stat-line strong {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.map-stat-line .map-stat-review {
  border-color: #e3b84d;
  background: #fff7da;
  color: #705000;
}

.map-coverage-note {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-left: 4px solid var(--teal);
  border-radius: 4px;
  background: #eaf7f5;
  color: #174f4b;
  font-size: 0.9rem;
}

.map-coverage-note.warning {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  border-left-color: var(--gold);
  background: #fff7da;
  color: #5d4912;
}

.map-coverage-note a {
  color: inherit;
  font-weight: 900;
}

.map-legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.map-legend > span {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.map-legend-marker {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  font-style: normal;
  font-weight: 950;
}

.map-legend-marker.venue-marker {
  border-radius: 999px;
}

.map-legend-marker.event-marker {
  border-radius: 9px 9px 9px 2px;
  background: var(--ink);
}

.map-legend-marker.group-marker {
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 1rem;
  align-items: stretch;
  padding-bottom: clamp(2rem, 6vw, 5rem);
}

.dance-map-canvas {
  position: relative;
  min-height: 560px;
  height: clamp(560px, 62vh, 740px);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #eef1ed;
}

.dance-map-canvas.fallback-map {
  background:
    linear-gradient(90deg, rgba(38, 82, 78, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(38, 82, 78, 0.08) 1px, transparent 1px),
    #eef1ed;
  background-size: 48px 48px;
}

.leaflet-map-host {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.leaflet-map-host .leaflet-container,
.leaflet-map-host.leaflet-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: #d9e4de;
}

.leaflet-map-host .leaflet-pane,
.leaflet-map-host .leaflet-tile,
.leaflet-map-host .leaflet-marker-icon,
.leaflet-map-host .leaflet-marker-shadow,
.leaflet-map-host .leaflet-tile-container,
.leaflet-map-host .leaflet-pane > svg,
.leaflet-map-host .leaflet-pane > canvas,
.leaflet-map-host .leaflet-zoom-box,
.leaflet-map-host .leaflet-image-layer,
.leaflet-map-host .leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-map-host .leaflet-tile {
  width: 256px;
  height: 256px;
  user-select: none;
}

.leaflet-map-host .leaflet-tile-pane {
  z-index: 200;
}

.leaflet-map-host .leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-map-host .leaflet-marker-pane {
  z-index: 600;
}

.leaflet-map-host .leaflet-popup-pane {
  z-index: 700;
}

.leaflet-map-host .leaflet-control-container {
  position: relative;
  z-index: 800;
}

.ble-map-marker-container {
  border: 0;
  background: transparent;
}

.ble-map-marker {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  background: var(--red);
  color: var(--white);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1;
}

.ble-map-marker.venue-marker {
  border-radius: 999px;
}

.ble-map-marker.event-marker {
  border-radius: 13px 13px 13px 3px;
  background: var(--ink);
}

.ble-map-marker.group-marker {
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
}

.ble-map-marker-container:focus-visible .ble-map-marker {
  outline: 4px solid rgba(210, 43, 43, 0.32);
  outline-offset: 3px;
}

.map-pin {
  position: absolute;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  font-size: 0.85rem;
  font-weight: 950;
  text-decoration: none;
  z-index: 3;
}

.map-pin.event-marker {
  border-radius: 13px 13px 13px 3px;
  background: var(--ink);
}

.map-pin.group-marker {
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
}

.map-pin:hover,
.map-pin:focus-visible {
  outline: 3px solid rgba(210, 43, 43, 0.25);
}

.map-fallback-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: min(420px, calc(100% - 2rem));
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.94);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  z-index: 3;
}

.map-touch-toggle {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  min-height: 44px;
  transform: translateX(-50%);
  border-color: var(--ink);
  background: rgba(255, 252, 245, 0.96);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  z-index: 900;
}

.map-touch-active .map-touch-toggle {
  background: var(--ink);
  color: var(--white);
}

.map-results-panel {
  display: flex;
  min-width: 0;
  height: clamp(560px, 62vh, 740px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.map-results-heading {
  flex: 0 0 auto;
  padding: 0.9rem 1rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.map-results-heading .eyebrow {
  margin: 0 0 0.2rem;
}

.map-results-heading h2 {
  margin: 0;
  font-size: 1.05rem;
}

.map-list {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 0.75rem;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem;
  scroll-padding-block: 0.75rem;
}

.map-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
  scroll-margin: 0.75rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.map-card h2,
.map-card h3 {
  font-size: 1.05rem;
  margin: 0.2rem 0 0.35rem;
}

.map-card.map-card-active {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(210, 43, 43, 0.14);
  transform: translateY(-1px);
}

.map-card:focus-visible {
  outline: 3px solid rgba(210, 43, 43, 0.25);
  outline-offset: 2px;
}

.map-card .card-actions {
  margin-top: 0.85rem;
}

.map-locate-button {
  min-height: 38px;
}

.map-empty-state {
  margin: 0;
}

.map-popup-title {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.map-popup-summary {
  margin: 0 0 0.5rem;
  color: #615850;
  font-size: 0.8rem;
}

.map-popup-list {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding-left: 1.1rem;
}

.map-popup-list a,
.map-popup-google {
  color: #a1221d;
  font-weight: 800;
}

.map-popup-more {
  margin: 0.55rem 0 0;
  color: #615850;
  font-size: 0.8rem;
  font-weight: 800;
}

.map-popup-google {
  display: inline-block;
  margin-top: 0.55rem;
}

.status-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-specs,
.spec-grid {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
}

.mini-specs div,
.spec-grid div {
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0.1rem 0 0;
}

.source-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.source-row.static {
  text-decoration: none;
}

.source-row > span {
  display: grid;
  gap: 0.2rem;
}

.source-row small {
  color: var(--muted);
}

.source-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.source-freshness-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.source-freshness-line span:last-child {
  font-weight: 800;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trust-direct {
  color: var(--green);
}

.trust-guide {
  color: var(--teal);
}

.trust-community,
.trust-watch {
  color: #9a6400;
}

.trust-editorial {
  color: var(--red);
}

.source-row em {
  color: var(--teal);
  font-style: normal;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.source-row.audit-fresca {
  border-left: 6px solid var(--green);
}

.source-row.audit-vigilar {
  border-left: 6px solid var(--gold);
}

.source-row.audit-stale,
.source-row.audit-sin-fecha {
  border-left: 6px solid var(--red);
}

.source-alert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.source-alert-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
}

.source-alert-card p {
  margin: 0;
  color: var(--muted);
}

.source-alert-fresca {
  border-top: 5px solid var(--green);
}

.source-alert-vigilar {
  border-top: 5px solid var(--gold);
}

.source-alert-stale,
.source-alert-sin-fecha {
  border-top: 5px solid var(--red);
}

.page-title {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem) clamp(0.85rem, 2.5vw, 1.45rem);
}

.page-title h1 {
  max-width: 900px;
  margin-bottom: 0.38rem;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
}

.page-title p {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.98rem;
}

.split-title {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.filter-bar {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 1rem;
}

.detail-main,
.detail-side,
.admin-panel,
.login-panel,
.large-form,
.empty-state {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note-box {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 6px solid var(--teal);
  background: #eaf7f5;
  border-radius: 8px;
}

.blockchain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0;
  list-style: none;
}

.blockchain-list li {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.donation-side {
  align-self: start;
  text-align: center;
}

.donation-qr {
  width: min(100%, 280px);
  margin: 0 auto 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
}

.wallet-label {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wallet-address {
  display: block;
  padding: 0.75rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: left;
}

.small-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.score-stack {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.score-stack span {
  padding: 0.65rem;
  background: var(--paper-2);
  border-radius: 8px;
  font-weight: 800;
}

.stack-form,
.large-form {
  display: grid;
  gap: 0.85rem;
}

.large-form {
  max-width: 850px;
  margin: 0 auto clamp(2rem, 6vw, 5rem);
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkbox-grid legend {
  padding: 0 0.35rem;
  font-weight: 900;
}

.checkbox-grid label {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-weight: 800;
}

.field-report {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
}

.field-report legend {
  padding: 0 0.35rem;
  font-weight: 900;
}

.mini-report {
  display: grid;
  gap: 0.35rem;
  margin: 0.65rem 0 0;
}

.mini-report div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.55rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.mini-report dt {
  font-weight: 900;
}

.mini-report dd {
  margin: 0;
  color: var(--muted);
}

.source-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 2rem;
}

.rate-table {
  display: grid;
  gap: 0.75rem;
}

.rate-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(110px, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rate-row strong {
  font-size: 1.3rem;
}

.rate-row p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.article-card {
  min-height: 230px;
}

.article-page {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.article-page header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.article-page header p {
  color: var(--muted);
  font-size: 1.14rem;
}

.article-page section {
  margin-bottom: 1.5rem;
}

.article-figure {
  margin: 0 0 1.5rem;
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-figure figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-figure figcaption span {
  display: block;
}

.guide-visual {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
}

.guide-visual ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.guide-visual li {
  display: grid;
  gap: 0.35rem;
  min-height: 92px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-weight: 800;
}

.guide-visual li span {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 900;
}

.style-card-grid,
.video-lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.style-card,
.video-lesson {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.style-card h3,
.video-lesson h3 {
  margin: 0;
}

.style-card p,
.video-lesson p {
  margin: 0;
}

.guide-timeline {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.guide-timeline li {
  display: grid;
  grid-template-columns: minmax(82px, 0.18fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  background: rgba(194, 70, 58, 0.11);
  color: var(--terracotta);
  font-size: 0.86rem;
  font-weight: 900;
}

.guide-timeline p {
  margin: 0.35rem 0 0;
}

.video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.listening-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.listening-card,
.feedback-card {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.listen-note {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.mini-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.mini-visual span {
  padding: 0.3rem 0.5rem;
  background: #eaf7f5;
  border: 1px solid rgba(0, 135, 127, 0.22);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
}

.community-block {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem);
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
}

.feedback-layout .stack-form {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feedback-list {
  display: grid;
  gap: 0.75rem;
}

.feedback-card.highlighted {
  border-color: var(--teal);
  background: #eaf7f5;
}

.proof-link {
  display: inline-flex;
  margin: 0.2rem 0 0.45rem;
  color: var(--teal);
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.empty-state {
  text-align: center;
}

.empty-state.standalone {
  max-width: 720px;
  margin: clamp(2rem, 7vw, 5rem) auto;
}

.flash-wrap {
  position: fixed;
  top: 86px;
  right: 1rem;
  z-index: 20;
  display: grid;
  gap: 0.5rem;
  max-width: 360px;
}

.flash {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.flash.error {
  background: var(--red);
}

.flash.success {
  background: var(--green);
}


.adsense-bottom {
  max-width: 1180px;
  margin: clamp(1rem, 4vw, 2rem) auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.adsense-bottom span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.adsense-bottom .adsbygoogle {
  min-height: 90px;
}
.site-footer {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(500px, 1.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.55rem, 3.5vw, 2.7rem) clamp(1.2rem, 4vw, 3rem);
  background: var(--ink);
  color: var(--white);
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.site-footer p {
  max-width: 320px;
  margin: 0.48rem 0 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.83rem;
  line-height: 1.45;
}

.visit-counter {
  display: inline-flex;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.7rem;
  font-weight: 500;
}

.footer-link-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.8rem);
}

.footer-link-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.47rem;
}

.footer-link-group h2 {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-link-group a,
.footer-privacy-preferences,
.footer-city-switcher summary {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.81rem;
  font-weight: 400;
  line-height: 1.35;
  text-decoration-color: rgba(237, 107, 95, 0.62);
  text-underline-offset: 0.18em;
}

.footer-link-group a:hover,
.footer-link-group a:focus-visible,
.footer-privacy-preferences:is(:hover, :focus-visible),
.footer-city-switcher summary:hover,
.footer-city-switcher summary:focus-visible {
  color: var(--white);
}

.footer-privacy-preferences {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}


.footer-city-switcher {
  position: relative;
  color: var(--white);
}

.footer-city-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  min-height: 0;
  padding: 0;
  cursor: pointer;
}

.footer-city-switcher summary::-webkit-details-marker {
  display: none;
}

.footer-city-switcher summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.72;
}

.footer-city-switcher[open] summary::after {
  transform: rotate(180deg);
}

.footer-city-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  z-index: 20;
  width: min(330px, calc(100vw - 2rem));
  max-height: min(520px, calc(100vh - 4rem));
  overflow-y: auto;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.footer-city-switcher:not([open]) .footer-city-menu {
  display: none;
}

.footer-city-menu a {
  color: var(--ink);
}

.footer-city-menu a.active {
  color: var(--white);
}

.footer-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-body {
  background: #f6f6f6;
}

.admin-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem);
}

.admin-title {
  margin-bottom: 1rem;
}

.admin-title h1 {
  font-size: 2.5rem;
}

.admin-metrics {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  margin-bottom: 1rem;
}

.metrics-band-bottom {
  max-width: 1100px;
  margin: 0 auto clamp(2rem, 6vw, 4rem);
}

.panel-heading,
.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.admin-panel {
  margin-bottom: 1rem;
}

.admin-list {
  display: grid;
  gap: 0.7rem;
}

.admin-source-alerts {
  margin-top: 0.75rem;
}

.admin-row {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-row.tall {
  align-items: start;
}

.admin-row span {
  display: grid;
  gap: 0.2rem;
}

.admin-row small {
  color: var(--muted);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-form .full {
  grid-column: 1 / -1;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
  gap: 0.5rem;
}

.inline-form input,
.inline-form select {
  width: auto;
  min-width: 150px;
}

.activity-filters .full {
  grid-column: span 2;
}

.activity-breakdowns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.activity-ranking h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.activity-ranking ol {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-ranking li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}

.activity-ranking li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.activity-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.activity-table th,
.activity-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
}

.activity-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f0efed;
}

.activity-table td {
  max-width: 270px;
}

.activity-table td strong,
.activity-table td small {
  display: block;
  overflow-wrap: anywhere;
}

.activity-table tr.is-bot td {
  background: #fffaf1;
}

.activity-table tr.is-limited td {
  background: #fff0ee;
}

.activity-table details pre {
  width: min(52vw, 680px);
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #202020;
  color: #f7f4ed;
  border-radius: 7px;
  padding: 0.75rem;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  background: #ebe7dc;
  padding: 0.16rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pill.warning {
  background: #ffd8d3;
  color: #8c1d16;
}

.activity-pagination {
  margin-top: 1rem;
}

.rate-limit-page {
  max-width: 850px;
  min-height: 55vh;
}

@media (max-width: 900px) {
  .activity-breakdowns {
    grid-template-columns: 1fr;
  }

  .activity-filters .full {
    grid-column: auto;
  }
}

.check-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
}

.check-line input {
  width: 18px;
  min-height: 18px;
}

.check-line.compact {
  min-height: 34px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tabs a {
  padding: 0.55rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.tabs a.active {
  background: var(--ink);
  color: var(--white);
}

.login-panel {
  max-width: 480px;
  margin: clamp(2rem, 8vw, 6rem) auto;
}

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }

  .dance-map-canvas {
    height: min(55svh, 420px);
    min-height: 320px;
  }

  .map-results-panel {
    height: min(70svh, 640px);
    min-height: 360px;
  }

  .site-header,
  .admin-header,
  .split-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.55rem;
  }

  .footer-link-groups {
    width: 100%;
  }

  .top-spotlight {
    grid-template-columns: 1fr;
  }

  .spotlight-track {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.12rem;
  }

  .spotlight-card {
    scroll-snap-align: start;
  }

  .main-nav {
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(4rem, 1fr) auto;
    align-items: center;
    flex-direction: initial;
    gap: 0.55rem;
    padding: 0.52rem 1rem;
  }

  .site-header .brand {
    min-width: 0;
  }

  .brand-controls {
    justify-self: start;
    gap: 0.28rem;
    margin-left: 0.2rem;
    margin-right: 0;
  }

  .header-city-switcher summary {
    min-width: 50px;
    min-height: 32px;
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
  }

  .header-language-toggle {
    min-height: 30px;
    padding: 0.28rem 0.4rem;
    font-size: 0.68rem;
  }

  .mobile-city-switcher {
    display: inline-flex;
    position: relative;
    justify-self: start;
    min-width: 0;
  }

  .mobile-city-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.32rem 0.58rem;
    border: 1px solid rgba(194, 70, 58, 0.24);
    border-radius: 8px;
    background: rgba(194, 70, 58, 0.08);
    color: #b5483e;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
  }

  .mobile-city-switcher[open] .mobile-city-chip,
  .mobile-city-chip:hover,
  .mobile-city-chip:focus-visible {
    border-color: rgba(194, 70, 58, 0.42);
    background: rgba(194, 70, 58, 0.14);
    color: #9f3c34;
  }

  .mobile-city-switcher .mobile-city-menu {
    left: 0;
    right: auto;
    top: calc(100% + 0.45rem);
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible,
  .site-header.menu-open .mobile-menu-toggle {
    background: var(--ink);
    color: var(--white);
  }

  .site-header .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 70vh;
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease;
  }

  .site-header.nav-collapsed .main-nav {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
  }

  .site-header.menu-open .main-nav {
    max-height: 70vh;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav .city-switcher {
    justify-self: stretch;
  }

  .main-nav .city-switcher summary {
    width: 100%;
  }

  .header-city-switcher .city-menu,
  .brand-controls .header-city-switcher .city-menu {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 4.6rem;
    width: auto;
    max-height: calc(100vh - 5.6rem);
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.3fr);
  }

  .hero-next-list {
    grid-template-columns: 1fr;
  }

  .city-ribbon,
  .metrics-band,
  .admin-metrics,
  .ad-slot,
  .section-grid,
  .quick-intents,
  .newsletter-strip,
  .compact-signup,
  .detail-layout,
  .criteria-grid,
  .checkbox-grid,
  .rate-row,
  .venue-grid,
  .venue-grid.directory,
  .article-grid,
  .spec-grid,
  .two-cols,
  .feedback-layout,
  .listening-grid,
  .style-card-grid,
  .video-lesson-grid,
  .guide-visual ol,
  .guide-timeline li,
  .admin-toolbar,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .ad-slot {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .intent-grid {
    grid-template-columns: 1fr;
  }

  .city-pill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-intents.compact-intents .intent-grid {
    gap: 0.36rem;
  }

  .quick-intents.compact-intents .intent-card {
    min-height: 32px;
    padding: 0.32rem 0.55rem;
  }

  .quick-intents.compact-intents .intent-card strong {
    font-size: 0.8rem;
  }

  .event-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .event-card.has-media {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .event-card .date-chip {
    grid-column: 1;
    grid-row: 1;
    order: 1;
  }

  .event-thumb {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 190px;
    order: 5;
  }

  .event-card .event-thumb.profile-avatar-media {
    width: 118px;
    max-height: none;
    justify-self: start;
  }

  .event-card .event-body,
  .event-card.has-media .event-body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    order: 2;
  }

  .event-card .source-link,
  .event-card .card-actions {
    grid-column: 2;
    order: 3;
    max-width: none;
    justify-content: flex-start;
  }

  .metrics-band div {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .metrics-band div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .agenda-controls .filter-bar > label,
  .agenda-controls .filter-bar > button,
  .agenda-controls .filter-bar > .button {
    width: 100%;
  }

  .map-filter-bar > label,
  .map-filter-bar > button,
  .map-filter-bar > .button {
    width: 100%;
  }

  .map-overview,
  .map-layout {
    padding-inline: 1rem;
  }

  .map-stat-line {
    align-items: stretch;
  }

  .map-stat-line strong,
  .map-stat-line span {
    justify-content: center;
  }

  .map-coverage-note.warning {
    display: grid;
  }

  .dance-map-canvas {
    height: min(52svh, 390px);
    min-height: 300px;
  }

  .map-results-panel {
    height: min(72svh, 620px);
    min-height: 340px;
  }

  .map-touch-toggle {
    top: 0.55rem;
    max-width: calc(100% - 5.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .footer-city-menu {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    max-height: calc(100vh - 2rem);
  }

  h1 {
    font-size: 2.18rem;
    line-height: 1.04;
  }

  .brand img {
    width: auto;
    height: 50px;
    max-width: 46vw;
  }

  .brand-controls {
    gap: 0.22rem;
    margin-left: 0.1rem;
  }

  .header-city-switcher summary {
    min-width: 46px;
    min-height: 30px;
    padding: 0.24rem 0.42rem;
    font-size: 0.74rem;
  }

  .header-language-toggle {
    min-height: 28px;
    padding: 0.22rem 0.34rem;
    font-size: 0.64rem;
  }

  .mobile-city-chip {
    min-height: 32px;
    padding: 0.28rem 0.5rem;
    font-size: 0.78rem;
  }

  .main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0.42rem 0.42rem;
    font-size: 0.84rem;
    text-align: center;
  }

  .main-nav .nav-instagram-link {
    width: auto;
    min-height: 2.05rem;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .quick-intents {
    overflow: hidden;
  }

  .intent-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .intent-card {
    width: 100%;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .city-ribbon {
    padding: 0.9rem 1rem;
  }

  .city-pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .city-pill {
    min-height: 52px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    display: none;
  }

  .hero-inner,
  .hero-copy {
    max-width: calc(100vw - 2rem);
  }

  .hero-copy {
    font-size: 1.04rem;
    max-width: 340px;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card.has-media {
    grid-template-columns: 1fr;
  }

  .event-card .date-chip {
    grid-column: auto;
    grid-row: auto;
  }

  .event-thumb {
    grid-column: auto;
    width: 100%;
    max-height: 220px;
    order: 3;
  }

  .event-card .event-thumb.profile-avatar-media {
    width: 112px;
    max-height: none;
  }

  .event-card .event-body,
  .event-card.has-media .event-body {
    grid-column: auto;
    grid-row: auto;
  }

  .event-card .source-link,
  .event-card .card-actions {
    grid-column: auto;
    order: 4;
    max-width: none;
    justify-content: flex-start;
  }

  .mini-report div {
    grid-template-columns: 1fr;
  }

  .source-row,
  .admin-row,
  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .source-row em {
    text-align: left;
  }

  .inline-form {
    justify-content: flex-start;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .inline-form input,
  .inline-form select {
    width: 100%;
  }

  :is(.card-actions, .title-actions) .platform-link.platform-icon-only {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  :is(.card-actions, .title-actions) .platform-link.platform-icon-only .platform-icon {
    width: 1.55rem;
    height: 1.55rem;
  }

  :is(.card-actions, .title-actions) .platform-instagram-link.platform-icon-only {
    color: #b51c65;
  }

  :is(.card-actions, .title-actions) .platform-google-maps-link.platform-icon-only {
    color: #176b45;
  }

  :is(.card-actions, .title-actions) .platform-facebook-link.platform-icon-only {
    color: #1769aa;
  }

  :is(.card-actions, .title-actions) .platform-facebook-link .platform-facebook-icon {
    padding: 0.12rem;
    border-radius: 4px;
    background: #1877f2;
    color: #fff;
  }

  :is(.card-actions, .title-actions) .platform-link.platform-icon-only:hover,
  :is(.card-actions, .title-actions) .platform-link.platform-icon-only:focus-visible {
    border-color: transparent;
    background: transparent;
  }

  :is(.card-actions, .title-actions) .platform-facebook-link:hover .platform-facebook-icon,
  :is(.card-actions, .title-actions) .platform-facebook-link:focus-visible .platform-facebook-icon {
    background: #145dbf;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .site-header .main-nav {
    transition: none;
  }
}

@media (max-width: 760px) {
  .class-card {
    grid-template-columns: 1fr;
  }

  .class-actions {
    justify-content: flex-start;
    max-width: none;
  }
}

.games-title {
  background:
    linear-gradient(90deg, rgba(36, 104, 216, 0.14), transparent 42%),
    var(--paper);
}

.game-lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem);
}

.game-lab-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 170px;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid var(--line);
  border-left: 8px solid var(--blue);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(38, 23, 18, 0.08);
}

.game-lab-card:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.game-lab-card-mark {
  display: inline-grid;
  place-items: center;
  width: 86px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 900;
}

.game-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 3rem) 0;
}

.game-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.42rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.game-nav a.active,
.game-nav a:hover,
.game-nav a:focus-visible {
  border-color: var(--ink);
  background: var(--gold);
  color: var(--ink);
}

.game-return-link {
  max-width: 1180px;
  margin: 0.65rem auto 0;
  padding: 0 clamp(1rem, 4vw, 3rem);
  font-size: 0.9rem;
  font-weight: 800;
}

.game-2048-shell,
.sudoku-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem);
  min-width: 0;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.game-2048-shell:fullscreen,
.game-2048-shell.is-fullscreen,
.sudoku-shell:fullscreen,
.sudoku-shell.is-fullscreen {
  width: 100vw;
  min-height: 100vh;
  max-width: none;
  overflow: auto;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: var(--paper);
}

.game-2048-shell:-webkit-full-screen,
.sudoku-shell:-webkit-full-screen {
  width: 100vw;
  min-height: 100vh;
  max-width: none;
  overflow: auto;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: var(--paper);
}

.game-2048-shell.is-focus-mode,
.sudoku-shell.is-focus-mode {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  overflow: auto;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: var(--paper);
  overscroll-behavior: none;
}

body.game-focus-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

.game-2048-top,
.sudoku-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
  min-width: 0;
}

.game-2048-top h1,
.sudoku-top h1 {
  margin-bottom: 0;
}

.game-2048-top-actions {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.game-2048-scorebar {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  gap: 0.55rem;
}

.game-2048-scorebar div {
  min-height: 72px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.game-2048-scorebar span {
  display: block;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-2048-scorebar strong {
  display: block;
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  line-height: 1.05;
}

.game-2048-layout {
  display: grid;
  grid-template-columns: minmax(320px, 540px) minmax(280px, 1fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: start;
  min-width: 0;
}

.game-2048-play,
.game-records-panel {
  display: grid;
  gap: 1rem;
}

.game-2048-campaign {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.game-2048-campaign-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.75rem;
}

.game-2048-campaign-heading .eyebrow,
.game-2048-campaign-heading h2,
.game-2048-campaign-heading > p {
  margin: 0;
}

.game-2048-campaign-heading h2 {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
}

.game-2048-campaign-heading > p {
  max-width: 270px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: right;
}

.game-2048-milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-2048-milestones li {
  position: relative;
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  padding: 0.55rem 1.6rem 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.game-2048-milestones li::after {
  content: "○";
  position: absolute;
  top: 50%;
  right: 0.6rem;
  color: var(--muted);
  transform: translateY(-50%);
  font-weight: 900;
}

.game-2048-milestones li.is-current {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 8%, var(--paper));
}

.game-2048-milestones li.is-current::after {
  content: "→";
  color: var(--red);
}

.game-2048-milestones li.is-complete {
  background: color-mix(in srgb, var(--green) 12%, var(--paper));
}

.game-2048-milestones li.is-complete::after {
  content: "✓";
  color: var(--green);
}

.game-2048-milestones strong,
.game-2048-milestones span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-2048-milestones strong {
  font-size: 0.92rem;
}

.game-2048-milestones span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.game-2048-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.game-2048-progress-copy strong {
  color: var(--ink);
}

.game-2048-progress {
  width: 100%;
  height: 8px;
  accent-color: var(--red);
}

.game-2048-howto {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 12%, var(--white));
  overflow: hidden;
}

.game-2048-howto summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.3rem 0.65rem;
  padding: 0.8rem 0.95rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  list-style: none;
}

.game-2048-howto summary::-webkit-details-marker {
  display: none;
}

.game-2048-howto summary::before {
  content: "▸";
  grid-row: 1 / span 2;
  color: var(--red);
}

.game-2048-howto[open] summary::before {
  content: "▾";
}

.game-2048-howto summary span,
.game-2048-howto summary small {
  grid-column: 2;
}

.game-2048-howto summary small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.game-2048-instructions {
  padding: 0 0.95rem 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.game-2048-instructions ol {
  counter-reset: game-2048-step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0.9rem 0 0;
  list-style: none;
}

.game-2048-instructions li {
  counter-increment: game-2048-step;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 0.55rem;
  align-content: start;
  min-width: 0;
}

.game-2048-instructions li::before {
  content: counter(game-2048-step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  grid-row: 1 / span 2;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-weight: 900;
}

.game-2048-instructions li strong,
.game-2048-instructions li span {
  display: block;
}

.game-2048-instructions li strong {
  font-size: 0.87rem;
  line-height: 1.25;
}

.game-2048-instructions li span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.game-2048-instructions p {
  margin: 0.85rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.game-2048-instructions p strong {
  color: var(--ink);
}

.game-player-form {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.game-player-form label {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--muted);
}

.game-player-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.game-player-row input {
  min-width: 0;
  min-height: 42px;
  padding: 0.6rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.game-2048-board-wrap {
  position: relative;
  touch-action: none;
  overscroll-behavior: contain;
}

.game-2048-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: clamp(0.45rem, 1.6vw, 0.7rem);
  width: min(100%, 540px);
  aspect-ratio: 1;
  padding: clamp(0.55rem, 2vw, 0.8rem);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #2f2a24;
  touch-action: none;
  outline: none;
  box-shadow: 0 18px 40px rgba(38, 23, 18, 0.18);
}

.game-2048-board:focus-visible {
  box-shadow: 0 0 0 4px rgba(36, 104, 216, 0.28), 0 18px 40px rgba(38, 23, 18, 0.18);
}

.game-2048-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.18);
  overflow: hidden;
}

.game-2048-tile {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(1.2rem, 7vw, 2.4rem);
  line-height: 1;
}

.game-2048-tile.tile-128,
.game-2048-tile.tile-256,
.game-2048-tile.tile-512 {
  font-size: clamp(1rem, 5.8vw, 2rem);
}

.game-2048-tile.tile-1024,
.game-2048-tile.tile-2048,
.game-2048-tile.tile-4096,
.game-2048-tile.tile-8192,
.game-2048-tile.tile-super {
  font-size: clamp(0.88rem, 5vw, 1.65rem);
}

.tile-2 { background: #fffaf2; }
.tile-4 { background: #f4efe6; }
.tile-8 { background: #f4bf30; }
.tile-16 { background: #ff9f3d; }
.tile-32 { background: #d7372f; color: var(--white); }
.tile-64 { background: #a8201a; color: var(--white); }
.tile-128 { background: #00877f; color: var(--white); }
.tile-256 { background: #167a4a; color: var(--white); }
.tile-512 { background: #2468d8; color: var(--white); }
.tile-1024 { background: #151515; color: var(--gold); }
.tile-2048 { background: linear-gradient(135deg, #8b5d00, var(--blue)); color: var(--white); }
.tile-4096 { background: linear-gradient(135deg, var(--red), #53140f); color: var(--white); }
.tile-8192 { background: linear-gradient(135deg, var(--blue), #27185f); color: var(--white); }
.tile-super { background: linear-gradient(135deg, #151515, #53140f); color: var(--gold); }

.game-2048-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.4rem;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(21, 21, 21, 0.82);
  color: var(--white);
  text-align: center;
}

.game-2048-message[hidden] {
  display: none;
}

.game-2048-message strong {
  color: var(--gold);
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 1;
}

.game-2048-message .button {
  margin-top: 0.45rem;
}

.game-2048-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto)) minmax(160px, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.game-2048-controls .button,
.sudoku-controls .button {
  min-width: 0;
  white-space: normal;
}

.game-2048-arrows {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(3, 44px);
  grid-template-rows: repeat(2, 44px);
  gap: 0.35rem;
}

.game-2048-arrows button {
  min-height: 44px;
  padding: 0;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 900;
}

.game-2048-arrows [data-move="up"] {
  grid-column: 2;
}

.game-2048-arrows [data-move="left"] {
  grid-column: 1;
  grid-row: 2;
}

.game-2048-arrows [data-move="down"] {
  grid-column: 2;
  grid-row: 2;
}

.game-2048-arrows [data-move="right"] {
  grid-column: 3;
  grid-row: 2;
}

.game-2048-status {
  min-height: 1.5rem;
  color: var(--muted);
  font-weight: 800;
}

.game-records-panel section {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.game-record-list {
  display: grid;
  gap: 0.55rem;
}

.game-record-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-height: 58px;
  padding: 0.55rem;
  border: 1px solid rgba(217, 208, 194, 0.72);
  border-radius: 8px;
  background: var(--paper);
}

.game-record-row strong {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
  font-size: 0.82rem;
}

.game-record-row span,
.game-record-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.game-record-row span {
  font-weight: 900;
}

.game-record-row small {
  color: var(--muted);
  font-weight: 800;
}

.sudoku-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

.sudoku-levels .button {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.sudoku-layout {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(280px, 1fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: start;
  min-width: 0;
}

.sudoku-play,
.sudoku-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.sudoku-scorebar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.sudoku-scorebar div {
  min-height: 72px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.sudoku-scorebar span {
  display: block;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sudoku-scorebar strong {
  display: block;
  font-size: clamp(1.05rem, 3.4vw, 1.55rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.sudoku-board {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  width: min(100%, 560px);
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  overflow: hidden;
  touch-action: manipulation;
  box-shadow: 0 18px 40px rgba(38, 23, 18, 0.16);
}

.sudoku-cell {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid rgba(38, 23, 18, 0.28);
  border-bottom: 1px solid rgba(38, 23, 18, 0.28);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: clamp(1rem, 5.2vw, 2rem);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sudoku-cell.box-right {
  border-right: 2px solid var(--ink);
}

.sudoku-cell.box-bottom {
  border-bottom: 2px solid var(--ink);
}

.sudoku-cell.given {
  background: #f4efe6;
  color: var(--muted);
}

.sudoku-cell.related {
  background: #fff7df;
}

.sudoku-cell.matching {
  background: #f4df8a;
}

.sudoku-cell.selected {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--blue);
  outline-offset: -3px;
  background: #eaf1ff;
}

.sudoku-cell.error {
  background: #ffd9d6;
  color: #a8201a;
}

.sudoku-cell.complete {
  background: #e9f8ef;
}

.sudoku-cell.given.complete {
  background: #dff0e7;
}

.sudoku-pad {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.4rem;
}

.sudoku-pad button {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 900;
  cursor: pointer;
}

.sudoku-pad button:hover,
.sudoku-pad button:focus-visible {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 104, 216, 0.18);
}

.sudoku-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, auto));
  gap: 0.65rem;
  align-items: center;
}

.sudoku-status {
  min-height: 1.5rem;
  color: var(--muted);
  font-weight: 800;
}

.sudoku-panel section {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.sudoku-stats {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.sudoku-stats div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(217, 208, 194, 0.72);
  border-radius: 8px;
  background: var(--paper);
}

.sudoku-stats dt {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.sudoku-stats dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.game-2048-shell:fullscreen .game-2048-layout,
.game-2048-shell.is-fullscreen .game-2048-layout,
.game-2048-shell.is-focus-mode .game-2048-layout,
.game-2048-shell:-webkit-full-screen .game-2048-layout,
.sudoku-shell:fullscreen .sudoku-layout,
.sudoku-shell.is-fullscreen .sudoku-layout,
.sudoku-shell.is-focus-mode .sudoku-layout,
.sudoku-shell:-webkit-full-screen .sudoku-layout {
  grid-template-columns: minmax(300px, 620px) minmax(260px, 1fr);
}

.game-2048-shell:fullscreen .game-2048-board,
.game-2048-shell.is-fullscreen .game-2048-board,
.game-2048-shell.is-focus-mode .game-2048-board,
.game-2048-shell:-webkit-full-screen .game-2048-board,
.sudoku-shell:fullscreen .sudoku-board,
.sudoku-shell.is-fullscreen .sudoku-board,
.sudoku-shell.is-focus-mode .sudoku-board,
.sudoku-shell:-webkit-full-screen .sudoku-board {
  width: min(100%, 72vh, 620px);
}

@media (max-width: 900px) {
  .game-2048-top,
  .game-2048-layout,
  .sudoku-top,
  .sudoku-layout {
    grid-template-columns: 1fr;
  }

  .game-2048-top,
  .sudoku-top {
    display: grid;
    align-items: start;
  }

  .game-2048-top-actions {
    justify-items: start;
    width: 100%;
  }

  .game-2048-scorebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .game-2048-board {
    width: 100%;
  }

  .game-2048-instructions ol {
    grid-template-columns: 1fr;
  }

  .sudoku-board {
    width: 100%;
  }

  .game-2048-controls,
  .sudoku-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-2048-arrows {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .sudoku-levels {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  }

  .sudoku-pad {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .game-2048-shell:fullscreen .game-2048-layout,
  .game-2048-shell.is-fullscreen .game-2048-layout,
  .game-2048-shell.is-focus-mode .game-2048-layout,
  .game-2048-shell:-webkit-full-screen .game-2048-layout,
  .sudoku-shell:fullscreen .sudoku-layout,
  .sudoku-shell.is-fullscreen .sudoku-layout,
  .sudoku-shell.is-focus-mode .sudoku-layout,
  .sudoku-shell:-webkit-full-screen .sudoku-layout {
    grid-template-columns: 1fr;
  }

  .game-2048-shell:fullscreen .game-2048-board,
  .game-2048-shell.is-fullscreen .game-2048-board,
  .game-2048-shell.is-focus-mode .game-2048-board,
  .game-2048-shell:-webkit-full-screen .game-2048-board,
  .sudoku-shell:fullscreen .sudoku-board,
  .sudoku-shell.is-fullscreen .sudoku-board,
  .sudoku-shell.is-focus-mode .sudoku-board,
  .sudoku-shell:-webkit-full-screen .sudoku-board {
    width: min(100%, 82vw, 72vh);
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .game-lab-card,
  .game-player-row {
    grid-template-columns: 1fr;
  }

  .game-lab-card-mark {
    width: 72px;
  }

  .game-2048-shell,
  .sudoku-shell {
    padding: 1rem;
  }

  .game-2048-campaign-heading {
    display: grid;
    align-items: start;
  }

  .game-2048-campaign-heading > p {
    display: none;
  }

  .game-2048-board-wrap { order: 1; }
  .game-2048-controls { order: 2; }
  .game-2048-status { order: 3; }
  .game-2048-howto { order: 4; }
  .game-2048-play .game-player-form { order: 5; }

  .game-2048-scorebar div,
  .sudoku-scorebar div {
    min-height: 64px;
  }

  .sudoku-scorebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sudoku-scorebar strong {
    font-size: 1rem;
  }

  .sudoku-cell {
    font-size: clamp(0.95rem, 7vw, 1.45rem);
  }

  .sudoku-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sudoku-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.class-view-switch {
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.class-view-switch a {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.class-view-switch a.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.class-filter-bar label {
  flex: 1 1 150px;
}

.class-filter-bar .class-venue-filter {
  flex-basis: 230px;
}

.class-calendar-shell,
.class-flexible-section,
.class-venue-directory {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}

.class-calendar-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.class-calendar-toolbar h2 {
  margin: 0;
}

.class-week-nav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.class-calendar-help {
  max-width: 880px;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.class-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.15rem 0.15rem 0.8rem;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--teal) #ece7dc;
}

.class-day-column {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f4ed;
  overflow: hidden;
  scroll-snap-align: start;
}

.class-day-column.is-today {
  border: 2px solid var(--teal);
  background: #eefaf8;
}

.class-day-column > header {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.class-day-column > header span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.class-day-column > header strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.class-day-sessions {
  display: grid;
  gap: 0.65rem;
  padding: 0.65rem;
}

.class-calendar-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid rgba(30, 39, 38, 0.15);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.class-calendar-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.class-calendar-time {
  width: fit-content;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.class-calendar-venue,
.class-calendar-schedule {
  margin: 0;
  font-size: 0.86rem;
}

.class-calendar-venue {
  font-weight: 800;
}

.class-calendar-venue span {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.class-calendar-schedule {
  color: var(--muted);
  line-height: 1.35;
}

.compact-tags {
  gap: 0.3rem;
}

.compact-tags span {
  font-size: 0.7rem;
}

.class-calendar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 900;
}

.class-day-empty {
  margin: 0;
  padding: 1rem 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.class-flexible-section {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.class-flexible-section .class-list,
.class-venue-group .class-list {
  max-width: none;
  padding-inline: 0;
}

.class-venue-directory {
  display: grid;
  gap: 1.5rem;
}

.class-venue-group {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.class-venue-group > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.class-venue-group h2,
.class-venue-group p {
  margin-bottom: 0.25rem;
}

.class-card h3 {
  margin: 0;
}

.class-calendar-empty {
  max-width: 760px;
  margin: 0 auto 3rem;
}

@media (max-width: 760px) {
  .class-calendar-toolbar,
  .class-venue-group > header {
    align-items: stretch;
    flex-direction: column;
  }

  .class-week-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .class-week-nav .button {
    min-width: 0;
    padding-inline: 0.45rem;
    text-align: center;
  }

  .class-week-grid {
    grid-template-columns: repeat(7, minmax(82vw, 1fr));
  }

  .class-day-column {
    min-height: 260px;
  }
}

body.class-modal-open {
  overflow: hidden;
}

.class-card.class-summary-card,
.class-calendar-card.class-summary-card {
  display: block;
  padding: 0;
  overflow: visible;
}

.class-summary-trigger {
  width: 100%;
  min-height: 0;
  display: grid;
  gap: 0.34rem;
  padding: 0.72rem;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.class-summary-trigger:hover,
.class-summary-trigger:focus-visible {
  background: #f0fbf9;
  color: var(--ink);
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.class-summary-time {
  width: fit-content;
  padding: 0.18rem 0.44rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.class-summary-venue {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.12;
}

.class-summary-style {
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.28;
}

.class-summary-style small {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.class-summary-zone {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.class-summary-cue {
  margin-top: 0.1rem;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.class-card.needs-review.class-summary-card .class-summary-trigger {
  background: #fff9e7;
}

.class-detail-modal {
  width: min(720px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
}

.class-detail-modal::backdrop {
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 135, 127, 0.22), transparent 34%),
    rgba(17, 17, 18, 0.78);
  backdrop-filter: blur(3px);
}

.class-detail-dialog {
  position: relative;
  max-height: calc(100dvh - 2rem);
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.class-detail-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.class-detail-close:hover,
.class-detail-close:focus-visible {
  background: var(--red);
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.class-detail-header {
  padding-right: 3rem;
}

.class-detail-header h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
}

.class-detail-venue {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.class-detail-venue span + span::before {
  content: "·";
  margin-right: 0.5rem;
}

.class-detail-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.class-detail-highlights span {
  padding: 0.35rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 850;
}

.class-detail-notes {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-left: 4px solid var(--teal);
  background: #eefaf8;
}

.class-detail-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.class-detail-actions {
  justify-content: flex-start;
}

@media (max-width: 620px) {
  .class-detail-modal {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .class-detail-dialog {
    max-height: calc(100dvh - 1rem);
    padding: 1rem;
  }

  .class-detail-specs {
    grid-template-columns: 1fr;
  }
}

/* Buscaminas: Windows 9x-era palette and bevels, with modern responsive containment. */
.game-lab-card-mark-retro {
  background: #000080;
  color: #ffffff;
  font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
}

.minesweeper-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem);
  min-width: 0;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.minesweeper-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.minesweeper-top h1,
.minesweeper-top p:last-child {
  margin-bottom: 0;
}

.minesweeper-top p:last-child {
  max-width: 670px;
  color: var(--muted);
}

.minesweeper-layout {
  display: grid;
  grid-template-columns: minmax(320px, 760px) minmax(280px, 1fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: start;
  min-width: 0;
}

.minesweeper-play,
.minesweeper-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.minesweeper-window {
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  padding: 3px;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-right: 3px solid #000000;
  border-bottom: 3px solid #000000;
  background: #c0c0c0;
  color: #000000;
  font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
  font-size: 12px;
  image-rendering: pixelated;
  box-shadow: 0 18px 40px rgba(38, 23, 18, 0.2);
}

.minesweeper-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 24px;
  padding: 2px 3px 2px 5px;
  background: #000080;
  color: #ffffff;
  line-height: 1;
}

.minesweeper-titlebar strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.minesweeper-window-buttons {
  display: flex;
  gap: 2px;
}

.minesweeper-window-buttons i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  background: #c0c0c0;
  color: #000000;
  font-style: normal;
  font-weight: 900;
}

.minesweeper-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  min-height: 28px;
  padding: 2px 4px;
}

.minesweeper-menu > span,
.minesweeper-menu button {
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #000000;
  font: inherit;
}

.minesweeper-menu > span:first-child::first-letter,
.minesweeper-menu > span:last-child::first-letter {
  text-decoration: underline;
}

.minesweeper-menu button {
  cursor: pointer;
}

.minesweeper-menu button:hover,
.minesweeper-menu button:focus-visible,
.minesweeper-menu button.active {
  border-color: #808080 #ffffff #ffffff #808080;
  outline: none;
}

.minesweeper-menu button.active::before {
  content: "✓ ";
  font-weight: 900;
}

.minesweeper-inner {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.minesweeper-scoreboard {
  display: grid;
  grid-template-columns: minmax(64px, auto) 1fr minmax(64px, auto);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 6px;
  border-top: 3px solid #808080;
  border-left: 3px solid #808080;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
}

.minesweeper-counter {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  min-height: 38px;
  padding: 2px 4px;
  border: 2px inset #c0c0c0;
  background: #000000;
  color: #ff0000;
  font-family: "Courier New", monospace;
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  text-shadow: 0 0 3px #ff0000;
}

.minesweeper-face {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-right: 3px solid #000000;
  border-bottom: 3px solid #000000;
  border-radius: 0;
  background: #c0c0c0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.minesweeper-face:active {
  border-top-color: #000000;
  border-left-color: #000000;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  padding: 2px 0 0 2px;
}

.minesweeper-board-scroll {
  max-width: 100%;
  overflow: auto;
  border-top: 3px solid #808080;
  border-left: 3px solid #808080;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  background: #c0c0c0;
  scrollbar-color: #808080 #c0c0c0;
  touch-action: pan-x pan-y;
}

.minesweeper-board {
  display: grid;
  grid-template-columns: repeat(var(--minesweeper-cols), 24px);
  grid-auto-rows: 24px;
  width: max-content;
  margin: 0 auto;
  background: #808080;
}

.minesweeper-cell {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-right: 3px solid #808080;
  border-bottom: 3px solid #808080;
  border-radius: 0;
  background: #c0c0c0;
  color: #000000;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.minesweeper-cell:focus-visible {
  z-index: 2;
  outline: 2px dotted #000000;
  outline-offset: -5px;
}

.minesweeper-cell:active:not(.revealed) {
  border: 1px solid #808080;
}

.minesweeper-cell.revealed {
  border: 1px solid #808080;
  background: #c0c0c0;
}

.minesweeper-cell.flagged {
  font-family: "Segoe UI Emoji", sans-serif;
  font-size: 14px;
}

.minesweeper-cell.mine {
  font-family: "Segoe UI Emoji", sans-serif;
  font-size: 13px;
}

.minesweeper-cell.exploded {
  background: #ff0000;
}

.minesweeper-cell.wrong-flag {
  color: #ff0000;
  font-size: 22px;
}

.minesweeper-cell.number-1 { color: #0000ff; }
.minesweeper-cell.number-2 { color: #008000; }
.minesweeper-cell.number-3 { color: #ff0000; }
.minesweeper-cell.number-4 { color: #000080; }
.minesweeper-cell.number-5 { color: #800000; }
.minesweeper-cell.number-6 { color: #008080; }
.minesweeper-cell.number-7 { color: #000000; }
.minesweeper-cell.number-8 { color: #808080; }

.minesweeper-touch-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.minesweeper-touch-tools button {
  min-height: 40px;
  padding: 5px 8px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  border-radius: 0;
  background: #c0c0c0;
  color: #000000;
  font: inherit;
  font-weight: 700;
}

.minesweeper-touch-tools button.active {
  border-top-color: #000000;
  border-left-color: #000000;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  background: repeating-linear-gradient(45deg, #ffffff 0 1px, #c0c0c0 1px 3px);
}

.minesweeper-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.minesweeper-panel section {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.minesweeper-shell:fullscreen,
.minesweeper-shell.is-fullscreen,
.minesweeper-shell:-webkit-full-screen {
  width: 100vw;
  min-height: 100vh;
  max-width: none;
  overflow: auto;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: var(--paper);
}

.recurrence-notice {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #9fb6a8;
  border-radius: 8px;
  background: #eef7f0;
  color: #173f27;
  font-size: 0.92rem;
}

.recurrence-notice.recurrence-confirm_before_going {
  border-color: #c88721;
  background: #fff5df;
  color: #5a3500;
}

.recurrence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.recurrence-actions a {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  min-height: 24px;
}

.newsletter-consent {
  align-items: flex-start;
  display: flex;
  font-size: 0.82rem;
  gap: 0.55rem;
  line-height: 1.4;
}

.newsletter-consent input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 0.18rem;
  min-height: 1.25rem;
  min-width: 1.25rem;
  width: 1.25rem;
}

.minesweeper-shell.is-focus-mode {
  position: fixed;
  inset: 0;
  z-index: 100;
  height: 100dvh;
  overscroll-behavior: none;
}

@media (max-width: 900px) {
  .minesweeper-top,
  .minesweeper-layout {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .minesweeper-window {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .minesweeper-shell {
    padding: 1rem;
  }

  .minesweeper-menu {
    align-items: stretch;
  }

  .minesweeper-menu > span {
    display: none;
  }

  .minesweeper-menu button {
    flex: 1 1 31%;
    padding-inline: 4px;
  }

  .minesweeper-inner {
    padding: 5px;
  }

  .minesweeper-scoreboard {
    gap: 6px;
  }

  .minesweeper-counter {
    min-width: 58px;
    font-size: 27px;
  }
}
