/* Public mountain pages (/mountain/<slug>, rendered by web/api/_lib/mountain-page.js).
   Header, crumbs, type scale, peak rows, quest badges, FAQ and flip buttons mirror the quest
   pages (web/quests/*.html) so the two read as one site. */
*,*::before,*::after{box-sizing:border-box}
html{background:#000;-webkit-text-size-adjust:100%}
body{margin:0;background:#000;color:#fff;font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:#fff;text-decoration:none}
img{display:block;max-width:100%}
.wrap{max-width:1080px;margin:0 auto;padding:0 clamp(20px,4vw,44px)}

/* Header (matches landing and quest pages) */
.yh{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:22px clamp(18px,4vw,44px)}
.yh-brand{display:flex;align-items:center;gap:10px}
.yh-brand img{width:26px;height:26px;border-radius:7px}
.yh-brand span{display:block;width:56px;height:14px;font-size:0;background-color:currentColor;-webkit-mask:url(/yak-wordmark.svg) no-repeat center/contain;mask:url(/yak-wordmark.svg) no-repeat center/contain}
.yh-nav{display:flex;align-items:center;gap:clamp(14px,3vw,30px);font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:500}
.yh-nav>a:not(.yh-roll){opacity:.62;transition:opacity .3s}
@media (hover:hover){.yh-nav>a:hover{opacity:1}}
.yh-roll>span{display:block;height:1.4em;overflow:hidden}
.yh-roll>span>span{display:block;height:1.4em;line-height:1.4em;transition:transform .62s cubic-bezier(.22,1.3,.36,1)}
@media (hover:hover){.yh-roll:hover>span>span{transform:translateY(-100%)}}

/* Crumbs + back */
.crumbrow{display:flex;align-items:center;gap:18px;margin:clamp(24px,5vh,56px) 0 0}
.crumbs{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0;font-size:11px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:#666}
.crumbs a{color:#8A8A8A}.crumbs a:hover{color:#fff}.crumbs li+li::before{content:'/';margin-right:8px;color:#333}
/* Phones: one line, "… / Parent quest". The "…" stands in for the higher levels, the page itself is
   the h1 right below, and a long parent name truncates instead of wrapping. */
.crumbs .ell{display:none}
.crumbs .ell+li::before{content:none}
.back{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;background:#0d0d0d;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);color:#fff;transition:background .3s,color .3s}
@media (hover:hover){.back:hover{background:#fff;color:#000}}

/* Type */
.kicker{font-size:11px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:#666;margin:0 0 10px}
h1{font-family:Alexandria,Inter,sans-serif;font-weight:700;font-size:clamp(40px,6.4vw,84px);letter-spacing:-.045em;line-height:.98;margin:0 0 18px;text-wrap:balance}
/* Hierarchy: h1 page title > h2 section title > .sub subsection label (the fact-label style) >
   h3 item title (FAQ question, peak name) > body. Sections are separated by space alone. */
h2{font-family:Alexandria,Inter,sans-serif;font-weight:600;font-size:clamp(24px,2.6vw,32px);line-height:1.15;letter-spacing:-.03em;margin:0 0 clamp(20px,2.4vw,28px);text-wrap:balance}
h3{font-family:Alexandria,Inter,sans-serif;font-weight:600;font-size:18px;line-height:1.35;letter-spacing:-.015em;margin:0 0 8px;text-wrap:pretty}
.sub{font-family:Inter,system-ui,sans-serif;font-size:11px;font-weight:600;line-height:1.4;letter-spacing:.22em;text-transform:uppercase;color:#666;margin:0 0 14px}
p{font-size:16px;line-height:1.65;color:#A3A3A3;margin:0;max-width:68ch;text-wrap:pretty}
p a{text-decoration:underline;text-decoration-color:rgba(255,255,255,.3);text-underline-offset:3px}
section{margin:0 0 clamp(64px,9vh,104px)}

/* Hero */
.mhero{margin:clamp(20px,3vh,32px) 0 clamp(40px,6vh,64px)}
.mhero .lede{font-size:18px;color:#D1D1D1;margin-bottom:28px}
.acts{display:flex;flex-wrap:wrap;gap:12px}
.photo-wide{margin:0 0 clamp(56px,8vh,88px);border-radius:32px;overflow:hidden;background:#0C0C0C;box-shadow:inset 0 0 0 1px #1A1A1A;aspect-ratio:16/9}
.photo-wide img{width:100%;height:100%;object-fit:cover}

/* Facts */
.facts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:28px clamp(18px,3vw,32px)}
.facts li{display:flex;flex-direction:column;gap:8px}
.fl{font-size:11px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:#666}
.fv{font-family:Alexandria,Inter,sans-serif;font-weight:600;font-size:21px;letter-spacing:-.025em}
.fs{font-family:Alexandria,Inter,sans-serif;font-weight:600;font-size:13px;color:#8A8A8A}

/* Elevation profile: NativeSheetView.elevationProfileSection. 90px frame, label-free white line,
   scrubber = 2px rule (white 60%), 10px dot, 36px capsule with Inter 600 12. Scales up on wide
   screens so the line doesn't read flat across a desktop column. */
.ep{position:relative;margin:0 0 32px;height:90px;touch-action:pan-y;cursor:crosshair;user-select:none;-webkit-user-select:none}
.ep svg{display:block;width:100%;height:100%;overflow:visible}
.ep-scrub{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .2s ease-out}
.ep-scrub.on{opacity:1}
.ep-rule{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:rgba(255,255,255,.6)}
.ep-dot{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.8)}
.ep-tip{position:absolute;height:36px;padding:0 14px;display:flex;align-items:center;transform:translate(-50%,-50%);border-radius:999px;background:#0d0d0d;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);font:600 12px/1 Inter,system-ui,sans-serif;color:#fff;white-space:nowrap}
@media (min-width:641px){.ep{height:140px}}

/* Gear and hazards: the sheet chip (filled capsule, full-color gear icon, SemiBold label) at web
   size, stacked like the sheet. */
.cols{display:flex;flex-direction:column;gap:clamp(36px,4vw,48px)}
.chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.chips li{display:flex}
.chip{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 18px;border:0;border-radius:999px;background:rgba(255,255,255,.07);font:600 14px/1 Inter,system-ui,sans-serif;color:#F5F5F5;white-space:nowrap}
.chip img{width:20px;height:20px;object-fit:contain;flex:none}
.chip:has(img){padding-left:12px}
/* On Yak invite */
.invite{padding:clamp(28px,4vw,44px);border-radius:32px;background:#0C0C0C;box-shadow:inset 0 0 0 1px #1A1A1A}
.invite p{margin-bottom:26px}

/* Quest badges (quest pages' .others) */
.others{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:clamp(18px,3vw,32px);list-style:none;margin:0;padding:0}
.others a{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;transition:transform .8s cubic-bezier(.22,1,.36,1)}
@media (hover:hover){.others a:hover{transform:translateY(-4px) scale(1.03)}}
.others img{width:108px;height:108px;object-fit:contain;filter:drop-shadow(0 12px 28px rgba(0,0,0,.6))}
.others b{font-family:Alexandria,Inter,sans-serif;font-weight:700;font-size:15px;letter-spacing:-.015em}
.others span{font-family:Alexandria,Inter,sans-serif;font-size:11px;color:#7C7C7C;margin-top:-6px}

/* Peak rows (quest pages' .peaks), with the /quests list hover: slide right, arrow fades in */
.peaks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.peaks a{display:flex;align-items:center;gap:26px;padding:16px 0;transition:transform .45s cubic-bezier(.22,1,.36,1)}
.peaks a.tap{transform:translateX(14px)}
@media (hover:hover){.peaks a:hover{transform:translateX(14px)}}
.peaks .arr{font-family:Inter,system-ui,sans-serif;font-size:20px;opacity:0;transform:translateX(-10px);transition:opacity .4s ease,transform .45s cubic-bezier(.22,1,.36,1)}
.peaks a.tap .arr{opacity:1;transform:none}
@media (hover:hover){.peaks a:hover .arr{opacity:1;transform:none}}
.thumb{flex:0 0 auto;width:92px;height:92px;border-radius:32px;overflow:hidden;background:#0C0C0C;box-shadow:inset 0 0 0 1px #1A1A1A}
.thumb img{width:100%;height:100%;object-fit:cover}
.pn{font-family:Alexandria,Inter,sans-serif;font-weight:600;font-size:21px;letter-spacing:-.025em;margin:0}
.pm{font-family:Alexandria,Inter,sans-serif;font-weight:600;font-size:13px;color:#8A8A8A;margin:8px 0 0}

/* FAQ + CTA */
.faq{display:flex;flex-direction:column;gap:36px;max-width:68ch}
.faq h3{text-wrap:wrap}
.faq[data-collapsed]>div:nth-child(n+7){display:none} /* first 6 = FAQ_VISIBLE in mountain-page.js */
.more-btn{padding-top:36px}
.cta h2{font-size:clamp(28px,3.4vw,40px);letter-spacing:-.035em}
.cta p{margin-bottom:26px}

/* Flip buttons (quest pages). .lg puts the outline variant at the solid button's 54px. */
.flip{position:relative;display:inline-block;height:48px;padding:0;border:0;background:none;cursor:pointer;perspective:700px;font:inherit}
.flip>span{display:inline-grid;height:100%;transform-style:preserve-3d;transition:transform .44s cubic-bezier(.34,1.8,.5,1)}
.flip:focus-visible>span{transform:rotateX(90deg)}
@media (hover:hover){.flip:hover>span{transform:rotateX(90deg)}}
.flip i{grid-area:1/1;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 26px;border-radius:999px;font-style:normal;font-family:Alexandria,Inter,sans-serif;font-weight:600;font-size:14px;letter-spacing:.01em;white-space:nowrap;backface-visibility:hidden}
.flip.o i:first-child{color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);transform:translateZ(24px)}
.flip.o i:last-child{background:#fff;color:#000;transform:rotateX(-90deg) translateZ(24px)}
.flip.s,.flip.o.lg{height:54px}
.flip.s i,.flip.o.lg i{padding:0 28px}
.flip.s i:first-child{background:#fff;color:#000;transform:translateZ(27px)}
.flip.s i:last-child{background:#0d0d0d;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.4);transform:rotateX(-90deg) translateZ(27px)}
.flip.o.lg i:first-child{transform:translateZ(27px)}
.flip.o.lg i:last-child{transform:rotateX(-90deg) translateZ(27px)}
.flip svg{width:15px;height:15px;fill:currentColor}

footer{border-top:1px solid #141414;padding:26px 0 32px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;font-size:13px;color:#444}
footer nav{display:flex;gap:22px}
footer a{color:#8A8A8A}footer a:hover{color:#fff}

@media (max-width:640px){
.crumbrow{gap:14px}
.crumbs{flex-wrap:nowrap;min-width:0}
.crumbs li{white-space:nowrap}
.crumbs li:not(.ell):not(.near){display:none}
.crumbs .ell{display:block}
.crumbs .near{min-width:0;overflow:hidden;text-overflow:ellipsis}
.mhero .lede{font-size:16px}
.photo-wide{border-radius:24px}
/* Stats as a spec sheet: label left, value (and its detail) right, one fact per row */
.facts{grid-template-columns:1fr;gap:0}
.facts li{display:grid;grid-template-columns:minmax(104px,34%) 1fr;gap:0 16px;align-items:baseline;padding:16px 0;border-top:1px solid #141414}
.facts li:last-child{border-bottom:1px solid #141414}
.fl{grid-column:1;grid-row:1}
.fv{grid-column:2;grid-row:1;font-size:18px;line-height:1.3}
.fs{grid-column:2;grid-row:2;margin-top:4px}
.peaks a{gap:18px}.thumb{width:72px;height:72px;border-radius:24px}.pn{font-size:17px}
.yh-nav{gap:16px;font-size:11px;letter-spacing:.12em}
}
@media (max-width:360px){.yh-brand span{display:none}}
