/* Iceland Aurora (PLAN §50, the owner 10 Nov): the template (/finland/) with two parts of the ChatGPT draft
   (iceland-aurora.kornwisa-ly.chatgpt.site) — day and night side by side in the hero, and where to wait for the light. */

/* ── Day and night side by side ─────────────────────────────────────── */
.hero-split{display:grid;grid-template-columns:57% 1fr;gap:2px;background:#dce5d6;inset:0}
.split-panel{position:relative;isolation:isolate;overflow:hidden;background:#15212a}
.split-panel>img,.split-panel>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.split-night-video{opacity:0;transition:opacity .9s ease}
.split-night-video.is-playing{opacity:1}
.split-panel::after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,#07131b8c,transparent 30%);pointer-events:none}
.split-label{position:absolute;z-index:2;left:clamp(20px,3vw,48px);top:clamp(96px,13vh,128px);margin:0;color:#fff;text-shadow:0 1px 10px #05111f;line-height:1.4}
.split-label span,.split-label strong{display:block}
.split-label span{font-size:12px;font-weight:600;letter-spacing:.17em}
.split-label strong{margin-top:3px;font-weight:500;font-size:clamp(15px,1.35vw,21px)}
.split-night .split-label strong{font:italic 400 clamp(23px,2.2vw,34px)/1.15 Georgia,serif}
/* The words sit low on the left over both films: each panel darkens its own foot (and the day panel its left), under the
   labels, so the labels stay bright; the template's shade is not drawn. */
.programme-page .hero.has-split .hero-shade{display:none}
.split-day::after{background:linear-gradient(180deg,#07131b8c,transparent 26%),linear-gradient(0deg,#080c0ef2,#080c0ea6 36%,transparent 68%),linear-gradient(90deg,#080c0eb3,transparent 75%)}
.split-night::after{background:linear-gradient(180deg,#07131b8c,transparent 26%),linear-gradient(0deg,#080c0ef2,#080c0e8c 34%,transparent 64%)}
.programme-page .hero.has-split{align-items:flex-end}

@media(max-width:760px){
  /* On a phone the two films are a band at the top and the words under it, as in the draft. */
  .programme-page .hero.has-split{min-height:0;display:block;padding:0 0 40px}
  .hero-split{position:relative;inset:auto;height:clamp(240px,44svh,360px);grid-template-columns:51% 1fr;will-change:auto;transform:none!important}
  .split-label{top:auto;bottom:14px;left:13px;right:8px}
  .split-label span{font-size:10px;letter-spacing:.12em}
  .split-label strong{font-size:14px}
  .split-night .split-label strong{font-size:21px}
  .split-day::after,.split-night::after{background:linear-gradient(0deg,#07131bb3,transparent 45%)}
  .programme-page .hero.has-split .hero-copy{padding:26px 6% 0}
}

/* ── Where to wait for the light ─────────────────────────────────────── */
.skyroom{background:#e9eadf;color:#21352e;padding:clamp(64px,7vw,112px) 4%}
.skyroom-wrap{width:min(1240px,100%);margin:auto}
.skyroom-mark{display:flex;align-items:center;gap:12px;margin:0;color:#52715c;font-size:11px;font-weight:600;letter-spacing:.16em}
.skyroom-mark i{width:30px;height:1px;background:currentColor}
.skyroom-head{display:grid;grid-template-columns:1.45fr 1fr;gap:50px;align-items:end;margin:24px 0 29px}
.skyroom-eyebrow{margin:0 0 8px;font-size:14px;color:#536b60}
.skyroom h2{margin:0;font-size:clamp(34px,4.2vw,58px);line-height:1.18;font-weight:500;letter-spacing:-.02em;color:#21352e}
.skyroom h2 span{display:block;color:#5e7766}
.skyroom-text{margin:0;max-width:460px;justify-self:end;color:#4b5b54;font-size:16px;line-height:1.85}
.skyroom-map{display:grid;grid-template-columns:1.6fr 1fr;min-height:340px;box-shadow:0 5px 18px #12311a12}
.skyroom-atlas{position:relative;isolation:isolate;min-height:340px;background:#203f4d url(cloud-map.svg) center/100% 100% no-repeat;color:#ecf1e8;overflow:hidden}
.atlas-title,.atlas-key{position:absolute;left:5%;right:5%;display:flex;align-items:center;margin:0}
.atlas-title{top:6%;justify-content:space-between;font:500 10px/1.45 ui-monospace,"Courier New",monospace;letter-spacing:.12em;text-shadow:0 0 6px #152d35}
.atlas-title small{font:11px Prompt,sans-serif;letter-spacing:0}
.atlas-key{bottom:5%;gap:15px;font-size:11px;line-height:1.4;text-shadow:0 1px 3px #112a2d}
.atlas-key span{display:inline-flex;gap:5px;align-items:center}
.atlas-key span:last-child{margin-left:auto}
.atlas-key i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#bbc3d5}
.atlas-key span:nth-child(2) i{background:#eeb774}
.atlas-pin{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;padding:0;border-radius:50%;border:1px solid #e6eedf;background:#152f3cdc;box-shadow:0 0 0 5px #bcd2c020;font:600 18px Prompt,sans-serif;color:#fff;cursor:pointer}
.pin-a{left:19%;top:66%}
.pin-b{left:52%;top:45%}
.pin-c{left:79%;top:32%}
.atlas-pin[aria-pressed=true]{background:#d8eed5;color:#14372d;box-shadow:0 0 0 7px #c3ebce3b}
.skyroom-report{display:flex;flex-direction:column;justify-content:center;padding:clamp(20px,3.2vw,54px);background:#f5f3e8}
.skyroom-kicker{margin:0;color:#5c7367;font:500 10px/1.45 ui-monospace,"Courier New",monospace;letter-spacing:.12em}
.skyroom-report h3{margin:4px 0 12px;font-weight:500;font-size:clamp(24px,2.4vw,34px);line-height:1.3;color:#21352e}
.spot-options{display:flex;flex-wrap:wrap;gap:6px}
.spot-options button{min-height:40px;padding:6px 12px;font:14px Prompt,sans-serif;color:#21352e;background:#e8ebdf;border:1px solid #adbcaf;border-radius:2px;cursor:pointer}
.spot-options b{font-weight:600}
.spot-options button[aria-pressed=true]{background:#253e35;color:#f1f3e9}
.spot-readings{margin-top:15px;padding-top:14px;border-top:1px solid #b5c1b6}
.spot-reading+.spot-reading{margin-top:12px}
.spot-reading strong{display:block;font-weight:500;font-size:17px;line-height:1.5}
.spot-reading p{margin:3px 0 0;font-size:14px;line-height:1.72;color:#485b51}
/* With the script: the question until a place is picked, then that place alone. */
.skyroom.is-live .spot-reading{display:none}
.skyroom.is-live .spot-reading.is-shown{display:block;margin-top:0}
.skyroom.is-live .spot-readings{min-height:96px}
.skyroom-source{align-self:flex-start;margin-top:11px;color:#3b5f50!important;font-size:13px;text-decoration:underline!important;text-underline-offset:3px}
.skyroom .atlas-pin:focus-visible,.skyroom .spot-options button:focus-visible,.skyroom .skyroom-source:focus-visible{outline:3px solid #253e35;outline-offset:3px}

@media(max-width:1100px){
  .skyroom-head{gap:22px}
  .skyroom-map{grid-template-columns:1.25fr 1fr}
  .skyroom-report{padding:22px}
}
@media(max-width:760px){
  .skyroom{padding:51px 6%}
  .skyroom-head{display:block;margin:16px 0 20px}
  .skyroom h2{font-size:clamp(29px,8.3vw,43px)}
  .skyroom-text{margin-top:12px;font-size:15px}
  .skyroom-map{grid-template-columns:1fr}
  .skyroom-atlas{min-height:235px}
  .atlas-title small,.atlas-key{font-size:10px}
  .pin-b{top:42%}
  .skyroom-report{padding:17px 17px 20px}
  .skyroom-report h3{margin:2px 0 8px}
}

/* ── WHY MEMORYLANE? as the draft's photo wall (PLAN §58) ───────────────
   The owner, 18 Nov, over the draft's "ทำไมเราถึงกลับมาไอซ์แลนด์อีก?": "ข้อความมันเยอะ ratio รูปมันน่าจะเยอะกว่า".
   As the draft draws it: the clip a tall tile on the left as high as both rows, the rows of landscape photos (1.2 : 1) with
   a short line on each photo's foot, and the section's sentence under the heading (programme-page.mjs careSection) instead
   of a tile. The rows still move and drag as programme.js has them; only their sizes change. */
.programme-page .care{
  --care-row:clamp(145px,12.6vw,219px);
  --care-gap:clamp(7px,.65vw,11px);
  --care-card:calc(var(--care-row) * 1.2);
  --care-wall:calc(var(--care-row) * 2 + var(--care-gap));
  --care-clip:clamp(206px,calc(var(--care-wrap) * .21),285px);
  grid-template-columns:var(--care-clip) minmax(0,1fr);
  grid-template-areas:'head head' 'film cards' 'foot foot';
}
.programme-page .care.no-film{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'cards' 'foot'}
.programme-page .care-head{max-width:none;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);grid-template-areas:'eyebrow intro' 'title intro';column-gap:clamp(24px,3vw,48px);align-items:end;margin-bottom:clamp(8px,1.6vw,30px)}
.programme-page .care-head .eyebrow{grid-area:eyebrow}
.programme-page .care-head h2{grid-area:title;margin:0;font-size:clamp(2rem,3.6vw,3.4rem);line-height:1.25;letter-spacing:-.02em}
.programme-page .care-intro{grid-area:intro;align-self:end;margin:0;max-width:34rem;font-size:clamp(15px,1.13vw,18px);line-height:1.8;color:var(--muted)}
/* The clip: a fifth of the width, as the draft's, and exactly as high as the two rows beside it (the film covers the tile). */
.programme-page .care .care-film{width:100%;align-self:start}
.programme-page .care .trip-player,.programme-page .care .trip-slide{border-radius:4px}
.programme-page .care .trip-player{aspect-ratio:auto;height:var(--care-wall)}
/* The rows: a row is one photo high, fading out on the right only, as the draft's wall does. */
.programme-page .care-cards{gap:var(--care-gap)}
.programme-page .care-row{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - var(--care-fade)),#0000);mask-image:linear-gradient(90deg,#000 calc(100% - var(--care-fade)),#0000)}
.programme-page .care-card{flex-basis:var(--care-card);width:var(--care-card);height:var(--care-row);aspect-ratio:auto;border-radius:4px}
/* A photo's line is its caption (caption_title), which shows whatever the site hides of card_title's words. */
.programme-page .care .journey-photo::after{display:none}
.programme-page .care .journey-caption{position:absolute;inset:auto 0 0;z-index:2;padding:34px 12px 10px;background:linear-gradient(0deg,#04121cda,#04121c00);color:#fff;pointer-events:none}
.programme-page .care .journey-caption h3{margin:0;font-size:clamp(13px,1.02vw,17px);font-weight:500;line-height:1.32;letter-spacing:0;color:#fff;text-shadow:0 1px 7px #11202d77}
.programme-page .care .journey-caption p{margin:2px 0 0;font-size:12px;line-height:1.45;color:#dce7df}
.programme-page .care .journey-caption small{display:none}
.programme-page .care-card-cta{padding:12px}
/* A words card (card_chapter · card_title · card_text, /egypt/'s kind) is a row high too: two photos wide, small type, and
   what still does not fit scrolls inside it rather than being cut (Codex, 19 Nov). */
.programme-page .care-card.journey-words{flex-basis:calc(var(--care-card) * 2 + var(--care-gap));width:calc(var(--care-card) * 2 + var(--care-gap));display:flex;flex-direction:column;gap:4px;padding:12px 14px;overflow-y:auto;background:linear-gradient(160deg,#1d3a38,#0e1b1e)}
.programme-page .care-card.journey-words>*{margin:0}
/* Low in the card as the others' words are, by an auto margin rather than flex-end, so a card that overflows starts at its top. */
.programme-page .care-card.journey-words>:first-child{margin-top:auto}
.programme-page .care-card.journey-words .journey-chapter{font-size:11px;letter-spacing:.12em;color:var(--mint)}
.programme-page .care-card.journey-words h3{font-size:clamp(14px,1.1vw,18px);line-height:1.35;font-weight:500}
.programme-page .care-card.journey-words p{font-size:12px;line-height:1.5;color:var(--muted)}

@media(max-width:56rem){
  /* A phone keeps the wall's shape, as the draft does: the clip a third of the width on the left, two rows beside it. */
  .programme-page .care{--care-row:clamp(108px,28.2vw,150px);--care-card:calc(var(--care-row) * 1.13);--care-gap:7px;grid-template-columns:36% minmax(0,1fr);grid-template-areas:'head head' 'film cards' 'foot foot'}
  .programme-page .care.no-film{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'cards' 'foot'}
  .programme-page .care .care-film{width:100%;justify-self:stretch}
  .programme-page .care-head{display:block}
  .programme-page .care-head h2{font-size:clamp(1.75rem,7.6vw,2.6rem)}
  .programme-page .care-intro{margin-top:12px;font-size:15px;line-height:1.7}
  .programme-page .care .journey-caption{padding:26px 7px 7px}
  .programme-page .care .journey-caption h3{font-size:12px}
  .programme-page .care .journey-caption p{display:none}
  .programme-page .care-row{--care-fade:28px}
  .programme-page .care-card.journey-words{gap:2px;padding:8px 10px}
  .programme-page .care-card.journey-words .journey-chapter{font-size:9px}
  .programme-page .care-card.journey-words h3{font-size:12px;line-height:1.3}
  .programme-page .care-card.journey-words p{font-size:10.5px;line-height:1.4}
}
@media(prefers-reduced-motion:reduce){
  /* Nothing moves, so the rows wrap and every photo is on the page at once (Codex, 19 Nov: 10 of 13 were out of reach). */
  .programme-page .care-row{-webkit-mask-image:none;mask-image:none}
  .programme-page .care-track{width:auto}
  .programme-page .care-set{flex-wrap:wrap}
}
