/* Grandela Surf Club — the Explore on the redesign system (phase 3.4). Loaded after system.css, on
   body.gs.gs-explore only. Generated page: tools/build-explore-redesign.py.

   THE SKY IS PAINTED ON THE PAGE (owner, R1): every chapter carries its own stretch of sky as its
   background (--sky), and the colour a chapter ends on is the colour the next one starts on, so it reads
   as one sky going through a day. Nothing is fixed to the screen and nothing runs per frame.

   The rule of contrast is the owner's, per chapter, and the colours are chosen to keep it:
     white text (Espuma) needs a sky of luminance 0.166 or less (4.5:1) — the night, the dawn's dark end,
     the sunset, the dusk; dark text (Mar) needs 0.343 or more — the day. Between the two neither ink
     reads, so the sky only crosses that band where there is no text: the dawn passage, and (step 2b)
     behind the drone photograph. Measured: design-references/_tools/verify-explore.mjs.

   The grain over the sky is one device pixel whatever the screen (tools/explore-sky-grain.py). */

body.gs.gs-explore { background: #050C11; color: var(--gs-espuma); }

/* ---------- the sky ---------- */
.gs-sky {
  --gs-grain: url("../img/explore/sky-grain-1x.v1.png");
  background-color: var(--sky-base, #050C11);
  background-image: var(--gs-grain), linear-gradient(180deg, var(--sky));
  background-image: -webkit-image-set(url("../img/explore/sky-grain-1x.v1.png") 1x, url("../img/explore/sky-grain-2x.v1.png") 2x, url("../img/explore/sky-grain-3x.v1.png") 3x), linear-gradient(180deg, var(--sky));
  background-image: image-set(url("../img/explore/sky-grain-1x.v1.png") 1x, url("../img/explore/sky-grain-2x.v1.png") 2x, url("../img/explore/sky-grain-3x.v1.png") 3x), linear-gradient(180deg, var(--sky));
  background-size: 96px 96px, 100% 100%;
  background-repeat: repeat, no-repeat;
}
/* night, with stars that stay where they are painted */
.gs-ex-hero { --sky: #050C11 0%, #07121B 70%, #081520 100%; --sky-base: #050C11; }
.gs-ex-hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 100vh; height: 100svh; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='360'%3E%3Cg fill='%23F4EFE2'%3E%3Ccircle cx='38' cy='44' r='1.1' opacity='.75'/%3E%3Ccircle cx='131' cy='118' r='.9' opacity='.5'/%3E%3Ccircle cx='214' cy='30' r='1' opacity='.65'/%3E%3Ccircle cx='302' cy='86' r='1.2' opacity='.5'/%3E%3Ccircle cx='371' cy='40' r='.9' opacity='.7'/%3E%3Ccircle cx='452' cy='104' r='.8' opacity='.45'/%3E%3Ccircle cx='493' cy='22' r='1.1' opacity='.6'/%3E%3Ccircle cx='176' cy='170' r='.8' opacity='.35'/%3E%3Ccircle cx='344' cy='150' r='.9' opacity='.4'/%3E%3Ccircle cx='62' cy='138' r='.7' opacity='.3'/%3E%3Ccircle cx='258' cy='228' r='.8' opacity='.3'/%3E%3Ccircle cx='420' cy='250' r='.7' opacity='.25'/%3E%3Ccircle cx='96' cy='300' r='.7' opacity='.22'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 520px 360px repeat;
  -webkit-mask-image: linear-gradient(#000 0 45%, transparent); mask-image: linear-gradient(#000 0 45%, transparent);
}
/* the generations: from the night to the hour before dawn — deep blue, indigo; white text all the way */
.gs-ex-roots { --sky: #081520 0%, #0D1B30 30%, #141F3B 70%, #1B2042 100%; --sky-base: #141F3B; }
/* the dawn: the sky crosses from dark to day here, under no text, and the sun comes up */
.gs-ex-dawn {
  --sky: #1B2042 0%, #3E2652 12%, #823756 30%, #B9505A 44%, #DC7556 56%, #EEA05C 66%, #F5C584 76%, #F1DEB4 85%, #D7E4DF 93%, #BCD9E8 100%;
  --sky-base: #DC7556;
}
/* the day: the stories' opening, our name on the map, the family table, Lélé — dark text (the sky stays at 0.6 luminance or more) */
.gs-ex-stories { --sky: #BCD9E8 0%, #C4DDEA 100%; --sky-base: #C0DBE9; }
.gs-f-map { --sky: #C4DDEA 0%, #CFE3EC 100%; --sky-base: #CAE0EB; }
.gs-f-prainha { --sky: #CFE3EC 0%, #D9E8EC 100%; --sky-base: #D4E6EC; }
.gs-f-lele { --sky: #D9E8EC 0%, #E6E6D6 100%; --sky-base: #DFE7E1; }
/* the sun sets, with no text over it */
.gs-ex-dusk { --sky: #E6E6D6 0%, #F1D9A6 18%, #EBAE6C 38%, #D57A52 56%, #AE4F44 76%, #84384A 100%; --sky-base: #D57A52; }
/* a deep sunset, then dusk, then night: Bruno, the judge, the archive, the club — white text (0.09 luminance or less) */
.gs-f-bruno { --sky: #84384A 0%, #6E304B 100%; --sky-base: #793449; }
.gs-f-judge { --sky: #6E304B 0%, #54294F 100%; --sky-base: #612D4D; }
.gs-ex-archive { --sky: #54294F 0%, #3A244B 100%; --sky-base: #47264D; }
.gs-ex-today { --sky: #3A244B 0%, #1A2140 45%, #0D1A2E 100%; --sky-base: #1A2140; }

/* ---------- ink and focus: white on the night and the sunset, Mar on the day ---------- */
.gs-ex-hero, .gs-ex-roots, .gs-ink-light, .gs-ex-archive, .gs-ex-today { color: var(--gs-espuma); }
:is(.gs-ex-roots, .gs-ink-light, .gs-ex-archive, .gs-ex-today) .gs-title, .gs-gen-title { color: var(--gs-areia); }
:is(.gs-ex-roots, .gs-ink-light, .gs-ex-archive, .gs-ex-today) .gs-lede { color: var(--gs-espuma); }
.gs-ink-dark { color: var(--gs-mar); }
.gs-ink-dark .gs-title, .gs-ink-dark .gs-lede { color: var(--gs-mar); }
body.gs :is(.gs-ex-hero, .gs-ex-roots, .gs-ink-light, .gs-ex-archive, .gs-ex-today, .gs-rail, .gs-lightbox) :focus-visible { outline-color: var(--gs-espuma); }
body.gs .gs-ink-dark :focus-visible, body.gs .gs-person :focus-visible, body.gs .gs-ex-door:focus-visible { outline-color: var(--gs-mar); }

/* ================= THE HERO (protected) =================
   Without the script, or with less motion asked for, the three phrases and the index simply stand
   one under the other. html.gs-ex-anim (set in <head>) turns on the track and the cross-over. */
.gs-ex-hero .gs-cta { background: var(--gs-acento-inv); color: var(--gs-acento-inv-tinta); }
body.gs .gs-ex-hero.gs-hero { position: relative; display: block; padding: 0; background-color: #050C11; color: var(--gs-espuma); min-height: 0; }
.gs-ex-frame {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100svh;
  padding: clamp(1rem, 2.2vw, 1.75rem) var(--gs-gutter) clamp(1rem, 3vh, 2rem);
}
.gs-ex-frame .gs-nav { margin-bottom: 0; }
.gs-ex-stage { display: grid; align-content: center; gap: clamp(1.5rem, 4vh, 2.75rem); width: 100%; padding-block: var(--gs-s-6); }
/* the three phrases share one place: the deck is as tall as the tallest of them, in every language */
.gs-ex-deck { display: grid; gap: var(--gs-s-4); }
.gs-ex-phrase { max-width: 16ch; color: var(--gs-espuma); }
.gs-ex-index { display: grid; gap: var(--gs-s-4); }
.gs-ex-index-line { margin: 0; max-width: 44ch; font: 500 var(--gs-fs-sub)/1.35 var(--gs-f-text); }
.gs-ex-chapters { display: flex; flex-wrap: wrap; gap: 0 clamp(1.25rem, 3vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.gs-ex-chapters a {
  display: inline-flex; align-items: baseline; gap: .55em; min-height: 2.75rem; padding-block: .6rem; color: inherit; text-decoration: none;
  font: 700 var(--gs-fs-ui)/1 var(--gs-f-display); letter-spacing: .08em; text-transform: uppercase;
}
.gs-ex-chapters a span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .35em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.gs-ex-chapters a:hover span { text-decoration-color: currentColor; }
.gs-ex-cue { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: 0; font: 700 var(--gs-fs-caption)/1 var(--gs-f-display); letter-spacing: .24em; text-transform: uppercase; }
.gs-ex-thread { width: 3.4rem; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

html.gs-ex-anim .gs-ex-hero { height: 200vh; height: 200svh; }
html.gs-ex-anim .gs-ex-frame { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; overflow: hidden; }
html.gs-ex-anim .gs-ex-deck { gap: 0; }
html.gs-ex-anim .gs-ex-phrase { grid-area: 1 / 1; }
html.gs-ex-anim .gs-ex-phrase:not(:first-child), html.gs-ex-anim .gs-ex-index { opacity: 0; }
html.gs-ex-anim .gs-ex-index { visibility: hidden; }

/* ================= THE CHAPTERS, ON A DESKTOP =================
   A small Mar plate on the right: it carries its own ground, so it reads on any hour of the sky. The
   numbers stay; a chapter's name shows beside its number on hover and focus. */
.gs-rail { display: none; }
@media (min-width: 64.01rem) {
  .gs-rail {
    position: fixed; z-index: 40; right: var(--gs-s-3); top: 50%; translate: 0 -50%; display: grid; justify-items: end;
    padding: var(--gs-s-2) var(--gs-s-1); border-radius: var(--gs-r-card); background: var(--gs-mar); background: rgb(13 60 68 / .9); color: var(--gs-espuma);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s;
  }
  .gs-rail.is-on { opacity: 1; visibility: visible; transition: opacity .25s ease; }
  .gs-rail ol { display: grid; margin: 0; padding: 0; list-style: none; }
  .gs-rail a { position: relative; display: grid; place-items: center; width: 2.75rem; min-height: 2.75rem; color: inherit; text-decoration: none; }
  .gs-rail-dot { width: .7rem; height: .7rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
  .gs-rail a[aria-current="true"] .gs-rail-dot { background: var(--gs-acento-inv); box-shadow: none; }
  .gs-rail-name, .gs-rail-top > span {
    position: absolute; right: calc(100% + var(--gs-s-2)); top: 50%; translate: 0 -50%; display: none; padding: .45rem .8rem .35rem; border-radius: var(--gs-r-sm);
    background: var(--gs-mar); color: var(--gs-espuma); white-space: nowrap; font: 700 var(--gs-fs-tag)/1 var(--gs-f-display); letter-spacing: .08em; text-transform: uppercase;
  }
  .gs-rail a:hover .gs-rail-name, .gs-rail a:focus-visible .gs-rail-name, .gs-rail-top:hover > span, .gs-rail-top:focus-visible > span { display: block; }
  .gs-rail-top svg { width: .8rem; height: .6rem; }
}

/* ================= THE BANDS =================
   Every band opens like every band of the site: .gs-head-split — the title, and the sentence beside it. */
.gs-ex-stories { padding-bottom: var(--gs-s-6); }
.gs-ex-archive { padding-bottom: var(--gs-s-8); }
/* every caption: the system's caption, upright (main.css slants and greys every figcaption) */
.gs-ex-roots figcaption, .gs-feature figcaption, .gs-person-sheet figcaption {
  margin: var(--gs-s-2) 0 0; padding: 0; font: 400 var(--gs-fs-caption)/1.4 var(--gs-f-text); font-style: normal; color: inherit; text-align: left;
}

/* ---- 1. the four generations: the line of time on the left, one model on the right ---- */
.gs-gens { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0 clamp(2rem, 4vw, 4rem); align-items: start; }
.gs-thread { position: sticky; top: calc(var(--gs-bar-h) + clamp(1.5rem, 6vh, 3.5rem)); }
.gs-thread ol { position: relative; display: grid; gap: var(--gs-s-5); margin: 0; padding: 0 0 0 1.5rem; list-style: none; }
.gs-thread ol::before { content: ""; position: absolute; left: .3rem; top: .4rem; bottom: .4rem; width: 2px; border-radius: 1px; background: color-mix(in srgb, var(--gs-agua) 45%, transparent); }
.gs-thread a { position: relative; display: grid; gap: .3rem; color: inherit; text-decoration: none; }
.gs-thread a::before { content: ""; position: absolute; left: calc(-1.5rem + .3rem - .35rem + 1px); top: .3rem; width: .7rem; height: .7rem; border-radius: 50%; background: #0D1B30; box-shadow: inset 0 0 0 2px var(--gs-agua); }
.gs-thread a[aria-current="true"]::before { background: var(--gs-agua); }
.gs-thread-n { color: var(--gs-agua); font: 700 var(--gs-fs-label)/1 var(--gs-f-display); letter-spacing: .08em; }
.gs-thread-when { font: 700 var(--gs-fs-tag)/1.2 var(--gs-f-display); letter-spacing: .07em; text-transform: uppercase; }
.gs-thread-t { color: var(--gs-areia); font: 900 var(--gs-fs-heading)/.95 var(--gs-f-display); text-transform: uppercase; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
/* the stops not in sight are quieter (still well over 3:1: they are large); their numbers and dates never are (they are small) */
.gs-thread-t { opacity: .55; transition: opacity .2s ease; }
.gs-thread a:hover .gs-thread-t, .gs-thread a[aria-current="true"] .gs-thread-t { opacity: 1; }
.gs-gens-list { display: grid; gap: clamp(4rem, 10vh, 7rem); }
.gs-gen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head head" "big body"; gap: var(--gs-s-5) clamp(1.25rem, 2.6vw, 2.25rem); align-items: start; }
.gs-gen-head { grid-area: head; display: grid; gap: var(--gs-s-3); }
.gs-gen-when { display: flex; align-items: center; gap: var(--gs-s-3); margin: 0; }
.gs-gen-n { color: var(--gs-agua); font: 900 var(--gs-fs-figure-sm)/.8 var(--gs-f-display); }
.gs-gen-title { margin: 0; font: 900 var(--gs-fs-title-sm)/.9 var(--gs-f-display); text-transform: uppercase; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; min-width: 0; }
.gs-gen-essence { margin: 0; max-width: 44ch; font: 500 var(--gs-fs-sub-lg)/1.3 var(--gs-f-text); }
.gs-gen-big { grid-area: big; margin: 0; }
.gs-gen-big a, .gs-feature a.gs-lb, .gs-person-sheet a.gs-lb { display: block; border-radius: var(--gs-r-card); overflow: hidden; background: var(--gs-mar-2); }
.gs-gen-big img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.gs-gen-body { grid-area: body; display: grid; gap: var(--gs-s-4); align-content: start; }
.gs-gen-body > p { margin: 0; max-width: 46ch; }
.gs-gen .gs-tags { margin: 0; }
.gs-gen-go { justify-self: start; color: inherit; }

/* a photograph that opens full screen: a quiet cue, never a veil */
.gs-lb { position: relative; cursor: zoom-in; }
.gs-lb img { transition: transform .25s ease; }
@media (hover: hover) and (pointer: fine) { .gs-lb:hover img { transform: scale(1.025); } }

/* ---- 2. a story: the FEATURE band (after niko.jpg) ----
   The name, very large; under it — never over it (owner, 2026-10-17) — the large photograph beside the text, the
   facts in large figures; the small photographs with their captions. The same parts in the same places, five times. */
.gs-feature { --gs-fn: clamp(4rem, 13.5vw, 13rem); }
.gs-feature-name {
  margin: 0 0 clamp(var(--gs-s-5), 3vw, var(--gs-s-7)); font: 900 var(--gs-fn)/.8 var(--gs-f-display); letter-spacing: -.01em; text-transform: uppercase;
  overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto;
}
.gs-ink-dark .gs-feature-name { color: var(--gs-mar); }
.gs-ink-light .gs-feature-name { color: var(--gs-areia); }
.gs-feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gs-s-5) clamp(2rem, 5vw, 4.5rem); align-items: start; }
.gs-feature-photo { margin: 0; }
.gs-feature-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.gs-feature-body { display: grid; gap: var(--gs-s-5); align-content: start; }
/* a story with no photograph yet (the judge): the words alone, under the name */
.gs-feature-words { grid-template-columns: minmax(0, 1fr); }
.gs-feature-body > p { margin: 0; max-width: 52ch; }
.gs-feature-lede { margin: 0; max-width: 40ch; font: 500 var(--gs-fs-sub-lg)/1.3 var(--gs-f-text); }
.gs-feature-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--gs-s-5) var(--gs-s-5); margin: 0; }
.gs-feature-facts div { display: grid; gap: var(--gs-s-2); align-content: start; padding-top: var(--gs-s-3); border-top: 2px solid currentColor; }
.gs-feature-facts dt { font: 900 var(--gs-fs-figure)/.85 var(--gs-f-display); text-transform: uppercase; }
/* a title won: the trophy stands where a figure would, as tall as the figures beside it */
.gs-feature-facts dt .gs-trophy { display: block; width: auto; height: .85em; }
.gs-feature-facts dd { margin: 0; font-size: var(--gs-fs-small); line-height: 1.4; }
.gs-feature-smalls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gs-s-5) var(--gs-s-4); margin-top: var(--gs-s-7); }
.gs-feature-small { margin: 0; min-width: 0; }
.gs-feature-small img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }

/* ---- 3. the archive: one strip, to the edges of the screen ---- */
.gs-archive-wrap { position: relative; }
.gs-arch {
  display: flex; gap: var(--gs-s-3); margin: 0; padding: 0 var(--gs-gutter); list-style: none; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gs-gutter); scrollbar-width: none;
}
.gs-arch::-webkit-scrollbar { display: none; }
.gs-arch li { flex: none; scroll-snap-align: start; }
.gs-arch a { display: block; border-radius: var(--gs-r-card); overflow: hidden; background: var(--gs-mar-2); }
.gs-arch img { display: block; height: min(40svh, 17rem); width: auto; aspect-ratio: var(--gs-ar); object-fit: cover; }
body.gs .gs-ex-archive .gal-dots { margin-top: var(--gs-s-3); color: var(--gs-espuma); }
.gs-explore .gs-arrow { position: absolute; top: calc(50% - 1.5rem); z-index: 2; display: none; place-content: center; width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 50%; background: var(--gs-espuma); color: var(--gs-rocha); box-shadow: var(--gs-sombra); cursor: pointer; }
.gs-explore .gs-arrow::before { content: ""; width: .65rem; height: .65rem; margin-left: .3rem; border: solid currentColor; border-width: 0 0 2.5px 2.5px; rotate: 45deg; }
.gs-explore .gs-arrow-next::before { margin: 0 .3rem 0 0; rotate: -135deg; }
.gs-explore .gs-arrow-prev { left: var(--gs-gutter); }
.gs-explore .gs-arrow-next { right: var(--gs-gutter); }
@media (hover: hover) and (pointer: fine) { .gs-explore .gs-arrow { display: grid; } }
/* on a desktop the plate of chapters stands at the right edge: the strip's arrow stays clear of it */
@media (min-width: 64.01rem) { .gs-explore .gs-arrow-next { right: calc(var(--gs-gutter) + 3.25rem); } }

/* ---- 4. the club today: three people on cards of their own ground, and the two ways in ---- */
.gs-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gs-s-5); }
.gs-person { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--gs-s-3); align-content: start; padding: 0 0 var(--gs-s-4); border-radius: var(--gs-r-card); overflow: hidden; background: var(--gs-espuma); color: var(--gs-rocha); }
.gs-person > :not(.gs-person-photo) { margin-inline: var(--gs-s-5); }
.gs-person-photo { margin: 0; }
.gs-person-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.gs-person .gs-heading { margin-top: var(--gs-s-2); }
.gs-person .gs-tag { justify-self: start; }
.gs-person-facts { display: grid; gap: var(--gs-s-3); margin-block: 0; }
.gs-person-facts dt { font: 400 var(--gs-fs-caption)/1.2 var(--gs-f-text); color: var(--gs-rocha-2); }
.gs-person-facts dd { margin: .2rem 0 0; font-size: var(--gs-fs-small); line-height: 1.4; }
.gs-person-more { justify-self: start; padding: 0; border: 0; background: none; color: var(--gs-mar); cursor: pointer; }
.gs-person-sheet .gs-sheet-body { display: grid; gap: var(--gs-s-4); }
.gs-person-sheet .gs-sheet-body > p { margin: 0; }
.gs-person-sheet .gs-tag { justify-self: start; }
.gs-person-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gs-s-3); }
.gs-person-pic { margin: 0; }
.gs-person-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.gs-ex-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gs-s-5); margin-top: var(--gs-s-7); }
.gs-ex-door { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--gs-s-3); padding: var(--gs-s-5); border-radius: var(--gs-r-card); background: var(--gs-espuma); color: var(--gs-mar); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) { .gs-ex-door:hover { transform: translateY(-3px); box-shadow: var(--gs-sombra); } }
.gs-ex-also { display: flex; flex-wrap: wrap; gap: 0 var(--gs-s-5); }

.gs-ex-exit { margin: var(--gs-s-7) 0 0; }
.gs-ex-exit .gs-link { flex-wrap: wrap; color: inherit; }

/* ================= THE DAWN ================= */
.gs-ex-dawn { position: relative; height: clamp(24rem, 78vh, 46rem); }
.gs-ex-dusk { height: clamp(16rem, 55vh, 32rem); }
.gs-dawn-art { position: absolute; left: 0; right: 0; top: 30%; width: 100%; height: 40%; }   /* cut at the sides on a narrow screen, never shrunk */
.gs-dawn-line { fill: none; stroke: var(--gs-mar); stroke-opacity: .5; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gs-dawn-thin { stroke-opacity: .3; stroke-width: 1.5; }

/* ================= THE BAR AND THE CHAPTERS SHEET ================= */
.gs-bar-chapters, .gs-bar-wa { display: none; }
.gs-bar-wa { 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; }
.gs-bar-wa svg { width: 1.3rem; height: 1.3rem; }
@media (max-width: 64rem) {
  .gs-explore .gs-bar-chapters {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: .2em 1.1em 0; border: 0; border-radius: var(--gs-r-ctl);
    background: var(--gs-acento-inv); color: var(--gs-acento-inv-tinta); font: 800 var(--gs-fs-label)/1 var(--gs-f-display); letter-spacing: .07em; text-transform: uppercase; cursor: pointer;
  }
}
@media (max-width: 44rem) {
  .gs-explore .gs-bar .gs-cta { display: none; }
  .gs-explore .gs-bar-wa { display: grid; }
  .gs-explore .gs-bar .gs-nav-tools { gap: var(--gs-s-2); }
  .gs-explore .gs-bar-chapters { margin-right: auto; }
}
.gs-chapters .gs-ex-chapters { display: grid; gap: 0; }
.gs-chapters .gs-ex-chapters a { width: 100%; min-height: 3.5rem; font: 900 var(--gs-fs-heading)/1 var(--gs-f-display); color: var(--gs-rocha); border-bottom: 1px solid var(--gs-linha); }
.gs-chapters .gs-gens-n { color: var(--gs-rocha-2); }
.gs-chapters .gs-ex-chapters a span { text-decoration: none; }

/* ================= A PHOTOGRAPH, FULL SCREEN ================= */
.gs-lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(5 12 17 / .97); color: var(--gs-espuma); overflow: hidden;
}
.gs-lightbox::backdrop { background: rgb(5 12 17 / .9); }
/* a sideways swipe belongs to the photographs, not to the page: without this the browser takes it as a scroll and cancels it */
.gs-lightbox, .gs-lightbox * { touch-action: pan-y; }
.gs-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.gs-lb-count { grid-row: 1; margin: 0; padding: var(--gs-s-4) var(--gs-gutter); font: 700 var(--gs-fs-label)/2.75rem var(--gs-f-display); letter-spacing: .08em; }
.gs-lb-close { position: absolute; top: var(--gs-s-3); right: var(--gs-gutter); display: inline-flex; color: var(--gs-espuma); }
.gs-lb-fig { grid-row: 2; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--gs-s-3); margin: 0; padding: 0 clamp(1rem, 6vw, 6rem) var(--gs-s-5); min-height: 0; }
.gs-lb-fig img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gs-lb-fig figcaption { justify-self: center; max-width: 60ch; text-align: center; font-size: var(--gs-fs-small); line-height: 1.45; }
.gs-lb-btn {
  position: absolute; top: 50%; translate: 0 -50%; display: grid; place-content: center; width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 50%;
  background: var(--gs-espuma); color: var(--gs-rocha); cursor: pointer;
}
.gs-lb-btn::before { content: ""; width: .65rem; height: .65rem; margin-left: .3rem; border: solid currentColor; border-width: 0 0 2.5px 2.5px; rotate: 45deg; }
.gs-lb-next::before { margin: 0 .3rem 0 0; rotate: -135deg; }
.gs-lb-prev { left: var(--gs-s-3); }
.gs-lb-next { right: var(--gs-s-3); }
.gs-lb-btn[hidden] { display: none; }
html.gs-lb-open { overflow: hidden; }

/* ================= SMALLER SCREENS =================
   Below a desktop the line of time is no longer held on the left: each generation keeps its own number,
   label and line, and a thin vertical line runs down beside the four, so the reader still walks 01 → 04. */
@media (max-width: 64rem) {
  .gs-gens { grid-template-columns: minmax(0, 1fr); }
  .gs-thread { display: none; }
  .gs-gens-list { position: relative; padding-left: 1.5rem; }
  .gs-gens-list::before { content: ""; position: absolute; left: .3rem; top: .4rem; bottom: 0; width: 2px; border-radius: 1px; background: color-mix(in srgb, var(--gs-agua) 45%, transparent); }
  .gs-gen-when::before { content: ""; position: absolute; left: calc(.3rem - .35rem + 1px); width: .7rem; height: .7rem; border-radius: 50%; background: var(--gs-agua); }
  .gs-feature-smalls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the three people: a strip that shows it slides (the next card peeks) */
  .gs-people { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(78%, 22rem); overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gs-gutter)); padding-inline: var(--gs-gutter); scroll-padding-inline: var(--gs-gutter); scrollbar-width: none; }
  .gs-people::-webkit-scrollbar { display: none; }
  .gs-people > * { scroll-snap-align: start; }
  body.gs .gs-ex-today .gal-dots { margin-top: var(--gs-s-3); color: var(--gs-espuma); }
}
@media (max-width: 44rem) {
  .gs-ex-frame { padding-inline: var(--gs-s-3); }
  .gs-gen { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "big" "body"; }
  .gs-feature-grid { grid-template-columns: minmax(0, 1fr); }
  /* the small photographs, each with its caption beside it: nothing too small to read */
  .gs-feature-smalls { grid-template-columns: minmax(0, 1fr); gap: var(--gs-s-3); margin-top: var(--gs-s-6); }
  .gs-feature-small { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--gs-s-3); align-items: start; }
  .gs-feature-small figcaption { margin: 0; }
  .gs-ex-doors { grid-template-columns: minmax(0, 1fr); }
  .gs-arch img { height: 11rem; }
  .gs-lb-btn { top: auto; bottom: var(--gs-s-4); translate: none; }
  .gs-lb-fig { padding-bottom: 5rem; }
  .gs-ex-dawn { height: clamp(20rem, 62vh, 30rem); }
  .gs-ex-dusk { height: clamp(12rem, 40vh, 20rem); }
  .gs-dawn-art { top: 36%; height: 30%; }
}

@media (prefers-reduced-motion: reduce) {
  .gs-thread-t, .gs-lb img, .gs-rail { transition: none; }
}
