.story-root:has(.walk) { padding-inline: 0; }
.walk:has(.handmap) { padding-top: 26px; }
.walk-map-intro { padding-bottom: 8px; max-width: 820px; }
.walk-map-intro h1 { font-size: clamp(30px, 3.6vw, 46px); margin: 10px 0 16px; }
.walk-map-intro p { max-width: 43em; }
.handmap { margin: 14px 0 40px; scroll-margin-top: 100px; }
.handmap-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.handmap-heading .eyebrow { margin: 0 0 6px; }
.handmap-heading h2 { margin: 0; font-size: 27px; }
.handmap-story-link { font-size: 14px; flex-shrink: 0; }
.handmap-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #eeeae0; border: 1px solid #d9d6cd; border-bottom: 0; }
.handmap-toolbar > span { font-size: 14px; color: #47564e; }
.handmap-toolbar > div { display: flex; align-items: center; gap: 6px; }
.handmap-toolbar button { appearance: none; cursor: pointer; background: #faf8f1; border: 1px solid #c6c8bb; color: #3e4a3f; min-height: 40px; min-width: 40px; padding: 6px 12px; font: inherit; font-size: 14px; border-radius: 4px; }
.handmap-toolbar button:hover { background: #e0e5d8; }
.handmap-toolbar button:disabled { opacity: .4; cursor: default; }
.handmap button:focus-visible, .handmap-viewport:focus-visible, .handmap-directory summary:focus-visible { outline: 3px solid #97503d; outline-offset: 3px; }
.handmap-scale { min-width: 45px; text-align: center; font-size: 12px; color: #53614f; font-variant-numeric: tabular-nums; }
.handmap-viewport { height: clamp(410px, 49vw, 640px); overflow: auto; position: relative; background: #f8f3e8; border: 1px solid #d9d6cd; cursor: grab; overscroll-behavior-x: contain; }
.handmap-viewport.is-dragging, .handmap-viewport.is-dragging * { cursor: grabbing !important; }
.handmap-world { margin: auto; min-width: 0; user-select: none; }
.handmap-svg { display: block; width: 100%; height: 100%; }
.handmap-svg image { pointer-events: none; }
.handmap-hotspot { cursor: pointer; outline: none; }
.handmap-hotspot polygon { fill: transparent; stroke: transparent; stroke-width: 3px; stroke-linejoin: round; pointer-events: all; }
.handmap-hotspot:hover polygon, .handmap-hotspot:focus polygon, .handmap-hotspot.is-highlighted polygon { fill: #b24a2524; stroke: #a03d23; }
.handmap-hotspot:focus polygon { stroke-width: 4px; }
.handmap-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; }
.handmap-caption p, .handmap-caption a { font-size: 12px; line-height: 1.7; margin: 0; color: #626c61; }
.handmap .handmap-current { color: #844531; font-size: 14px; min-height: 28px; margin: 12px 0; }
.handmap-directory { border-top: 1px solid #d9d6cd; border-bottom: 1px solid #d9d6cd; padding: 13px 0; }
.handmap-directory summary { cursor: pointer; font-size: 16px; }
.handmap-directory summary span { color: #6d766b; font-size: 13px; padding-left: 16px; }
.handmap-category h3 { font-family: inherit; font-size: 14px; font-weight: 500; color: #5c6b58; margin: 20px 0 8px; }
.handmap-category ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; list-style: none; padding: 0; margin: 0 0 15px; }
.handmap-category li { min-width: 0; border-bottom: 1px solid #e5e2d9; }
.handmap-category a { display: flex; justify-content: space-between; gap: 8px; align-items: center; min-height: 46px; padding: 8px 0; font-size: 14px; line-height: 1.6; }
.handmap-category a span { color: #8c9785; }
.handmap-loading, .handmap-fallback { padding: 40px 0; }
#walk-stories { scroll-margin-top: 110px; }
@media (max-width: 700px) {
  .handmap-heading { display: block; }
  .handmap-heading h2 { font-size: 23px; }
  .handmap-story-link { display: inline-block; margin-top: 10px; }
  .handmap-toolbar { flex-wrap: wrap; padding: 10px; gap: 8px; }
  .handmap-toolbar > div { flex-wrap: wrap; gap: 5px; }
  .handmap-toolbar button { min-height: 44px; min-width: 44px; padding: 6px 10px; }
  .handmap-caption { display: block; }
  .handmap-caption a { display: inline-block; margin-top: 5px; }
  .handmap-category ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .handmap-viewport { height: 440px; }
}
@media (max-width: 380px) {
  .handmap-toolbar button { padding: 6px 8px; }
  .handmap-scale { min-width: 35px; }
  .handmap-category ul { grid-template-columns: 1fr; }
}

/* Original illustration layers: all labels and hit areas remain crisp at any zoom. */
.handmap-svg .map-geography { pointer-events: none; }
.handmap-svg .map-title { font: 600 70px "Songti SC", "Noto Serif SC", serif; letter-spacing: 10px; fill: #304f42; }
.handmap-svg .map-kicker { font: 13px Georgia, "PingFang SC", sans-serif; letter-spacing: 4px; fill: #7d8c76; }
.handmap-svg .map-subtitle { font: 18px "Songti SC", serif; letter-spacing: 3px; fill: #7a806e; }
.handmap-svg .map-road-name { font: 13px "PingFang SC", sans-serif; fill: #978b76; paint-order: stroke; stroke: #fffcf3; stroke-width: 4px; }
.handmap-svg .map-area-name { font: 14px "Songti SC", serif; fill: #879375; letter-spacing: 3px; }
.handmap-svg .map-water-name { font: 20px "Songti SC", serif; fill: #799a8b; letter-spacing: 6px; }
.handmap-svg .map-key { font: 14px "PingFang SC", sans-serif; fill: #74816b; }
.handmap-svg .map-tree path:first-child { fill: none; stroke: #9b9477; stroke-width: 2; }
.handmap-svg .map-tree path:last-child { fill: #bbcaac; fill-opacity: .65; stroke: #9bad8f; stroke-width: 1; }
.handmap-svg .map-walk-route { fill: none; stroke: #bc9478; stroke-width: 2; stroke-dasharray: 3 8; opacity: .7; }
.handmap-hotspot .map-ground { fill: #c9b998; opacity: .12; transition: opacity .15s; }
.handmap-hotspot .map-place-label text { font: 500 16px "PingFang SC", "Microsoft YaHei", sans-serif; fill: #385144; paint-order: stroke; stroke: #f8f3e8; stroke-width: 6px; stroke-linejoin: round; }
.handmap-hotspot .map-category-dot { fill: #6f8b72; }
.handmap-hotspot.is-food .map-place-label text { fill: #9c6645; font-size: 15px; }
.handmap-hotspot.is-food .map-category-dot { fill: #b47752; }
.handmap-hotspot:hover .map-ground, .handmap-hotspot:focus .map-ground, .handmap-hotspot.is-highlighted .map-ground { opacity: .5; }
.handmap-hotspot:hover polygon, .handmap-hotspot:focus polygon, .handmap-hotspot.is-highlighted polygon { fill: #c7a27a0a; stroke: #a16f47; stroke-width: 1.5px; stroke-dasharray: 3 4; }
.handmap-hotspot:focus-visible polygon { stroke-width: 3px; stroke-dasharray: none; }
@media(prefers-reduced-motion:reduce) { .handmap-hotspot .map-ground { transition: none; } }

/* Geographic anchors remain fixed when illustrations are moved for readability. */
.handmap-hotspot .map-leader { fill: none; stroke: #788b73; stroke-width: 1.5; stroke-dasharray: 3 3; pointer-events: none; }
.handmap-hotspot .map-location { fill: #416b50; stroke: #fffdf7; stroke-width: 2; pointer-events: all; }
.handmap-hotspot.is-food .map-location { fill: #b47752; }
.handmap-hotspot.is-food .map-leader { stroke: #b47752; }
.handmap-hotspot:hover .map-location, .handmap-hotspot.is-highlighted .map-location { r: 9; stroke-width: 3; }
.handmap-hotspot:hover .map-leader, .handmap-hotspot.is-highlighted .map-leader { stroke-width: 3; stroke-dasharray: none; }
.handmap-svg .map-road-name { font-size: 17px; }
.handmap-svg .map-area-name { font-size: 23px; }
.handmap-svg .map-key { font-size: 18px; }
/* Artwork stays on its location; only names use callout leaders. */
.handmap-hotspot .map-place-label text { font-size: 14px; stroke-width: 4px; }
.handmap-hotspot.is-food .map-place-label text { font-size: 14px; }
.handmap-hotspot .map-leader { stroke-width: 1; stroke-dasharray: none; opacity: .7; }
.handmap-hotspot .map-location { stroke-width: 1.2; }
.handmap-hotspot:hover .map-location, .handmap-hotspot.is-highlighted .map-location { r: 5; stroke-width: 1.5; }
