/* LCP-critical global styles — tokens in brand.css (parallel head link, not @import) */

html {
  scrollbar-gutter: stable;
}

body {
  display: none;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size-m);
  line-height: 1.6;
}

body.appear {
  display: block;
}

header {
  min-height: var(--nav-height);
}

header .header,
footer .footer {
  visibility: hidden;
}

header .header[data-block-status="loaded"],
footer .footer[data-block-status="loaded"] {
  visibility: visible;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
  font-family: var(--heading-font-family);
  font-weight: 700;
  line-height: 1.1;
  scroll-margin: 40px;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--heading-font-size-xxl); }
h2 { font-size: var(--heading-font-size-xl); }
h3 { font-size: var(--heading-font-size-l); }
h4 { font-size: var(--heading-font-size-m); }
h5 { font-size: var(--heading-font-size-s); }
h6 { font-size: var(--heading-font-size-xs); }

p,
dl,
ol,
ul,
pre,
blockquote {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
}

main > div {
  margin: 40px 16px;
}

input,
textarea,
select,
button {
  font: inherit;
}

a:any-link {
  color: var(--link-color);
  text-decoration: none;
  overflow-wrap: break-word;
}

main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

/* sections */
main > .section {
  margin: 0;
  padding-block: var(--space-3xl);
}

main > .section > div {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

main > .section:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

@media (width >= 900px) {
  main > .section {
    padding-block: 100px;
  }

  main > .section > div {
    padding: 0 32px;
  }
}

main .section.hero-adventure-container {
  max-width: 100%;
  padding-inline: 0;
}

main .section.hero-adventure-container > div {
  max-width: 100%;
  padding-inline: 0;
}

/* LCP-critical hero shell — full styling in blocks/hero-adventure/hero-adventure.css (async) */
.hero-adventure-wrapper {
  max-width: 100% !important;
  padding: 0 !important;
}

.hero-adventure {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 55vh;
  overflow: hidden;
  padding: 0;
}

.hero-adventure > div:first-child {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-adventure > div:first-child > div,
.hero-adventure > div:first-child picture {
  position: absolute;
  inset: 0;
}

.hero-adventure > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-adventure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(0 0 0 / 45%) 0%, rgb(0 0 0 / 15%) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-adventure > div:last-child {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  color: #fff;
}

@media (width >= 900px) {
  .hero-adventure {
    min-height: 65vh;
  }

  .hero-adventure > div:last-child {
    padding: 64px 32px;
  }
}

/* Above-fold fragment — hide until lazy load; reserve height to avoid CLS when injected */
main > .section:first-of-type .fragment:not([data-block-status="loaded"]),
main > .section.lcp-section .fragment:not([data-block-status="loaded"]) {
  visibility: hidden;
  overflow: hidden;
  min-height: 600px;
}

@media (width >= 900px) {
  main > .section:first-of-type .fragment:not([data-block-status="loaded"]),
  main > .section.lcp-section .fragment:not([data-block-status="loaded"]) {
    min-height: 360px;
  }
}

main > .section:first-of-type .fragment[data-block-status="loaded"],
main > .section:first-of-type .columns-featured-wrapper {
  min-height: 600px;
}

@media (width >= 900px) {
  main > .section:first-of-type .fragment[data-block-status="loaded"],
  main > .section:first-of-type .columns-featured-wrapper {
    min-height: 360px;
  }
}

/* Target zones — stay visible (fail-open) so LCP is never blocked by proposition fetch */
main .section.lcp-section.target:not(.target-ready),
main .section.target:not(.target-ready) {
  visibility: visible;
}

main .section.target:not(.target-ready) {
  min-height: 0;
}

@media (width >= 900px) {
  main > .section.target:not(.target-ready) {
    min-height: 0;
  }
}

main .section.target.target-ready {
  visibility: visible;
}
