/* /egypt/ from the sheet (PLAN §33): the owner's own look, from the kept page's content-fit.css and journey-captions.css.
   Rules for parts the page no longer has (the earlier hotel layouts, the previous carousel) are left out; the kept page's
   class names point at the template's (.approved-gallery → .moments-slide · .approved-care → .care-cards ·
   .egypt-care → .care · .grand-country → .hero-copy .country). The fixes the generated markup needs are at the end. */
body.programme-page{--bg:#100e0e;--ink:#fffaf7;--mint:#ffad94;--mint-2:#ffc9b7;--soft:#e5d4ce;--deep:#291b18;--card:#1b1513;--line:#ffad9444;--autumn:#c63602;--autumn-end:#ff6554}
.programme-page .hero-shade{background:linear-gradient(90deg,#100e0edb,#100e0e75 44%,#100e0e0a),linear-gradient(0deg,#100e0e,transparent 32%),linear-gradient(180deg,#100e0ea0,#100e0e00 24%)}
html.nav-solid .programme-header{background:#1b1513c9}
.programme-page .dates::before{background:linear-gradient(180deg,#100e0e,#ffffff00)}
.programme-page .moments-frame{border-bottom:0}
.programme-page .activity-caption small{display:block;font-size:.7rem;font-weight:400;letter-spacing:.025em;opacity:.8}
.programme-page .moments-score-note{color:var(--soft)}
.programme-page .care-card.is-plain{background:linear-gradient(160deg,#39231d,#1b1513)}
.programme-page .care-card.is-words{background:linear-gradient(160deg,#4a2b22,#1b1513)}
.programme-page .pair-card{border-color:#443029;background:linear-gradient(180deg,#251b18,#16110f)}
.programme-page .route-list li,.programme-page .close,.programme-page .close .faq,.programme-page .programme-footer{border-color:var(--line)}
.programme-page .care-foot .text-link{border-bottom-color:var(--mint)}
.programme-page .departure-status{background:#fff0e9;color:#873017;border-color:#edb39e}
.programme-page .dates{--mint:#a92e0a;--mint-2:#c63602}
.programme-page .dates .eyebrow,.programme-page .dates .price small:first-child{color:#a92e0a}
.programme-page .departure:hover{background:#fff0e9}
.programme-page .departure.is-selected{box-shadow:inset 3px 0 0 #c63602}
.programme-page .dates .button{color:#fff}
.programme-page .dates a:focus-visible,.programme-page .dates summary:focus-visible{outline-color:#a92e0a}
.programme-page .price .price-enquiry{font-size:clamp(1.75rem,3vw,2.8rem);line-height:1.5}
.moments-frame .trip-photo-date{position:absolute;bottom:.5rem;left:.5rem;right:auto;padding:.25rem .5rem;margin:0;background:#080c0ecc;color:#fff;font-size:.75rem;line-height:1.5}
.photo-credit a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.hero-copy .country{font-size:clamp(3rem,16vw,5.3rem)}}
.programme-page .hero::after{content:"";position:absolute;inset:auto 0 0;height:clamp(8px,1vw,14px);background:linear-gradient(90deg,#c63602,#ff6554);z-index:3;pointer-events:none}
.moments-scores .moment-score{font-size:.9rem;letter-spacing:.035em}
.moments-blurb strong{font-weight:500;color:var(--mint)}
.moments-frame .activity-caption{position:absolute;inset:auto 0 0;padding:1.5rem .75rem .65rem;background:linear-gradient(transparent,#080c0ed9);color:white;font-size:.8rem;line-height:1.5;letter-spacing:.04em}
.care-foot .stay-caption{color:var(--mint);font-weight:500}
.programme-page .hero-photo{object-position:58% center}
@media(max-width:760px){.programme-page .hero-photo{object-position:58% center}}
@media(max-width:760px){.programme-page .care .care-film{width:100%;max-width:100%}}
body.programme-page{--bg:#100f0d;--ink:#fffaf2;--mint:#e2cba3;--mint-2:#f1e4cd;--soft:#ded5c9;--card:#201c17;--line:#d9c4a144}
.programme-page .hero::after{background:#a8a8a8}
body[data-season=spring] .hero::after{background:#02c973}
.programme-page .hero-photo{object-position:center}
.programme-page .hero-shade{background:linear-gradient(90deg,#100f0ddd,#100f0d55 55%,transparent),linear-gradient(0deg,#100f0d,transparent 30%)}
.programme-page .dates{--mint:#574a37;--mint-2:#695435}
.programme-page .dates .eyebrow{color:#574a37}
.season-tag{border-bottom:3px solid #a8a8a8;padding-bottom:4px}
.season-tag.spring{border-color:#02c973}
.care-grid{display:grid;gap:24px;grid-template-columns:repeat(3,1fr)}
.care-grid article{padding:24px;background:var(--card);border-radius:12px}
.care-grid h3{font-size:1.15rem;line-height:1.6;margin-bottom:12px}
.care-grid p{font-size:1rem;line-height:1.8}
.care .care-film{background:var(--card);border-radius:12px}
.programme-page .activity-caption{font-size:.85rem}
@media(max-width:900px){.care-grid{grid-template-columns:1fr}.care .care-film{max-width:none;width:100%}}
.season-select{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.5rem}
.season-select a{font-size:.875rem;color:#fff;padding:.65rem .8rem;border:1px solid #ffffff88;border-radius:4px;text-decoration:none}
.season-select a:hover,.season-select a:focus-visible{background:#ffffff22}
.programme-page .hero-copy{max-width:850px}
.care .care-film{overflow:hidden}
.gallery-help{font-size:.875rem;color:var(--soft);margin:1.5rem 0}
.programme-page .moments-frame{border-bottom:0}
.care .care-copy{display:grid}
.programme-page .moments-slide::before{background:linear-gradient(180deg,var(--bg),transparent)}
.programme-page .moments-slide::after{background:linear-gradient(0deg,var(--bg),transparent)}
.programme-page .moments-frame>img{display:block;aspect-ratio:auto;height:auto}
.programme-page .hero-photo{object-position:50% center}
.programme-page .care-card>img{object-position:center}
.programme-page .care-card img[src$="62.webp"]{object-position:65% center}
.programme-page .care-card img[src$="94.webp"]{object-position:45% center}
.moments-slide{height:500px;min-height:500px!important}
.moments-slide .moments-track{gap:14px}
.programme-page .moments-slide .moments-frame>img{height:520px;width:100%;object-fit:cover}
.care-cards{--care-card:260px}
.care-cards .care-row{cursor:grab;touch-action:pan-y}
.care-cards .care-card-copy{padding:20px}
.care-cards .care-card-copy h3{font-size:18px}
.care-cards .care-card-copy p{font-size:16px}
.care-cards .care-card>img{object-fit:cover}
@media(max-width:760px){.moments-slide{height:400px;min-height:400px!important}.programme-page .moments-slide .moments-frame>img{height:420px}.care-cards{--care-card:56vw}}
@media(prefers-reduced-motion:reduce){.moments-slide{height:auto;min-height:0!important}.moments-slide .moments-column{position:static;width:100%}.moments-slide .moments-track{transform:none!important}.care-cards .care-row{overflow-x:auto}}
.programme-page .care-cards .care-card{flex:0 0 auto!important;width:calc(340px * var(--photo-ratio))!important;height:340px!important;aspect-ratio:auto!important}
.programme-page .care-cards .care-card>img{width:100%;height:100%;object-fit:cover}
.programme-page .hero-photo{object-position:50% 45%}
@media(max-width:760px){.programme-page .care-cards .care-card{width:calc(280px * var(--photo-ratio))!important;height:280px!important}}
.programme-page .hero{max-width:none;margin:0;min-height:100svh;display:flex;align-items:center}
.programme-page .hero-media{position:absolute;inset:-72px 0;width:100%;height:auto;aspect-ratio:auto;border-radius:0}
.programme-page .hero-video,.programme-page .hero-photo{object-fit:cover;object-position:center 45%}
.programme-page .hero-copy{width:min(1240px,100%);max-width:none;margin:auto;z-index:2}
.programme-page .hero-shade{display:block;background:linear-gradient(90deg,rgba(16,15,13,.91) 0%,rgba(16,15,13,.60) 38%,rgba(16,15,13,.16) 75%),linear-gradient(0deg,#100f0d 0%,rgba(16,15,13,0) 35%),linear-gradient(180deg,rgba(16,15,13,.55),transparent 25%)}
.programme-page .care .care-film{position:relative;margin:0;background:transparent;overflow:visible;padding-right:28px;box-sizing:border-box}
.programme-page .trip-player{overflow:visible}
.programme-page .trip-slide{background:#100f0d}
.programme-page .trip-slide.is-current{z-index:2;opacity:1;transform:none;filter:none}
/* The next clip behind the one playing (clip_peek) is /layouts/clips/peek.css (PLAN §54 · ADR 0009). */
.programme-page .trip-slide video{object-fit:contain}
.programme-page .trip-carousel-controls{top:.7rem;right:2.4rem}
@media(max-width:760px){.programme-page .hero-shade{background:linear-gradient(90deg,rgba(16,15,13,.74),rgba(16,15,13,.25)),linear-gradient(0deg,#100f0d,transparent 48%),linear-gradient(180deg,rgba(16,15,13,.45),transparent 25%)}.programme-page .hero-video,.programme-page .hero-photo{object-position:center}.programme-page .care .care-film{padding-right:24px}}
.hero-copy .country{font-size:clamp(4rem,7.2vw,7rem)!important}
@media(max-width:860px){.hero-copy .country{font-size:clamp(3.4rem,15vw,5.7rem)!important}}
.programme-page .care{--care-clip:17.5rem;--care-gap:20px;align-items:center}
.programme-page .care .care-film{align-self:center}
.programme-page .care-cards .care-card{height:240px!important;width:calc(240px * var(--photo-ratio))!important}
.programme-page .care-cards .care-card::after{background:linear-gradient(180deg,transparent 65%,rgba(16,15,13,.18))}
.programme-page .care-cards .care-row{--care-fade:32px}
.optional-experience{font-size:.875rem;line-height:1.7;color:var(--soft)}
@media(max-width:896px){.programme-page .care .care-film{width:17.5rem;max-width:90%;justify-self:center}.programme-page .care-cards .care-card{height:210px!important;width:calc(210px * var(--photo-ratio))!important}}
@media(max-width:600px){.programme-page .care-cards .care-card{height:185px!important;width:calc(185px * var(--photo-ratio))!important}.programme-page .care{--care-gap:16px}}
.moments-slide .moments-column[data-column="1"] .moments-track{animation-duration:124s}
.moments-slide .moments-column[data-column="2"] .moments-track{animation-duration:148s;animation-delay:-46s}
.programme-page .journey-photo{position:relative;isolation:isolate}
.programme-page .journey-photo::after{display:none}
.programme-page .journey-caption{position:absolute;inset:auto 0 0;z-index:2;padding:54px 18px 18px;background:linear-gradient(180deg,transparent,rgba(12,16,18,.82) 55%,rgba(12,16,18,.94));color:#fff;text-align:left;pointer-events:none}
.programme-page .journey-caption h3{font-family:inherit;font-size:1.125rem;line-height:1.3;letter-spacing:0;margin:0 0 6px;font-weight:650;color:#fff}
.programme-page .journey-caption p{font-size:1rem;line-height:1.55;margin:0;color:#fff;text-wrap:pretty}
.programme-page .journey-caption small{display:block;font-size:.75rem;line-height:1.5;color:#eedab9;margin-top:7px}
.programme-page .care-cards .journey-photo{min-width:235px}
.programme-page .care-cards .journey-words{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:22px;box-sizing:border-box;min-width:270px;color:#f9f0df;background:#493529}
.programme-page .care-cards .journey-river{background:#203b3b}
.programme-page .journey-words::after{display:none}
.programme-page .journey-words .journey-chapter{font-size:.875rem;line-height:1.4;letter-spacing:.08em;color:#e8cc9f;margin:0 0 auto}
.programme-page .journey-words h3{font-family:inherit;font-size:1.5rem;font-weight:550;line-height:1.35;margin:0;color:#fff3df}
.programme-page .journey-words p{font-size:1rem;line-height:1.6;margin:0;color:#f9f0df}
.programme-page .journey-words small{font-size:.75rem;line-height:1.4;color:#eedab9}
.programme-page .care-cards .care-row:focus-visible{outline:2px solid #e8cc9f;outline-offset:5px}
@media(max-width:896px){.programme-page .care-cards .care-card{height:260px!important;width:calc(260px * var(--photo-ratio))!important}.programme-page .care-cards .journey-words{width:290px!important}}
@media(max-width:600px){.programme-page .journey-caption{padding:48px 15px 15px}.programme-page .care-cards .care-card{height:245px!important;width:calc(245px * var(--photo-ratio))!important}.programme-page .care-cards .journey-words{width:280px!important;padding:20px}.programme-page .moments-slide .journey-caption h3{font-size:1rem}.programme-page .moments-slide .journey-caption p{font-size:.875rem}.programme-page .moments-slide .journey-caption{padding:48px 12px 14px}}

/* ── The generated markup ── */
/* A photo card is as wide as its photo is at the card's height: the kept page wrote each card's --photo-ratio into its
   markup, the sheet has no such cell, and the photo's own width and height say the same. */
.programme-page .care-cards .care-card:not(.journey-words){width:auto!important;aspect-ratio:auto!important}
.programme-page .care-cards .care-card:not(.journey-words)>img{position:static;display:block;width:auto!important;min-width:100%;height:100%!important;max-width:none;object-fit:cover}
.programme-page .care-cards .journey-words{--photo-ratio:1.15}
/* The kept page had no logo over its clips. */
.programme-page .trip-video-logo{display:none}
/* The kept page's clips section had no drawn line behind it. */
.programme-page .care-explorer{display:none}
/* Join or Private from the first screen (PLAN §42, the owner's image 01 of 3 Nov): the line under the intro with its
   **words** in gold, then two buttons — the rounds (gold) and the Private box (a line). Phones: one under the other. */
.programme-page .offer-note{margin-top:1.1rem;font-size:clamp(1rem,1.35vw,1.2rem);line-height:1.5;color:var(--ink)}
.programme-page .offer-note strong{color:var(--mint);font-weight:600;white-space:nowrap}
.programme-page .offer-choice{display:flex;flex-wrap:wrap;gap:14px;margin-top:1.4rem}
.programme-page .offer-choice .offer-button{display:inline-flex;align-items:center;font:inherit;font-size:1rem;font-weight:500;line-height:1.2;margin:0;min-height:48px;padding:.8rem 1.6rem;border-radius:4px;background:var(--mint);color:#100f0d;border:1px solid var(--mint);text-decoration:none}
.programme-page .offer-choice .offer-button-line{background:transparent;color:var(--ink);border-color:#fffaf2cc}
.programme-page .offer-choice .offer-button:hover,.programme-page .offer-choice .offer-button:focus-visible{filter:brightness(1.08)}
.programme-page .offer-choice .offer-button-line:hover,.programme-page .offer-choice .offer-button-line:focus-visible{background:#ffffff1f;filter:none}
@media(max-width:560px){.programme-page .offer-choice{flex-direction:column;align-items:stretch}.programme-page .offer-choice .offer-button{text-align:center;justify-content:center}}
/* The rounds to join, then a group's own trip (PLAN §42, image 04): a line over the rounds, and after them a sand box
   with its heading, its words and a dark LINE button. Phones: the button full width, its small print under it. */
.programme-page .dates .join-title{margin:1.6rem 0 .6rem;font-size:clamp(1.05rem,1.5vw,1.3rem);font-weight:600;letter-spacing:.01em;color:#1b1513}
.programme-page .private-trip{display:grid;gap:1.2rem;margin-top:2.2rem;padding:clamp(22px,3vw,36px) clamp(20px,3.4vw,40px);background:#f3ece2;border-radius:14px;color:#1b1513}
.programme-page .private-trip .eyebrow{margin:0 0 .5rem;color:#574a37;letter-spacing:.18em}
.programme-page .private-trip h3{margin:0 0 .7rem;font-size:clamp(1.5rem,2.6vw,2.2rem);line-height:1.2;font-weight:600}
.programme-page .private-trip p{margin:0;line-height:1.6}
.programme-page .private-trip-foot{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px}
.programme-page .private-trip-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.8rem 1.6rem;border-radius:6px;background:#1b1513;color:#fffaf2;font-weight:500;text-decoration:none}
.programme-page .private-trip-button:hover,.programme-page .private-trip-button:focus-visible{background:#3a2e26}
.programme-page .private-trip-foot .fine{font-size:.85rem;color:#574a37}
@media(max-width:560px){.programme-page .private-trip-button{width:100%}}
/* Landing on the box (the hero's Private button) puts it under the blurred header bar, not behind it. */
.programme-page #private{scroll-margin-top:calc(var(--header-h,96px) + 16px)}
@media(max-width:760px){.programme-page #private{scroll-margin-top:96px}}
/* When to go (PLAN §42, image 02): a dark band under the hero — gold eyebrow, the heading, its words, then three facts
   in gold serif split by thin gold rules, each over its label, and the small print under them. Phones: one under another. */
.programme-page .when-band{background:#141210;color:var(--ink);border-top:1px solid #e2cba333;padding:clamp(48px,7vw,88px) 0}
.programme-page .when-band .eyebrow{color:var(--mint);letter-spacing:.24em;margin:0 0 1rem}
.programme-page .when-band h2{margin:0;font-size:clamp(2rem,4.4vw,3.6rem);line-height:1.18;font-weight:600;color:#fffaf2}
.programme-page .when-text{margin:1.4rem 0 0;max-width:68ch;font-size:clamp(1rem,1.3vw,1.15rem);line-height:1.7;color:#fffaf2e6}
.programme-page .when-facts{list-style:none;margin:clamp(32px,4vw,52px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.programme-page .when-facts li{padding:0 clamp(12px,2.4vw,32px);text-align:center;border-left:1px solid #e2cba366}
.programme-page .when-facts li:first-child{border-left:0;padding-left:0;text-align:left}
.programme-page .when-value{margin:0;font-family:Georgia,serif;font-size:clamp(2rem,4vw,3.4rem);line-height:1.05;color:var(--mint);letter-spacing:.01em}
.programme-page .when-value small{display:block;margin-top:.15em;font-size:.62em}
.programme-page .when-label{margin:.8rem 0 0;font-size:.98rem;line-height:1.55;color:#fffaf2d9}
.programme-page .when-note{margin:clamp(24px,3vw,36px) 0 0;color:#fffaf2b3}
@media(max-width:760px){.programme-page .when-band h2{font-size:clamp(1.6rem,7.4vw,2.2rem)}.programme-page .when-facts{grid-template-columns:1fr;gap:26px}.programme-page .when-facts li,.programme-page .when-facts li:first-child{border-left:0;padding:0;text-align:left}.programme-page .when-facts li+li{border-top:1px solid #e2cba344;padding-top:26px}}
/* The words card of the Thai guides (PLAN §42, image 03): wider for its longer words, and its gold line glowing — a soft
   halo always, and a light that runs across it once or twice when the card comes into view (page.js adds .is-shining),
   then stops. With reduced motion, or no script, the halo alone. The gradient's darkest gold still reads 4.5:1 on the card. */
.programme-page .care-cards .journey-words.journey-wide{width:440px!important;min-width:440px;padding:26px 28px;gap:14px}
.programme-page .journey-words h3+.journey-glow{margin-top:2px}
.programme-page .journey-words .journey-glow{font-size:1.12rem;line-height:1.5;font-weight:600;color:#ecd29b;text-shadow:0 0 14px #f3d48f66,0 0 2px #f3d48f88}
.programme-page .journey-words .journey-glow.is-shining{background:linear-gradient(100deg,#ecd29b 0%,#ecd29b 38%,#fff6dc 50%,#ecd29b 62%,#ecd29b 100%);background-size:250% 100%;background-position:100% 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:journey-shine 1.6s ease-in-out 2 forwards}
@keyframes journey-shine{to{background-position:0 0}}
.programme-page .journey-wide p:not(.journey-chapter):not(.journey-glow){font-size:.98rem;line-height:1.6}
@media(max-width:896px){.programme-page .care-cards .journey-words.journey-wide{width:340px!important;min-width:340px}}
@media(max-width:600px){.programme-page .care-cards .journey-words.journey-wide{width:min(320px,84vw)!important;min-width:0;padding:18px 18px;gap:8px}.programme-page .journey-wide h3{font-size:1.2rem}.programme-page .journey-wide .journey-glow{font-size:.95rem;line-height:1.45}.programme-page .journey-wide p:not(.journey-chapter):not(.journey-glow){font-size:.85rem;line-height:1.5}}
@media(prefers-reduced-motion:reduce){.programme-page .journey-words .journey-glow.is-shining{animation:none;background:none;-webkit-text-fill-color:currentColor}}
/* The row holding the wide words card is 370 px tall on a wide screen, 330 on a tablet, 360 on a phone,  so its words fit and stay readable; its photos keep
   their own shape at that height (--photo-ratio). */
.programme-page .care-cards .care-row.has-wide .care-card{height:370px!important;width:calc(370px * var(--photo-ratio))!important}.programme-page .care-cards .care-row.has-wide .journey-wide{width:440px!important}
@media(max-width:896px){.programme-page .care-cards .care-row.has-wide .care-card{height:330px!important;width:calc(330px * var(--photo-ratio))!important}.programme-page .care-cards .care-row.has-wide .journey-wide{width:340px!important}}
@media(max-width:600px){.programme-page .care-cards .care-row.has-wide .care-card{height:360px!important;width:calc(360px * var(--photo-ratio))!important}.programme-page .care-cards .care-row.has-wide .journey-wide{width:min(320px,84vw)!important}}
