:root {
  --editorial-paper: #f1f0ed;
  --editorial-ink: #080808;
  --editorial-red: #f32b1c;
  --editorial-blue: #35b9ff;
  --editorial-rule: rgba(8, 8, 8, 0.18);
}

@font-face {
  font-family: 'SCUFF SF Pro Condensed Black';
  src: url('assets/fonts/SFPro-CondensedBlack.ttf') format('truetype');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

body {
  background: var(--editorial-paper);
  color: var(--editorial-ink);
  font-family: Arial, Helvetica, sans-serif;
}

body::before,
body::after {
  opacity: 0;
}

.topbar,
.ticker,
.layout,
.mobile-nav,
.editorial-hero {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
  box-shadow: none;
}

.brand__logo {
  filter: none;
}

.brand__beta {
  background: var(--editorial-ink);
  border-color: var(--editorial-ink);
  color: #fff;
}

.mobile-sign-in {
  display: none;
}

.topnav a,
.topbar__actions .button--ghost {
  color: var(--editorial-ink);
}

.topnav a:hover,
.topnav a:focus-visible,
.topbar__actions .button--ghost:hover,
.topbar__actions .button--ghost:focus-visible {
  border-color: var(--editorial-red);
  color: var(--editorial-red);
}

.search-field {
  border-color: var(--editorial-rule);
  background: transparent;
}

.search-field input {
  color: var(--editorial-ink);
}

.search-field__icon {
  color: var(--editorial-red);
}

.button--primary {
  background: var(--editorial-ink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--editorial-red);
}

.button--ghost {
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
  box-shadow: none;
}

.editorial-hero {
  display: grid;
  gap: clamp(1.3rem, 2.7vw, 2.6rem);
  padding: clamp(2.6rem, 6vw, 6.5rem) clamp(1.1rem, 3.2vw, 3.8rem) clamp(1.7rem, 3.2vw, 3.2rem);
  background: #fff;
  border: 1px solid var(--editorial-ink);
  margin-top: 18px;
  overflow: hidden;
}

.editorial-hero__topline,
.editorial-hero__bottomline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.editorial-wordmark {
  color: var(--editorial-ink);
  font-family: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: clamp(3.6rem, 8.7vw, 9.5rem);
  font-stretch: condensed;
  letter-spacing: -0.105em;
  line-height: 0.76;
  text-decoration: none;
  white-space: nowrap;
}

.editorial-wordmark span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: -0.09em;
  margin-left: 0.12em;
}

.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--editorial-ink);
  font-size: clamp(0.68rem, 1vw, 0.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.editorial-link span {
  font-size: 1.1em;
  transition: transform 180ms ease;
}

.editorial-link:hover span,
.editorial-link:focus-visible span {
  transform: translate(3px, -3px);
}

.editorial-hero__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2.1vw, 2.1rem);
  padding-top: clamp(0.5rem, 1.2vw, 1.3rem);
}

.editorial-frame {
  position: relative;
  display: block;
  aspect-ratio: 0.67;
  overflow: hidden;
  background: var(--editorial-ink);
  transform: translateZ(0);
}

.editorial-frame:nth-child(2) {
  margin-top: clamp(1.2rem, 5vw, 5.5rem);
}

.editorial-frame:nth-child(4) {
  margin-top: clamp(0.5rem, 2.4vw, 2.5rem);
}

.editorial-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 42%, rgba(0, 0, 0, 0.65));
  transition: opacity 240ms ease;
}

.editorial-frame--red img {
  filter: saturate(1.35) contrast(1.14) hue-rotate(-8deg);
}

.editorial-frame--blue img {
  filter: saturate(1.2) contrast(1.06) hue-rotate(4deg);
}

.editorial-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 240ms ease;
}

.editorial-frame:hover img,
.editorial-frame:focus-visible img {
  transform: scale(1.045);
}

.editorial-frame:hover::after,
.editorial-frame:focus-visible::after {
  opacity: 0.75;
}

.editorial-frame__index {
  position: absolute;
  z-index: 1;
  right: 0.8rem;
  bottom: 0.7rem;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.editorial-title {
  margin: 0;
  max-width: 9.5em;
  font-family: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.76;
  text-transform: uppercase;
}

.editorial-title em {
  color: var(--editorial-red);
  font-style: normal;
}

.editorial-link--solid {
  align-self: end;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid currentColor;
}

.editorial-link--right {
  align-self: end;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid currentColor;
}

.ticker {
  border-color: var(--editorial-ink);
  background: var(--editorial-ink);
  color: #fff;
}

.layout {
  margin-top: 28px;
}

.sidebar {
  background: #fff;
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
}

.content {
  border-color: var(--editorial-ink);
}

.display-title,
.section-title,
.utility-panel__title,
.pause-card__title,
.spotlight-card__title,
.compact-event-card__title,
.day-card__title,
.timeline-card__title,
.feed-card__title,
.venue-card__title {
  font-family: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-style: normal;
  letter-spacing: -0.05em;
}

.display-title,
.section-title,
.section-title--muted,
.utility-panel__title,
.pause-card__title {
  color: var(--editorial-ink);
}

.section-line {
  background: var(--editorial-ink);
}

.section-pin {
  background: linear-gradient(180deg, rgba(241, 240, 237, 0.98) 0 82%, rgba(241, 240, 237, 0) 100%);
}

.section-block,
.section-footer {
  color: var(--editorial-ink);
}

.spotlight-card,
.day-card,
.timeline-card,
.feed-card,
.venue-card,
.utility-panel,
.pause-panel,
.empty-state,
.empty-grid,
.compact-event-card {
  background: #fff;
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
}

.spotlight-card:hover,
.spotlight-card:focus-within,
.day-card:hover,
.day-card:focus-within,
.timeline-card:hover,
.timeline-card:focus-within,
.feed-card:hover,
.feed-card:focus-within,
.venue-card:hover,
.venue-card:focus-within,
.utility-panel:hover,
.utility-panel:focus-within,
.compact-event-card:hover,
.compact-event-card:focus-within {
  box-shadow: 6px 6px 0 var(--editorial-red);
  border-color: var(--editorial-ink);
}

.rail-title,
.panel-kicker,
.spotlight-card__price,
.compact-event-card__price,
.feed-card__price,
.day-card__count,
.stat-box__value {
  color: var(--editorial-red);
}

.rail-button,
.chip,
.stat-box {
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
}

.rail-button.is-active,
.chip.is-active {
  background: var(--editorial-red);
  border-color: var(--editorial-red);
  color: #fff;
}

.card-link {
  background: var(--editorial-ink);
  color: #fff;
}

.card-link--ghost {
  background: transparent;
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
}

.status-pill {
  background: var(--editorial-red);
  color: #fff;
}

.status-pill--upcoming {
  background: var(--editorial-blue);
  color: var(--editorial-ink);
}

.time-badge,
.tag-chip {
  background: var(--editorial-ink);
  border-color: var(--editorial-ink);
  color: #fff;
}

.pause-panel {
  background: rgba(255, 255, 255, 0.5);
}

.page-loader__lanes {
  display: none;
}

.page-loader__status {
  position: absolute;
  left: 50%;
  bottom: 3.5vh;
  z-index: 4;
  margin: 0;
  color: #fff;
  font-family: 'SCUFF SF Pro Condensed Black', 'SF Pro Condensed', 'Helvetica Neue Condensed', 'Arial Narrow', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  text-transform: uppercase;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100% - 28px);
  text-align: center;
  white-space: normal;
}

html.scuff-slow-loading .page-loader__status {
  opacity: 1;
  transform: translate(-50%, 0);
}

html.scuff-slow-loading .page-loader__status.is-changing {
  opacity: 0;
  transform: translate(-50%, 8px);
}

html.scuff-entering-explorer .page-loader {
  background: var(--editorial-paper);
  place-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

html.scuff-entering-explorer .page-loader__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

html.scuff-entering-explorer .page-loader__mark {
  color: #fff;
  font-family: 'SCUFF SF Pro Condensed Black', 'SF Pro Condensed', 'Helvetica Neue Condensed', 'Arial Narrow', sans-serif;
  font-size: clamp(5rem, 14vw, 13rem);
  font-style: normal;
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.1em;
  mix-blend-mode: normal;
}

html.scuff-entering-explorer.scuff-explorer-reveal .page-loader__lane {
  transform: translateY(-104%);
  transition: transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.scuff-entering-explorer.scuff-explorer-reveal .page-loader__lane--one {
  transition-delay: 0ms;
}

html.scuff-entering-explorer.scuff-explorer-reveal .page-loader__lane--two {
  transition-delay: 80ms;
}

html.scuff-entering-explorer.scuff-explorer-reveal .page-loader__lane--three {
  transition-delay: 160ms;
}

html.scuff-entering-explorer.scuff-explorer-reveal .page-loader__lane--four {
  transition-delay: 240ms;
}

html.scuff-entering-explorer.scuff-explorer-reveal .page-loader__frame {
  transform: translate(-50%, -50%) translateY(-18px);
  opacity: 0;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), opacity 280ms ease;
}

html.scuff-entering-explorer .page-loader__bar {
  display: none;
}

html.scuff-entering-explorer .page-loader__status {
  mix-blend-mode: difference;
}

html.scuff-entering-explorer .page-loader__lanes {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html.scuff-entering-explorer .page-loader__lane {
  display: block;
  min-width: 0;
  background-position: center;
  background-size: cover;
  transform: translateY(0);
}

html.scuff-entering-explorer .page-loader__lane--one {
  background-image: url('assets/events/downloads-red-crowd.jpg');
}

html.scuff-entering-explorer .page-loader__lane--two {
  background-image: url('assets/events/downloads-dance-floor.jpg');
}

html.scuff-entering-explorer .page-loader__lane--three {
  background-image: url('assets/events/downloads-flash-crowd.jpg');
}

html.scuff-entering-explorer .page-loader__lane--four {
  background-image: url('assets/events/downloads-street.jpg');
}

@media (max-width: 760px) {
  .topbar,
  .ticker,
  .layout,
  .mobile-nav,
  .editorial-hero {
    width: min(var(--max), calc(100% - 20px));
  }

  .editorial-hero {
    padding: 1.5rem 0.85rem 1.2rem;
    gap: 1.2rem;
  }

  .editorial-hero__topline {
    align-items: center;
  }

  .editorial-wordmark {
    font-size: clamp(3.2rem, 16vw, 5.8rem);
  }

  .editorial-hero__gallery {
    gap: 0.45rem;
  }

  .editorial-frame:nth-child(2),
  .editorial-frame:nth-child(4) {
    margin-top: 0;
  }

  .editorial-frame__index {
    right: 0.3rem;
    bottom: 0.35rem;
    font-size: 0.47rem;
    writing-mode: vertical-rl;
  }

  .editorial-hero__bottomline {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1rem;
  }

  .editorial-title {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: clamp(3rem, 16vw, 6rem);
  }

  .editorial-link--solid {
    grid-column: 1;
    grid-row: 2;
  }

  .editorial-link--right {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-frame img,
  .editorial-link span,
  html.scuff-entering-explorer .page-loader__lane,
  html.scuff-entering-explorer .page-loader__frame {
    transition: none;
  }
}

/* Explorer mobile layout: keep the event stream readable at phone widths. */
@media (max-width: 760px) {
  body {
    padding-bottom: 96px;
  }

  .topbar,
  .ticker,
  .layout,
  .mobile-nav {
    width: min(var(--max), calc(100% - 28px));
  }

  .topbar {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    margin-top: 8px;
    padding: 6px 8px;
    border-width: 2px;
    min-height: 50px;
  }

  .mobile-icon {
    width: 34px;
    height: 34px;
    border-width: 2px;
    font-size: 0.78rem;
  }

  .brand {
    gap: 8px;
  }

  .brand__logo {
    height: 19px;
  }

  .brand__beta {
    padding: 2px 5px;
    font-size: 0.52rem;
  }

  .mobile-icon--tickets {
    display: none;
  }

  .mobile-sign-in {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 2px solid var(--editorial-ink);
    padding: 0 7px;
    color: var(--editorial-ink);
    font-size: 0.52rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-sign-in:hover,
  .mobile-sign-in:focus-visible {
    background: var(--editorial-ink);
    color: #fff;
    outline: none;
  }

  .ticker {
    margin-top: 6px;
    height: 3px;
  }

  .layout {
    margin-top: 16px;
  }

  .content {
    border-left: 0;
    padding-left: 0;
    gap: 56px;
  }

  .section-block {
    gap: 14px;
  }

  .section-pin {
    top: 58px;
    padding: 0 0 10px;
    gap: 5px;
    background: linear-gradient(180deg, rgba(241, 240, 237, 0.98) 0 82%, rgba(241, 240, 237, 0) 100%);
  }

  .section-head-row {
    gap: 10px;
    padding-right: 60px;
  }

  .display-title,
  .section-title,
  .section-meta {
    color: var(--editorial-ink);
  }

  .display-title {
    font-size: clamp(1.7rem, 8.6vw, 2.15rem);
    letter-spacing: -0.065em;
  }

  .section-line {
    height: 2px;
    background: rgba(8, 8, 8, 0.28);
  }

  #live .section-line,
  #today .section-line,
  #tomorrow .section-line {
    background: rgba(8, 8, 8, 0.28);
  }

  .section-meta {
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .section-badge {
    min-height: 27px;
    padding-inline: 8px;
    font-size: 0.54rem;
  }

  .live-layout {
    gap: 16px;
  }

  .live-layout__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .compact-event-card {
    display: grid;
    grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
  }

  .compact-event-card__media-wrap {
    min-height: 164px;
  }

  .compact-event-card__media {
    height: 100%;
    aspect-ratio: auto;
  }

  .compact-event-card__body {
    align-content: center;
  }

  .spotlight-card__media {
    aspect-ratio: 16 / 9;
  }

  .compact-event-card__media {
    aspect-ratio: 16 / 9;
  }

  .spotlight-card__body,
  .compact-event-card__body {
    padding: 11px;
    gap: 9px;
  }

  .spotlight-card__top,
  .compact-event-card__row {
    gap: 10px;
  }

  .spotlight-card__title {
    font-size: 1.08rem;
  }

  .spotlight-card__price {
    font-size: 0.96rem;
  }

  .compact-event-card__title {
    font-size: 0.92rem;
  }

  .compact-event-card__price {
    font-size: 0.78rem;
  }

  .spotlight-card__tags {
    gap: 6px;
  }

  .status-pill,
  .tag-chip {
    min-height: 24px;
    padding-inline: 8px;
    font-size: 0.5rem;
  }

  .card-link {
    min-height: 38px;
  }

  .mobile-nav {
    bottom: 8px;
    border-width: 2px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--editorial-ink);
    box-shadow: 0 6px 0 rgba(8, 8, 8, 0.14), 0 12px 26px rgba(8, 8, 8, 0.12);
    backdrop-filter: blur(12px);
  }

  .mobile-nav a {
    color: var(--editorial-ink);
    border-color: rgba(8, 8, 8, 0.22);
    padding: 8px 3px 9px;
    font-size: 0.52rem;
  }

  .mobile-nav a::before {
    color: var(--editorial-red);
  }

  #live,
  #today,
  #tomorrow,
  #venues,
  #tickets {
    scroll-margin-top: 76px;
  }
}

/* Keep navigation and filters proportional between phone and desktop widths. */
.topbar {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 24px;
  border-width: 2px;
  padding: 12px 16px;
}

.topnav {
  justify-content: flex-end;
  gap: 4px;
}

.topbar__actions {
  grid-column: 1 / -1;
  min-width: 0;
  flex-wrap: nowrap;
}

.search-field {
  flex: 1;
  min-width: 0;
  min-height: 44px;
}

.search-field input {
  min-width: 0;
}

.topbar__actions .button {
  flex-shrink: 0;
  min-height: 44px;
  border-width: 2px;
}

.rail-block,
.rail-stack,
.chip-grid {
  align-content: start;
  align-items: start;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
}

.chip {
  min-height: 38px;
  padding: 8px 12px;
}

.stat-box {
  background: var(--editorial-paper);
}

.stat-box__label {
  color: #595959;
}

@media (min-width: 1280px) {
  .topbar {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .topbar__actions {
    grid-column: auto;
  }
}

@media (min-width: 761px) {
  .sidebar {
    top: 152px;
  }

  .section-pin {
    top: 146px;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .sidebar {
    gap: 20px;
    padding: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .rail-stack {
    display: flex;
    flex-wrap: wrap;
  }

  .rail-button {
    padding: 8px 12px;
  }
}

@media (min-width: 1280px) {
  .sidebar { top: 100px; }
  .section-pin { top: 88px; }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 6px 8px;
    top: 8px;
  }

  .topnav { display: none; }

  .mobile-icon,
  .mobile-sign-in {
    min-width: 44px;
    height: 44px;
  }

  .mobile-icon--search { color: var(--editorial-ink); }
  .mobile-sign-in { font-size: 0.7rem; padding-inline: 10px; }
  .brand__logo { height: 22px; }
  .brand__beta { font-size: 0.6rem; }

  .topbar.is-search-open .topbar__actions {
    background: var(--editorial-paper);
    border-color: var(--editorial-ink);
  }

  .section-pin { top: 74px; }
  .mobile-nav { bottom: max(8px, env(safe-area-inset-bottom)); }
  .mobile-nav a { min-height: 44px; font-size: 0.65rem; }
}

/* Labels must fit narrow rails and cards, including long unbroken tags. */
.rail-block,
.rail-stack,
.chip-grid,
.stats-grid,
.spotlight-card__tags,
.day-card__tags,
.feed-card__tags {
  min-width: 0;
}

.chip,
.rail-button,
.tag-chip,
.time-badge,
.status-pill {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.tag-chip {
  clip-path: none;
  padding: 6px 9px;
  font-size: 0.65rem;
}

.status-pill,
.time-badge--corner {
  max-width: calc(100% - 20px);
}

.stat-box { min-width: 0; }
.stat-box__label { overflow-wrap: anywhere; }

.section-copy,
.section-meta,
.compact-event-card__meta {
  color: #626262;
}

@media (max-width: 760px) {
  .tag-chip { font-size: 0.65rem; }
  .section-head-row { padding-right: 0; flex-wrap: wrap; }
  .section-heading { min-width: 0; }
}

@media (max-width: 760px) {
  .section-badge {
    position: static;
    transform: none;
    flex-shrink: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Empty states and sidebar counts should use the space available to them. */
.empty-state,
.empty-grid { grid-column: 1 / -1; }

.sidebar .stats-grid { grid-template-columns: minmax(0, 1fr); }
.sidebar .stat-box {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sidebar .stat-box__value { font-size: 1.2rem; }

@media (max-width: 760px) {
  #live .section-badge,
  #today .section-badge,
  #tomorrow .section-badge {
    color: var(--editorial-ink);
    background: transparent;
    border-color: var(--editorial-rule);
  }
}

/* Phone header: identity and account above an always-available search field. */
@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    padding: 10px 12px;
    border: 1px solid var(--editorial-rule);
  }

  .mobile-icon--search { display: none; }
  .topbar .brand { justify-content: flex-start; }
  .mobile-sign-in {
    border: 0;
    padding: 0;
    font-size: 0.75rem;
    min-height: 44px;
  }

  .topbar .topbar__actions {
    display: flex;
    position: static;
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .topbar__actions .button { display: none; }
  .search-field {
    width: 100%;
    border-width: 1px;
    background: var(--editorial-paper);
    padding: 10px 12px;
  }
  .search-field input { font-size: 16px; }
  .search-field input::placeholder {
    font-size: 12px;
    text-transform: none;
    letter-spacing: normal;
  }
  .search-field__icon { display: none; }
  .section-pin { top: 138px; }
  #live, #today, #tomorrow, #venues, #tickets { scroll-margin-top: 148px; }
}

/* Tablet: events lead, with filters in a secondary rail on the right. */
@media (min-width: 761px) and (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; }
  .content { grid-column: 1; grid-row: 1; }
  .sidebar {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    position: static;
    border: 0;
    padding: 16px 12px;
  }
  .rail-stack { display: grid; }
  .display-title { font-size: clamp(2.6rem, 6vw, 4rem); }
  .live-layout__grid,
  .spotlight-grid,
  .today-grid,
  .tomorrow-grid,
  .card-grid,
  .venue-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Floating navigation material; content remains readable behind the chrome. */
.topbar {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(8, 8, 8, 0.06);
}

.topbar .search-field {
  border: 0;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.045);
}

.topbar .search-field:focus-within {
  outline: 2px solid var(--editorial-ink);
  outline-offset: 2px;
}

.topbar .search-field input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  color: #626262;
}

.topbar .topnav a,
.topbar .button {
  border-radius: 999px;
}

.topbar .button { box-shadow: none; }
.topbar .button--ghost { border-color: transparent; }

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 60px;
    padding: 6px 14px;
    border-radius: 18px;
  }
  .topbar .brand { grid-column: 1; grid-row: 1; }
  .topbar .brand__logo { height: 22px; }
  .topbar .brand__beta { display: none; }
  .topbar .mobile-sign-in {
    grid-column: 3;
    grid-row: 1;
    padding-inline: 4px;
    text-transform: none;
    font-size: 14px;
    border-radius: 999px;
  }
  .topbar .topbar__actions { display: contents; }
  .topbar .search-field {
    grid-column: 2;
    grid-row: 1;
    min-height: 44px;
    padding: 8px 12px;
    margin: 0;
  }
  .topbar .search-field input { min-width: 0; font-size: 16px; }
  .topbar .search-field input::placeholder { font-size: 14px; }
  .section-pin { top: 88px; }
  #live, #today, #tomorrow, #venues, #tickets { scroll-margin-top: 98px; }

  .mobile-nav {
    border: 1px solid rgba(255,255,255,0.88);
    border-radius: 20px;
    padding: 4px;
    width: min(320px, calc(100% - 40px));
    background: rgba(255,255,255,0.8);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 3px 16px rgba(8,8,8,0.08);
  }
  .mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    padding: 0 8px;
    font: 500 14px/1.2 -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: normal;
    text-transform: none;
  }
  .mobile-nav a::before { display: none; content: none; }
  .mobile-nav a:focus-visible,
  .mobile-sign-in:focus-visible { outline: 2px solid var(--editorial-ink); outline-offset: -2px; }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .topbar, .mobile-nav {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: #626262;
  }
}

@media (max-width: 760px) {
  .ticker { display: none; }
}

.nav-blur { display: none; }
.search-icon { width: 16px; height: 16px; flex: 0 0 16px; opacity: 0.65; }
.nav-icon { width: 20px; height: 20px; flex: 0 0 20px; }

@media (max-width: 760px) {
  .topbar .search-field { gap: 7px; padding-inline: 10px; }
  .topbar .search-field input::placeholder { font-size: 13px; }
  .mobile-nav { padding: 5px; }
  .mobile-nav a {
    flex-direction: column;
    gap: 4px;
    min-height: 50px;
    padding: 4px;
    font-size: 11px;
    font-weight: 600;
  }
  .mobile-nav a:hover { background: rgba(8,8,8,0.05); color: var(--editorial-ink); }
  .nav-blur {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 19;
    pointer-events: none;
    height: calc(110px + env(safe-area-inset-bottom));
  }
  .nav-blur--top { top: 0; height: 100px; transform: rotate(180deg); }
  .nav-blur--bottom { bottom: 0; }
  .nav-blur span {
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
    -webkit-mask-image: linear-gradient(to bottom, transparent var(--fade-start), #000 var(--fade-end));
    mask-image: linear-gradient(to bottom, transparent var(--fade-start), #000 var(--fade-end));
  }
  .nav-blur span:nth-child(1) { --blur: 2px; --fade-start: 0%; --fade-end: 35%; }
  .nav-blur span:nth-child(2) { --blur: 4px; --fade-start: 20%; --fade-end: 55%; }
  .nav-blur span:nth-child(3) { --blur: 8px; --fade-start: 40%; --fade-end: 75%; }
  .nav-blur span:nth-child(4) { --blur: 16px; --fade-start: 65%; --fade-end: 100%; }
  body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .nav-blur { display: none; }
}

.mobile-dock { display: none; }
@media (max-width: 760px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .topbar .mobile-sign-in { grid-column: 2; }
  .topbar .topbar__actions { display: none; }
  .mobile-dock {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 50%;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + var(--keyboard-inset, 0px));
    transform: translateX(-50%);
    width: min(390px, calc(100% - 28px));
    z-index: 20;
  }
  .mobile-dock .mobile-nav {
    position: static;
    transform: none;
    width: auto;
    flex: 1;
    min-width: 0;
    margin: 0;
  }
  .mobile-nav a span { transition: opacity 160ms ease-out, transform 160ms ease-out; }
  .mobile-nav .nav-icon { transition: transform 160ms ease-out; }
  .is-scrolling .mobile-nav a:not(:focus-visible) span { opacity: 0; transform: translateY(7px); }
  .is-scrolling .mobile-nav a:not(:focus-visible) .nav-icon { transform: translateY(7px); }
  .dock-search-toggle {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.85);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 3px 16px #0001;
    cursor: pointer;
  }
  .dock-search-toggle img, .dock-search-form > img { width: 21px; height: 21px; }
  .dock-search-panel {
    width: 100%;
    border-radius: 24px;
    background: rgba(255,255,255,0.94);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 4px 24px #0002;
    transform-origin: bottom right;
    overflow: hidden;
  }
  .is-searching .mobile-nav, .is-searching .dock-search-toggle { display: none; }
  .dock-search-form { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
  .dock-search-input { min-width: 0; width: 100%; border: 0; background: transparent; font-size: 16px; min-height: 44px; color: #080808; }
  .dock-search-close { flex: 0 0 44px; height: 44px; border: 0; border-radius: 50%; background: #00000008; font-size: 25px; cursor: pointer; }
  .dock-search-results { max-height: min(35dvh, 240px); overflow-y: auto; padding: 8px 12px 0; }
  .dock-search-results ul { list-style: none; padding: 0; margin: 0; }
  .dock-search-results button { width: 100%; min-height: 44px; padding: 10px 8px; text-align: left; overflow-wrap: anywhere; border: 0; background: transparent; cursor: pointer; font-size: 14px; }
  .dock-search-results button:hover { background: #00000008; border-radius: 10px; }
  .dock-search-results p { color: #626262; font-size: 13px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav a span, .mobile-nav .nav-icon { transition: none; }
  .is-scrolling .mobile-nav a span, .is-scrolling .mobile-nav .nav-icon { transform: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .dock-search-toggle, .dock-search-panel { background: white; -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid #626262; }
}

body[data-explorer-view="today"] .layout,
body[data-explorer-view="calendar"] .layout { display: block; }
body[data-explorer-view="today"] .layout > .sidebar,
body[data-explorer-view="today"] .layout > .content,
body[data-explorer-view="calendar"] .layout > .sidebar,
body[data-explorer-view="calendar"] .layout > .content,
body[data-explorer-view] .ticker { display: none; }
body[data-explorer-view="explore"] #live,
body[data-explorer-view="explore"] #today,
body[data-explorer-view="explore"] #tomorrow,
body[data-explorer-view="explore"] #pauseSection { display: none; }
.date-view { max-width: 980px; margin: 24px auto; }
.date-view > h1 { font: 750 clamp(28px, 5vw, 42px)/1.15 -apple-system, sans-serif; margin: 0 0 24px; }
.calendar-month { max-width: 480px; padding: 16px; border-radius: 20px; background: #fff; }
.calendar-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calendar-controls h2 { font: 650 18px/1.3 -apple-system,sans-serif; }
.calendar-controls button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f1f0ed; font-size: 25px; cursor: pointer; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; }
.calendar-weekdays span { text-align: center; font-size: 11px; padding: 12px 0; color: #626262; }
.calendar-days button { position: relative; min-width: 0; min-height: 44px; border: 0; border-radius: 12px; background: transparent; font-size: 15px; color: #080808; cursor: pointer; }
.calendar-days button[aria-pressed="true"] { background: #080808; color: #fff; }
.calendar-days button[aria-current="date"] { box-shadow: inset 0 0 0 1px #999; }
.date-dots { display: flex; justify-content: center; gap: 3px; height: 5px; margin-top: 4px; }
.date-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.date-dots .attending-dot { background: #f32b1c; }
.calendar-legend { font-size: 11px; color: #626262; }
.calendar-legend span { margin-left: 12px; color: #bf2115; }
.date-events { margin-top: 28px; }
.date-events h2 { font: 650 20px/1.3 -apple-system,sans-serif; }
.date-events h3 { font: 600 15px/1.3 -apple-system,sans-serif; margin-top: 24px; }
.date-event-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.attending-event { display: grid; gap: 6px; padding: 16px; margin-bottom: 8px; background: white; border-radius: 12px; text-decoration: none; }
.attending-event span { color: #626262; font-size: 13px; }
.date-view p { font-size: 14px; color: #626262; }
.mobile-nav a[aria-current="page"] { background: rgba(8,8,8,.07); }
@media(max-width:760px) { .date-event-grid { grid-template-columns: minmax(0,1fr); } .calendar-month { padding: 12px 8px; } }
