/* The sections use the space previously occupied by the contents list. */
.nm-page .nm-main .nm-content {display:block;width:min(calc(100% - 2 * var(--nm-gutter)),1080px)}
.nm-page .nm-content .nm-sections {width:100%;max-width:100%}
.nm-page .nm-section>p {max-width:76ch}
.nm-page .batch-order {margin:0 0 20px;max-width:60ch}
.nm-page .compare {scroll-margin-block-start:calc(var(--nm-bar-height) + 14px)}
.nm-home {--hero-pastry:clamp(205px,20.3125vw,332px);--cup-pastry:clamp(85px,9.375vw,145px)}
.nm-home {--shell-pastry:calc((var(--hero-pastry) + var(--cup-pastry))/2)}
.nm-home.flight-ready main {position:relative}
.nm-home.flight-ready main > #journey {position:fixed}
.nm-home.flight-ready #storySurface .diagram-sample {visibility:hidden}
.nm-home #tray .well>.journey-art {inset:auto;left:50%;top:50%;translate:-50% -50%;width:var(--cup-pastry);height:auto;aspect-ratio:1}
.journey-art .journey-render {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;display:none}
@media(min-width:768px){
 .nm-home .journey-art.has-render .journey-render {display:block;opacity:calc(1 - var(--parts-opacity,0))}
 .nm-home .journey-art.has-render>.journey-whole {visibility:hidden!important}
 .nm-home #tray .well>.journey-art.has-render>.journey-whole {visibility:hidden!important}
}
@media(max-width:767.98px){
 /* One reading column and one illustration column keep the flight clear of text. */
 .nm-home #inside .story-inner {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:10px;padding:28px 12px;min-height:0;height:auto}
 .nm-home #inside .story-copy {grid-column:1;grid-row:1;margin:0;width:100%;max-width:100%;text-align:left}
 .nm-home #inside .story-art {grid-column:2;grid-row:1;margin:0;width:100%;max-width:100%;height:clamp(255px,34svh,320px)}
 .nm-home #inside #storySurface {width:100%;height:100%;overflow:visible}
 .nm-home #inside .story-copy .eyebrow {font-size:9px;justify-content:flex-start;text-align:left;letter-spacing:.10em}
 .nm-home #inside .story-copy h2 {font-size:clamp(33px,9.1vw,48px);line-height:1}
 .nm-home #inside .story-copy .step-controls {align-items:flex-start;justify-content:flex-start;flex-flow:column;gap:4px;margin:12px 0 8px}
 .nm-home #inside #storyText {min-height:8em}
 .nm-home #inside #storyText p {font-size:14px;line-height:1.45}
 .nm-home[data-journey=shell] #inside.shell-open #layerLabels {top:0;bottom:auto;right:0;width:100%;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:3px 6px;font-size:10px}
 .nm-home #inside #layerLabels span::before {display:none}
 .nm-home .pastry-bob>.journey-art {position:absolute;inset:0}
 .nm-home .pastry-bob:has(>.journey-art)>img {visibility:hidden}
 .nm-home .pastry-bob>.journey-art .phone-layers {display:none}
}
/* Continuous pastry sizes refer to the complete square artwork. */
.nm-home #inside .shell-menu {max-width:none;text-align:left}
.nm-home #inside .shell-menu-track {pointer-events:none}
.nm-home #inside .shell-menu a {pointer-events:auto}
@media(min-width:768px) {
 .nm-home #flavours .picker {width:min(54%,660px);align-self:flex-start;margin-inline:0}
 .nm-home #flavours .picker .flavour-dots {flex-wrap:wrap}
 .nm-home #flavours .picker .flavour-dots button {white-space:nowrap}
 .nm-home #heroArt .art-credit {left:0;right:auto;max-width:23%;font-size:10px;bottom:5%}
 .nm-home #gift .lid {padding-right:25%}
}
@media(max-width:767.98px) {
 .nm-home {--hero-pastry:min(50.8906vw,259.54px);--cup-pastry:min(24.173vw,123.28px)}
 .nm-home #flavours .hero-inner {grid-template-areas:"eyebrow" "title" "note" "picker" "actions" "visual"}
 .nm-home #flavours .phone-plate {margin-top:14px}
 .nm-home #flavours .plate-piece[data-seat=front] {width:calc(var(--hero-pastry)/1.12);transform:translate(-50%,-40%) scale(1.12)}
 .nm-home #flavours .plate-piece[data-seat=front] img.journey-whole {animation-name:front-turn}
 @keyframes front-turn {0%{transform:translateX(-3px) rotate(-5deg) scale(.923)}50%{transform:translateX(.5px)}100%{transform:translateX(4px) rotate(5deg) scale(.923)}}
 .nm-home #flavours .picker {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;column-gap:4px;row-gap:0}
 .nm-home #flavours .picker :is(.chip-window,.flavour-dots,.paging) {display:contents}
 .nm-home #flavours .flavour-dots button {display:inline-flex;position:relative;align-items:center;justify-content:center;gap:8px;padding-inline:6px;min-height:44px;width:auto}
 .nm-home #flavours .flavour-dots .name {position:static;display:inline;transform:none;margin:0}
 .nm-home #flavours .flavour-dots .swatch {position:relative;flex:0 0 9px;margin:0}
 .nm-home #flavours .paging #autoHero {position:relative;align-self:center;margin:0;width:44px;height:44px}
 .nm-home #inside .shell-menu-track {padding-inline:12px}
 .nm-home #inside .shell-menu a {max-width:47%;font-size:14px}
 .nm-home #gift .gift-inner {display:flex;flex-direction:column;align-items:stretch}
 .nm-home #gift .gift-art {order:-1}
 .nm-home #gift .lid {padding-right:22%}
 .nm-home #gift .gift-copy {display:flex;flex-direction:column;align-items:flex-start}
}
@media(max-width:767.98px) {
 .nm-home #inside .story-copy .eyebrow {max-width:112px;margin-left:0;margin-right:auto;line-height:1.35;text-wrap:balance}
}
/* All six controls share the same two centred rows and alignment. */
@media(min-width:768px) {
 .nm-home #flavours .picker {
   display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;
   justify-items:center;gap:clamp(4px,1.4vw,23px) 0;
 }
 .nm-home #flavours .picker :is(.chip-window,.flavour-dots,.paging) {display:contents}
 .nm-home #flavours .picker button {align-self:center;margin:0}
 .nm-home #flavours #autoHero {width:44px;height:44px}
}

#flavours.idle-offscreen :is(.pastry-bob,.plate-piece img,.formation-still img,.ingredient,.sugar-curl),
#flavours.idle-offscreen .phone-arrangement::before,
#flavours.idle-offscreen .hero-formation::before {animation-play-state:paused}

/* Keep a single visible gift action while the hero link is reachable. */
.nm-head .nm-gift[data-hero-action] {
  transition:opacity .2s ease,visibility 0s,transform .42s var(--nm-ease),background-color .22s,color .22s;
}
.nm-head .nm-gift[data-hero-action=visible] {opacity:0;visibility:hidden;pointer-events:none}
@media(max-width:767.98px) {
  .nm-home #flavours .hero-inner {
    grid-template-areas:"eyebrow" "title" "note" "visual" "picker" "actions";
    padding-top:12px;
  }
  .nm-home #flavours #flavourTitle {height:clamp(110px,28.8vw,127px);margin:2px 0 6px}
  .nm-home #flavours:is([data-flavour="2"],[data-flavour="4"]) #flavourTitle {
    font-size:min(var(--phone-title,56px),12vw);
  }
  .nm-home #flavours .phone-plate {margin:2px 0 0;height:clamp(195px,32svh,246px)}
  .nm-home #flavours .phone-plate .ingredient.near {width:15%;left:1%;top:50%;filter:none}
  .nm-home #flavours .phone-plate .ingredient.far {width:13%;right:3%;top:8%;filter:none}
  .nm-home #flavours .phone-plate .ingredient.foreground {width:12%;right:18%;bottom:7%;filter:blur(.25px)}
  .nm-home #flavours .phone-plate .sugar-curl {width:12%;right:1%;top:62%;filter:none}
  body[data-route="flavour-menu"] #content .nm-intro-copy a.inline-target {
    display:inline-block;position:relative;min-height:0;padding:0;vertical-align:baseline;line-height:inherit;
  }
  body[data-route="flavour-menu"] #content .nm-intro-copy a.inline-target::after {
    content:"";position:absolute;inset-inline:0;top:50%;height:max(44px,100%);transform:translateY(-50%);
  }
}
@media(min-width:768px) {
  .nm-home #flavours #flavourTitle {align-content:end;margin-bottom:8px}
  .nm-home #flavours #flavourNote {margin-top:0}
  .nm-home #heroArt .art-credit {left:30%;bottom:3%;max-width:none;white-space:nowrap}
}
