/* Reusable inner-page header for Basic Pages. */

.page-header {
  padding-bottom: clamp(32px, 5vw, 64px);
  position: relative;
}

/* Legacy quality strapline used by board and flooring listing headers. */
.page-header__vertical-quality-tag {
  bottom: 80px;
  display: none;
  font-size: 0.4375rem;
  left: 13px;
  letter-spacing: 0.3em;
  line-height: 1;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  transform: translateY(100%) rotate(-90deg);
  transform-origin: 0 0;
  white-space: nowrap;
  z-index: 3;
}


@media (min-width: 576px) {
  .page-header__vertical-quality-tag {
    left: 20px;
    letter-spacing: 0.65em;
    transform: rotate(-90deg);
  }
}

@media (min-width: 860px) {
  .page-header__vertical-quality-tag {
    font-size: 0.625rem;
    letter-spacing: 0.45em;
  }
}

@media (min-width: 1025px) {
  .page-header__vertical-quality-tag {
    display: block;
    left: 23px;
  }
}

/* Media — full width, edge to edge. */
.page-header__media {
  background: #f2f3f2;
  height: clamp(200px, 50vw, 320px);
  overflow: hidden;
  position: relative;
}

.page-header__media-frame,
.page-header__swiper,
.page-header__swiper .swiper-wrapper,
.page-header__slide {
  height: 100%;
}

.page-header__slide {
  position: relative;
}

.page-header__slide::after,
.page-header__media-frame::after {
  background:
    linear-gradient(to top, rgba(12, 12, 12, 0.14), rgba(12, 12, 12, 0) 36%),
    linear-gradient(to right, rgba(18, 18, 18, 0.08), rgba(18, 18, 18, 0) 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.page-header__media-image {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  width: 100%;
}

/* The legacy responsibility hero includes a blank strip in its leftmost
   18.4%. Enlarge it within the clipped frame and anchor it to the right. */
.page-header--responsibility .page-header__media-image {
  max-width: none;
  position: absolute;
  right: 0;
  width: 122.5%;
}

/* The Design Center uses the old-site façade image without a decorative tint. */
.page-header--design-center .page-header__slide::after,
.page-header--design-center .page-header__media-frame::after {
  content: none;
}

/* BOARDS LEAD 2022 old-site parity. Scoped to the explicit campaign
   variant so other page headers retain their native layout. */
.page-header--boards-lead-2022 .page-header__slide::after,
.page-header--boards-lead-2022 .page-header__media-frame::after {
  content: none;
}

.page-header--boards-lead-2022 .page-header__intro {
  font-weight: 200;
}

@media (min-width: 1025px) {
  .page-header--boards-lead-2022 {
      box-sizing: border-box;
      height: 966px;
      padding: 0;
      position: relative;
    }

  html:lang(de) .page-header--boards-lead-2022,
    html:lang(it) .page-header--boards-lead-2022 {
      height: 924.25px;
    }

  html:lang(es) .page-header--boards-lead-2022 {
      height: 999.1px;
    }

  .page-header--boards-lead-2022 .page-header__media {
      height: 600px;
      left: 25.93%;
      margin: 0;
      position: absolute;
      right: 20px;
      top: -66px;
    }

  .page-header--boards-lead-2022 .container {
      max-width: none;
      padding-inline: 0;
    }

  .page-header--boards-lead-2022 .page-header__content {
      display: block;
      margin-top: 0;
      position: static;
    }

  .page-header--boards-lead-2022 .page-header__title,
    .page-header--boards-lead-2022 .page-header__kicker {
      left: 18.16%;
      position: absolute;
      width: 63.69%;
    }

  .page-header--boards-lead-2022 .page-header__title {
      font-size: 93.57px;
      line-height: 0.8;
      top: 514px;
    }

  .page-header--boards-lead-2022 .page-header__kicker {
      font-size: 17.29px;
      line-height: 1.2;
      margin: 0;
      max-width: none;
      top: 617px;
    }

  .page-header--boards-lead-2022 .page-header__intro {
      box-sizing: border-box;
      font-size: 14px;
      left: 0;
      line-height: 1.7;
      margin: 0;
      max-width: none;
      padding: 50px calc((100% - 540px) / 2);
      position: absolute;
      top: 658px;
      width: 100%;
    }

  .page-header--boards-lead-2022 .page-header__vertical-quality-tag {
      bottom: auto;
      top: 552px;
    }
}

@media (max-width: 1024px) {
  .page-header--boards-lead-2022 {
      box-sizing: border-box;
      min-height: 831.55px;
      padding-bottom: 30px;
    }

  html:lang(de) .page-header--boards-lead-2022 {
      min-height: 790.95px;
    }

  html:lang(es) .page-header--boards-lead-2022 {
      min-height: 842.65px;
    }

  html:lang(it) .page-header--boards-lead-2022 {
      min-height: 813.85px;
    }

  .page-header--boards-lead-2022 .container {
      padding-inline: 0;
    }

  .page-header--boards-lead-2022 .page-header__media {
      height: 450px;

      margin-left: -15px;
      width: calc(100% + 30px);
    }

  .page-header--boards-lead-2022 .page-header__content {
      gap: 0;
      margin-top: -11px;
      padding-inline: 15px;
    }

  .page-header--boards-lead-2022 .page-header__title {
      font-size: 38px;
      line-height: 0.8;
      margin: 0 0 11.4px;
    }

  .page-header--boards-lead-2022 .page-header__kicker {
      font-size: 16.055px;
      line-height: 1.2;
      margin: 0;
      max-width: none;
    }

  .page-header--boards-lead-2022 .page-header__intro {
      font-size: 13px;
      line-height: 1.7;
      margin: 30px 0 0;
      max-width: none;
    }
}

/* Content — below the image, inside .container. */
.page-header__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 3rem;
  padding: 0;
  position: relative;
  z-index: 2;
  align-items: flex-start;
}

.page-header__title {
  font-size: clamp(36px, 10vw, 54px);
  line-height: 0.9;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  text-align: left;
}

.page-header__kicker {
  color: #111;
  font-size: clamp(20px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem 0;
  max-width: 34ch;
  text-align: left;
}

.page-header__intro {
  color: #525252;
  line-height: 1.55;
  margin: 0.5rem 0 1.25rem 0;
  max-width: 42rem;
  text-align: left;
}

.page-header__intro > p {
  margin: 0;
}

.page-header__intro > p + p {
  margin-top: 1em;
}

/* Prose lists inside the page-header intro — same diamond bullet as
   .page-body lists. Kept inline (not DRY'd with page-body.css) because
   page-header ships in its own library that loads on every node page;
   page-body.css only loads for imported Basic Pages. */
.page-header__intro ul,
.page-header__intro ol {
  list-style: none;
  padding-left: 1.35em;
  margin: 0;
}

.page-header__intro > p + ul,
.page-header__intro > p + ol {
  margin-top: 0.75em;
}

.page-header__intro ul > li {
  position: relative;
}

.page-header__intro ul > li::before {
  content: "";
  position: absolute;
  left: -1.15em;
  top: 0.55em;
  width: 0.4375rem;
  height: 0.4375rem;
  background: currentColor;
  transform: rotate(45deg);
  opacity: 0.85;
}

/* Center each short IT/ES OSB intro row as one unit. The generic header styles
   center the li text while absolutely anchoring its diamond at the list edge,
   which creates a large visual gap on these short localized lines. */
html[lang^="it"] .page-header--osb .page-header__intro ul,
html[lang^="es"] .page-header--osb .page-header__intro ul {
  padding-left: 0;
}

html[lang^="it"] .page-header--osb .page-header__intro ul > li,
html[lang^="es"] .page-header--osb .page-header__intro ul > li {
  align-items: center;
  display: flex;
  gap: 0.5em;
  justify-content: center;
}

html[lang^="it"] .page-header--osb .page-header__intro ul > li::before,
html[lang^="es"] .page-header--osb .page-header__intro ul > li::before {
  flex: 0 0 auto;
  position: static;
}

.page-header__intro ol {
  list-style: decimal;
  padding-left: 1.5em;
}

.page-header__intro li + li {
  margin-top: 0.25em;
}

/* Controls bar — solid black, matching home hero style. */
.page-header__controls {
  align-items: stretch;
  background: #000;
  bottom: 0;
  color: #fff;
  display: flex;
  left: 0;
  min-height: 66px;
  position: absolute;
  right: 0;
  z-index: 7;
}

/* Meta label — bold uppercase with right separator. */
.page-header__meta {
  align-items: center;
  border-right: 0;
  display: inline-flex;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.17;
  min-width: 0;
  padding: 0 18px;
  text-transform: uppercase;
}

/* Nav button wrapper. */
.page-header__nav-wrap {
  align-items: center;
  display: inline-flex;
  gap: 13px;
  padding: 0 16px;
}

/* Nav buttons — bordered squares, matching home hero. */
.page-header__nav {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
  width: 34px;
}

.page-header__nav:hover,
.page-header__nav:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.page-header__nav:disabled {
  cursor: default;
  opacity: 0.35;
}

.page-header__nav:disabled:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: inherit;
}

.page-header__nav .svg-icon {
  height: 25px;
  width: 25px;
}

.page-header__intro strong {
  color: #000;
}

/* Old kaindl.com compatibility for the imported floors/accessories page. */
.page-header--legacy-accessories {
  min-height: clamp(46rem, 50.6vw, 60.2rem);
  padding-bottom: 0;
  position: relative;
}

.page-header--legacy-accessories .page-header__media {
  background: transparent;
  height: clamp(22rem, 31.5vw, 37.5rem);
  margin-left: clamp(0rem, 25.9vw, 30.875rem);
  margin-top: 1.25rem;
  width: calc(100% - clamp(0rem, 25.9vw, 30.875rem) - 1.25rem);
}

.page-header--legacy-accessories .page-header__media-frame::after {
  content: none;
}

.page-header--legacy-accessories .page-header__media-image {
  object-position: center center;
}

.page-header--legacy-accessories .container {
  inset: 0;
  max-width: none;
  padding-inline: 0;
  position: absolute;
  width: 100%;
}

.page-header--legacy-accessories .page-header__content {
  display: block;
  margin: 0;
  position: static;
}

.page-header--legacy-accessories .page-header__title {
  font-size: clamp(4rem, 4.92vw, 5.85rem);
  left: clamp(1.5rem, 18.15vw, 21.625rem);
  line-height: 0.8;
  margin: 0;
  max-width: min(64rem, 64vw);
  position: absolute;
  text-shadow: none;
  top: clamp(26rem, 31.5vw, 37.5rem);
}

.page-header--legacy-accessories .page-header__kicker {
  color: #111;
  font-size: 0.625rem;
  font-weight: 700;
  left: 1.4375rem;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  max-width: none;
  position: absolute;
  text-transform: uppercase;
  top: clamp(25rem, 29.75vw, 35.5rem);
  transform: rotate(180deg);
  transform-origin: center;
  writing-mode: vertical-rl;
}

.page-header--legacy-accessories .page-header__intro {
  color: #333;
  font-size: 0.875rem;
  left: 50%;
  line-height: 1.7;
  margin: 0;
  max-width: 39.5rem;
  position: absolute;
  text-align: left;
  top: clamp(34rem, 37.95vw, 45.2rem);
  transform: translateX(-50%);
  width: min(39.5rem, calc(100vw - 3rem));
}

.page-header--legacy-accessories .page-header__intro strong {
  color: #111;
}

/* Board accessories inherits the same old-site composition, but the title and
   intro need a roomier vertical rhythm than floors/accessories to avoid
   overlapping on translated pages with longer copy. */
.page-header--legacy-board-accessories {
  min-height: clamp(54rem, 60vw, 70rem);
  padding-bottom: 0;
  position: relative;
}

.page-header--legacy-board-accessories .page-header__media {
  background: transparent;
  height: clamp(22rem, 31.5vw, 37.5rem);
  margin-left: clamp(0rem, 25.9vw, 30.875rem);
  margin-top: 1.25rem;
  width: calc(100% - clamp(0rem, 25.9vw, 30.875rem) - 1.25rem);
}

.page-header--legacy-board-accessories .page-header__media-frame::after {
  content: none;
}

.page-header--legacy-board-accessories .page-header__media-image {
  object-position: center center;
}

.page-header--legacy-board-accessories .container {
  inset: 0;
  max-width: none;
  padding-inline: 0;
  position: absolute;
  width: 100%;
}

.page-header--legacy-board-accessories .page-header__content {
  display: block;
  margin: 0;
  position: static;
}

.page-header--legacy-board-accessories .page-header__title {
  font-size: clamp(4rem, 4.92vw, 5.85rem);
  left: clamp(1.5rem, 18.15vw, 21.625rem);
  line-height: 0.8;
  margin: 0;
  max-width: min(64rem, 64vw);
  position: absolute;
  text-shadow: none;
  top: clamp(26rem, 31.5vw, 37.5rem);
}

.page-header--legacy-board-accessories .page-header__kicker {
  color: #111;
  font-size: 0.625rem;
  font-weight: 700;
  left: 1.4375rem;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  max-width: none;
  position: absolute;
  text-transform: uppercase;
  top: clamp(25rem, 29.75vw, 35.5rem);
  transform: rotate(180deg);
  transform-origin: center;
  writing-mode: vertical-rl;
}

.page-header--legacy-board-accessories .page-header__intro {
  color: #333;
  font-size: 0.875rem;
  left: 50%;
  line-height: 1.7;
  margin: 0;
  max-width: 39.5rem;
  position: absolute;
  text-align: left;
  top: clamp(41rem, 46vw, 55rem);
  transform: translateX(-50%);
  width: min(39.5rem, calc(100vw - 3rem));
}

.page-header--legacy-board-accessories .page-header__intro strong {
  color: #111;
}

@media (max-width: 767px) {
  .page-header--legacy-accessories {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .page-header--legacy-board-accessories {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .page-header--legacy-accessories .container,
  .page-header--legacy-accessories .page-header__title,
  .page-header--legacy-accessories .page-header__kicker,
  .page-header--legacy-accessories .page-header__intro {
    position: static;
    transform: none;
  }

  .page-header--legacy-board-accessories .container,
  .page-header--legacy-board-accessories .page-header__title,
  .page-header--legacy-board-accessories .page-header__kicker,
  .page-header--legacy-board-accessories .page-header__intro {
    position: static;
    transform: none;
  }

  .page-header--legacy-accessories .page-header__media {
    height: clamp(14rem, 58vw, 22rem);
    margin: 0;
    width: 100%;
  }

  .page-header--legacy-board-accessories .page-header__media {
    height: clamp(14rem, 58vw, 22rem);
    margin: 0;
    width: 100%;
  }

  .page-header--legacy-accessories .container {
    padding-inline: var(--kaindl-gutter);
  }

  .page-header--legacy-board-accessories .container {
    padding-inline: var(--kaindl-gutter);
  }

  .page-header--legacy-accessories .page-header__content {
    margin-top: 2rem;
  }

  .page-header--legacy-board-accessories .page-header__content {
    margin-top: 2rem;
  }

  .page-header--legacy-accessories .page-header__title {
    font-size: clamp(3rem, 18vw, 4rem);
    max-width: none;
  }

  .page-header--legacy-board-accessories .page-header__title {
    font-size: clamp(3rem, 18vw, 4rem);
    max-width: none;
  }

  .page-header--legacy-accessories .page-header__kicker {
    font-size: 0.9rem;
    line-height: 1.25;
    margin-top: 1.5rem;
    writing-mode: horizontal-tb;
  }

  .page-header--legacy-board-accessories .page-header__kicker {
    font-size: 0.9rem;
    line-height: 1.25;
    margin-top: 1.5rem;
    writing-mode: horizontal-tb;
  }

  .page-header--legacy-accessories .page-header__intro {
    margin-top: 1.5rem;
    width: auto;
  }

  .page-header--legacy-board-accessories .page-header__intro {
    margin-top: 1.5rem;
    width: auto;
  }
}

@media (max-width: 639px) {
  .page-header__media:has(.page-header__swiper) {
    height: calc(clamp(200px, 50vw, 320px) + 66px);
  }

  .page-header__media-frame,
  .page-header__swiper {
    height: clamp(200px, 50vw, 320px);
  }
}

/* ------------------------------------------------
   Desktop overrides (min-width: 640px)
   ------------------------------------------------ */

@media (min-width: 640px) {
  .page-header__media {
    height: clamp(280px, 29vw, 550px);
  }

  .page-header__title {
    font-size: clamp(48px, 6.5vw, 82px);
  }

  .page-header__kicker {
    font-size: clamp(16px, 1.5vw, 20px);
    margin-left: 4px;
  }

  .page-header__controls {
    left: auto;
    min-height: 66px;
  }

  .page-header__meta {
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    flex: 0 0 auto;
    width: 270px;
    padding: 0 18px;
    line-height: 1.3;
  }

  .page-header__nav-wrap {
    gap: 13px;
    padding: 0 16px;
  }
}

@media (min-width: 1025px) {
  .page-header__media {
    margin-left: 25%;
    margin-right: 16px;
  }

  .page-header__controls {
    min-height: 74px;
  }

  .page-header__content {
    gap: 5px;
    margin-top: 20px;
    padding: 0;
  }

  .page-header--no-media .page-header__content {
    margin-top: 3rem;
  }

  .page-header__intro {
    text-align: center;
    align-self: center;
    margin-top: 4rem;
  }
}

@media (min-width: 1536px) {
  .page-header__nav-wrap {
    padding: 0 30px;
  }

  .page-header__meta {
    padding: 0 26px;
  }
}

/* ------------------------------------------------
   Registration page header (user.register route)
   Mirrors the contact page header pattern: text-only
   header with breadcrumb, no media.
   ------------------------------------------------ */

.site-shell--registration .page-header {
  background: #f5f5f5;
  margin-bottom: 0;
  padding: 78px 0 56px;
}

.site-shell--registration .page-header__content {
  align-items: center;
  gap: 10px;
  margin-top: 0;
  text-align: center;
}

.site-shell--registration .page-header__title {
  font-size: clamp(40px, 12vw, 64px);
  letter-spacing: 0;
  line-height: 0.94;
  overflow-wrap: anywhere;
  text-align: center;
  text-shadow: none;
  text-transform: none;
}

.site-shell--registration .page-header__kicker {
  color: #111;
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
  max-width: none;
  text-align: center;
}

.site-shell--registration .page-header__breadcrumb {
  align-items: center;
  color: #111;
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 300;
  gap: 10px;
  justify-content: center;
  line-height: 1.35;
  margin: 2px 0 0;
}

.site-shell--registration .page-header__breadcrumb .breadcrumb-navigation__link,
.site-shell--registration
  .page-header__breadcrumb
  .breadcrumb-navigation__text {
  color: #111;
  text-decoration: none;
}

.site-shell--registration .breadcrumb-navigation__list {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-shell--registration .breadcrumb-navigation__item {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.site-shell--registration
  .page-header__breadcrumb
  .breadcrumb-navigation__icon {
  display: inline-flex;
  font-size: 11px;
}

.site-shell--registration .page-header__breadcrumb .svg-icon {
  display: inline-flex;
}

.site-shell--registration .page-header__intro {
  color: #525252;
  line-height: 1.55;
  margin: 0.75rem 0 0;
  max-width: 42rem;
  text-align: center;
  align-self: center;
}

.site-shell--registration .layout-main {
  padding-bottom: 96px;
  padding-top: 46px;
}

@media (min-width: 768px) {
  .site-shell--registration .page-header__title {
    font-size: clamp(64px, 7vw, 94px);
  }
}

.site-shell--registration .layout-main > .container {
  max-width: 930px;
}

/* Worktops intro: preserve the legacy content hierarchy as a lead paragraph,
   a separate suitability question, a short list introduction, and bullets. */
.page-header--worktops .page-header__intro > p:nth-of-type(2) {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  color: #111;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.page-header--worktops .page-header__intro > p:nth-of-type(3) {
  margin-top: 0.75rem;
}

.page-header--worktops .page-header__intro > p:nth-of-type(3) + ul {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  margin: 0.5rem auto 0;
}

.page-header--worktops .page-header__intro ul > li {
  width: fit-content;
  max-width: calc(100% - 1.35em);
  margin-inline: auto;
  text-align: left;
}

.page-header--worktops .page-header__intro li + li {
  margin-top: 0.4rem;
}

.page-header--worktops .page-header__intro a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
