@font-face {
  font-family: Barlow;
  src: url("./assets/fonts/barlow-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --navy: #284b7d;
  --navy-dark: #193658;
  --ink: #18181b;
  --muted: #525d6c;
  --slate: #4c6688;
  --white: #fff;
  --mist: #eef2f7;
  --cloud: #f7f8fa;
  --field: #f6fafe;
  --line: #d4dbe5;
  --control-line: #71869d;
  --focus: #356aad;
  --error: #a73039;
  --japanese: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
  --ui: Barlow, "Helvetica Neue", Helvetica, var(--japanese);
  --body: Helvetica, Arial, var(--japanese);
  --wide: 1200px;
  --edge: clamp(16px, 4vw, 56px);
  --gap: clamp(24px, 4vw, 48px);
  --section: clamp(48px, 6vw, 80px);
  --radius: 4px;
  --pill: 1000px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--white); font: 500 1rem/1.8 var(--body); overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
button, select, input { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
a { color: var(--navy); text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4, p, ol { margin: 0; }
h1, h2, h3, h4, legend { color: var(--navy); font-family: var(--ui); font-weight: 600; text-wrap: balance; }
h2 { margin: 4px 0 24px; font-size: clamp(1.5rem, 3.3vw, 2rem); line-height: 1.5; }
h3 { font-size: 1.375rem; line-height: 1.5; }
h4 { margin: 20px 0 4px; font-size: 1.125rem; line-height: 1.6; }
.wrap { width: min(var(--wide), calc(100% - 2 * var(--edge))); margin-inline: auto; }
.block { padding-block: var(--section); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; z-index: 10; background: var(--white); padding: 8px 16px; }
[hidden] { display: none !important; }

/* Masthead */
.top { position: relative; z-index: 3; background: var(--white); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; min-height: 76px; gap: clamp(16px, 3vw, 40px); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; text-decoration: none; white-space: nowrap; font: 600 clamp(1.5rem, 2.5vw, 1.875rem)/1 var(--ui); }
.brandmark { position: relative; width: 32px; height: 32px; display: inline-block; border-radius: 50%; background: var(--navy); overflow: hidden; }
.brandmark::before, .brandmark::after { content: ""; position: absolute; left: 4px; bottom: -5px; width: 27px; height: 35px; border: 2px solid var(--white); border-top: 0; border-right: 0; border-radius: 0 0 0 90%; transform: rotate(51deg); }
.brandmark::after { left: 12px; }
.top nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font: 600 .9375rem/1.2 var(--ui); }
.top nav a:hover { text-decoration: underline; }
.lang select { background-color: var(--white); border-color: var(--line); font: 600 .9375rem/1.2 var(--ui); border-radius: var(--pill); }
.menu-toggle { display: none; }
select {
  min-height: 48px; padding: 9px 12px; border: 1px solid var(--control-line); border-radius: var(--radius);
  background-color: var(--field); font: 500 1rem/1.5 var(--body);
}
select {
  max-width: 100%; appearance: none; color: var(--navy); padding-inline: 14px 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23284b7d' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.lang select { min-height: 44px; }
.kicker, .review .meta, .trip-form label, .review-filters label {
  color: var(--slate); font: 600 .9375rem/1.5 var(--ui);
}
.kicker { margin: 0; }
.hero { background: var(--mist); }
.hero-in { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); max-width: 1600px; margin-inline: auto; }
.hero-text { align-self: center; padding: clamp(48px, 5vw, 80px) var(--gap) clamp(48px, 5vw, 80px) max(var(--edge), calc((min(100vw, 1600px) - var(--wide)) / 2)); }
.hero .kicker { display: flex; align-items: center; gap: 12px; }
.hero .kicker::before { content: ""; width: 30px; height: 2px; background: var(--navy); }
.hero h1 { margin: 16px 0; font-size: clamp(2.65rem, 5.1vw, 5rem); line-height: 1.04; }
.hero h1 span { display: block; }
:lang(ja) .hero h1 { font-size: clamp(2.35rem, 4.2vw, 4rem); line-height: 1.26; }
.lede { max-width: 43ch; }
.hero-art { min-height: clamp(380px, 34vw, 535px); position: relative; overflow: hidden; }
.hero-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scaleX(-1); }
.hero-actions, .links, .help-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; }
.hero-actions { gap: 8px 24px; margin-top: 24px; }
.btn, .hero-link, .inline, .links a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--navy); font: 600 1rem/1.5 var(--ui);
}
.btn { border: 1px solid var(--navy); text-decoration: none; padding: 11px 24px; }
.dark { background: var(--navy); color: var(--white); border-radius: var(--pill); }
.dark:hover { background: var(--navy-dark); }
.line { border-radius: var(--radius); background: var(--white); }
.line:hover { background: var(--mist); }
.links a { justify-content: flex-start; }
.links + p { margin-top: 8px; }
.sub { max-width: 73ch; margin: -6px 0 24px; }

/* Airport planner and seasonal routes */
.trip-form { display: grid; grid-template-columns: 1.1fr .75fr 1.1fr auto; gap: 16px; align-items: end; }
.trip-form label, .review-filters label { display: grid; gap: 6px; color: var(--navy); }
.trip-form label, .trip-form select { min-width: 0; }
.airport-card, .detail-box { border: 1px solid var(--line); padding: clamp(20px, 3vw, 40px); }
.airport-card { margin-top: 24px; background: var(--cloud); border-top: 3px solid var(--navy); }
.airport-card h3, .detail-box h3 { margin: 4px 0 8px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.airport-layout, .detail-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.airport-layout h4:first-child { margin-top: 8px; }
.airport-card details, .detail-box details { margin-top: 20px; }
.routes-area, .handbook-area { background: var(--mist); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.route-card { display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 0 0 18px; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-bottom: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.route-card:hover { border-color: var(--control-line); }
.route-card[aria-pressed=true] { border-color: var(--navy); border-bottom-color: var(--navy); }
.route-card img { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.route-card .kicker { margin: 14px 16px 3px; font-size: .8125rem; }
.route-card strong { margin-inline: 16px; font: 600 1.1875rem/1.4 var(--ui); }
.photo-note { color: var(--muted); margin: 8px 0 24px; font-size: .8125rem; }
.detail-box { background: var(--white); }
.stops { padding-left: 1.65rem; }
.stops li { padding: 4px 0; }
.stops li::marker { color: var(--navy); font-weight: 600; }
.stops a { font-weight: 600; }
#route-detail:focus:not(:focus-visible) { outline: none; }

/* Reviews and driver's handbook */
.review-filters { max-width: 245px; margin-bottom: 24px; }
.review { display: grid; grid-template-columns: minmax(115px,.65fr) minmax(0,2fr) minmax(0,.85fr); align-items: start; gap: var(--gap); border-top: 1px solid var(--line); padding: 24px 0; }
.review:last-child { border-bottom: 1px solid var(--line); }
.review .links { align-content: flex-start; }
.review strong { display: block; margin-top: 12px; color: var(--navy); }
.hand-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--gap); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; min-height: 48px; padding: 12px 0; color: var(--navy); font: 600 1rem/1.6 var(--ui); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; display: block; flex: 0 0 9px; width: 9px; height: 9px; margin-right: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
details[open] > summary::after { transform: rotate(225deg); }
details p { margin-bottom: 12px; }
details .links { padding-bottom: 8px; }
#guide-list details:first-child, .airport-card details, .detail-box details { border-top: 1px solid var(--line); }
.check-panel { align-self: start; padding: clamp(20px, 3vw, 32px); background: var(--white); border-radius: var(--radius); }
.check-panel > p { margin: 8px 0 12px; }
.check-panel label { display: flex; align-items: center; gap: 12px; padding-block: 6px; min-height: 48px; cursor: pointer; border-bottom: 1px solid var(--line); }
input[type=checkbox] { flex: none; width: 19px; height: 19px; accent-color: var(--navy); }
#progress { margin: 16px 0 0; color: var(--navy); font: 600 1rem/1.5 var(--ui); }
.help-actions { gap: 12px 16px; }
footer { color: var(--slate); background: var(--cloud); border-top: 1px solid var(--line); padding: 32px 0; }
.foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
footer strong { color: var(--navy); font: 600 1.5rem/1.5 var(--ui); }
footer p { font-size: .875rem; }
footer details p { margin: 0 0 8px; }

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(2.4rem, 6vw, 3.35rem); }
  .trip-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .review { grid-template-columns: minmax(110px,.6fr) minmax(0,2fr); gap: 8px 24px; }
  .review > .links { grid-column: 2; }
}
@media (max-width: 720px) {
  .top-in { min-height: 64px; gap: 4px; }
  .brand { font-size: clamp(1.125rem, 5.5vw, 1.5rem); gap: 7px; }
  .lang select { width: 78px; padding-inline: 8px 20px; background-position: right 6px center; }
  .brandmark { width: 28px; height: 28px; }
  .top nav { display: none; }
  .menu-toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: none; background: var(--white); color: var(--navy); }
  .menu-icon { display: block; width: 21px; height: 12px; border-block: 2px solid currentColor; }
  .menu-open .menu-icon { height: 16px; border: 0; position: relative; }
  .menu-open .menu-icon::before, .menu-open .menu-icon::after { content: ""; position: absolute; top: 7px; left: 0; width: 21px; height: 2px; background: currentColor; transform: rotate(45deg); }
  .menu-open .menu-icon::after { transform: rotate(-45deg); }
  .menu-open nav { display: grid; gap: 0; position: absolute; left: 0; right: 0; top: 100%; padding: 6px var(--edge) 12px; background: var(--white); border-block: 1px solid var(--line); }
  .top nav a { padding: 4px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-text { padding: 32px var(--edge); }
  .hero h1 { margin: 10px 0 14px; font-size: clamp(2.55rem, 8.5vw, 3.25rem); }
  .hero h1 span { display: inline; }
  .hero h1 { max-width: 12ch; }
  :lang(ja) .hero h1 { max-width: none; font-size: clamp(2rem, 6.8vw, 3rem); }
  :lang(ja) .hero h1 span { display: inline-block; }
  .hero-actions { margin-top: 16px; }
  .hero-art { min-height: 0; height: clamp(180px, 50vw, 320px); }
  .hero-art img { object-position: 50% 61%; }
  .airport-layout, .detail-layout, .hand-grid, .foot { grid-template-columns: 1fr; }
  .airport-layout, .detail-layout { row-gap: 18px; }
  .hand-grid, .foot { gap: 24px; }
}
@media (max-width: 520px) {
  .trip-form { grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: 12px; }
  .trip-form label:nth-child(3), .trip-form button { grid-column: 1 / -1; }
  .trip-form select { padding-inline: 9px 24px; background-position: right 8px center; }
  .cards { gap: 12px; }
  .route-card strong { font-size: 1.0625rem; }
  .route-card .kicker, .route-card strong { margin-inline: 12px; }
  .review { display: block; }
  .review .meta { margin-bottom: 8px; }
  .review > .links { margin-top: 8px; }
}
@media (max-width: 350px) {
  .brand { gap: 5px; }
  .brandmark { width: 24px; height: 24px; }
  .trip-form { grid-template-columns: 1fr; }
  .trip-form label:nth-child(n) { grid-column: auto; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Travel library */
.library-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.library-strip .block { padding-block: clamp(32px, 5vw, 54px); }
.library-strip h2 { margin-bottom: 16px; }
.library-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.library-links a { padding: 12px 6px 12px 0; border-top: 2px solid var(--navy); text-decoration: none; }
.library-links a:hover strong { text-decoration: underline; }
.library-links strong { display: block; font: 600 1.1875rem/1.5 var(--ui); }
.library-links span { display: block; margin-top: 4px; font-size: .9375rem; color: var(--muted); line-height: 1.65; }
.language-swap, .library-nav a, .crumb { display: inline-flex; align-items: center; min-height: 44px; font: 600 1rem/1.5 var(--ui); }
.language-swap { border: 1px solid var(--line); border-radius: var(--pill); padding-inline: 15px; text-decoration: none; }
.library-nav { border-bottom: 1px solid var(--line); background: var(--cloud); }
.library-nav .wrap, .guide-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
.library-nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.library-nav a[aria-current=page] { border-color: var(--navy); }
.library-nav a:hover { text-decoration: underline; }
.reading-wrap { width: min(850px, calc(100% - 2 * var(--edge))); margin-inline: auto; padding: clamp(24px, 4vw, 48px) 0 var(--section); }
.reading-wrap h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.2; margin: 8px 0 16px; }
.intro { font-size: 1.125rem; margin-bottom: 24px; }
.section-index { display: flex; flex-wrap: wrap; gap: 0 20px; padding: 12px 20px; border-left: 3px solid var(--navy); background: var(--mist); margin: 24px 0; }
.section-index a { display: inline-flex; align-items: center; min-height: 44px; font: 600 1rem/1.5 var(--ui); }
.reading-section, .field-entry { padding: 24px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.reading-section > h2, .field-entry h2 { font-size: clamp(1.4rem, 3.6vw, 1.75rem); line-height: 1.4; margin: 4px 0 12px; }
.field-entry h3 { margin: 8px 0 4px; font-size: 1.1875rem; }
.field-entry p + p, .reading-section > p + p { margin-top: 8px; }
.reading-section .field-entry:last-child { padding-bottom: 0; }
.next-step, .method { background: var(--mist); padding: 16px 20px; margin-top: 16px; }
.phrase-list dt { color: var(--muted); font-weight: 600; margin-top: 15px; }
.phrase-list dd { margin: 2px 0; font-size: 1.125rem; }
.resource-list { padding-left: 1.3em; }
.resource-list li { margin: 8px 0; }
@media(max-width:900px) { .library-links { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) {
  .library-links { gap: 8px 16px; }
  .library-nav .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
}
@media print {
  .library-page header, .library-nav, .library-page .crumb, .library-page footer, .library-page .print-phrases { display: none; }
  .reading-wrap { width: 100%; padding: 0; }
  .field-entry, .phrase-list dt { break-after: avoid; }
  body.print-card .reading-wrap > :not(#phrases) { display: none; }
  body.print-card #phrases { border: 0; }
  body.print-card #phrases::before { content: "Roadside Japan"; color: var(--navy); font-weight: 600; }
}

/* Route field guides and roadside wayfinding */
.pace-result { margin: 28px 0; padding: clamp(18px,3vw,32px); border: 1px solid var(--line); border-top: 3px solid var(--navy); background: var(--cloud); }
.pace-result h3 { margin-bottom: 8px; }
.pace-result li { margin: 7px 0; }
#trip-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
#trip-form .btn { align-self: end; }
#review-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px var(--gap); }
.sign-guide { padding: 0 0 var(--section); }
.shelf-groups, .brand-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.logo-shelf { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.logo-shelf a { display: flex; align-items: center; justify-content:center; padding: 8px; height: 72px; border: 1px solid var(--line); border-radius: 4px; background: white; }
.logo-shelf img, .brand-card > img { height: auto; width: 100%; object-fit: contain; }
.logo-shelf img { max-height: 50px; }
.brand-card { padding: 20px; border: 1px solid var(--line); border-radius: 4px; }
.brand-card > img { height: 58px; margin: 0 auto 16px; }
.brand-card h2 { font-size: 1.25rem; margin: 8px 0; }
.brand-card p + p, .field-shortcut { margin-top: 12px; }
.brand-grid { margin-block: 24px; }
.rule-diagram { width: min(100%, 510px); margin: 16px 0; }
.rule-diagram svg { display: block; width: 100%; height: auto; border-radius: 4px; }
.rule-diagram figcaption, .place-address { color: var(--muted); font-size: .9375rem; }
.rule-diagram figcaption { margin-top: 5px; }
.decision-steps { padding-left: 1.5em; }
.decision-steps li { margin-block: 8px; }
.decision blockquote { margin: 16px 0; border-left: 3px solid var(--navy); background: var(--mist); padding: 12px 20px; }
.decision details, .archive { margin-top: 12px; }
.library-nav a { white-space: nowrap; }
@media(max-width:900px) { #trip-form { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:720px) {
  .shelf-groups, .brand-grid, #review-list { grid-template-columns: 1fr; }
  .library-nav .wrap { display: flex; gap: 0 15px; flex-wrap: nowrap; overflow-x: auto; }
}
@media(max-width:520px) {
  #trip-form label:nth-child(3), #trip-form button { grid-column: 1 / -1; }
  #trip-form { grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); }
  .logo-shelf a { height: 55px; padding: 6px; }
}
@media(max-width:350px) { #trip-form { grid-template-columns: 1fr; } }
@media print { .rule-diagram, .brand-card, .stop-card { break-inside: avoid; } }

.journey-sequence { margin: 18px 0 28px; }
.journey-sequence figcaption { color: var(--navy); font: 600 1.2rem/1.45 var(--ui); margin-bottom: 12px; }
.journey-sequence ol { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 18px; padding: 14px 18px; margin: 0; background: var(--mist); list-style: none; counter-reset: step; }
.journey-sequence li { min-width: 0; position: relative; counter-increment: step; }
.journey-sequence li:not(:last-child)::after { content: ''; position: absolute; height: 8px; width: 8px; top: 40px; right: -7px; border: solid var(--navy); border-width: 1px 1px 0 0; transform: rotate(45deg); }
.journey-art { width: 100%; height: 92px; object-fit: contain; mix-blend-mode: multiply; }
.step-text strong { color: var(--navy-dark); display: block; font: 600 1.1rem/1.45 var(--ui); margin: 6px 0 3px; }
.step-text strong::before { content: counter(step) ". "; font-variant-numeric: tabular-nums; }
.step-text p { line-height: 1.55; font-size: .95rem; }
.airport-locator { display: flex; gap: 16px; align-items: center; margin-block: 12px; }
.airport-locator img { width: 72px; height: 60px; object-fit: contain; }
.library-links strong span { font: inherit; color: inherit; margin: 0; }
@media(max-width: 620px) {
  .journey-sequence ol { grid-template-columns: 1fr; padding: 4px 12px; }
  .journey-sequence li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; padding: 9px 0; }
  .journey-sequence li + li { border-top: 1px solid var(--line); }
  .journey-sequence li:not(:last-child)::after { display: none; }
  .journey-art { height: 60px; }
  .step-text strong { margin: 0; }
}
.park-entry { display: flow-root; padding-bottom: 24px; }
.park-entry .stop-card { padding-bottom: 4px; }
.park-photo { margin: 10px 0; }
.aerial { width: min(100%, 580px); aspect-ratio: 3/2; position: relative; overflow: hidden; background: var(--mist); }
.aerial img { position: absolute; width: 66.6667%; height: 100%; max-width: none; }
.aerial i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border: 3px solid white; background: var(--navy); border-radius: 50%; transform: translate(-50%,-50%); outline: 1px solid var(--navy-dark); }
.park-photo figcaption { font-size: .875rem; margin: 5px 0; }
.decision-list { margin: 18px 0; display: grid; grid-template-columns: minmax(9rem,1fr) 3fr; }
.decision-list dt,.decision-list dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.decision-list dt { color: var(--navy); font-weight: bold; padding-right: 1rem; }
@media (max-width:550px) { .decision-list { display:block; } .decision-list dt { border:0; padding-bottom:0; } .decision-list dd { padding-top:2px; } }
.shop-item { display:grid; grid-template-columns:108px 1fr; gap:20px; }
.shop-item img { object-fit:contain; width:100%; height:72px; margin-top:6px; }
@media(max-width:520px){ .shop-item { grid-template-columns:65px 1fr; gap:12px; } .shop-item img { height:50px; } }
.region-group >figure { margin: 0 0 14px; }
.region-group >figure img { width: 100%; height: clamp(185px,33vw,350px); object-fit: cover; }
.region-group figcaption { font-size:.825rem; color:var(--muted); overflow-wrap:anywhere; }
.topics-menu { width:100%; }
.topics-menu summary { justify-content:flex-start; gap:12px; }
.topic-groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px 22px; padding-bottom:18px; }
.topic-groups strong,.topic-groups a { display:block; }
.topic-groups strong { color:var(--navy); }
.topic-groups a { padding:8px 0; }
.dining-mark { max-width:75%; height:auto; margin:8px 0; }
.dining-mark.compact { width:64px; }
.stage-index { display:grid; grid-template-columns:repeat(5,1fr); list-style:none; gap:8px; padding:0; counter-reset:stage; }
.stage-index li { counter-increment:stage; }
.stage-index a { display:flex; align-items:center; gap:8px; padding:8px 0; min-height:44px; border-bottom:1px solid var(--navy); text-decoration:none; font-weight:600; }
.stage-index a::before { content:counter(stage); flex:none; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; color:white; background:var(--navy); font:600 .875rem/1 var(--ui); }
.travel-chapter .library-links { margin-block:16px; }
.travel-chapter .shelf-groups { display:block; max-width:790px; margin-block:20px; }
.travel-chapter .logo-shelf { grid-template-columns:repeat(auto-fit,minmax(80px,1fr)); }
.share-trip { border:0; background:none; color:var(--navy); text-decoration:underline; min-height:44px; cursor:pointer; }
.share-status { margin-left:10px; font-size:.9rem; }
#return-home>label { display:block; margin:16px 0 4px; font-weight:600; }
#return-home>select { width:min(100%,24rem); }
#rail-result:not(:empty) { margin-top:18px; border-left:3px solid var(--navy); padding:8px 18px; background:var(--mist); }
.pace-days { padding:0; list-style:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); align-items:start; gap:12px; }
.pace-days>li { padding:16px; border:1px solid var(--line); border-top:3px solid var(--navy); background:var(--white); }
.day-path { padding:0; margin:12px 0; list-style:none; }
.day-path>li { position:relative; padding:0 0 9px 18px; margin:0; border-left:2px solid var(--line); }
.day-path>li:last-child { border-left-color:transparent; padding-bottom:0; }
.day-path>li::before { content:''; position:absolute; top:.38em; left:-5px; width:8px; height:8px; border-radius:100%; background:var(--navy); }
.day-path small { display:inline-block; margin-right:.5rem; color:var(--muted); }
.day-path p { font-size:.9rem; margin:2px 0 0; }
.day-night { padding:6px 10px; color:var(--navy); background:var(--mist); font-weight:600; }
@media(max-width:640px) { .stage-index { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.gateway-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(12px,2.3vw,30px); margin:26px 0 12px; }
.gateway-choice { border:1px solid var(--line); background:white; overflow:hidden; }
.gateway-choice img { display:block; object-fit:cover; width:100%; height:auto; aspect-ratio:16/8; }
.gateway-choice > div { padding:15px 18px 20px; }
.gateway-choice h3 { margin:2px 0; }
.gateway-choice p { margin:6px 0 11px; }
.gateway-choice .kicker { margin:0; color:var(--navy); }
.gateway-choice .inline { margin:2px 0 4px; }
.gateway-more { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 22px; margin-bottom:22px; }
.gateway-more details { max-width:600px; font-size:.85rem; }
#kansai-gallery > summary { cursor:pointer; font-weight:600; font-size:clamp(1.3rem,2.4vw,2rem); color:var(--navy); }
#kansai-gallery[open] > summary { margin-bottom:16px; }
.municipal-stop { margin:24px 0; padding-top:14px; border-top:1px solid var(--line); }
.municipal-stop h3 { margin:0 0 4px; }
.municipal-stop address { font-style:normal; }
.municipal-stop details { margin-top:10px; font-size:.9rem; }
.route-extras { padding:18px 22px; border-left:3px solid var(--navy); background:var(--cloud); margin-top:20px; }
.route-extras h3, .route-extras p { margin:0 0 8px; }
@media(max-width:720px) {
  .gateway-grid { grid-template-columns:1fr; }
  .gateway-choice { display:grid; grid-template-columns:minmax(92px,32%) minmax(0,1fr); }
  .gateway-choice img { aspect-ratio:auto; height:100%; }
  .gateway-choice > div { padding:12px 14px; }
  .gateway-choice a { display:inline-block; }
}
.route-extras h4 { margin:0; }
.pace-days .route-extras ul { list-style:disc; display:block; margin:4px 0 8px; padding-left:1.3em; }
.pace-days .route-extras ul > li { display:list-item; margin:0; padding:0; border:0; background:none; }
.local-trail { display:flex; flex-wrap:wrap; list-style:none; padding:14px 16px; gap:5px 0; align-items:baseline; background:var(--cloud); }
.local-trail li { line-height:1.65; }
.local-trail li + li::before { content:'›'; display:inline-block; color:var(--navy); padding:0 .65em; }
.local-stop-photo { margin:12px 0; }
.local-stop-photo img { display:block; width:min(100%,640px); height:auto; }
.local-stop-photo figcaption { margin-top:3px; font-size:.82rem; }
