html {
  height: 100%;
  background-color: #000;
  overscroll-behavior: none;
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background-color: #000;
  overscroll-behavior: none;
}

.squircle-table-wrapper {
  border-radius: 56px;
  corner-shape: superellipse(1.61803);
  -webkit-corner-shape: superellipse(1.61803);
}

.squircle-socials {
  border-radius: 56px;
  corner-shape: superellipse(1.61803);
  -webkit-corner-shape: superellipse(1.61803);
}

.squircle-socials:hover {
  color: #fff;
}

.lang-toggle {
  padding: 0.25rem 0.75rem;
  background: #121212;
  color: #d1d5db;
  border: 1px solid #33363d;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 56px;
  corner-shape: superellipse(1.61803);
  -webkit-corner-shape: superellipse(1.61803);
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: #2b2d31;
  color: #fff;
}

.lang-toggle.ca-mode {
  background: #121212;
  color: #d1d5db;
}

.lang-toggle.ca-mode:hover {
  background: #2b2d31;
  color: #fff;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.header-inner {
  gap: 1rem;
}

.mobile-calendar-cards {
  display: grid;
  gap: 0.75rem;
}

.mobile-calendar-list {
  display: grid;
  gap: 1rem;
}

.mobile-sort-toolbar {
  position: sticky;
  top: 4.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  background: #121212;
}

.mobile-sort-toolbar label {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 600;
}

.mobile-sort-key {
  min-width: 0;
  flex: 1;
  padding: 0.55rem 0.65rem;
  border: 1px solid #33363d;
  border-radius: 0.5rem;
  background: #1e1f22;
  color: #e5e7eb;
  font: inherit;
}

.mobile-sort-direction {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border: 1px solid #33363d;
  border-radius: 0.5rem;
  background: #1e1f22;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 1.2rem;
}

.mobile-sort-direction:hover {
  background: #2b2d31;
}

.mobile-data-card {
  overflow: hidden;
  border: 1px solid #33363d;
  background: #1e1f22;
  padding: 0;
}

.mobile-data-fields {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.8fr) minmax(0, 1.2fr);
  margin: 0;
}

.mobile-data-field {
  display: contents;
}

.mobile-data-field dt {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-right: 1px solid #33363d;
  background: #151618;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: right;
  text-transform: uppercase;
}

.mobile-data-field dd {
  margin: 0;
  padding: 0.75rem;
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 767px) {
  .header-inner {
    position: relative;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .header-logo {
    min-width: 0;
    overflow: hidden;
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0;
    border: 1px solid #33363d;
    border-radius: 0.75rem;
    background: #121212;
    cursor: pointer;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle[aria-expanded="true"] {
    background: #2b2d31;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 1.1rem;
    height: 2px;
    border-radius: 2px;
    background: #fff;
  }

  .header-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 1.5rem;
    display: none;
    width: min(19rem, calc(100vw - 3rem));
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid #33363d;
    border-radius: 1rem;
    background: #0a0a0a;
    box-shadow: 0 12px 32px rgb(0 0 0 / 35%);
  }

  .header-menu.is-open {
    display: flex;
  }

  .header-brand {
    align-items: flex-start;
    justify-content: flex-start;
  }

  #header-menu .header-navigation {
    width: 100%;
    justify-content: flex-start;
  }

  .header-socials {
    align-self: flex-start;
  }
}
