/* The page backdrop owns the tint. Only the full-width reading sections are
   transparent; information cards and form controls keep their own surfaces. */
:is(.film-home, .np-terrain) #main-content > :where(header, section:not(.booking-panel, .booking-confirmation), .home-details, .ticker),
.film-home #main-content .film-intro > .hero,
.film-home #main-content .ticker {
  /* Several legacy workshop and local-service bands set their tint inline or with !important. */
  background: transparent !important;
  border-block: 0;
}
:is(.film-home, .np-terrain) #main-content > :where(section:not(.booking-panel, .booking-confirmation), header)::before {
  content: none;
}
:is(.film-home, .np-terrain) .footer { border-top: 0; }

/* A fine illuminated edge gives grouped information the finish of the shield. */
:is(.np-terrain, .film-home) :is(.thirds > article, .pair > article, .sequence > li,
.path-card, .clarity-entry--conversation, .company-service, .service-route, .lp-card,
.booking-panel, .contact-info, .workshop-format, .workshop-proof,
.ai-offer-scope__boundary, .services-final__panel, .workshop-cta__panel) {
  --panel-edge: #be944e;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background:
    radial-gradient(ellipse at 96% 0%, #d9ac5c13, transparent 57%) padding-box,
    linear-gradient(147deg, #132732f7, #0b1928f7 58%, #0b1723fc) padding-box,
    linear-gradient(119deg, var(--panel-edge), #58615c 16%, #213e48 50%, #457276) border-box;
  box-shadow: 0 7px 20px #02071335;
}
:is(.np-terrain, .film-home) :is(.thirds > article, .pair > article, .sequence > li, .contact-info) {
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
}
.np-terrain .workshop-proof {
  padding-inline: clamp(22px, 3vw, 40px);
}
:is(.np-terrain, .film-home) :is(.thirds, .pair, .sequence) { gap: clamp(1rem, 2vw, 1.75rem); }
:is(.np-terrain, .film-home) :is(.thirds, .pair, .sequence) p:last-child { margin-bottom: 0; }
:is(.np-terrain, .film-home) .sequence li::before { color: #f9cc7a; }
:is(.np-terrain, .film-home) :is(.lp-card, .path-card, .service-route):focus-within {
  --panel-edge: #ffd48b;
  outline: 1px solid #a9ded7;
  outline-offset: 3px;
}

/* Keep the illuminated border separate so the scenery shows through the fill. */
.film-home--services #parcours .thirds > article {
  position: relative;
  --offer-surface: linear-gradient(147deg, rgb(19 39 50 / 78%), rgb(11 25 40 / 75%) 58%, rgb(11 23 35 / 80%));
  background: var(--offer-surface) padding-box;
}
.film-home--services #parcours .thirds > article::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(119deg, var(--panel-edge), #58615c 16%, #213e48 50%, #457276);
  mask: linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

#parcours .thirds {
  grid-template-columns: minmax(0, 1fr);
  overflow-anchor: none;
}
#parcours .thirds .caption { margin: 0; }
#parcours .offer-body {
  display: flow-root;
  max-width: 72ch;
}
#parcours .offer-body h4 {
  margin: 1rem 0 .85rem;
  font: 700 clamp(1.15rem, 1.65vw, 1.45rem)/1.2 Sora, sans-serif;
  letter-spacing: -.02em;
  text-wrap: balance;
}

@media screen and (prefers-reduced-motion: no-preference) {
  #parcours .offer-body {
    max-height: var(--offer-height, none);
    overflow: clip;
  }
  #parcours .offer-body:focus-within { overflow: visible; }
  .film-home--services .reading-entering {
    translate: 0 calc(-7px * (1 - var(--reading-progress)));
  }
}

/* Each service has a reading panel beside its heading. */
.np-terrain .service-detail .editorial > div + div {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid #45616a;
  border-top-color: #ab915f;
  border-radius: 4px;
  background: linear-gradient(125deg, #122431ef, #0b1927f5 72%);
}
.horizon-services { position: relative; }
.horizon-services-toggle {
  font: var(--np-nav-link-size, 15px) var(--font-mono, monospace);
  color: var(--mist, #ccd5df);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.horizon-services-toggle::after { content: '\25BE'; margin-inline-start: .4em; color: #eec572; }
.horizon-services-toggle[aria-expanded="true"]::after { content: '\25B4'; }
.horizon-services-toggle:focus-visible { outline: 2px solid #eec572; outline-offset: 3px; }
.horizon-services .nav-services__menu:not([hidden]) { opacity: 1; visibility: visible; transform: none; }
.horizon-services .nav-services__menu[hidden] { display: none; }
.nav.open .horizon-services-toggle { width: 100%; min-height: 44px; text-align: start; }
.nav.open .horizon-services .nav-services__menu:not([hidden]) {
  position: static; width: 100%; min-width: 0; padding: 0 0 8px 16px;
}
