.primary-nav > a[data-page="information"] { order: 1; }
.primary-nav > a[data-page="track"] { order: 2; }
.primary-nav > a[data-page="rooms"] { order: 3; }
.primary-nav > a[data-page="regulations"] { order: 4; }
.primary-nav > a[data-page="reports"] { order: 5; }

.fm-regulation-panel {
  overflow: hidden;
  border-top: 3px solid #ff7a00;
}

.fm-regulation-shell {
  display: grid;
  gap: 14px;
}

.fm-regulation-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #34393d;
  border-radius: 7px;
  background: #1b1f22;
}

.fm-regulation-intro-copy {
  min-width: 0;
}

.fm-regulation-intro .fm-kicker {
  display: block;
  margin-bottom: 6px;
  color: #ff7a00;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.fm-regulation-intro h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
}

.fm-regulation-intro p {
  max-width: 720px;
  margin: 7px 0 0;
  color: #abb3b8;
  font-size: 11px;
  line-height: 1.5;
}

.fm-regulation-document {
  display: grid;
  gap: 12px;
}

.fm-regulation-section {
  overflow: hidden;
  border: 1px solid #34393d;
  border-radius: 7px;
  background: #1b1f22;
}

.fm-regulation-section-title {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid #303538;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

.fm-regulation-section-body {
  padding: 13px 18px 16px;
}

.fm-regulation-subtitle {
  margin: 13px 0 5px;
  color: #ff9a38;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.fm-regulation-line {
  margin: 5px 0;
  color: #e1e5e7;
  font-size: 13px;
  line-height: 1.5;
}

.fm-regulation-line strong {
  color: #fff;
}

.fm-regulation-line.is-alert {
  margin: 9px 0;
  padding: 9px 11px;
  border-left: 3px solid #ff7a00;
  border-radius: 4px;
  background: #252b2f;
  color: #fff;
  font-weight: 800;
}

.fm-regulation-bullet {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 7px;
  margin: 5px 0;
  color: #e1e5e7;
  font-size: 13px;
  line-height: 1.45;
}

.fm-regulation-bullet > span:first-child {
  color: #ff7a00;
  font-weight: 900;
}

.fm-regulation-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.fm-regulation-pdf {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #ff7a00;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .45px;
}

.fm-regulation-pdf:hover {
  background: #ff7a00;
  color: #15191b;
}

.fm-regulation-pdf-generated {
  background: #ff7a00;
  color: #15191b;
}

.fm-regulation-pdf-generated:hover {
  background: #ff932e;
}

@media (max-width: 760px) {
  .fm-regulation-intro {
    flex-direction: column;
    padding: 15px;
    background: #fff;
    border-color: #ddd;
  }

  .fm-regulation-intro h3 {
    color: #202326;
  }

  .fm-regulation-intro p {
    color: #697076;
  }

  .fm-regulation-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .fm-regulation-pdf {
    flex: 1 1 180px;
  }

  .fm-regulation-section {
    border-color: #ddd;
    background: #fff;
  }

  .fm-regulation-section-title {
    padding: 13px 14px;
    border-bottom-color: #eee;
    color: #202326;
  }

  .fm-regulation-section-body {
    padding: 11px 14px 14px;
  }

  .fm-regulation-subtitle {
    color: #d86600;
  }

  .fm-regulation-line,
  .fm-regulation-bullet {
    color: #33383b;
  }

  .fm-regulation-line strong {
    color: #16191b;
  }

  .fm-regulation-line.is-alert {
    background: #fff6ec;
    color: #202326;
  }

  .fm-regulation-pdf {
    color: #202326;
  }
}

/* =========================================================
   MÒBIL · APARENÇA FOSCA
   Horari i Reglament han de seguir el mateix llenguatge
   visual de la resta de la web pública.
========================================================= */
@media (max-width: 760px) and (prefers-color-scheme: dark) {
  .fm-regulation-intro,
  .fm-regulation-section {
    background: #1b1f22;
    border-color: #34393d;
    color: #fff;
  }

  .fm-regulation-intro h3,
  .fm-regulation-section-title,
  .fm-regulation-line strong {
    color: #fff;
  }

  .fm-regulation-intro p {
    color: #abb3b8;
  }

  .fm-regulation-section-title {
    border-bottom-color: #303538;
  }

  .fm-regulation-subtitle {
    color: #ff9a38;
  }

  .fm-regulation-line,
  .fm-regulation-bullet {
    color: #e1e5e7;
  }

  .fm-regulation-line.is-alert {
    border-left-color: #ff7a00;
    background: #252b2f;
    color: #fff;
  }

  .fm-regulation-pdf {
    color: #fff;
  }

  .fm-regulation-pdf-generated {
    color: #15191b;
  }

  .fm-schedule-day {
    border-color: #363b3f !important;
    border-top-color: #ff7a00 !important;
    background: #1b1f22 !important;
    color: #fff !important;
  }

  .fm-schedule-day-header {
    border-bottom-color: #34393d !important;
    background: #1b1f22 !important;
  }

  .fm-schedule-day-header strong,
  .fm-schedule-title {
    color: #fff !important;
  }

  .fm-schedule-day-header span,
  .fm-schedule-time {
    color: #ff7a00 !important;
  }

  .fm-schedule-row {
    border-bottom-color: #303538 !important;
  }

  .fm-schedule-series span {
    border-color: #44494d !important;
    border-left-color: #ff7a00 !important;
    background: #24292d !important;
    color: #fff !important;
  }
}
