/* Peppermint Lane's two destinations stay in the same place in every header. */
.village-header .topbar:has(.lane-route-nav){flex-wrap:nowrap;gap:.35rem .7rem}
.village-header .topbar:has(.lane-route-nav) .nameplate{min-inline-size:0;flex:0 1 auto}
.village-header .topbar:has(.lane-route-nav) .brand-words-exact{min-inline-size:0;flex:0 1 auto}
.village-header .topbar:has(.lane-route-nav) .brand-words-exact img{max-inline-size:100%;block-size:auto}
.village-header .topbar .lane-route-nav,.winter-footer .lane-route-nav{flex:0 0 auto;display:flex;gap:.35rem;align-items:center}
.lane-route-nav .village-sign{min-inline-size:44px;min-block-size:44px}
.lane-route-nav .village-sign[aria-current="page"]{box-shadow:inset 0 0 0 2px #ffe5a9,0 2px 0 #081b21}
.lane-route-nav .village-sign:focus-visible{outline:2px solid #fff1bd;outline-offset:3px}
.winter-footer .village-rail:has(.lane-route-nav){flex-wrap:wrap;row-gap:.6rem}
@media screen {
 .lane-sticky-nav>.village-header{position:sticky;inset-block-start:0;z-index:5;background:#0d2439}
 :root:has(.lane-sticky-nav){scroll-padding-block-start:6rem}
}
@media (max-width:680px){
 .village-header .topbar:has(.lane-route-nav){gap:.25rem}
 .village-header .topbar .lane-route-nav{gap:.25rem}
 .village-header .topbar .lane-route-nav .village-sign{padding-inline:.34rem}
}
@media (max-width:370px){
 .village-header .topbar .lane-route-nav .village-sign{font-size:.77rem;padding-inline:.37rem}
 .village-header .topbar .lane-route-nav .village-icon{display:none}
}

/* Shared responsive visual audit refinements. No new graphics, assets or story copy. */
.skip:not(:focus){clip-path:inset(50%);opacity:0;pointer-events:none}
.skip:focus{z-index:30}
.winter-footer .lane-route-nav{justify-content:center}
.winter-footer .lane-route-nav .village-sign{justify-content:center}
.friend-shelf img{object-fit:contain;object-position:center}
#story-shelf .lane-shelf-opening .lane-pick{padding:.46rem .54rem .58rem 1.15rem;margin-inline-end:6px}
#story-shelf .lane-shelf-opening .lane-pick>img{border:3px double #ebc37d}
#story-shelf .lane-shelf-opening .lane-pick>div{padding:.48rem .06rem .12rem}
@media(max-width:620px){
 #story-shelf .lane-shelf-opening .lane-pick{padding:.32rem .3rem .35rem .56rem;margin-inline-end:4px}
 #story-shelf .lane-shelf-opening .lane-pick::before{width:.39rem;border-right:1px solid #dfb276}
 #story-shelf .lane-shelf-opening .lane-pick>img{border:1px solid #ebc37d}
 #story-shelf .lane-shelf-opening .lane-pick>div{padding:.35rem 0 .1rem}
}
#lane-main .advent-street .advent-house>a strong{overflow-wrap:anywhere}
@media(max-width:400px){#lane-main .lane-days.advent-street{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 #lane-main .lane-stops-grid .lane-stop{display:flex;flex-direction:column}
 #lane-main .lane-stop>.lane-stop-window{aspect-ratio:1.55;width:100%;min-height:0;border-right:0;border-bottom:3px double #e8c989}
}
#lane-main .lane-workshop .lane-craft-scene{align-self:center}
@media print{
 :root[data-lane-print] .lane-activities .lane-season-sign,.lane-activities .lane-season-sign{display:none!important}
 :root:not([data-lane-print]) .lane-workshop .lane-craft-sheet{display:block!important}
 :root:not([data-lane-print]) .lane-workshop .lane-craft-sheet img{display:block;width:auto;height:auto;max-width:100%;max-height:9in;margin:auto}
 :root:not([data-lane-print]) .lane-workshop .lane-craft:not(:first-of-type){break-before:page}
 :root:not([data-lane-print]) .lane-workshop .lane-craft-instructions,
 :root:not([data-lane-print]) .lane-workshop .lane-craft-scene,
 :root:not([data-lane-print]) .lane-workshop .lane-intro,
 :root:not([data-lane-print]) .lane-workshop>.lane-season-sign{display:none!important}
}
.reader.enhanced .leaf[data-art-fit="whole"] .leaf-art img{object-fit:contain;object-position:center}
.reader.enhanced .words{justify-content:safe center}
@media print{
 body:has(.lane-workshop) :is(.village-header,.winter-footer,.skip){display:none!important}
 :root:not([data-lane-print]) body:has(.lane-workshop) :is(.shelf-room,.lane-craft){margin:0!important;padding:0!important;display:block!important;border:0!important;background:#fff!important;box-shadow:none!important}
}
/* Real art keeps its edges on desktop, while long titles stay inside the leaf. */
@media(min-width:681px) and (max-width:1450px){
 .reading-page .reader.enhanced .leaf[data-leaf="1"] .words :is(h1,h2){font-size:clamp(1.75rem,3.6vw,3.1rem);line-height:1.05}
 .reading-page .reader.enhanced .leaf[data-leaf="1"] .book-title-mark{inline-size:clamp(2rem,4.25vw,3.15rem)}
}
@media(max-width:435px) and (max-height:520px){
 .reading-page .reader.enhanced{height:calc(100svh - 78px);min-height:0}
 .reading-page .reader.enhanced :is(.book,.leaf){min-height:0}
 .reading-page .reader.enhanced .leaf[data-art-fit="whole"]{grid-template-rows:minmax(0,.61fr) minmax(0,1fr)}
 .reading-page .reader.enhanced .leaf[data-art-fit="whole"] .leaf-art{min-height:0;aspect-ratio:auto}
 .reading-page .reader.enhanced .words{padding:.3rem .6rem;gap:.2rem}
 .reading-page .reader.enhanced .words :is(h1,h2){font-size:clamp(1.05rem,4.95vw,1.42rem)}
 .reading-page .reader.enhanced .words p{font-size:.94rem;line-height:1.31}
}
@media(min-width:436px) and (max-height:535px) and (orientation:landscape){
 .reading-page .reader.enhanced{height:calc(100svh - 78px);min-height:0;gap:.25rem}
 .reading-page .reader.enhanced :is(.book,.leaf){min-height:0}
 .reading-page .reader.enhanced .leaf[data-art-fit="whole"]{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-rows:minmax(0,1fr)}
 .reading-page .reader.enhanced .leaf[data-art-fit="whole"] .leaf-art{min-height:0;aspect-ratio:auto}
 .reading-page .reader.enhanced .words{padding:.35rem .65rem;gap:.24rem}
 .reading-page .reader.enhanced .words :is(h1,h2){font-size:clamp(1.1rem,3.7vh,1.4rem);line-height:1.09}
 .reading-page .reader.enhanced .words p{font-size:.88rem;line-height:1.27}
 .reading-page .reader.enhanced .book-title-mark{inline-size:1.45rem}
}
/* Ultra-short portrait: allow normal page flow rather than squeezing long copy beneath a fixed image. */
@media(max-width:435px) and (max-height:520px){
 .reading-page .reader.enhanced{height:auto;min-height:calc(100svh - 79px);grid-template-rows:auto minmax(0,1fr) auto}
 .reading-page .reader.enhanced .leaf[data-art-fit="whole"]{height:auto;min-height:0;grid-template-rows:clamp(68px,19svh,106px) minmax(min-content,1fr)}
 .reading-page .reader.enhanced .leaf[data-art-fit="whole"] .leaf-art{height:100%;max-height:100%}
 .reading-page .reader.enhanced .words{overflow:visible}
}
@media(min-width:436px) and (max-height:535px) and (orientation:landscape){
 .reading-page .reader.enhanced .leaf[data-art-fit="whole"]{grid-template-columns:minmax(0,.73fr) minmax(0,1.27fr)}
 .reading-page .reader.enhanced .words p{font-size:.86rem;line-height:1.22}
}
@media(max-width:435px) and (max-height:520px){
 .reading-page .reader.enhanced{height:auto;min-height:0;grid-template-rows:auto auto auto}
 .reading-page .reader.enhanced .book{height:auto;min-height:min-content}
 .reading-page .reader.enhanced .leaf[data-art-fit="whole"]{grid-template-rows:clamp(68px,19svh,106px) auto;align-items:stretch}
}
