/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/build/css/intlTelInput.css");

:root {
  --iti-path-flags-1x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/build/img/flags.webp");
  --iti-path-flags-2x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/build/img/flags@2x.webp");
  --iti-path-globe-1x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/build/img/globe.webp");
  --iti-path-globe-2x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/build/img/globe@2x.webp");

  /* Brand Colors - Blue Palette */
  --brand-blue-50: #f0f4f9;
  --brand-blue-100: #e1e9f3;
  --brand-blue-200: #c3d3e7;
  --brand-blue-300: #a5bcdb;
  --brand-blue-400: #698bc2;
  --brand-blue-500: #2d5aa9;
  --brand-blue-600: #0f3a77;
  --brand-blue-700: #0d326a;
  --brand-blue-800: #0a2a5d;
  --brand-blue-900: #082250;

  /* Brand Colors - Red Palette */
  --brand-red-50: #f9f3f1;
  --brand-red-100: #f3e6e2;
  --brand-red-200: #e8ccc5;
  --brand-red-300: #dbb3a9;
  --brand-red-400: #c4857a;
  --brand-red-500: #ad574b;
  --brand-red-600: #8c1915;
  --brand-red-700: #7a1612;
  --brand-red-800: #68120f;
  --brand-red-900: #560f0c;

  /* Brand Colors - Yellow Palette */
  --brand-yellow-50: #fffbf0;
  --brand-yellow-100: #fff8e1;
  --brand-yellow-200: #ffefc2;
  --brand-yellow-300: #ffe6a3;
  --brand-yellow-400: #ffd965;
  --brand-yellow-500: #fbba00;
  --brand-yellow-600: #e6a800;
  --brand-yellow-700: #cc9600;
  --brand-yellow-800: #b38400;
  --brand-yellow-900: #997000;

  /* Neutral Palette */
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
}

.iti {
  width: 100%;
}

.iti__tel-input {
  width: 100%;
}

.register-another-plus {
  display: none;
}

.participant-back-mobile {
  display: none;
}

.price-period-info {
  position: relative;
  display: inline-block;
  margin-left: 0.125rem;
  vertical-align: middle;
}

.price-period-info summary {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  list-style: none;
}

.price-period-info summary::-webkit-details-marker {
  display: none;
}

.price-period-popup {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.25rem);
  right: 0;
  width: max-content;
  max-width: min(14rem, calc(100vw - 2rem));
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--neutral-300);
  border-radius: 0.375rem;
  background: white;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
  font-size: 0.75rem;
  font-weight: 400;
  white-space: normal;
}

.mobile-event-tile {
  background-color: var(--mobile-event-color);
}

.rich-content ol {
  list-style: decimal;
  margin-left: 1.5rem;
  margin-block: 1rem;
}

.rich-content ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-block: 1rem;
}

.rich-content li {
  margin-block: 0.25rem;
}

.rich-content a {
  color: var(--brand-blue-600);
  text-decoration: underline;
  text-underline-offset: 0.125em;
}

.rich-content img {
  max-width: 100%;
  height: auto;
}

.rich-content img.img-align-left,
.rich-content img.alignleft,
.rich-content figure.image.img-align-left,
.rich-content figure.image.image-style-align-left {
  float: left;
  margin: 0.25rem 1rem 0.75rem 0;
}

.rich-content img.img-align-right,
.rich-content img.alignright,
.rich-content figure.image.img-align-right,
.rich-content figure.image.image-style-align-right {
  float: right;
  margin: 0.25rem 0 0.75rem 1rem;
}

.rich-content figure.image {
  max-width: 100%;
}

.rich-content figure.image figcaption {
  text-align: center;
}

.rich-content figure.image:has(> img.img-align-left),
.rich-content figure.image:has(> img.alignleft) {
  float: left;
  margin: 0.25rem 1rem 0.75rem 0;
}

.rich-content figure.image:has(> img.img-align-right),
.rich-content figure.image:has(> img.alignright) {
  float: right;
  margin: 0.25rem 0 0.75rem 1rem;
}

.rich-content figure.image:has(> img.img-align-center) {
  float: none;
  margin: 0.75rem auto;
}

.rich-content figure.image:has(> img.img-align-none) {
  float: none;
  margin: 0.75rem 0;
}

.rich-content figure.image img {
  display: block;
}

.rich-content::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 1023px) and (orientation: portrait) {
  header nav[data-header-shrink-target="nav"] {
    height: 9rem !important;
  }

  .header-brand img {
    height: 5.5rem !important;
    width: auto;
  }

  .header-actions .header-action-link,
  .header-actions .header-action-user {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
  }

  [data-header-shrink-menu-offset] {
    top: 0 !important;
  }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1023px) {
  header nav[data-header-shrink-target="nav"] {
    height: 4.25rem !important;
  }

  .header-brand {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .header-brand img {
    height: 3.25rem !important;
    width: auto;
  }

  .header-mobile-event-info {
    display: flex !important;
    flex-direction: column;
    gap: 0.1rem;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .header-mobile-event-title {
    display: none;
  }

  [data-header-shrink-menu-offset] {
    top: 0 !important;
  }

  .header-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-end;
    column-gap: 0.35rem;
    row-gap: 0.35rem;
  }

  .header-actions .header-action-link,
  .header-actions .header-action-user {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .header-actions .header-action-user span:first-child {
    display: block;
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 1023px) {
  .price-overview th:nth-child(n + 2) {
    vertical-align: top;
  }

  .price-overview-label {
    display: block;
    min-height: 2.5em;
    line-height: 1.25;
  }

  .price-overview th .price-period-info {
    display: flex;
    width: 100%;
    min-height: 1rem;
    justify-content: flex-end;
    margin: 0;
  }

  .mobile-event-tile {
    background-color: var(--mobile-event-color);
    background-color: color-mix(in srgb, var(--mobile-event-color) 35%, white);
  }

  main {
    padding-top: 0.5rem !important;
    padding-bottom: 1rem !important;
  }

  main > .container-wide.py-12 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  footer .container-wide.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  footer .footer-social-links {
    gap: 0.75rem;
  }
}

@media (max-width: 1023px) and (orientation: portrait) {
  .portrait-stack-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
  }

  .participant-back-mobile {
    display: inline;
  }

  .participant-back-full {
    display: none;
  }

  .participant-show-actions .btn-primary {
    padding: 0.35rem 0.7rem;
    font-size: 0.875rem;
  }

  .payment-participant-overview .payment-pass-type {
    text-align: right;
  }

  .price-overview col:first-child {
    width: 32%;
  }

  .price-overview col:nth-child(n + 2) {
    width: 22.6667%;
  }

  .price-overview th,
  .price-overview td {
    padding-right: 0.25rem;
    padding-left: 0.25rem;
  }

  .price-overview td:nth-child(n + 2) {
    white-space: nowrap;
  }

  .my-registrations-header {
    gap: 0.5rem;
    align-items: flex-start;
  }

  .my-registrations-header h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .register-another-participant {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
  }

  .register-another-label {
    display: none;
  }

  .register-another-plus {
    display: inline;
  }

  footer .footer-menu-links {
    display: grid;
    position: relative;
    width: 100%;
    grid-template-columns: repeat(4, max-content);
    align-items: start;
    justify-content: space-between;
    column-gap: 0.5rem;
    padding-bottom: 1.5rem;
  }

  footer .footer-menu-links li:nth-child(2) {
    position: absolute;
    top: 1.5rem;
    left: 0;
    white-space: nowrap;
  }
}

@media (max-width: 1023px) and (orientation: landscape) {
  footer .footer-menu-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    column-gap: 0.75rem;
    white-space: nowrap;
  }
}

.rich-content blockquote {
  border-left: 4px solid var(--brand-blue-300);
  margin-block: 1rem;
  padding-left: 1rem;
  font-style: italic;
  color: var(--neutral-700);
}

.rich-content p,
.rich-content pre,
.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
  margin-block: 0.75rem;
}

.responsive-menu-summary::-webkit-details-marker,
.responsive-menu-summary-sub::-webkit-details-marker {
  display: none;
}

.menu-chevron,
.menu-chevron-sub {
  transition: transform 0.2s ease;
}

.responsive-menu-details[open] > .responsive-menu-summary {
  color: var(--brand-yellow-300);
  background: color-mix(in srgb, var(--brand-blue-800) 55%, transparent);
}

.responsive-menu-details[open] > .responsive-menu-summary .menu-chevron,
.responsive-menu-details-sub[open] > .responsive-menu-summary-sub .menu-chevron-sub {
  transform: rotate(180deg);
}

.responsive-menu-details-sub[open] > .responsive-menu-summary-sub {
  color: var(--brand-yellow-300);
}

@keyframes menuAccordionReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.responsive-menu-details[open] > .responsive-menu-content,
.responsive-menu-details-sub[open] > .responsive-menu-content-sub {
  animation: menuAccordionReveal 0.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .menu-chevron,
  .menu-chevron-sub,
  .responsive-menu-details[open] > .responsive-menu-content,
  .responsive-menu-details-sub[open] > .responsive-menu-content-sub {
    animation: none;
    transition: none;
  }
}
