/*
 * The designed front page (resources/views/front-page.blade.php). Loaded only
 * there, after site.css, which sets the colours (--shirt, --shirt-dark,
 * --shirt-light) and the buttons. Written by hand; after any edit, set this
 * file's ?id= in mix-manifest.json to the first 20 characters of its MD5.
 *
 * Every class starts with fp-. Width comes from Bootstrap's .container. The
 * two-column layout starts at 992 px, where the menu also expands.
 */

.fp {
  --fp-ink: #14171c;
  --fp-muted: #5b6472;
  --fp-paper: #f5f7fa;
  --fp-line: #dfe5ee;
  --fp-radius: 12px;
  --fp-stripes: repeating-linear-gradient(90deg, var(--shirt) 0 28px, #fff 28px 56px);
  background: #fff;
  color: var(--fp-ink);
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* The footer follows the striped band directly. */
.fp + *,
main:has(.fp) + .site-footer {
  margin-top: 0;
}

.fp h1,
.fp h2,
.fp h3,
.fp p,
.fp ul,
.fp ol,
.fp dl,
.fp dd {
  margin: 0;
}

.fp h1,
.fp h2,
.fp h3 {
  color: inherit;
  font-weight: 700;
  text-transform: none;
}

.fp h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.fp h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.fp img {
  display: block;
  max-width: 100%;
  height: auto;
}

.fp .btn {
  padding: .7rem 1.2rem;
  line-height: 1.2;
}

.fp-eyebrow {
  color: var(--shirt);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-wrap: balance;
}

.fp-more {
  color: var(--shirt);
  font-weight: 700;
  text-decoration: none;
}

a.fp-more:hover,
a:hover .fp-more {
  text-decoration: underline;
}

.fp-tag {
  padding: .2em .65em;
  border-radius: 999px;
  background: var(--shirt-light);
  color: var(--shirt-dark);
  font-size: .72rem;
  font-weight: 700;
}

.fp-board .fp-tag {
  white-space: nowrap;
}

/* Where a photo is missing from the media library. */
.fp-noimage {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--shirt-light);
}

.fp-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.fp-hero {
  padding: 56px 0 0;
}

.fp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-areas: "text media" "board board";
  column-gap: 56px;
  row-gap: 52px;
  align-items: center;
}

.fp-hero-text {
  grid-area: text;
}

.fp-hero h1 {
  margin: 14px 0 20px;
  font-size: clamp(2.45rem, 4.9vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -.03em;
}

.fp-accent {
  display: block;
  color: var(--shirt);
}

.fp-lead {
  max-width: 31em;
  color: var(--fp-muted);
  font-size: 1.15rem;
}

.fp-lead p + p {
  margin-top: .6em;
}

.fp-hero .fp-ctas {
  margin: 28px 0 16px;
}

.fp-en {
  color: var(--fp-muted);
  font-size: .95rem;
}

.fp-en a {
  color: inherit;
}

.fp-hero-media {
  grid-area: media;
  position: relative;
  padding: 34px 40px 0 0;
}

/* The shirt: 4½ stripes wide, so the panel starts and ends on a blue stripe. */
.fp-hero-media::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 40px;
  width: 252px;
  border-radius: var(--fp-radius);
  background: var(--fp-stripes);
}

/* The photos lie on top of each other in one cell. The shadow is the cell's,
   so it stays still while one photo fades into the next. */
.fp-hero-photos {
  position: relative;
  display: grid;
  isolation: isolate;
  border-radius: var(--fp-radius);
  box-shadow: 0 18px 40px rgba(18, 61, 126, .22);
}

.fp-hero-media .fp-hero-photo {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: var(--fp-radius);
}

/* Until the script in the hero starts, and for a visitor who asked for less
   motion, only the first photo is there. The others are lazy and not
   displayed, so they are not fetched either. (With scripts switched off a
   browser fetches lazy photos all the same; they still do not show.) */
.fp-hero-photo ~ .fp-hero-photo {
  display: none;
}

/* With it, one photo shows (is-shown), the one it faded in over lies under
   it until the fade is done (was-shown), and the next one waits unseen
   (is-ready), which is what makes the browser fetch it. */
.is-fading > .fp-hero-photo {
  display: none;
  opacity: 0;
}

.is-fading > .is-ready,
.is-fading > .was-shown,
.is-fading > .is-shown {
  display: block;
}

.is-fading > .was-shown {
  opacity: 1;
}

.is-fading > .is-shown {
  z-index: 1;
  opacity: 1;
  transition: opacity 1s ease;
}

/* "Næste træning": one board across the page, half on the band below. */
.fp-board {
  grid-area: board;
  position: relative;
  z-index: 1;
  margin-bottom: -58px;
  overflow: hidden;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(18, 61, 126, .14);
}

.fp-board-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}

.fp-board-day {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 20px 28px;
  background: var(--shirt-light);
  color: var(--shirt-dark);
}

.fp .fp-board-day h2 {
  color: var(--shirt);
  font-size: .76rem;
  line-height: 1.4;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.fp-board-day p {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.fp-board-slots {
  display: flex;
  padding: 0;
  list-style: none;
}

.fp-board-slots li {
  display: flex;
  flex: 1;
  min-width: 0;
  border-right: 1px solid var(--fp-line);
}

.fp-board-slots li:last-child {
  border-right: 0;
}

/* A session: a link to the team's page when the team has one. */
.fp-board-slot {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 18px 22px;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s ease;
}

a.fp-board-slot:hover,
a.fp-board-slot:focus-visible {
  background: #f3f7fd;
  color: inherit;
}

a.fp-board-slot:hover .fp-board-team,
a.fp-board-slot:focus-visible .fp-board-team {
  color: var(--shirt);
}

/* Inside the board's edge, which clips what sticks out. */
a.fp-board-slot:focus-visible {
  outline: 2px solid var(--shirt);
  outline-offset: -2px;
}

.fp-board-team {
  transition: color .15s ease;
}

.fp-board-slots b {
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fp-board-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--fp-muted);
}

.fp-board-when {
  color: var(--shirt);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* A session that has ended today. */
.fp-board-slots .is-over > * {
  opacity: .5;
}

.fp-board-slots .is-over .fp-board-when {
  color: var(--fp-muted);
}

.fp-board-pause {
  align-self: center;
  padding: 18px 22px;
  font-size: 1.12rem;
  font-weight: 700;
}

.fp-board-foot {
  padding: 12px 22px 12px 28px;
  border-top: 1px solid var(--fp-line);
  background: var(--fp-paper);
  color: var(--fp-muted);
  font-size: .9rem;
}

.fp-board-foot strong {
  color: var(--fp-ink);
  transition: color .15s ease;
}

/* The hall and its address: a link to the map. */
.fp-board-foot a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

.fp-board-foot a:hover,
.fp-board-foot a:hover strong,
.fp-board-foot a:focus-visible,
.fp-board-foot a:focus-visible strong {
  color: var(--shirt);
}

/* Facts */
.fp-facts {
  padding: 104px 0 44px;
  background: var(--shirt-light);
}

/* Without the board there is nothing to make room for. */
.fp-hero:not(:has(.fp-board)) {
  padding-bottom: 56px;
}

.fp-hero:not(:has(.fp-board)) + .fp-facts {
  padding-top: 44px;
}

.fp-facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fp-facts dl div {
  padding: 2px 24px;
  border-left: 2px solid #c9d9f2;
}

.fp-facts dl div:first-child {
  padding-left: 0;
  border-left: 0;
}

.fp-facts dt {
  color: var(--shirt);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.fp-facts dd {
  margin-top: 4px;
  color: var(--fp-muted);
  font-size: .92rem;
}

.fp-section {
  padding: 84px 0;
}

.fp-section > .container > h2 {
  margin-bottom: 32px;
}

/* Three ways in */
.fp-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.fp-way {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.fp-way:hover {
  color: inherit;
}

.fp-way-photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--fp-radius);
  background: var(--shirt-light);
}

.fp-way-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.fp-way:hover .fp-way-photo img {
  transform: scale(1.035);
}

.fp .fp-way h3 {
  margin: 18px 0 6px;
  font-size: 1.35rem;
}

.fp-way p,
.fp-way-price {
  color: var(--fp-muted);
}

.fp-way-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}

.fp-way-price {
  font-size: .9rem;
}

/* Steps: one line, three stops */
.fp-start {
  background: var(--fp-paper);
}

.fp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.fp-steps li {
  position: relative;
  padding-top: 64px;
  counter-increment: step;
}

.fp-steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--shirt);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.fp-steps li::after {
  content: "";
  position: absolute;
  top: 21px;
  right: -22px;
  left: 58px;
  height: 2px;
  background: #c9d9f2;
}

.fp-steps li:last-child::after {
  display: none;
}

.fp .fp-steps p {
  max-width: 30em;
  margin: 8px 0 12px;
  color: var(--fp-muted);
}

/* News: a short list */
.fp-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 56px;
  align-items: start;
}

.fp .fp-news-grid h2 {
  margin-bottom: 20px;
}

.fp-news {
  padding: 0;
  border-top: 1px solid var(--fp-line);
  list-style: none;
}

.fp-news a {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) auto;
  gap: 6px 22px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--fp-line);
  color: inherit;
  text-decoration: none;
}

.fp-news .fp-news-thumb {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--shirt-light);
}

.fp-news-meta {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  align-items: center;
  align-self: end;
  gap: 4px 10px;
  color: var(--fp-muted);
  font-size: .85rem;
}

.fp-news-title {
  grid-column: 2;
  align-self: start;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.fp-news-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--shirt);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform .15s;
}

.fp-news a:hover .fp-news-title {
  color: var(--shirt);
}

.fp-news a:hover .fp-news-arrow {
  transform: translateX(4px);
}

/* The last section: a white card on the shirt's stripes */
.fp-find {
  padding: 60px 0;
  background: var(--fp-stripes) center top;
}

.fp-find-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  border-radius: var(--fp-radius);
  background: #fff;
  box-shadow: 0 18px 40px rgba(18, 61, 126, .25);
}

.fp-find-card > div {
  padding: 44px 48px;
}

.fp .fp-find-card h2 {
  margin: 10px 0 12px;
}

.fp-find-card p:not(.fp-eyebrow) {
  color: var(--fp-muted);
}

.fp-find-card > div > .btn,
.fp-find-card .fp-ctas {
  margin-top: 22px;
}

.fp-find-cta {
  border-left: 1px solid var(--fp-line);
}

.fp .fp-find-cta h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
  letter-spacing: -.02em;
}

/* Below 992 px: one column. In the hero the board comes before the photo,
   so the next training shows on a phone's first screen. */
@media (max-width: 991.98px) {
  .fp-hero,
  .fp-hero:not(:has(.fp-board)) {
    padding: 36px 0 40px;
  }

  .fp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "text" "board" "media";
    row-gap: 32px;
  }

  .fp-board {
    margin-bottom: 0;
  }

  .fp-board-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .fp-board-day {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    padding: 13px 20px;
  }

  .fp-board-day p {
    font-size: 1.35rem;
  }

  .fp-board-slots {
    flex-direction: column;
  }

  .fp-board-slots li {
    border-right: 0;
    border-bottom: 1px solid var(--fp-line);
  }

  .fp-board-slot {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 0 8px;
    padding: 11px 20px;
  }

  .fp-board-slots li:last-child {
    border-bottom: 0;
  }

  .fp-board-when,
  .fp-board-slots b {
    grid-column: 1;
  }

  .fp-board-line {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-content: space-between;
  }

  .fp-board-pause,
  .fp-board-foot {
    padding: 12px 20px;
  }

  .fp-hero-media {
    max-width: 560px;
    padding: 26px 28px 0 0;
  }

  .fp-hero-media::before {
    bottom: 28px;
    width: 196px;
  }

  .fp-facts,
  .fp-hero:not(:has(.fp-board)) + .fp-facts {
    padding: 56px 0 40px;
  }

  .fp-facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 26px;
  }

  .fp-facts dl div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .fp-section {
    padding: 60px 0;
  }

  .fp-ways {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    max-width: 560px;
  }

  .fp-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .fp-steps li {
    padding: 8px 0 30px 64px;
  }

  .fp-steps li::after {
    top: 52px;
    right: auto;
    bottom: 6px;
    left: 21px;
    width: 2px;
    height: auto;
  }

  .fp-news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .fp-news a {
    grid-template-columns: 104px minmax(0, 1fr) auto;
    column-gap: 14px;
  }

  .fp-news-title {
    font-size: 1rem;
  }

  .fp-find {
    padding: 36px 0;
  }

  .fp-find-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .fp-find-card > div {
    padding: 30px 26px;
  }

  .fp-find-cta {
    border-top: 1px solid var(--fp-line);
    border-left: 0;
  }
}

/* Tablets: the three ways in still fit side by side. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .fp-ways {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .fp-hero,
  .fp-hero:not(:has(.fp-board)) {
    padding-top: 26px;
  }

  .fp-hero h1 {
    margin: 10px 0 14px;
  }

  .fp-lead {
    font-size: 1.05rem;
  }

  .fp-hero .fp-ctas {
    margin: 22px 0 14px;
  }

  .fp-hero .fp-ctas .btn {
    flex: 1 1 100%;
  }

  .fp-board-slots b {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp * {
    transition: none !important;
  }
}
