/* =====================================================================
   TRIWAYS — EGYPT WELLNESS RETREATS  (/experiences/egypt-wellness-retreats/)
   Loaded after triways-experiences-inside.css.
   Prefix: tv-wl-   Scope: <body class="hub-page tv-over-hero tv-xp tv-wl">

   The page is built from the shared tv-xp- components. This file only
   holds what is particular to it:

     .tv-wl-hero    taller hero, the header clear over the photograph
     .tv-wl-facts   the four hero facts in one ruled row (2 x 2 below 1024px)
     .tv-wl-answer  the hero answer on a single top rule, no panel
     .tv-wl-siwa    .tv-xp-split with the picture pair under the title
     .tv-wl-pair    two overlapping photographs, each with its caption
     .tv-wl-nile    .tv-xp-feature, picture and copy centred on each other
     .tv-wl-coast   .tv-xp-feature--text-first, the picture as tall as the copy

   Nothing here styles the header, the navigation or the footer.
   ===================================================================== */

.tv-wl { --tv-xp-y: clamp(3.75rem, 2.4rem + 5.4vw, 7.5rem); }   /* ~60px on a phone, ~116px at 1440 */

/* Small captions and inline links in brass, AA on each ground */
.tv-wl .tv-xp-feature__media figcaption,
.tv-wl .hb-section--dark .tv-xp-feature__media figcaption { color: var(--tv-xp-gold); }
.tv-wl .hb-section--ivory .tv-xp-feature__media figcaption { color: var(--tv-brass-text); }
.tv-wl .hb-section--ivory .art-prose a { color: var(--tv-brass-text); }
.tv-wl .hb-section--ivory .art-prose a:hover, .tv-wl .hb-section--ivory .art-prose a:focus-visible { color: var(--hb-ink); }
.tv-wl .hb-section--dark .art-prose a { color: var(--tv-xp-gold); border-color: var(--tv-xp-rule-dark); }
.tv-wl .art-prose p:not(.art-prose__lead) { max-width: 66ch; }

/* ---------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------- */
.tv-wl-hero { min-height: clamp(36rem, 76vh, 50rem); --tv-xp-hero-pos: 38% 50%; }
.tv-wl-hero::before {
  background:
    linear-gradient(90deg, rgba(var(--tv-scrim), 0.8) 0%, rgba(var(--tv-scrim), 0.5) 34%, rgba(var(--tv-scrim), 0.34) 56%, rgba(var(--tv-scrim), 0.62) 100%),
    linear-gradient(180deg, rgba(var(--tv-scrim), 0.5) 0%, rgba(var(--tv-scrim), 0.16) 30%, rgba(var(--tv-scrim), 0.55) 62%, rgba(var(--tv-scrim), 0.84) 100%);
}
.tv-wl-hero .hub-hero__title { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5rem); line-height: 1.02; }

.tv-wl-hero .tv-wl-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
.tv-wl-facts > div,
.tv-wl-facts > div:nth-child(even) { padding: 0.95rem 1.1rem 0.2rem; border-left: 1px solid var(--tv-xp-rule-dark); }
.tv-wl-facts > div:first-child { padding-left: 0; border-left: 0; }
.tv-wl-facts > div:last-child { padding-right: 0; }
.tv-wl-facts dd { font-size: 1.12rem; line-height: 1.3; color: rgba(255, 255, 255, 0.94); }

.tv-wl-hero .tv-wl-answer {
  padding: 1.4rem 0 0;
  border: 0; border-top: 1px solid var(--tv-xp-rule-dark);
  background: none;
}
.tv-wl-answer p { color: rgba(244, 240, 232, 0.94); text-shadow: 0 1px 18px rgba(var(--tv-scrim), 0.55); }
.tv-wl-answer .art-named { margin-top: 1.4rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; color: var(--tv-xp-gold); }

/* ---------------------------------------------------------------------
   SIWA — the title and the picture pair left, the statement and entries right

   <div class="art-split tv-xp-split tv-wl-siwa">
     <div class="art-split__head">
       kicker · h2
       <div class="tv-wl-pair">
         <figure class="tv-wl-pair__a"><img><figcaption></figcaption></figure>
         <figure class="tv-wl-pair__b"><img><figcaption></figcaption></figure>
       </div>
     </div>
     <div class="art-prose"> lead · p · div.art-entry … </div>
   </div>
   ------------------------------------------------------------------- */
.tv-wl-siwa.art-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5.5vw, 6rem); }
.tv-wl-siwa .art-split__head { position: static; }
.tv-wl-siwa .art-prose > p + .art-entry { margin-top: clamp(1.5rem, 2.4vw, 2rem); padding-top: clamp(1.5rem, 2.4vw, 2rem); border-top: 1px solid var(--tv-xp-rule); }

/* The second picture sits lower and to the right, over the corner of the first.
   Percentages are of the pair's width, so the overlap holds at every size. */
.tv-wl-pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: clamp(2rem, 3.6vw, 3.25rem); }
.tv-wl-pair figure { margin: 0; grid-row: 1; min-width: 0; }
.tv-wl-pair__a { grid-column: 1 / span 10; }
.tv-wl-pair__b { grid-column: 6 / span 7; margin-top: 38% !important; z-index: 1; }
.tv-wl-pair img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 2px; background: var(--tv-ivory-deep); }
.tv-wl-pair__a img { aspect-ratio: 3 / 2; }
.tv-wl-pair__b img { aspect-ratio: 315 / 340; box-sizing: content-box; margin: -6px 0 0 -6px; border: 6px solid var(--hb-ivory); }
.tv-wl-pair figcaption { margin-top: 0.85rem; font-family: var(--hb-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.5; color: var(--tv-brass-text); }

/* ---------------------------------------------------------------------
   NILE — the photograph keeps its own shape; copy centred beside it
   ------------------------------------------------------------------- */
.tv-wl-nile { align-items: center; }
.tv-wl-nile .tv-xp-feature__media img { aspect-ratio: 526 / 300; }

/* ---------------------------------------------------------------------
   RED SEA — the photograph runs the full height of the copy
   ------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .tv-wl-coast { align-items: stretch; }
  .tv-wl-coast .tv-xp-feature__media { display: flex; flex-direction: column; }
  .tv-wl-coast .tv-xp-feature__media img { flex: 1 1 0; height: 0; min-height: 24rem; aspect-ratio: auto; object-position: 60% 40%; }
}

/* ---------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .tv-wl-facts dd { font-size: 1.05rem; }
}
@media (max-width: 1023.98px) {
  .tv-wl-hero { min-height: 0; }
  .tv-wl-hero .tv-wl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 34rem; }
  .tv-wl-facts > div,
  .tv-wl-facts > div:nth-child(even) { padding: 0.9rem 1rem 1rem 0; border-left: 0; border-top: 1px solid var(--tv-xp-rule-dark); }
  .tv-wl-facts > div:nth-child(even) { padding-left: 1.1rem; padding-right: 0; border-left: 1px solid var(--tv-xp-rule-dark); }
  .tv-wl-facts dd { font-size: 1.15rem; }
  .tv-wl-siwa.art-split { grid-template-columns: minmax(0, 1fr); gap: clamp(2.25rem, 6vw, 3rem); }
  .tv-wl-pair { max-width: 34rem; }
  .tv-wl-coast .tv-xp-feature__media { order: -1; max-width: 30rem; }
  .tv-wl-coast .tv-xp-feature__media img { aspect-ratio: 4 / 5; object-position: 60% 35%; }
}
@media (max-width: 639.98px) {
  /* keep the facts 2 x 2 on a phone (.art-standing would turn them into label | value rows) */
  .tv-wl-facts > div, .tv-wl-facts > div:nth-child(even) { display: block; padding-block: 0.8rem 0.9rem; }
  .tv-wl-facts > div:nth-child(even) { padding-left: 0.9rem; border-left: 1px solid var(--tv-xp-rule-dark); }
  .tv-wl-facts dt { margin-bottom: 0.3rem; }
  .tv-wl-facts dd { font-size: 1.05rem; }
  .tv-wl-pair__b img { margin: -4px 0 0 -4px; border-width: 4px; }
}
