@font-face {
  font-family: ProximusRegular;
  src: url("/assets/fonts/Proximus-Regular.woff2") format("truetype");
  font-weight: normal;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #0a0a0a;
  color: #fff;
  font-family: ProximusRegular, Verdana, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: #0a0a0a;
  border-bottom: 1px solid rgb(255 255 255 / 15%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 40px;
  width: auto;
  display: block;
}

.locale-switch {
  position: relative;
}

.locale-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 56px;
  height: 36px;
  padding: 0 14px;
  border-radius: 3px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  user-select: none;
}

.locale-trigger::-webkit-details-marker {
  display: none;
}

.locale-trigger::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.locale-switch[open] .locale-trigger::after {
  transform: rotate(180deg);
}

.locale-trigger:hover {
  background-color: #282233;
}

.locale-options {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 4px;
  list-style: none;
  min-width: 100%;
  border-radius: 6px;
  background-color: #282233;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.locale-option {
  display: block;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
}

.locale-option:hover {
  background-color: #342c44;
}

.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.site-footer {
  border-top: 1px solid rgb(255 255 255 / 15%);
  padding: 16px 20px;
  text-align: center;
  color: rgb(255 255 255 / 50%);
  font-size: 12px;
}

.calendar-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 42px;
}

.calendar-subtitle {
  margin: 0 0 24px;
  color: rgb(255 255 255 / 75%);
  font-size: 16px;
  line-height: 24px;
}

.calendar-intro {
  margin: 0 0 24px;
  color: rgb(255 255 255 / 75%);
  font-size: 16px;
  line-height: 24px;
}

.calendar-intro a {
  color: #fff;
  text-decoration: underline;
}

.banner-section {
  width: 100%;
  background-color: #0a0a0a;
}

.calendar-banner {
  display: block;
  width: 100%;
  height: auto;
  background-color: #0a0a0a;
  margin: 0 auto;
}

/*
 * Matches the current production calendar's own layout
 * (festival-calendar-content-layout / festival-calendar-side-banner):
 * a flex row with the content column first and a fixed-width, sticky
 * banner second on wide viewports; below 1024px it stacks into a
 * column with the *full event list first* and the banner (now static,
 * full width) after it; below 480px the banner is dropped entirely
 * rather than pushed further down a long list.
 */
.calendar-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.calendar-content {
  flex: 1 1 auto;
  min-width: 0;
  order: 0;
}

.calendar-side-banner {
  display: block;
  flex: 0 0 350px;
  order: 1;
  position: sticky;
  top: 16px;
}

.calendar-side-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

@media (max-width: 1024px) {
  .calendar-layout {
    flex-direction: column;
  }

  .calendar-side-banner {
    flex-basis: auto;
    width: 100%;
    max-width: 400px;
    position: static;
  }
}

@media (max-width: 480px) {
  .calendar-side-banner {
    display: none;
  }
}

.calendar-empty {
  padding: 32px;
  text-align: center;
  color: rgb(255 255 255 / 60%);
  border: 1px dashed rgb(255 255 255 / 25%);
  border-radius: 12px;
  background-color: #282233;
}

.calendar-group {
  margin-bottom: 24px;
}

.calendar-group-header {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  color: #fff;
  text-transform: capitalize;
}

.calendar-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background-color: #282233;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.calendar-table th,
.calendar-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  font-size: 16px;
  line-height: 24px;
  overflow-wrap: break-word;
}

.calendar-table tr:last-child td {
  border-bottom: none;
}

.calendar-table th:nth-child(1),
.calendar-table td:nth-child(1) {
  width: 20%;
}

.calendar-table th:nth-child(2),
.calendar-table td:nth-child(2) {
  width: 50%;
}

.calendar-table th:nth-child(3),
.calendar-table td:nth-child(3) {
  width: 30%;
}

.calendar-row-sport {
  color: rgb(255 255 255 / 65%);
  font-weight: 600;
}

.calendar-row-title {
  color: #fff;
  font-weight: 600;
}

.calendar-row-date {
  color: rgb(255 255 255 / 65%);
  font-variant-numeric: tabular-nums;
}

.calendar-row-channels {
  color: rgb(255 255 255 / 75%);
}

.calendar-row-notes {
  color: rgb(255 255 255 / 55%);
  font-size: 14px;
  margin-top: 4px;
}

.calendar-unavailable {
  color: rgb(255 255 255 / 40%);
  font-style: italic;
}

/*
 * Share widget — shared by sports and cycling calendar pages.
 * Trigger sits top-right of `.calendar-title-row`; native <dialog>
 * gives us focus trap, backdrop and Esc-to-close for free.
 */
.calendar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.calendar-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  margin: 0;
  border: 0;
  border-radius: 5px;
  background: #282233;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.calendar-share-button:hover,
.calendar-share-button:focus-visible {
  background: #342c44;
  outline: none;
}

.calendar-share-icon {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 576px) {
  .calendar-share-button {
    padding: 10px;
  }

  .calendar-share-icon {
    width: 16px;
    height: 16px;
  }
}

.calendar-share-modal {
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #0e0f10;
  color: #fff;
  max-width: min(500px, calc(100vw - 24px));
  width: 100%;
}

.calendar-share-modal::backdrop {
  background: rgb(0 0 0 / 65%);
}

.calendar-share-modal-form {
  margin: 0;
  padding: 20px 20px 60px;
}

.calendar-share-modal-header {
  position: relative;
  margin-bottom: 20px;
  min-height: 47px;
}

.calendar-share-modal-title {
  margin: 0 45px 0 0;
  font-size: 1.5em;
  line-height: 47px;
  font-weight: 700;
}

.calendar-share-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.calendar-share-modal-close:hover,
.calendar-share-modal-close:focus-visible {
  background: #282233;
  outline: none;
}

.calendar-share-modal-buttons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.calendar-share-modal-buttons li:not(:last-child) {
  margin-bottom: 15px;
}

.calendar-share-modal-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 3px;
  background: #333d46;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.calendar-share-modal-button:hover,
.calendar-share-modal-button:focus-visible {
  background: #3f4a55;
  outline: none;
}

.calendar-share-action-icon {
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  flex-shrink: 0;
}

.calendar-share-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: 4px;
  background: #1f2937;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.calendar-share-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .site-main {
    padding: 16px 12px 32px;
  }

  .calendar-title {
    font-size: 22px;
    line-height: 32px;
  }

  .calendar-group-header {
    font-size: 18px;
    line-height: 26px;
  }

  .calendar-table th,
  .calendar-table td {
    padding: 8px 10px;
    font-size: 14px;
    line-height: 20px;
  }

  .calendar-row-sport,
  .calendar-row-date {
    white-space: normal;
  }
}
