/* ============================================================
   THE SECONDARY PAGES on the redesign system (phase 3.5)
   Contact, Legal & Terms, Privacy, the 404, the camp enquiry's
   confirmation and the five pages of the camps' extras. Loaded
   after system.css, only on body.gs-page. Generated by
   tools/build-pages-redesign.py.
   ============================================================ */

/* ---------- the first screen: the nav on the sand, the words, the photograph beside them ---------- */
body.gs-page { --gs-fs-display: clamp(2.75rem, 1.6rem + 4.2vw, 5.75rem); }
body.gs-page .gs-hero { display: block; min-height: 0; padding: var(--gs-s-3) var(--gs-s-3) var(--gs-s-8); }
.gs-page-nav { padding: clamp(1rem, 2.2vw, 1.75rem) clamp(1.1rem, 3.3vw, 3rem) 0; }
.gs-page-first {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  max-width: var(--gs-wrap); margin-inline: auto; padding: var(--gs-s-5) calc(var(--gs-gutter) - var(--gs-s-3)) 0;
}
.gs-page-first.is-solo { grid-template-columns: minmax(0, 1fr); }
.gs-page-first.is-solo .gs-page-text { max-width: 52rem; }
.gs-page-text { display: grid; gap: var(--gs-s-4); justify-items: start; min-width: 0; color: var(--gs-rocha); }
.gs-page-text > * { margin: 0; min-width: 0; }
.gs-page-text .gs-display { color: var(--gs-mar); line-height: .9; }
.gs-page-text .gs-acts { margin-top: var(--gs-s-2); }
.gs-page-lede { max-width: 46ch; font: 500 var(--gs-fs-sub-lg)/1.3 var(--gs-f-text); }
.gs-crumb { font: 400 var(--gs-fs-small)/1.2 var(--gs-f-text); color: var(--gs-rocha-2); }
.gs-crumb a { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; text-underline-offset: .2em; }
.gs-page-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--gs-r-photo); overflow: hidden; background: var(--gs-agua); }
.gs-page-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100% !important; object-fit: cover; }
.gs-page-portrait { aspect-ratio: 1 / 1; max-width: 34rem; justify-self: end; width: 100%; }
.gs-page-price { font-size: var(--gs-fs-body); }

/* "from €69 per person": the figure large, the small words on its baseline (as .gs-from does on the cards) */
body.gs-page .gs-from { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35rem; font-family: var(--gs-f-display); text-transform: uppercase; color: var(--gs-mar); }
body.gs-page .gs-from b { font: 900 var(--gs-fs-figure)/.85 var(--gs-f-display); }
body.gs-page .gs-from small, body.gs-page .gs-from > span { font: 800 var(--gs-fs-ui-lg)/1 var(--gs-f-display); letter-spacing: .04em; }
body.gs-page .gs-from-ask b { font-size: var(--gs-fs-heading); }

/* the reply time: a fact, with a small clock — not a box */
.gs-reply { display: flex; align-items: center; gap: .55rem; font: 500 var(--gs-fs-sub)/1.3 var(--gs-f-text); }
.gs-clock { flex: none; width: 1.4rem; height: 1.4rem; }

/* links written inside the dictionaries' sentences (an email address, a policy) read as links on any ground */
body.gs-page main p a:not([class*="gs-"]) { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
body.gs-page main p a:not([class*="gs-"]):hover { text-decoration-thickness: 2.5px; }

/* ---------- the bar on these pages: on a phone, the menu, what this page is (or its action), WhatsApp ---------- */
.gs-bar-label, .gs-bar-wa { display: none; }
.gs-bar-wa svg { width: 1.3rem; height: 1.3rem; }
/* an extra's bar books the extra, not WhatsApp: WhatsApp stays beside it, as a mark, at every width */
body.gs-extra .gs-bar-wa { display: grid; place-content: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ============================================================
   CONTACT
   ============================================================ */
.gs-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gs-s-5); margin: 0; padding: 0; list-style: none; }
.gs-way { display: grid; align-content: start; justify-items: start; gap: var(--gs-s-3); padding: var(--gs-s-5); border-radius: var(--gs-r-card); background: var(--gs-espuma); color: var(--gs-rocha); }
.gs-way h3 { margin: 0; }
.gs-way-v {
  display: inline-flex; align-items: center; min-height: 2.75rem; max-width: 100%; color: var(--gs-mar);
  font: 900 var(--gs-fs-heading)/1 var(--gs-f-display); letter-spacing: .01em; text-decoration: none; overflow-wrap: anywhere;
}
.gs-way-v:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
body.gs .gs-way :focus-visible { outline-color: var(--gs-mar); }
.gs-way .gs-link { font-size: var(--gs-fs-label); }
/* the old dictionary sentence carries its own small, italic second line: here it is plain, and the same size */
.gs-where span { font: inherit !important; color: inherit; }

.gs-meet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gs-s-6) clamp(2rem, 6vw, 6rem); }
.gs-meet-col { display: grid; align-content: start; justify-items: start; gap: var(--gs-s-3); padding-top: var(--gs-s-4); border-top: 2px solid var(--gs-mar); }
.gs-meet-col .gs-heading { color: var(--gs-mar); }
.gs-meet-col p { margin: 0; max-width: 52ch; }

/* a way on to another page, with its lowest price: the door of the Homepage, kept small */
.gs-pdoor {
  display: grid; gap: var(--gs-s-2); align-content: start; margin-top: var(--gs-s-3); padding: var(--gs-s-4) var(--gs-s-5);
  border-radius: var(--gs-r-card); background: var(--gs-espuma); color: var(--gs-rocha); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gs-pdoor:hover { transform: translateY(-2px); box-shadow: var(--gs-sombra); }
.gs-pdoor-go { font: 700 var(--gs-fs-ui)/1 var(--gs-f-display); letter-spacing: .05em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .28em; }
.gs-meet .gs-pdoor { grid-template-columns: auto auto; align-items: baseline; justify-content: start; gap: var(--gs-s-2) var(--gs-s-5); }

/* ============================================================
   404 — the four doors of the Homepage, on Oliva
   ============================================================ */
.gs-pdoors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gs-s-4); }
.gs-pdoor-photo { margin: 0; padding: 0 0 var(--gs-s-5); overflow: hidden; grid-template-rows: auto auto 1fr auto; }
.gs-pdoor-photo > :not(.gs-pdoor-img) { padding-inline: var(--gs-s-4); }
.gs-pdoor-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gs-agua); margin-bottom: var(--gs-s-2); }
.gs-pdoor-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gs-pdoor-photo .gs-heading { color: var(--gs-mar); }
.gs-pdoor-line { font-size: var(--gs-fs-small); line-height: 1.4; color: var(--gs-rocha-2); }
.gs-pdoor-photo .gs-from { align-self: end; }
.gs-pdoor-photo .gs-pdoor-go { align-self: end; justify-self: start; }
.gs-404 .gs-hero { padding-bottom: var(--gs-s-6); }
.gs-404-doors { padding-bottom: var(--gs-pad-section); }

/* ============================================================
   LEGAL & TERMS, PRIVACY — one sheet of sand; the sections listed first
   ============================================================ */
body.gs-page .gs-doc-hero { padding-bottom: var(--gs-s-6); }
.gs-doc-band { padding-bottom: var(--gs-pad-section); }
.gs-doc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gs-s-6) clamp(2rem, 6vw, 6rem); align-items: start; }
.gs-toc { position: sticky; top: calc(var(--gs-bar-h) + var(--gs-s-5)); padding: var(--gs-s-5); border-radius: var(--gs-r-card); background: var(--gs-espuma); }
.gs-toc h2 { margin: 0 0 var(--gs-s-2); font: 800 var(--gs-fs-tag)/1 var(--gs-f-display); letter-spacing: .07em; text-transform: uppercase; color: var(--gs-rocha-2); }
.gs-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: gs-toc; }
.gs-toc li { counter-increment: gs-toc; border-top: 1px solid var(--gs-linha); }
.gs-toc li:first-child { border-top: 0; }
.gs-toc a { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); align-items: center; min-height: 2.75rem; padding-block: .35rem; color: var(--gs-rocha); text-decoration: none; font: 500 var(--gs-fs-small)/1.3 var(--gs-f-text); }
.gs-toc a::before { content: counter(gs-toc); font: 900 var(--gs-fs-ui)/1 var(--gs-f-display); color: var(--gs-mar); }
.gs-toc a:hover { text-decoration: underline; text-underline-offset: .2em; }
.gs-doc-body { display: grid; gap: var(--gs-s-7); }
.gs-doc-sec { display: grid; gap: var(--gs-s-3); padding-top: var(--gs-s-4); border-top: 2px solid var(--gs-mar); max-width: 62ch; }
.gs-doc-sec .gs-heading { color: var(--gs-mar); }
.gs-doc-sec p { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.gs-updated { font: 400 var(--gs-fs-small)/1.3 var(--gs-f-text); color: var(--gs-rocha-2); }
body.gs-page .gs-cta-line { color: var(--gs-mar); }

/* ============================================================
   THE CAMP ENQUIRY, RECEIVED
   ============================================================ */
.gs-check { display: grid; place-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--gs-mar); color: var(--gs-espuma); }
.gs-check svg { width: 1.75rem; height: 1.75rem; }
.gs-ok-hero .gs-page-text { gap: var(--gs-s-3); }
/* steps on a dark ground: the figure in Areia, the words in Espuma (5.2:1 on Oliva, 11:1 on Mar) */
:is(.gs-on-oliva, .gs-on-mar) .gs-step { border-top-color: var(--gs-areia); }
:is(.gs-on-oliva, .gs-on-mar) .gs-step::before, :is(.gs-on-oliva, .gs-on-mar) .gs-step .gs-heading { color: var(--gs-areia); }
:is(.gs-on-oliva, .gs-on-mar) .gs-step p { color: var(--gs-espuma); }
.gs-ok-foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gs-s-5) clamp(2rem, 6vw, 6rem); align-items: start; margin-top: var(--gs-s-7); }
.gs-ok-note { margin: 0; padding: var(--gs-s-4) var(--gs-s-5); border-radius: var(--gs-r-card); background: var(--gs-espuma); color: var(--gs-rocha); line-height: 1.5; }
.gs-ok-more { margin: 0; max-width: 58ch; line-height: 1.55; }
/* a short link ("Home") is still a 44px target across */
.gs-ok-next .gs-acts .gs-link { min-width: 2.75rem; justify-content: center; }

/* ============================================================
   THE CAMPS' EXTRAS
   ============================================================ */
/* the photographs: a strip to the edges of the screen; the next one peeks, the dots count, arrows where there is a cursor */
.gs-x-photos { padding-block: var(--gs-s-7); }
.gs-xstrip-wrap { position: relative; }
.gs-xstrip {
  display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: var(--gs-s-3); margin: 0; padding: 0 var(--gs-gutter); list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gs-gutter); scrollbar-width: none;
}
.gs-xstrip::-webkit-scrollbar { display: none; }
.gs-xstrip li { scroll-snap-align: start; }
.gs-xstrip figure { margin: 0; }
.gs-xstrip img { display: block; width: auto; height: min(42svh, 20rem); max-width: 80vw; object-fit: cover; border-radius: var(--gs-r-card); background: var(--gs-oliva-2); }
.gs-x-photos .gal-dots { margin-top: var(--gs-s-3); color: var(--gs-espuma); }
.gs-arrow {
  position: absolute; top: calc(50% - 1.6rem); z-index: 2; display: none; width: 3.25rem; height: 3.25rem; border: 0; border-radius: 50%;
  background: var(--gs-espuma); color: var(--gs-mar); box-shadow: var(--gs-sombra); cursor: pointer;
}
.gs-arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: .75rem; height: .75rem; border: solid currentColor; border-width: 0 3px 3px 0; translate: -15% 0; rotate: -45deg; }
.gs-arrow-prev { left: var(--gs-s-4); }
.gs-arrow-prev::before { translate: 15% 0; rotate: 135deg; }
.gs-arrow-next { right: var(--gs-s-4); }
.gs-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .gs-arrow { display: block; } }
body.gs .gs-arrow:focus-visible { outline-color: var(--gs-espuma); }

/* the day: the title and its words side by side, then the part worth the trip, photograph beside it */
.gs-x-head { align-items: start; }
.gs-x-head .gs-tag, .gs-x-lead .gs-tag { margin-bottom: var(--gs-s-4); }
.gs-x-text { display: grid; gap: var(--gs-s-3); }
.gs-x-text p { margin: 0; max-width: 58ch; line-height: 1.55; }
.gs-x-text .gs-x-first { font: 500 var(--gs-fs-sub)/1.4 var(--gs-f-text); }
.gs-on-areia .gs-title, .gs-on-areia .gs-x-hl-body .gs-heading { color: var(--gs-mar); }
.gs-on-oliva .gs-x-hl-body .gs-heading { color: var(--gs-areia); }
.gs-on-oliva .gs-x-text p, .gs-on-oliva .gs-x-hl-body p { color: var(--gs-espuma); }
/* these titles are the pages' own sentences, longer than a band's usual one to three words: the narrow-column size */
body.gs-extra .gs-x-head .gs-title { font-size: var(--gs-fs-title-sm); }
.gs-x-hl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gs-s-5) clamp(2rem, 6vw, 6rem); align-items: center; }
.gs-x-hl-photo { margin: 0; aspect-ratio: 4 / 5; max-height: 34rem; border-radius: var(--gs-r-photo); overflow: hidden; background: var(--gs-agua); }
.gs-x-hl-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gs-x-hl-body { display: grid; justify-items: start; gap: var(--gs-s-3); }
.gs-x-hl-body > * { margin: 0; }
.gs-x-hl-body p { max-width: 54ch; line-height: 1.55; }
.gs-x-hl-body .gs-tags { margin-top: var(--gs-s-2); }

/* how it runs: the steps, the four plain facts, the things on request — each part one block, in the page's order */
.gs-x-how .gs-wrap, .gs-x-more .gs-wrap { display: grid; gap: var(--gs-s-7); }
.gs-x-how .gs-head, .gs-x-more .gs-head { margin-bottom: 0; }
.gs-x-steps { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.gs-x-steps .gs-step { grid-template-columns: minmax(0, 1fr); }
.gs-x-steps .gs-step::before { grid-row: auto; }
.gs-x-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gs-s-3); margin: 0; }
.gs-x-facts div { padding: var(--gs-s-4); border-radius: var(--gs-r-card); background: var(--gs-espuma); color: var(--gs-rocha); }
.gs-x-facts dt { margin-bottom: var(--gs-s-2); font: 800 var(--gs-fs-tag)/1 var(--gs-f-display); letter-spacing: .07em; text-transform: uppercase; color: var(--gs-mar); }
.gs-x-facts dd { margin: 0; font-size: var(--gs-fs-small); line-height: 1.45; }
.gs-x-req { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--gs-s-4); margin: 0; padding: 0; list-style: none; }
.gs-x-more .gs-x-req li, .gs-x-more .gs-x-facts div { background: var(--gs-espuma); }
.gs-x-req li { display: grid; align-content: start; justify-items: start; gap: var(--gs-s-2); padding: var(--gs-s-5); border-radius: var(--gs-r-card); background: var(--gs-espuma); color: var(--gs-rocha); }
.gs-x-req .gs-heading { color: var(--gs-mar); font-size: var(--gs-fs-sub-lg); }
.gs-x-req p { margin: 0; font-size: var(--gs-fs-small); line-height: 1.45; }
.gs-x-lead { display: grid; justify-items: start; }
.gs-x-lead .gs-x-text .gs-x-first, .gs-x-how .gs-x-text p:first-child { font: 500 var(--gs-fs-sub)/1.4 var(--gs-f-text); }

/* what it costs, and the way to add it: words on deep water, the price on a plate beside them */
.gs-x-add-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gs-s-6) clamp(2rem, 6vw, 6rem); align-items: center; }
.gs-x-add-body { margin: var(--gs-s-4) 0 0; max-width: 46ch; font: 500 var(--gs-fs-sub)/1.4 var(--gs-f-text); }
.gs-x-add .gs-reply { margin: var(--gs-s-5) 0 0; font-size: var(--gs-fs-body); color: var(--gs-espuma); }
.gs-x-add .gs-reply strong { font-weight: 600; }
.gs-x-price { display: grid; justify-items: start; gap: var(--gs-s-3); padding: var(--gs-s-6); border-radius: var(--gs-r-card); background: var(--gs-espuma); color: var(--gs-rocha); }
.gs-x-price > * { margin: 0; }
.gs-x-price .gs-tag { color: var(--gs-rocha); }
.gs-x-terms { font: 500 var(--gs-fs-sub)/1.35 var(--gs-f-text); }
.gs-x-note { padding-top: var(--gs-s-3); border-top: 1px solid var(--gs-linha); font-size: var(--gs-fs-small); line-height: 1.45; color: var(--gs-rocha-2); }
body.gs .gs-x-price :focus-visible { outline-color: var(--gs-mar); }

/* ============================================================ */
@media (max-width: 64rem) {
  .gs-ways { grid-template-columns: minmax(0, 1fr); }
  .gs-way { grid-template-columns: minmax(0, 1fr); }
  .gs-pdoors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs-x-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs-doc { grid-template-columns: minmax(0, 1fr); }
  .gs-toc { position: static; }
  .gs-x-add-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 56rem) {
  .gs-page-first { grid-template-columns: minmax(0, 1fr); gap: var(--gs-s-5); padding-inline: var(--gs-s-2); }
  /* the photograph first, the words under it */
  .gs-page-photo { order: -1; aspect-ratio: 3 / 2; }
  .gs-page-portrait { aspect-ratio: 4 / 3; max-width: none; justify-self: stretch; }
  .gs-meet { grid-template-columns: minmax(0, 1fr); }
  .gs-x-hl { grid-template-columns: minmax(0, 1fr); }
  .gs-x-hl-photo { aspect-ratio: 4 / 3; max-height: none; }
  .gs-ok-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 44rem) {
  body.gs-page .gs-hero { padding: var(--gs-s-2) var(--gs-s-2) var(--gs-s-7); }
  .gs-page-nav { padding: var(--gs-s-2) var(--gs-s-3) 0; }
  .gs-page-first { padding: var(--gs-s-4) var(--gs-s-2) 0; }
  .gs-page-lede { font-size: var(--gs-fs-sub); }
  .gs-way { padding: var(--gs-s-4); }
  .gs-meet .gs-pdoor { grid-template-columns: minmax(0, 1fr); }
  .gs-pdoors { gap: var(--gs-s-3); }
  .gs-pdoor-photo > :not(.gs-pdoor-img) { padding-inline: var(--gs-s-3); }
  .gs-pdoor-photo .gs-heading { font-size: var(--gs-fs-sub-lg); }
  .gs-pdoor-photo .gs-from b { font-size: var(--gs-fs-figure-sm); }
  .gs-pdoor-photo .gs-from small, .gs-pdoor-photo .gs-from > span { font-size: var(--gs-fs-tag); }
  .gs-pdoor-line { display: none; }
  .gs-doc-body { gap: var(--gs-s-6); }
  .gs-doc-sec p { font-size: var(--gs-fs-body); }
  .gs-x-steps { grid-template-columns: minmax(0, 1fr); gap: var(--gs-s-4); }
  /* a phone: the figure beside its step again, as on the Surf Lessons */
  .gs-x-steps .gs-step { grid-template-columns: auto 1fr; }
  .gs-x-steps .gs-step::before { grid-row: span 2; font-size: var(--gs-fs-figure-sm); }
  .gs-xstrip img { height: auto; width: 78vw; max-width: none; aspect-ratio: 4 / 3; }
  .gs-x-price { padding: var(--gs-s-5); }

  /* the bar under the thumb: the menu, what this page is (or its action), WhatsApp */
  body.gs-page .gs-bar .gs-cta:not(.gs-bar-add) { display: none; }
  body.gs-page .gs-bar-wa { display: grid; place-content: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
  body.gs-page .gs-bar .gs-nav-tools { gap: var(--gs-s-2); }
  .gs-bar-label { display: block; margin: 0 auto 0 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 900 var(--gs-fs-heading)/1 var(--gs-f-display); text-transform: uppercase; color: var(--gs-areia); }
  body.gs-extra .gs-bar .gs-nav-tools { flex: 1; justify-content: flex-end; }
  body.gs-extra .gs-bar-add { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gs-pdoor { transition: none; }
  .gs-pdoor:hover { transform: none; }
}
@media (forced-colors: active) {
  .gs-way, .gs-pdoor, .gs-toc, .gs-x-price, .gs-x-facts div, .gs-x-req li { border: 1px solid; }
}
