/* The Black Friday page (/kategorier/lego-black-friday): a band in the header's dark over the usual list (listing.css),
   with the dates and the box that says when a deal is real. On phones the strip of lists goes above the band. */

.bf-band {
  /* the band's own greys, a step up from the header's dark */
  --bf-surface: #353535;
  --bf-row: #424242;
  --bf-line: #474747;

  background: var(--dark);
  color: var(--on-dark);
}

.bf-band__inner { display: flex; flex-direction: column; gap: 24px; padding-top: 20px; padding-bottom: 40px; }

.bf-band__crumbs, .bf-band__crumbs a { color: var(--on-dark-3); }
.bf-band__crumbs a:hover { color: var(--on-dark); }
.bf-band__crumbs [aria-current] { color: var(--on-dark); }

/*
 * The box keeps its own height; the column beside it is stretched to the box's height and its dates sit at the bottom, so their bottom
 * edges line up while the intro is folded. From 1100 px up the box is a few pixels taller than the folded column (its rows are 56 px
 * for that); narrower, the title takes three lines and the column is the taller one. Opened, the column grows past the box.
 */
.bf-band__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; }
.bf-band__head { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.bf-band__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bf-band__eyebrow .dot { background: var(--on-dark); }

.bf-band__title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.bf-band__count { margin: 0; font-size: 15px; color: var(--on-dark-2); }
.bf-band__count strong { color: var(--on-dark); }

/* Phones only: down to the list, past the band */
.bf-band__jump {
  display: none;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  margin-top: -4px;
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bf-band__jump:hover { color: var(--on-dark); }

/* The intro, folded to two lines (three on phones) until "Læs mere" (listing.js) */
.bf-band__intro { margin: 0; font-size: 16px; line-height: 1.55; color: var(--on-dark-2); }

.bf-band__intro.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bf-band__toggle {
  align-self: flex-start;
  margin-top: -6px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Black Friday and Cyber Monday, at the bottom of the column (see .bf-band__grid) */
.bf-dates { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

.bf-dates li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  background: var(--bf-surface);
  border: 1px solid var(--bf-line);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--on-dark-2);
}

.bf-dates strong { color: var(--on-dark); }

/* "Hvornår er et tilbud ægte?": when, price and verdict in three columns of fixed 56 px rows */
.bf-rule {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  background: var(--bf-surface);
  border: 1px solid var(--bf-line);
  border-radius: 20px;
}

.bf-rule__title { font-size: 17px; font-weight: 800; }
.bf-rule__text { margin: 0; font-size: 14px; line-height: 21px; color: var(--on-dark-2); }
.bf-rule__rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }

.bf-rule__row {
  display: grid;
  grid-template-columns: 96px 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 12px;
  background: var(--bf-row);
  border-radius: 12px;
  font-size: 14px;
}

.bf-rule__row--yes { background: var(--surface); color: var(--ink); }
.bf-rule__when { color: var(--on-dark-3); }
.bf-rule__row--yes .bf-rule__when { color: var(--ink-2); }
.bf-rule__price { font-family: var(--font-display); font-size: 16px; }
.bf-rule__verdict { display: flex; align-items: center; gap: 6px; color: var(--on-dark-2); font-weight: 700; }
.bf-rule__verdict svg { flex-shrink: 0; }
.bf-rule__verdict--no { color: var(--red-on-dark); }
.bf-rule__verdict--yes { color: var(--green); font-weight: 800; }
.bf-rule__verdict--yes svg { stroke-width: 2.8; }

/* Under the band */
.bf-page__main { padding-top: 24px; }
.bf-page__offers { scroll-margin-top: 16px; }
.bf-page__tabs--top { display: none; }

/* No list (no real deal yet, or out of season): the calendar in the band's dark */
.bf-notice__icon { background: var(--ink); color: var(--on-dark); }
.bf-notice .listing__empty-title { font-size: 26px; }
.bf-notice p { max-width: 520px; font-size: 16px; line-height: 24px; }
.bf-notice .listing__empty-reset { display: inline-flex; align-items: center; gap: 10px; }

@media (max-width: 767px) {
  .bf-page__tabs--top {
    display: flex;
    margin: 0;
    padding: 5px var(--gutter);
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .bf-page__tabs--main { display: none; }

  .bf-band__inner { gap: 20px; padding-top: 14px; padding-bottom: 28px; }
  .bf-band__grid { display: flex; flex-direction: column; gap: 20px; }
  .bf-rule { align-self: stretch; }
  .bf-band__title { font-size: 38px; }
  .bf-band__jump { display: inline-flex; }
  /* the dates are in the FAQ; the band is short enough without them */
  .bf-dates { display: none; }
  /* no intro (it stays in the page for search engines) and so no "Læs mere" */
  .bf-band__intro, .bf-band__intro.is-clamped, .bf-band__toggle { display: none; }

  /* when and price on one line, the verdict under them */
  .bf-rule__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; min-height: 0; padding: 10px 14px; }
  .bf-rule__verdict { grid-column: 1 / -1; }

  .bf-page__main { padding-top: 16px; }
  .bf-notice { padding: 32px 18px; }
}
