/* Destination Hydration: the "what it's for" pages (/iv-treatments/ and the twelve need pages, modelled on
   /iv-treatments/hangover/). Loaded after base.css, dh.css and inner.css; only what those don't already carry.
   Prefix nd-. */

/* ---------- the hub: three groups, the words and a picture on one side, the cards on the other ---------- */
.nd-jump{margin-top:clamp(18px,1.8vw,26px)}
.nd-grp__grid{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,2fr);grid-template-areas:"head cards" "media cards";
  grid-template-rows:auto 1fr;column-gap:clamp(32px,4.4vw,110px);align-items:start}
.nd-grp--flip .nd-grp__grid{grid-template-columns:minmax(0,2fr) minmax(300px,.8fr);grid-template-areas:"cards head" "cards media"}
.nd-grp__head{grid-area:head;margin-bottom:clamp(24px,2.4vw,40px)}
.nd-grp__media{grid-area:media}
.nd-cards{grid-area:cards;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.3vw,22px);list-style:none;margin:0;padding:0}
.nd-card--wide,.nd-alt{grid-column:1 / -1}
.nd-reel{display:block;width:min(100%,clamp(220px,17vw,300px))}
.nd-photo{max-width:440px}

/* a need's card: the name opens its page (the whole card answers), the runs inside open theirs */
.nd-card .pg-card__name a,.nd-card .pg-card__name span{color:inherit;text-decoration:none}
.nd-card a.nd-card__go::before{content:"";position:absolute;inset:0;z-index:0;border-radius:inherit}
.nd-card a.nd-card__go::after{content:"";display:inline-block;width:9px;height:9px;margin:0 0 3px 12px;border-top:3px solid var(--teal-deep);border-right:3px solid var(--teal-deep);transform:rotate(45deg);transition:transform .2s}
.nd-card:has(a.nd-card__go:hover),.nd-card:has(a.nd-card__go:focus-visible){transform:translateY(-4px);box-shadow:0 0 0 1px rgba(13,62,91,.08),0 26px 56px rgba(13,62,91,.12)}
.nd-card:has(a.nd-card__go:hover) a.nd-card__go::after{transform:translateX(3px) rotate(45deg)}
.nd-card a.nd-card__go:focus-visible{outline:none}
.nd-card:has(a.nd-card__go:focus-visible){outline:3px solid var(--teal-deep);outline-offset:3px}
.nd-card__for{margin:auto 0 0;padding-top:20px;font:700 12px/1.2 Montserrat,system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:var(--teal-deep)}
.nd-card__runs{position:relative;z-index:1;list-style:none;margin:8px 0 0;padding:0}
.nd-card__runs li+li{border-top:1px solid rgba(13,62,91,.1)}
.nd-card__runs a,.nd-alt__run{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:46px;color:var(--navy);text-decoration:none}
.nd-card__runs .oa-mk,.nd-alt__run .oa-mk{justify-self:center;width:18px;height:18px}
.nd-card__runs .oa-mk--wide,.nd-alt__run .oa-mk--wide{width:29px}
.nd-card__runs b,.nd-alt__run b{font:800 15.5px/1.2 Montserrat,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.01em}
.nd-card__runs i,.nd-alt__run i{font:700 18px/1 Montserrat,system-ui,sans-serif;font-style:normal;font-variant-numeric:tabular-nums lining-nums}
.nd-card__runs a:hover b,.nd-alt__run:hover b{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:5px;text-decoration-color:var(--teal)}
.nd-card--wide .nd-card__runs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:28px}
.nd-card--wide .nd-card__runs li+li{border-top:0}

/* the altitude run, their own line, under the going-hard cards */
.nd-alt{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 28px;padding:14px clamp(20px,1.8vw,32px);border-radius:24px;border:2px dashed rgba(13,62,91,.2)}
.nd-alt__line{margin:0;font:600 clamp(16px,1.05vw,18px)/1.45 Cabin,system-ui,sans-serif;color:var(--navy)}
.nd-alt__run{grid-template-columns:30px auto auto}

/* not sure? */
.nd-ask .oa-score{margin-top:clamp(28px,3vw,52px)}

/* ---------- a need page ---------- */
.nd-bag{color:var(--navy);text-decoration:none;transition:box-shadow .35s ease}
.nd-bag:hover{box-shadow:0 34px 90px rgba(13,62,91,.16)}
.nd-bag:hover .pg-bag__name{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:6px;text-decoration-color:var(--teal)}
.nd-runs{align-items:center}
.nd-runs__head{margin-bottom:0}

/* what's in the bag: a short ledger beside their weekend film */
.nd-in{margin:clamp(20px,2vw,32px) 0 0;padding:0}
.nd-in>div{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:6px 24px;padding:16px 0;border-top:1px solid rgba(13,62,91,.12)}
.nd-in>div:last-child{border-bottom:1px solid rgba(13,62,91,.12)}
.nd-in dt{font:800 clamp(16px,1.1vw,19px)/1.3 Montserrat,system-ui,sans-serif;color:var(--navy)}
.nd-in dd{margin:0;font-size:clamp(16px,1.05vw,18px);line-height:1.55;color:var(--slate)}
.nd-inbag__acts{margin-top:clamp(24px,2.4vw,36px)}
.nd-film{margin:0;display:grid;justify-items:center;gap:14px}
.nd-film .nd-reel{width:min(100%,clamp(240px,19vw,330px))}
.nd-film figcaption{max-width:30ch;text-align:center;font:600 15px/1.45 Montserrat,system-ui,sans-serif;color:var(--navy)}

/* the visit: the home page's four stops, laid flat (no chairlift drawing behind them here) */
.nd-visit .oa-stops{margin:0;gap:clamp(12px,1.3vw,22px)}
.nd-visit .oa-stop{margin-top:0}
.nd-visit .oa-stop:nth-child(2){margin-top:clamp(0px,1.4vw,28px)}
.nd-visit .oa-stop:nth-child(3){margin-top:clamp(0px,2.8vw,56px)}
.nd-visit .oa-stop:nth-child(4){margin-top:clamp(0px,4.2vw,84px)}
.nd-visit__ticks{justify-content:center}
.nd-wide{margin-top:clamp(36px,4vw,72px)}

.nd-revs .oa-score{margin-top:clamp(24px,2.6vw,44px)}
.nd-qs .pg-qs{max-width:1100px}
.nd-next .pg-head{margin-bottom:clamp(20px,2vw,32px)}
.nd-next__all svg{width:18px;height:11px}

@media (max-width:1199px){
  .nd-visit .oa-stop:nth-child(n){margin-top:0}
}
@media (max-width:1099px){
  .nd-grp__grid,.nd-grp--flip .nd-grp__grid{grid-template-columns:minmax(0,1fr) minmax(0,.62fr);grid-template-areas:"head media" "cards cards";grid-template-rows:auto auto;align-items:center}
  .nd-grp__media{justify-self:end;margin-bottom:clamp(24px,2.4vw,40px)}
  .nd-photo{width:260px}
}
@media (max-width:759px){
  .nd-grp__grid,.nd-grp--flip .nd-grp__grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "cards" "media"}
  .nd-grp__media{justify-self:center;margin:28px 0 0}
  .nd-reel{width:220px}
  .nd-photo{width:min(100%,360px)}
  .nd-cards{grid-template-columns:minmax(0,1fr)}
  .nd-card--wide .nd-card__runs{grid-template-columns:minmax(0,1fr)}
  .nd-card--wide .nd-card__runs li+li{border-top:1px solid rgba(13,62,91,.1)}
  .nd-in>div{grid-template-columns:minmax(0,1fr)}
  .nd-film .nd-reel{width:240px}
}
@media (max-width:640px){
  .nd-alt{flex-direction:column;justify-content:center;text-align:center}
  .nd-ask .oa-score,.nd-revs .oa-score{justify-content:center;text-align:left}
  .nd-runs__head{margin-bottom:clamp(30px,3.4vw,64px)}
  .nd-inbag__words>.oa-k,.nd-inbag__words>.oa-h2{text-align:center;justify-content:center}
  .nd-inbag__words>.oa-k::after{content:"";flex:0 0 30px;height:3px;border-radius:3px;background:var(--teal)}
  .nd-visit__ticks{flex-direction:column;align-items:center;gap:8px}
}
@media (prefers-reduced-motion:reduce){
  .nd-card:has(a.nd-card__go:hover),.nd-card:has(a.nd-card__go:focus-visible){transform:none}
}

/* phones: two-button rows stack full width (a half-width second button would hug the left); the visit's facts centre */
@media (max-width:640px){
  .nd-acts2 .oa-pill{grid-column:1 / -1}
  .nd-visit__ticks li{display:block;text-align:center}
  .nd-visit__ticks li::before{display:inline-block;margin:0 10px 1px 0;vertical-align:middle}
  .nd-wide img{aspect-ratio:4/3}
}

/* ---------- the other eleven need pages (added 2026-11-11; nothing above changed) ---------- */
/* one of their photos in the film's place beside "what's in it" */
.nd-pic__img{display:block;width:min(100%,clamp(260px,26vw,440px));height:auto;aspect-ratio:var(--r,4/5);object-fit:cover;object-position:var(--pos,50% 50%);border-radius:30px;box-shadow:0 30px 80px rgba(13,62,91,.14)}
@media (max-width:759px){
  .nd-pic__img{width:min(100%,320px)}
}
@media (max-width:640px){
  .nd-wide figcaption{text-align:center}
}
/* captions under their film or photo: no lone word on its last line */
.nd-film2 figcaption{text-wrap:balance}
/* a list of runs that includes the double black diamond: every name starts on one line */
.nd-list a{grid-template-columns:38px minmax(0,1fr) auto}
.nd-list .oa-mk{justify-self:center}
/* photo credits under a wide picture: a 44px tall tap area without moving the line */
.nd-wide figcaption a{display:inline-block;padding:14px 2px;margin:-14px 0}
