.journey-head .mast {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:8px 18px;
  min-height:74px;
  padding:10px clamp(14px,4vw,68px);
}
.journey-head .mast-brand { justify-self:center; color:var(--rr-forest); font-size:clamp(26px,3vw,38px); }
.journey-head #list { grid-area:1 / 3; justify-self:end; min-height:44px; white-space:nowrap; }
.journey-head .mast > #location { grid-area:2 / 1 / 3 / -1; justify-self:center; max-inline-size:100%; }
body:has(#start:not([hidden])) .journey-head :is(#location,.route) { display:none; }

.mast-start {
  display:flex;
  align-items:center;
  gap:clamp(9px,2.2vw,34px);
  justify-self:start;
  color:var(--rr-ink);
}
#shop-menu { position:relative; }
#shop-menu summary,.mast-party {
  display:inline-flex;
  align-items:center;
  gap:.65em;
  min-height:44px;
  color:inherit;
  font:1rem var(--rr-display);
  white-space:nowrap;
}
#shop-menu summary { cursor:pointer; list-style:none; }
#shop-menu summary::-webkit-details-marker { display:none; }
.mast-menu-icon {
  width:17px;
  height:9px;
  border-block:1px solid currentColor;
}
#shop-menu[open] .mast-menu-icon { transform:rotate(-8deg); }
.mast-party {
  padding:0 13px;
  border:1px solid var(--rr-gold);
  border-radius:4px;
  background:var(--rr-forest);
  color:var(--rr-on-forest);
  text-decoration:none;
}
.mast-party:hover { background:var(--rr-forest-hover); }
.mast-party span { font:inherit; }
#shop-menu-links {
  position:absolute;
  z-index:5;
  top:calc(100% + 8px);
  inset-inline-start:0;
  display:grid;
  width:min(330px,calc(100vw - 28px));
  max-height:calc(100svh - 125px);
  overflow-y:auto;
  padding:9px 15px;
  border:1px solid var(--rr-rule);
  border-top:2px solid var(--rr-gold);
  background:var(--rr-pearl);
  box-shadow:var(--rr-shadow);
}
#shop-menu[open] #shop-menu-links { animation:menu-appear 240ms ease-out both; }
@keyframes menu-appear {
  from {opacity:0; transform:translateY(-5px)}
  to {opacity:1; transform:translateY(0)}
}
.menu-station {
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 10px;
  border-bottom:1px solid var(--rr-rule);
  color:inherit;
  text-decoration:none;
  font:1.05rem/1.2 var(--rr-display);
}
.menu-station:last-child { border-bottom:0; }
.menu-station:is(:hover,:focus-visible,[aria-current]) { background:var(--rr-linen); }
.journey-head :is(a,summary,button):focus-visible { outline:2px solid var(--rr-gold-ink); outline-offset:3px; }

main { isolation:isolate; }
#journey-opening main:has(#start:not([hidden])) {
  overflow:clip;
  min-height:clamp(450px, calc(83svh - var(--journey-header-height,74px)), 760px);
}
.garden-depth { display:none; }
main:has(#start:not([hidden])) .garden-depth {
  display:block;
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:inherit;
}
.garden-depth::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(110deg,var(--rr-champagne),transparent 82%);
  animation:garden-open 900ms ease-out both;
}
@keyframes garden-open { from {opacity:.7} to {opacity:0} }
#start { animation:paper-open 630ms ease-out both; }
@keyframes paper-open { from {opacity:0; translate:0 8px} to {opacity:1; translate:none} }
#journey-story[hidden] { display:none; }
#journey-story { background:var(--rr-ivory); color:var(--rr-ink); }
#return-to-preview { color:var(--rr-forest); text-decoration:underline; text-underline-offset:4px; white-space:nowrap; }
@media (max-width:680px) {
  .journey-head .mast { grid-template-columns:minmax(0,1fr) auto; gap:2px 10px; padding-block:6px; }
  .journey-head .mast-brand { grid-area:1 / 1; justify-self:start; }
  .journey-head #list { grid-area:1 / 2; }
  .mast-start { grid-area:2 / 1 / 3 / -1; }
  .journey-head .mast > #location { grid-row:3; font-size:11px; }
  #journey-opening main:has(#start:not([hidden])) { min-height:clamp(320px, 61svh, 510px); padding-bottom:76px; }
}
@media (max-width:460px) {
  .folio:has(#return-to-preview:not([hidden])) { display:grid; grid-template-columns:1fr auto; gap:2px 10px; }
  .folio:has(#return-to-preview:not([hidden])) .item-select { grid-column:1/-1; justify-self:start; max-width:100%; }
}
@media (orientation:landscape) and (max-height:500px) {
  #journey-opening main:has(#start:not([hidden])) { min-height:290px; padding-block:18px 65px; }
  #journey-opening #start { min-height:0; padding-block:15px; }
  #journey-opening #start i { margin-bottom:10px; }
  #journey-opening #start strong { font-size:clamp(22px,6vh,31px); }
  #journey-opening #start em { margin-top:10px; }
}

