/* Story post layout: the Journal's new post design (approved Nov 17, 2026). Loaded only by single-story.php. */

.p-article{background:var(--off-white)}
.p-hero{padding:0 0 2rem}
.p-triptych{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:6px;height:min(68vh,620px)}
.p-triptych .p-fig{margin:0;height:100%}
.p-triptych img{width:100%;height:100%;object-fit:cover;display:block}
.p-hero-text{max-width:900px;margin:-6rem auto 0;position:relative;background:var(--off-white);padding:2.5rem 3rem 0;border-radius:20px 20px 0 0;text-align:center}
.p-crumbs{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--sage);display:flex;gap:.6rem;justify-content:center;margin-bottom:1rem}
.p-crumbs a{color:var(--sage);text-decoration:none}
.p-hero-text h1{font-size:clamp(2.2rem,5vw,3.6rem);font-weight:300;line-height:1.1;margin-bottom:1rem}
.p-hero-text h1 em{color:var(--sage)}
.p-standfirst{font-family:var(--display);font-style:italic;font-size:1.45rem;color:var(--text);margin-bottom:1rem}
.p-meta{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap;font-size:.82rem;color:var(--text-light)}
.p-intro{max-width:1000px;margin:2.5rem auto 0;padding:0 3rem;display:grid;grid-template-columns:1.1fr 1fr;gap:1.5rem}
.p-listen{background:white;border:1px solid var(--border);border-radius:18px;padding:1.4rem 1.5rem}
.p-listen-top{display:flex;gap:1rem;align-items:center}
.p-play{width:46px;height:46px;border-radius:50%;border:0;background:var(--sage);color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.p-listen-k{font-weight:600;font-size:.95rem;color:var(--black)}
.p-listen-t{font-size:.8rem;color:var(--text-light)}
.p-wave{display:flex;align-items:center;gap:3px;height:42px;margin:1rem 0}
.p-wave i{flex:1;background:var(--sage-pale);border-radius:2px;display:block}
.p-listen-note{font-size:.85rem;color:var(--text-light);line-height:1.6;margin:0}
.p-facts{background:var(--sage-wash);border-radius:18px;padding:1.2rem 1.5rem;margin:0;display:grid;gap:.1rem}
.p-facts div{display:grid;grid-template-columns:90px 1fr;gap:.75rem;padding:.55rem 0;border-bottom:1px solid var(--sage-pale)}
.p-facts div:last-child{border-bottom:0}
.p-facts dt{font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--sage);font-weight:600;padding-top:.2rem}
.p-facts dd{margin:0;font-size:.9rem;color:var(--text)}
.p-toc{position:sticky;top:0;z-index:20;display:flex;gap:.4rem;align-items:center;justify-content:center;flex-wrap:wrap;margin:2.5rem 0 0;padding:.8rem 1rem;background:rgba(250,250,248,.92);backdrop-filter:blur(8px);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.p-toc span{font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);margin-right:.5rem}
.p-toc button{font:inherit;font-size:.82rem;border:1px solid var(--border);background:white;border-radius:100px;padding:.4rem .95rem;cursor:pointer;color:var(--text)}
.p-toc button:hover{border-color:var(--sage);color:var(--sage)}
.p-body{padding:3rem 0 2rem}
.p-body p{font-size:1.12rem;line-height:1.85;font-weight:300;color:var(--text);margin:0 0 1.3rem}
.p-lede{max-width:720px;margin:0 auto 2rem!important;padding:0 1.5rem;font-size:1.3rem!important;line-height:1.75!important}
.p-lede::first-letter{font-family:var(--display);float:left;font-size:4.6rem;line-height:.85;padding:.35rem .6rem 0 0;color:var(--sage)}
.p-text{max-width:720px;margin:0 auto;padding:0 1.5rem}
.p-chapter{max-width:720px;margin:4.5rem auto 2rem;padding:0 1.5rem;display:grid;grid-template-columns:auto 1fr;column-gap:1.2rem;align-items:baseline}
.p-chnum{font-family:var(--display);font-size:3rem;color:var(--sage-light,#95A68C);line-height:1;grid-row:span 2}
.p-chapter h2{font-weight:400;font-size:2.4rem;margin:0}
.p-chsub{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--sage)}
.p-fig{margin:0}
.p-fig img{width:100%;display:block;border-radius:12px;object-fit:cover}
.p-fig figcaption,.p-cap{font-size:.82rem;color:var(--text-light);margin:.6rem 0 0;font-style:italic;font-family:var(--display);font-size:1rem}
.p-cap{text-align:center;margin:-1.2rem auto 2.2rem!important;max-width:1100px;padding:0 1.5rem}
.p-row{display:grid;gap:10px;margin:2.2rem auto 2rem;padding:0 1.5rem}
.p-row.p-wide{max-width:1100px}
.p-row-2{grid-template-columns:1fr 1fr}
.p-row-3{grid-template-columns:1fr 1fr 1fr}
.p-row img{aspect-ratio:3/4;height:auto}
.p-bleed{margin:2.5rem 0}
.p-bleed img{border-radius:0;height:min(70vh,640px)}
.p-bleed figcaption{max-width:1100px;margin:.6rem auto 0;padding:0 1.5rem;text-align:center}
.p-side{max-width:1000px;margin:2rem auto 2.5rem;padding:0 1.5rem;display:grid;grid-template-columns:.85fr 1fr;gap:3rem;align-items:center}
.p-side.is-flip{grid-template-columns:1fr .85fr}
.p-side.is-flip .p-fig{order:2}
.p-side img{aspect-ratio:3/4}
.p-quote{max-width:820px;margin:3.5rem auto;padding:0 1.5rem;text-align:center;font-family:var(--display);font-style:italic;font-weight:300;font-size:clamp(1.7rem,3.4vw,2.5rem);line-height:1.3;color:var(--black)}
.p-quote::before{content:"";display:block;width:48px;height:1px;background:var(--sage);margin:0 auto 1.4rem}
.p-foot{max-width:820px;margin:0 auto;padding:2rem 1.5rem 5rem;display:grid;gap:2rem}
.p-tags{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:2rem}
.p-tags span{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);margin-right:.3rem}
.p-tags a{font-size:.82rem;border:1px solid var(--border);border-radius:100px;padding:.35rem .9rem;color:var(--text);text-decoration:none;background:white}
.p-place-row{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.8rem}
.p-place{background:white;border:1px solid var(--border);border-radius:12px;padding:.7rem 1rem;font-family:var(--display);font-size:1.2rem}
.p-place small{display:block;font-family:var(--body);font-size:.72rem;color:var(--sage)}
.p-author{display:flex;gap:1.2rem;align-items:center;background:white;border:1px solid var(--border);border-radius:18px;padding:1.4rem}
.p-avatar{width:64px;height:64px;border-radius:50%;background:var(--sage);color:white;display:flex;align-items:center;justify-content:center;font-family:var(--display);font-size:1.8rem;flex:none}
.p-author-name{font-weight:600;color:var(--black)}
.p-author p{margin:.2rem 0 0;font-size:.9rem;color:var(--text-light)}
.p-next{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.p-next a{display:block;border:1px solid var(--border);border-radius:14px;padding:1.1rem 1.3rem;text-decoration:none;color:var(--black);font-family:var(--display);font-size:1.3rem;background:white}
.p-next a:last-child{text-align:right}
.p-next span{display:block;font-family:var(--body);font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--sage);margin-bottom:.3rem}
.p-sub{background:var(--sage-wash);border-radius:18px;padding:2rem;text-align:center}
.p-sub h3{font-weight:400;font-size:1.8rem;margin-bottom:.3rem}
.p-sub p{color:var(--text-light);margin-bottom:1rem}
.p-sub form{display:flex;gap:.5rem;max-width:420px;margin:0 auto}
.p-sub input{flex:1;padding:.75rem 1rem;border:1px solid var(--border);border-radius:100px;font:inherit}
.p-sub button{padding:.75rem 1.4rem;border:0;border-radius:100px;background:var(--sage);color:white;font:inherit;font-weight:500;cursor:pointer}
@media (max-width:900px){
 .p-triptych{grid-template-columns:1fr 1fr;height:auto}.p-triptych .p-fig{aspect-ratio:3/4}.p-triptych .p-fig:nth-child(2){grid-column:span 2;aspect-ratio:4/3;order:-1}
 .p-hero-text{margin-top:-3rem;padding:2rem 1.5rem 0}
 .p-intro{grid-template-columns:1fr;padding:0 1.5rem}
 .p-side,.p-side.is-flip{grid-template-columns:1fr;gap:1.2rem}.p-side.is-flip .p-fig{order:0}
 .p-row-3{grid-template-columns:1fr 1fr}.p-row-3 .p-fig:first-child{grid-column:span 2}.p-row-3 .p-fig:first-child img{aspect-ratio:4/3}
 .p-toc span{display:none}.p-toc{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto}
 .p-chapter h2{font-size:2rem}.p-next{grid-template-columns:1fr}.p-next a:last-child{text-align:left}
 .p-sub form{flex-direction:column}
}

/* --- Story layout additions (Nov 2026) --- */
.p-article{padding-top:72px}
.p-listen.is-soon .p-play{background:var(--sage-pale);cursor:default}
.p-listen.is-soon .p-listen-note{margin-top:1rem}
.p-listen audio{width:100%;margin-top:1rem}
.p-hero-text h1{margin-bottom:1.2rem}
.p-chapter{grid-template-columns:auto 1fr}
.p-chnum{grid-row:auto}
.p-chsub:empty{display:none}
.p-row.is-land img{aspect-ratio:4/3}
.p-side-text p:last-child{margin-bottom:0}
.p-toc button{flex:none;white-space:nowrap}
.p-tall{max-width:560px;margin:2.2rem auto 2.4rem;padding:0 1.5rem}
.p-tall img{aspect-ratio:3/4}
.p-tall figcaption{text-align:center}
.p-video{position:relative;max-width:380px;margin:0 auto 2.6rem;padding:0 1.5rem}
.p-video video{width:100%;display:block;border-radius:12px;background:#000;aspect-ratio:9/16;object-fit:cover}
.p-video figcaption{text-align:center;font-family:var(--display);font-style:italic;font-size:1rem;color:var(--text-light);margin-top:.6rem}
.p-sound{position:absolute;right:2.2rem;bottom:3.6rem;font:500 .75rem var(--body);background:rgba(0,0,0,.55);color:#fff;border:0;border-radius:100px;padding:.45rem .8rem;cursor:pointer}
.p-avatar img{width:64px;height:64px;border-radius:50%;object-fit:cover;display:block}
.p-avatar.has-photo{background:none}
.p-sub form{flex-wrap:wrap;justify-content:center}
.p-sub .fm-newsletter-msg{width:100%;font-size:.85rem;margin-top:.5rem}
.p-next a:only-child{grid-column:span 2}
.p-body a{color:var(--sage);border-bottom:1px solid rgba(122,139,114,.35);text-decoration:none}

/* --- 1.0.1 (Nov 19): hero fix. WordPress adds width/height to images, so the triptych photos grew past the hero
   and ran under the intro. Lock them to the hero height, and sit the title block below the photos instead of on them. --- */
.p-triptych{height:clamp(340px,36vw,640px);overflow:hidden}
.p-triptych .p-fig,.p-triptych .p-fig img{height:100%!important;width:100%;max-width:none}
.p-triptych .p-fig img{object-fit:cover;border-radius:0}
.p-hero-text{margin:0 auto;padding:2.8rem 1.5rem 0;border-radius:0;background:none;max-width:900px}
.p-intro{margin-top:2rem}
@media (max-width:900px){
 .p-triptych{height:auto}
 .p-triptych .p-fig{height:auto!important;aspect-ratio:3/4}
 .p-triptych .p-fig:nth-child(2){aspect-ratio:4/3}
 .p-triptych .p-fig img{height:100%!important}
 .p-hero-text{padding-top:2rem}
}
/* 1.0.2: no double offset under the fixed nav; frame hero photos a little low, where the climbers usually are. */
.p-article{padding-top:0}
.p-triptych .p-fig img{object-position:center 62%}
/* 1.0.3: the grid row was growing to the photo's full height, so the hero showed only the top of each photo.
   Pin the row to the hero height and let object-fit do the cropping. */
.p-triptych{grid-template-rows:minmax(0,1fr)}
.p-triptych .p-fig{min-height:0}
.p-triptych .p-fig img{aspect-ratio:auto}
@media (max-width:900px){
 .p-triptych{grid-template-rows:auto auto}
 .p-triptych .p-fig img{aspect-ratio:auto}
}
/* 1.0.4: full-width photos show the whole frame (no top/bottom crop), capped at 1400px wide. */
.p-bleed{max-width:1400px;margin:2.5rem auto;padding:0 1.5rem}
.p-bleed img{height:auto!important;border-radius:12px}
.p-bleed figcaption{padding:0}

/* ===== 1.1.0 (Nov 19): seven photo layouts, mixed through each post (never two of the same kind in a row) =====
   1 .p-wraptext/.p-float  wrapped photo     2 .p-stagger  staggered pair    3 .p-mosaic  big + two small
   4 .p-pin  photo pinned while text scrolls   5 .p-strip  sideways photo strip   6 .p-bleed  wide, uncropped
   7 .p-over  wide photo with a line set on it */
.p-wraptext{max-width:720px;margin:0 auto;padding:0 1.5rem}
.p-wraptext::after{content:"";display:table;clear:both}
.p-float{float:right;width:46%;margin:.4rem 0 1.2rem 2rem}
.p-float.is-left{float:left;margin:.4rem 2rem 1.2rem 0}
.p-float img{border-radius:12px}
@media(min-width:1100px){.p-float{width:52%;margin-right:-150px}.p-float.is-left{margin-left:-150px;margin-right:2.2rem}}
.p-stagger{max-width:1000px;margin:2.5rem auto;padding:0 1.5rem;display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:start}
.p-stagger .p-fig:nth-child(2){margin-top:5rem}
.p-stagger img{border-radius:12px}
.p-mosaic{max-width:1100px;margin:2.5rem auto .4rem;padding:0 1.5rem;display:grid;grid-template-columns:1.4fr 1fr;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:10px;height:min(78vw,760px)}
.p-mosaic .p-fig{min-height:0;height:100%}
.p-mosaic .p-fig img{height:100%!important;aspect-ratio:auto;object-fit:cover;border-radius:12px}
.p-mosaic .p-fig:first-child{grid-row:span 2}
.p-mosaic+.p-cap,.p-strip+.p-cap{margin-top:.6rem!important}
.p-pin{max-width:1100px;margin:2.5rem auto;padding:0 1.5rem;display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
.p-pin>.p-fig{position:sticky;top:100px}
.p-pin>.p-fig img{border-radius:12px}
.p-pin-text{padding:4vh 0 10vh}
.p-pin-text p:last-child{margin-bottom:0}
.p-strip{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:2.5rem 0 .4rem;padding:0 max(1.5rem,calc((100vw - 1100px)/2)) .6rem;scrollbar-width:thin}
.p-strip .p-fig{flex:0 0 min(70vw,360px);scroll-snap-align:start}
.p-strip .p-fig img{aspect-ratio:3/4!important;height:auto!important;object-fit:cover;border-radius:12px}
.p-strip-hint{max-width:1100px;margin:0 auto;padding:0 1.5rem;font-size:.78rem;color:var(--text-muted)}
.p-over{position:relative;max-width:1400px;margin:2.8rem auto;padding:0 1.5rem}
.p-over.is-tall{max-width:760px}
.p-over img{border-radius:12px;height:auto!important}
.p-over-line{position:absolute;left:3.5rem;bottom:2rem;max-width:440px;background:rgba(250,250,248,.93);border-radius:14px;padding:1.2rem 1.4rem;font-family:var(--display);font-size:1.4rem;line-height:1.35;color:var(--black)}
.p-over.is-tall .p-over-line{left:3rem;right:3rem;max-width:none}
@media(max-width:800px){
 .p-float,.p-float.is-left{float:none;width:100%;margin:1.5rem 0}
 .p-stagger{gap:.6rem}.p-stagger .p-fig:nth-child(2){margin-top:3rem}
 .p-mosaic{height:auto;grid-template-columns:1fr 1fr;grid-template-rows:auto}
 .p-mosaic .p-fig{height:auto}.p-mosaic .p-fig img{height:auto!important;aspect-ratio:3/4}
 .p-mosaic .p-fig:first-child{grid-column:span 2;grid-row:auto}.p-mosaic .p-fig:first-child img{aspect-ratio:4/3}
 .p-pin{grid-template-columns:1fr;gap:1.2rem}.p-pin>.p-fig{position:static}.p-pin-text{padding:0}
 .p-over-line,.p-over.is-tall .p-over-line{position:static;margin-top:.8rem;max-width:none;background:var(--sage-wash)}
}

/* ===== 1.1.1 (Nov 20): photo strip on desktop = centered, arrow buttons, mouse drag (Daniel: "pushed way to the left, and you can't drag it") ===== */
.p-strip-wrap{position:relative;max-width:1100px;margin:2.5rem auto .4rem;padding:0 1.5rem}
.p-strip-wrap .p-strip{margin:0;padding:0 0 .6rem;scroll-padding-inline:0;cursor:grab}
.p-strip-wrap .p-strip.is-drag{cursor:grabbing;scroll-snap-type:none;user-select:none}
.p-strip-wrap .p-strip.is-drag img{pointer-events:none}
.p-strip-btn{position:absolute;top:calc(50% - 28px);z-index:2;width:46px;height:46px;border-radius:50%;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.94);color:#2f2f2f;font-size:1.25rem;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 18px rgba(0,0,0,.12);transition:opacity .2s}
.p-strip-btn:hover{background:#fff}
.p-strip-btn.prev{left:.4rem}.p-strip-btn.next{right:.4rem}
.p-strip-btn[disabled]{opacity:0;pointer-events:none}
.p-strip-wrap+.p-cap{text-align:center}
.p-strip-hint{text-align:center}
@media(min-width:801px){.p-strip-hint{display:none}}
@media(max-width:800px){
 .p-strip-wrap{max-width:none;padding:0}
 .p-strip-wrap .p-strip{padding:0 1.5rem .6rem;scroll-padding-inline:1.5rem}
 .p-strip-btn{display:none}
}
