/* Shared by the QR entry, the walking routes and the shop. */
html { scroll-padding-block-end: 6rem; }
#app:focus:not(:focus-visible) { outline: none; }
.finish-link { display: flex; width: fit-content; min-height: 46px; align-items: center; gap: 1.25rem; padding: .6rem 0; margin: 1.3rem 0; color: var(--blue); font-weight: 650; text-underline-offset: .24em; }
.finish-link span { font-size: 1.4rem; line-height: 1; }
.resume-walk { margin-bottom: .8rem; }
.shop-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: stretch; }
.shop-actions .btn { text-align: center; }
.bottom-nav [aria-current=page] { font-weight: 700; }
.work-heading .audio-guide { margin: .9rem 0; }
.route-item > div, .work-copy, .work-heading, .shop-invitation, .keepsake > *, .share-panel > * { min-width: 0; }
.work-heading, .work-story, .shop-invitation, .route-item h3, .art-card h3 { overflow-wrap: break-word; }
.artist-note summary, .audio-guide summary { display: list-item; min-height: 44px; padding-block: .65rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .2em; }
.footer-links .online-shop { font-weight: 700; color: var(--blue); }
#toast { pointer-events: none; }
@media (max-width: 760px) {
  :root { --gutter: clamp(16px, 4.6vw, 30px); --dock-space: calc(5.4rem + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: var(--dock-space); }
  body { min-width: 0; }
  .topbar { height: auto; min-height: 60px; padding: max(.45rem,env(safe-area-inset-top,0px)) max(var(--gutter),env(safe-area-inset-right,0px)) .45rem max(var(--gutter),env(safe-area-inset-left,0px)); }
  .brand { gap: .65rem; }
  .brand-logo { width: 47px; height: 45px; }
  .brand span { padding-left: .65rem; font-size: .53rem; letter-spacing: .14em; }
  #language { min-height: 44px; max-width: 40vw; padding: .45rem .6rem; border-radius: .45rem; font-size: 1rem; }
  .page, .hero { padding-inline: max(var(--gutter),env(safe-area-inset-left,0px)) max(var(--gutter),env(safe-area-inset-right,0px)); }
  .page { padding-block: 1.4rem var(--dock-space); }
  .bottom-nav { bottom: env(safe-area-inset-bottom,0px); left: 0; right: 0; transform: none; width: 100%; max-width: none; margin: 0; border-radius: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; gap: .1rem; padding: .3rem max(.3rem,env(safe-area-inset-right,0px)) .3rem max(.3rem,env(safe-area-inset-left,0px)); box-shadow: 0 -1px 0 #18211735; }
  .bottom-nav::after { content: ''; position:absolute; inset:100% 0 auto; height:env(safe-area-inset-bottom,0px); background:var(--ink); }
  .bottom-nav a { display: grid; place-items: center; padding: .4rem .1rem; min-height: 46px; font-size: clamp(.75rem,3.05vw,.92rem); line-height: 1.2; white-space: normal; text-align: center; overflow-wrap: anywhere; border-radius: .42rem; }
  #toast { bottom: calc(var(--dock-space) - 1rem); text-align: center; width: max-content; }
  .hero { display: grid; grid-template-columns: minmax(0,1fr) clamp(88px,26vw,155px); grid-template-areas:"eyebrow eyebrow" "title portrait" "quote quote" "audio audio" "routes routes"; gap: .8rem 1rem; align-items: center; padding-block: 1.35rem 1.5rem; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { grid-area: eyebrow; margin: 0; }
  .hero h1 { grid-area: title; margin: 0; font-size: clamp(2.45rem,8.5vw,4.4rem); line-height: .99; overflow-wrap: break-word; }
  .hero-image { grid-area: portrait; align-self: center; position: relative; height: auto; min-height: 0; border-radius: .25rem; overflow: hidden; }
  .hero-image img { display:block; width:100%; height:auto; min-height:0; aspect-ratio: 3/4; object-fit: contain; }
  .hero-image .round-stamp, .hero-image .photo-credit { display: none; }
  .hero .walk-quotation { grid-area: quote; max-width: 48ch; margin: .2rem 0 0; }
  .hero .walk-quotation blockquote { font-size: 1.04rem; line-height: 1.45; }
  .hero .audio-guide { grid-area: audio; margin: 0; }
  .hero .walk-choices { grid-area: routes; width:100%; margin: .6rem 0 0; max-width:none; }
  .walk-options { border-top-color: var(--line); }
  .walk-option { min-height: 64px; padding: .65rem .15rem; gap:.7rem; }
  .walk-option-title { font-size: 1.26rem; }
  .walk-option-hint { font-size: .89rem; }
  .walk-start { grid-template-columns: clamp(60px,18vw,88px) minmax(0,1fr); }
  .walk-start-links a, .walk-context .back, .work-detail + .finish-link, .page > .back { min-height: 44px; display: inline-flex; align-items: center; }
  .walk-start-links, .route-head { flex-wrap: wrap; }
  .btn, .favorite, .choice, .link-button, .segmented button { min-height: 44px; }
  .btn, .favorite, .choice { font-size: .96rem; }
  .btn, .favorite { border-radius: .4rem; }
  .btn:active, .walk-option:active, .favorite:active { filter: brightness(.95); }
  .segmented { display:flex; width: fit-content; border-radius: .45rem; overflow: hidden; }
  .segmented button { white-space: normal; padding-inline: .62rem; font-size: .91rem; line-height: 1.2; }
  .section-head h1, .work-heading h1, .finale-intro h1, .artist-heading h1 { font-size: clamp(2.45rem,8.6vw,3.8rem); }
  .work-detail { grid-template-areas: "heading" "media" "copy"; grid-template-columns: minmax(0,1fr); gap:.7rem; }
  .work-heading .audio-guide { margin: .75rem 0 .1rem; }
  .audio-guide .guide-panel { padding: .68rem; border-radius: .45rem; }
  .audio-guide audio { min-width: 0; max-width: 100%; }
  .work-media { width:100%; position:static; border-radius:.45rem; overflow:hidden; }
  .work-media img, .work-media video { width:100%; height:auto; max-height:52vh; max-height:52svh; object-fit:contain; }
  .motion-actions { padding:.6rem 0; }
  .motion-actions .btn { width: 100%; }
  .work-story { max-width: 54ch; }
  .work-story > p { font-size:1.07rem; line-height:1.58; }
  .map { height: min(58vh,30rem); height:min(58svh,30rem); min-height:180px; }
  .footer-links { gap:.2rem 1rem; margin-top:2rem; padding:.6rem 0; font-size:.86rem; }
  .ticker { letter-spacing:.07em; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .map { height:62vh; height:62svh; }
  .work-media img, .work-media video { max-height:65vh; }
}

/* Keep the shop actions in view before optional post-walk activities. */
@media (max-width: 760px) {
  .finale-intro { padding: .4rem 0 1.7rem; grid-template-columns: minmax(0,1fr); gap:1.4rem; }
  .finale-intro h1 { margin:0 0 .85rem; font-size:clamp(2.65rem,9.2vw,4.25rem); }
  .finale-intro .lead { margin-bottom:1rem; line-height:1.5; }
  .shop-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:.55rem; }
  .shop-actions .btn { min-height:48px; }
  .finale-practical { padding:1rem 0 0; border-left:0; border-top:1px solid var(--line); }
  .finale-practical h3 { font-size:1.15rem; margin:0 0 .25rem; }
  .finale-practical p { font-size:.95rem; margin:0 0 .85rem; }
  .keepsake,.share-panel,.conservation { grid-template-columns:minmax(0,1fr); }
  .keepsake-photos { max-width:100%; }
  .keepsake-form { padding:clamp(15px,4.3vw,24px); }
  .keepsake-form input[type=email] { min-width:0; }
  .conservation { padding:clamp(18px,5vw,30px); margin-inline:0; }
  .conservation .amount { min-width:0; padding-inline:.55rem; }
  .ranking-list { grid-template-columns:minmax(0,1fr); }
  .ranking-list a { grid-template-columns:20px 50px minmax(0,1fr) 12px; gap:.6rem; }
  .ranking-list img { width:50px; height:65px; }
  .newsletter-choice, .data-details summary, .reward-details summary { min-height:44px; }
}
@media (min-width: 540px) and (max-width: 760px) {
  .shop-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

