:root {
  --bg: #d6f0f2;
  --panel: rgba(255, 255, 255, 0.58);
  --panel-strong: rgba(255, 255, 255, 0.78);
  --ink: #17313a;
  --muted: rgba(23, 49, 58, 0.72);
  --grid: rgba(255, 255, 255, 0.65);
  --shadow: 0 22px 70px rgba(34, 77, 90, 0.18);
  --row-label: 210px;
  --radius: 18px;
  --display-font: "Silverstone Display", "Times New Roman", serif;
  --text-font: "Silverstone Text", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-family: "Silverstone Display";
  src:
    url("./fonts/SilverstoneDisplay-Bold.woff2") format("woff2"),
    url("./fonts/SilverstoneDisplay-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Silverstone Display";
  src:
    url("./fonts/SilverstoneDisplay-ExtraBold.woff2") format("woff2"),
    url("./fonts/SilverstoneDisplay-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Silverstone Text";
  src:
    url("./fonts/SilverstoneText-Book.woff2") format("woff2"),
    url("./fonts/SilverstoneText-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Silverstone Text";
  src:
    url("./fonts/SilverstoneText-Medium.woff2") format("woff2"),
    url("./fonts/SilverstoneText-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Silverstone Text";
  src:
    url("./fonts/SilverstoneText-Bold.woff2") format("woff2"),
    url("./fonts/SilverstoneText-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--text-font);
  overflow-x: hidden;
}

.page-shell {
  width: 100%;
  margin: 0 auto;
  padding: 30px 0 90px;
  background-color: #D4EAEE;
}

.container {
  max-width: 84.59%;
  width: 100%;
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.hero__copy {
  max-width: 760px;
}

.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.day-tab {
  position: relative;
  border: 0;
  padding: 0 0 20px;
  background: transparent;
  letter-spacing: 0px;
  color: #1F2A44;
  font-family: var(--display-font);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.day-tab sup {
  font-size: 15px;
  top: -0.55em;
}

.day-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.day-tab.is-active {
  opacity: 1;
  color: #42758D;
}

.day-tab.is-active::after {
  background: #42758D;
}

.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
}

.stage-tab {
  min-width: 214px;
  min-height: 80px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 16px 25px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-family: var(--display-font);
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.stage-tab:hover,
.stage-tab:focus-visible {
  opacity: 0.95;
  outline: none;
}

.stage-tab.is-active {
  opacity: 1;
  background: transparent;
  border: 5px solid var(--stage-color);
}

.stage-tab[data-festival="all"] {
  --stage-color: #1f2a44;
  background: var(--stage-color);
}

.stage-tab[data-festival="cars-at-carfest"] {
  --stage-color: #75787b;
  background: var(--stage-color);
}

.stage-tab[data-festival="the-main-stage"] {
  --stage-color: #772a82;
  background: var(--stage-color);
}

.stage-tab[data-festival="spafest"] {
  --stage-color: #6dc7b9;
  background: var(--stage-color);
}

.stage-tab[data-festival="starfest"] {
  --stage-color: #d92027;
  background: var(--stage-color);
}

.stage-tab[data-festival="foodfest"] {
  --stage-color: #da1684;
  background: var(--stage-color);
}

.stage-tab[data-festival="retrofest"] {
  --stage-color: #f99d22;
  background: var(--stage-color);
}

.stage-tab[data-festival="kidsfest"] {
  --stage-color: #f26a21;
  background: var(--stage-color);
}

/* Must follow the festival colour rules so the active state stays transparent. */
.stage-tab.is-active {
  background: transparent;
  color: #42758D;
}

.stage-tab.is-active svg path {
  stroke: #42758D;
}

.eyebrow,
.board-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(23, 49, 58, 0.58);
}

[type=reset],
[type=submit],
button,
html [type=button] {
  -webkit-appearance: button;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: var(--display-font);
  font-size: clamp(2rem, 3.8vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero__text {
  max-width: 700px;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--muted);
}

.toolbar {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding-block: 25px;
  justify-content: center;
}

.search,
.custom-dropdown,
.time-filter {
  display: grid;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(23, 49, 58, 0.72);
}

.search input,
.custom-dropdown__button,
.time-filter select {
  min-height: 59px;
  padding: 0 18px;
  outline: none;
  background: #1F2A44;
  font: inherit;
  font-weight: 800;
  font: bold 20px / 32px var(--display-font);
  color: #fff;
  border: none;
  border-radius: 8px;
}

.search input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #707070;
  border-radius: 16px;
  padding: 8px 33px;
  font: bold 28px/24px var(--text-font);
  letter-spacing: 0px;
  color: #1F2A44;
}

.search input::placeholder {
  color: rgba(23, 49, 58, 0.38);
  text-align: left;
  font: bold 28px/24px var(--text-font);
  letter-spacing: 0px;
  color: #1F2A44;
}

/* .search input:focus,
.custom-dropdown__button:focus-visible,
.time-filter select:focus {
  border-color: rgba(109, 73, 163, 0.38);
  box-shadow: 0 0 0 4px rgba(109, 73, 163, 0.15);
} */

.custom-dropdown {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.toolbar .search {
  flex: 1 1 625px;
  width: 100%;
  max-width: 625px;
  min-width: 0;
}

.toolbar .stage-filter,
.toolbar .time-filter {
  flex: 1 1 300px;
  width: 100%;
  max-width: 300px;
}

.custom-dropdown__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.custom-dropdown__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-dropdown__chevron,
.custom-dropdown__option-chevron {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.9;
}

.custom-dropdown__chevron {
  transition: transform 180ms ease;
}

.custom-dropdown.is-open .custom-dropdown__chevron {
  transform: rotate(225deg);
}

.custom-dropdown__menu {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  z-index: 12;
  display: none;
  width: 100%;
  max-height: min(420px, calc(100vh - 140px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 0;
  border-radius: 0 0 8px 8px;
  background: #1F2A44;
  scrollbar-width: thin;
  scrollbar-color: #FFFFFF #7d7e80;
}

.custom-dropdown__menu::-webkit-scrollbar {
  width: 8px;
}

.custom-dropdown__menu::-webkit-scrollbar-track {
  margin: 10px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.custom-dropdown__menu::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #FFFFFF;
  background-clip: padding-box;
}

.custom-dropdown__menu::-webkit-scrollbar-thumb:hover {
  background-color: #D4EAEE;
}

.is-open .custom-dropdown__button {
  border-radius: 8px 8px 0 0;
}

.custom-dropdown.is-open .custom-dropdown__menu {
  display: grid;
  gap: 2px;
}

.custom-dropdown__option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-align: left;
  font: bold 20px / 32px var(--display-font);
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(31, 42, 68, 0.04);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.custom-dropdown__option-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.custom-dropdown__option:hover,
.custom-dropdown__option:focus-visible {
  background: rgba(31, 42, 68, 0.08);
  border-color: rgba(31, 42, 68, 0.08);
  outline: none;
}

.custom-dropdown__option.is-selected {
  background: rgba(31, 42, 68, 0.12);
  border-color: rgba(31, 42, 68, 0.14);
}

.custom-dropdown__option--stage,
.custom-dropdown__option--stage:hover,
.custom-dropdown__option--stage:focus-visible,
.custom-dropdown__option--stage.is-selected {
  background: var(--option-color, #1f2a44);
  border-color: transparent;
}


.custom-dropdown__option-label {
  line-height: 1.1;
  flex: 1 1 auto;
}

.custom-dropdown__checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(23, 49, 58, 0.35);
  background: white;
  flex: 0 0 auto;
  position: relative;
}

.custom-dropdown__checkbox:checked {
  border-color: var(--option-color, #1f2a44);
  background: var(--option-color, #1f2a44);
}

.custom-dropdown__checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.custom-dropdown__count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(23, 49, 58, 0.5);
}

.custom-dropdown__hint {
  padding: 4px 6px 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(23, 49, 58, 0.54);
}


.board-card__head {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 16px;
  padding: 22px 24px 16px;
}

.board-card__head h2 {
  margin-bottom: 0;
  font-family: var(--display-font);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  letter-spacing: -0.04em;
}

.board-note {
  margin: 0;
  color: rgba(23, 49, 58, 0.6);
  font-size: 0.88rem;
  text-align: right;
}

.board-shell {
  padding: 0 0 6px;
}

.board-scroll {
  overflow-x: hidden;
  overflow-y: visible;
  scrollbar-width: none;
  padding-bottom: 6px;
  touch-action: pan-y;
  -ms-overflow-style: none;
  overscroll-behavior-x: none;
}

.board-scroll::-webkit-scrollbar {
  height: 0;
  width: 0;
}

.schedule {
  display: grid;
}

.timeline-row {
  display: grid;
  grid-template-columns: var(--row-label) minmax(0, 1fr);
  min-height: 130px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-row+.timeline-row {
  border-top: 8px solid rgba(255, 255, 255, 0.38);
}

.timeline-row.is-hidden {
  display: none;
}

.sticky-label {
  position: sticky;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  text-align: center;
  font-family: var(--display-font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: white;
  background: rgba(74, 78, 82, 0.9);
}

.venue-meta {
  display: grid;
  gap: 6px;
}

.venue-name {
  font: bold 20px / 28px var(--display-font);
}

.event-track {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.event {
  position: relative;
  width: min(100%, 560px);
  border-radius: 0;
  padding: 11px 11px 11px 21px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  opacity: 0.7;
}

.event__time {
  text-align: left;
  font: bold 18px/36px var(--display-font);
  color: #fff;
  text-transform: uppercase;
}

.event__desc {
  text-align: left;
  font: bold 18px/24px var(--display-font);
  color: #fff;
  ;
}

.event__more {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: normal 18px/24px var(--text-font);
  letter-spacing: 0px;
  color: #FFFFFF;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
}

.event__more:hover,
.event__more:focus-visible {
  opacity: 1;
  text-decoration: underline;
  outline: none;
}

/* carfest */
.event--gray {
  background: #7d7d80;
}

/* carfest */

/* Music */
.event--purple {
  background: #772A82;
}

/* Music */

/* Spafest */
.event--teal {
  background: #6DC7B9;
}

/* Spafest */

/* Foodefest */
.event--pink {
  background: #DA1684;
}

/* Foodefest */

/* Retrofest */
.event--orange {
  background: #F99D22;
}

/* Retrofest */

/* Starfest */
.event--red {
  background: #D92027;
}

/* Starfest */

/* Kidsfest */
.event--gold {
  background: #F26A21;
}

/* Kidsfest */

.event.is-hidden {
  display: none;
}

.empty-state {
  display: none;
  padding: 32px 24px 40px;
  text-align: center;
  color: rgba(23, 49, 58, 0.68);
}

.empty-state.is-visible {
  display: block;
}

.mobile-filter {
  display: none;
}

.festival-filter {
  display: none;
}

.event-popover {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 20;
}

.event-popover.is-open {
  display: block;
}

.event-popover__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
}

.event-popover__panel {
  position: fixed;
  left: var(--popover-left, 20px);
  top: var(--popover-top, 20px);
  width: min(var(--popover-width, 430px), calc(100vw - 32px));
  border-radius: 0;
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 3px solid var(--popover-border, #7f8488);
  box-shadow: 0 28px 80px rgba(17, 35, 40, 0.28);
  z-index: 1;
}

.event-popover__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 49, 58, 0.08);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.event-popover__eyebrow {
  margin: 0 42px 8px 0;
  text-transform: uppercase;
  font: bold 14px / 24px var(--display-font);
  color: rgba(23, 49, 58, 0.55);
}

.event-popover__panel h3 {
  margin: 0 42px 8px 0;
  font-family: var(--display-font);
  font: bold 20px / 28px var(--display-font);
  letter-spacing: -0.04em;
}

.event-popover__time {
  margin: 0 0 10px;
  font: bold 14px / 24px var(--display-font);
      color: rgba(23, 49, 58, 0.55);
}

.event-popover__desc {
  font: 400 18px / 24px var(--display-font);
  color: var(--ink);
}

.stage-tab svg {
  width: 14px;
  height: 29px;
}

@media only screen and (max-width: 1500px) {
  .custom-dropdown__option {
    font: bold 18px / 28px var(--display-font);
  }

  .stage-tab svg {
    width: 12px;
    height: 26px;
  }

  .stage-tab {
    min-height: 65px;
    font-size: 18px;
    line-height: 23px;
  }

  .stage-tabs {
    gap: 15px;
  }

  .day-tab {
    padding: 0 0 16px;
    font-size: 26px;
  }

  .day-tabs {
    gap: 25px;
  }

  .search input {
    font: bold 23px / 24px var(--text-font);
  }

  .search input::placeholder {
    font: bold 23px / 24px var(--text-font);
  }

  .search input,
  .custom-dropdown__button,
  .time-filter select {
    font: bold 18px / 25px var(--display-font);
  }


}
/* Keep the fixed desktop search field from squeezing the filter controls on tablets. */
@media (max-width: 1100px) {
  .toolbar {
    flex-wrap: wrap;
  }

  .toolbar .search {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
  }

  .toolbar .stage-filter,
  .toolbar .time-filter {
    flex: 0 1 300px;
  }

  .stage-tab {
    min-height: 65px;
    font-size: 18px;
    line-height: 23px;
    min-width: auto;
    padding: 15px;
  }

  .day-tab {
    padding: 0 0 12px;
    font-size: 22px;
  }
  .event__time {
    font: bold 16px / 25px var(--display-font);
}
.event__desc {
    font: bold 16px/24px var(--display-font);
}
.event__more {
    font: normal 16px / 24px var(--text-font);
}
}

@media (max-width: 991px) {
  .stage-tab {
    min-height: 60px;
    font-size: 16px;
    line-height: 21px;
    padding: 13px;
  }

  .stage-tabs {
    gap: 10px;
  }

  .toolbar .stage-filter,
  .toolbar .time-filter {
    flex: 0 1 250px;
  }
.event {
    width: 100%;
}
}
@media (max-width: 920px) {
  :root {
    --row-label: 160px;
  }

  .page-shell {
    width: min(100%, 1200px);
    padding-top: 16px;
  }

  .board-card__head {
    align-items: start;
    flex-direction: column;
  }

  .board-note {
    text-align: left;
  }

  .timeline-row {
    display: block;
  }

  .event-track {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 100% !important;
    padding: 0 20px;
  }

}

@media (max-width: 767px) {
  .stage-tabs {
    display: none;
  }

  .festival-filter {
    display: block;
  }

  .toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .toolbar .search {
    flex: 0 0 100%;
    width: 100%;
  }

  .toolbar .custom-dropdown {
    flex: 100%;
    width: auto;
    max-width: none;
    position: relative;
  }


  .search input {
    width: 100%;
  }
    .custom-dropdown__button,
  .custom-dropdown__menu {
    width: 70%;
  }

  .custom-dropdown__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 59px;
    width: revert-rule;
    max-width: none;
    max-height: min(375px, 55vh);
    overflow-y: auto;
    overflow-x: hidden;
  }


  .festival-filter .custom-dropdown__menu {
    gap: 0 !important;
  }
  .festival-filter .custom-dropdown__menu button {
    padding: 16px;
  }

  .festival-filter .custom-dropdown__option--festival,
  .festival-filter .custom-dropdown__option--festival:hover,
  .festival-filter .custom-dropdown__option--festival:focus-visible,
  .festival-filter .custom-dropdown__option--festival.is-selected {
    align-items: center;
    min-height: 69px;
    border: 0;
    border-radius: 0;
    background: var(--option-color, #1F2A44);
    color: #fff;
    transform: none;
  }

  .festival-filter .custom-dropdown__option--festival svg {
        width: 14px;
    height: 29px;
  }

  .board-card__head {
    padding: 18px 16px 14px;
  }

  .sticky-label {
    font-size: 0.72rem;
    padding-inline: 12px;
  }


  .event {
    padding: 14px 15px;
  }


  .event-popover {
    --popover-width: calc(100vw - 28px);
  }

  .event-popover__panel {
    padding: 18px 18px 16px;
  }
  .day-tabs {
        gap: 10px;
    }
    .search input {
    padding: 8px 20px;
}

.custom-dropdown__option {
    display: flex;
    align-items: center;
}
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
