:root {
  color-scheme: light;
  --canvas: #f8f5ee;
  --paper: #fffdf8;
  --ink: #10231b;
  --muted: #5e7067;
  --green: #087a52;
  --green-dark: #075b41;
  --green-deep: #062d22;
  --mint: #dcebe2;
  --mint-soft: #edf5f0;
  --line: #d7e2db;
  --white: #fff;
  --shadow: 0 26px 80px rgba(16, 35, 27, .11);
  --soft-shadow: 0 14px 38px rgba(16, 35, 27, .08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); }
button, input, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1120px, calc(100vw - 40px)); margin: 0 auto; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.brand-link { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; letter-spacing: -.03em; font-size: 1.15rem; }
.brand-link img { width: 44px; height: 44px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language-switcher { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,248,.78); }
.language-switcher button { border: 0; border-radius: 999px; padding: 8px 12px; background: transparent; color: var(--muted); cursor: pointer; font-size: .82rem; font-weight: 750; }
.language-switcher button[aria-pressed="true"] { background: var(--green-deep); color: var(--white); box-shadow: 0 4px 12px rgba(6,45,34,.16); }
.header-download, .primary-button { padding: 10px 16px; border-radius: 999px; background: var(--green); color: var(--white); text-decoration: none; font-size: .86rem; font-weight: 800; }

.page-head { max-width: 820px; padding: 62px 0 42px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: .82rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.065em; }
.page-head p:not(.eyebrow) { margin-bottom: 0; max-width: 690px; color: var(--muted); font-size: 1.12rem; line-height: 1.65; }

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-bottom: 54px; }
.category-card { min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); text-decoration: none; box-shadow: var(--soft-shadow); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card h2 { max-width: 250px; margin: 0 0 10px; font-size: 2.2rem; line-height: 1; letter-spacing: -.045em; }
.category-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.category-card .arrow { align-self: flex-end; display: grid; width: 44px; height: 44px; margin-top: 28px; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green-dark); font-size: 1.25rem; }

.download-banner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); align-items: center; gap: clamp(28px, 5vw, 60px); margin: 30px 0 76px; padding: clamp(34px, 5vw, 58px); border: 1px solid var(--line); border-radius: 30px; background: var(--green-deep); color: var(--white); box-shadow: var(--soft-shadow); overflow: hidden; }
.download-banner-art-link { display: block; width: 100%; border-radius: 18px; line-height: 0; }
.download-banner-art-link:focus-visible { outline: 3px solid #edc74e; outline-offset: 5px; }
.download-banner-art { container-type: inline-size; display: grid; grid-template-columns: 34% 1px minmax(0, 1fr); align-items: stretch; column-gap: 4.5%; width: 100%; aspect-ratio: 2.24 / 1; box-sizing: border-box; padding: 4.7% 3.2%; overflow: hidden; border-radius: 18px; background: #f8f4ec; box-shadow: 0 16px 34px rgba(0,0,0,.18); }
.download-banner-art-logo { display: grid; min-width: 0; place-items: center; }
.download-banner-art-logo img { display: block; width: 100%; max-height: 100%; object-fit: contain; }
.download-banner-art-divider { width: 1px; height: 100%; background: #b9d9cc; }
.download-banner-art-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; color: #164f3f; line-height: 1; }
.download-banner-art-copy h3 { margin: 0; color: #087a52; font-family: Georgia, 'Times New Roman', serif; font-size: 3.9cqw; font-weight: 700; line-height: 1.05; letter-spacing: -.025em; white-space: nowrap; }
.download-banner-art-rule { display: block; width: 45%; height: .5cqw; min-height: 2px; margin: 5.8% 0 6.7%; border-radius: 999px; background: #087a52; }
.download-banner-art-copy ul { display: grid; gap: 4.8cqw; margin: 0; padding: 0; list-style: none; }
.download-banner-art-copy li { display: grid; grid-template-columns: 5.7cqw minmax(0, 1fr); align-items: center; margin: 0; font-family: Inter, Arial, sans-serif; font-size: 2.8cqw; line-height: 1.08; }
.download-banner-art-copy li span { color: #087a52; font-family: Arial, sans-serif; font-size: 4cqw; font-weight: 400; line-height: .6; }
.download-banner-art-copy li strong { overflow: hidden; font-weight: 700; text-overflow: clip; white-space: nowrap; }
.download-banner-action { min-width: 0; }
.download-banner-action > * { max-width: 590px; }
.download-banner h2 { max-width: 560px; margin-bottom: 12px; font-size: clamp(1.65rem, 3vw, 2.75rem); line-height: 1.08; letter-spacing: -.045em; }
.download-banner p { margin: 0 0 24px; color: rgba(255,255,255,.73); line-height: 1.55; }
.download-banner .primary-button { display: inline-block; background: var(--white); color: var(--green-deep); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 6px; padding-top: 36px; color: var(--muted); font-size: clamp(.94rem, 1.35vw, 1.03rem); font-weight: 650; line-height: 1.4; }
.breadcrumb a { padding: 3px 0; color: var(--green-dark); font-weight: 780; text-decoration-color: #a9c8b9; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.breadcrumb a:hover { color: var(--green); text-decoration-color: currentColor; }
.breadcrumb > span[aria-hidden="true"], .breadcrumb > a + span:not([aria-current]) { color: #9aada3; font-weight: 500; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }
.archive-head { display: flex; align-items: end; justify-content: space-between; gap: 36px; padding: 36px 0 30px; }
.archive-head h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.archive-head p { max-width: 560px; margin: 14px 0 0; color: var(--muted); line-height: 1.55; }
.search { width: min(360px, 100%); flex: 0 0 auto; }
.search label { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 800; color: var(--muted); }
.search input { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 14px 18px; outline: none; background: var(--paper); color: var(--ink); }
.search input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(8,122,82,.1); }

.group { padding: 28px 0 26px; border-top: 1px solid var(--line); }
.group-plain { padding-top: 0; border-top: 0; }
.group-title { margin-bottom: 20px; font-size: 1.25rem; letter-spacing: -.025em; }
.episode-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.episode-card { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 18px; min-height: 138px; padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.episode-card:hover { border-color: #a8c6b5; transform: translateY(-2px); }
.episode-visual.card-visual { width: 112px; height: 110px; border-radius: 15px; background: var(--mint-soft); }
.episode-map { object-fit: cover; }
.episode-logo, .episode-emoji, .episode-icon { display: grid; place-items: center; }
.episode-logo img { width: 58%; height: 58%; object-fit: contain; }
.episode-emoji { font-size: 3rem; }
.episode-icon { color: var(--green); overflow: hidden; }
.episode-icon.news-visual.card-visual, .episode-icon.news-visual.episode-hero { background: #faf6f0; }
.topic-illustration { width: 100%; height: 100%; object-fit: contain; }
.podcast-icon { width: 94%; height: 94%; overflow: visible; }
.podcast-icon g { fill: none; stroke: currentColor; stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.podcast-icon .icon-fill { fill: currentColor; stroke: none; }
.episode-card h3 { margin-bottom: 7px; font-size: 1.04rem; line-height: 1.22; letter-spacing: -.02em; }
.episode-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.42; }
.episode-card .arrow { color: var(--green); font-weight: 900; }
.empty { padding: 70px 0; color: var(--muted); text-align: center; }

.episode-head { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr); align-items: center; gap: 54px; padding: 42px 0 54px; }
.episode-head h1 { font-size: clamp(2.5rem, 5.4vw, 4.9rem); }
.episode-head .subtitle { color: var(--muted); font-size: 1.18rem; line-height: 1.55; }
.episode-head .subtitle p { margin: 0; }
.travel-subtitle strong, .travel-subtitle span { display: block; }
.travel-subtitle strong { margin-bottom: 4px; color: var(--green-dark); font-family: Inter, ui-sans-serif, sans-serif; font-size: .86em; }
.episode-meta { margin-bottom: 12px; color: var(--green); font-size: .8rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.episode-visual.episode-hero { width: 100%; aspect-ratio: 1; border-radius: 30px; box-shadow: var(--shadow); background: var(--mint-soft); }
.route-map-viewer.episode-hero { width: 100%; aspect-ratio: 1; border-radius: 30px; box-shadow: var(--shadow); }
.episode-map.episode-hero { object-fit: cover; }
.episode-logo.episode-hero img { width: 42%; height: 42%; }
.episode-emoji.episode-hero { font-size: clamp(5rem, 12vw, 9rem); }
.episode-icon.episode-hero .podcast-icon { width: 90%; height: 90%; }
.episode-icon.episode-hero .topic-illustration { width: 100%; height: 100%; }
.episode-player { max-width: 820px; margin: -46px auto 70px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--soft-shadow); }
.episode-player strong { display: block; margin-bottom: 14px; }
.episode-player audio { width: 100%; }
.script { max-width: 760px; margin: 0 auto 90px; }
.script h2 { margin: 58px 0 18px; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.15; letter-spacing: -.035em; }
.script p { margin-bottom: 1.35em; color: #263a31; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 2vw, 1.22rem); line-height: 1.82; }
.route-figure { margin: 38px 0 50px; }
.route-map-viewer { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #e9efe9; box-shadow: var(--soft-shadow); cursor: zoom-in; touch-action: none; user-select: none; }
.route-map-viewer.is-zoomed { cursor: grab; }
.route-map-viewer.is-zoomed:active { cursor: grabbing; }
.route-map-viewer:focus-visible { outline: 3px solid rgba(8,122,82,.35); outline-offset: 4px; }
.route-map-viewer > img { width: 100%; height: 100%; object-fit: contain; transform-origin: center; will-change: transform; pointer-events: none; }
.map-controls { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: flex; gap: 6px; padding: 6px; border: 1px solid rgba(16,35,27,.12); border-radius: 999px; background: rgba(255,253,248,.92); box-shadow: 0 8px 24px rgba(16,35,27,.14); backdrop-filter: blur(10px); }
.map-controls button { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--green-deep); cursor: pointer; font-size: 1.25rem; font-weight: 850; }
.map-controls button:hover, .map-controls button:focus-visible { background: var(--mint); outline: none; }
.route-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .82rem; }
.route-figure figcaption strong, .route-figure figcaption span { display: block; }
.route-figure figcaption strong { margin-bottom: 3px; color: var(--ink); }
.route-legend { margin-top: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--soft-shadow); }
.route-legend h3 { margin-bottom: 18px; font-family: Inter, ui-sans-serif, sans-serif; font-size: 1.05rem; letter-spacing: -.02em; }
.route-base + .route-base { margin-top: 20px; }
.route-base-head { display: flex; align-items: baseline; gap: 7px; font-family: Inter, ui-sans-serif, sans-serif; font-size: .9rem; }
.route-base-head > span:last-child { color: var(--muted); }
.route-base-badge { color: var(--route-color); font-size: 1.15rem; line-height: 1; }
.route-days { display: grid; gap: 10px; margin-top: 10px; padding-left: 25px; }
.route-day { display: grid; grid-template-columns: 11px 76px 1fr; align-items: start; gap: 9px; color: var(--muted); font-family: Inter, ui-sans-serif, sans-serif; font-size: .82rem; line-height: 1.45; }
.route-day strong { color: var(--ink); }
.route-day-dot { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--route-color); }
.route-transport { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-family: Inter, ui-sans-serif, sans-serif; font-size: .82rem; }
.loading { padding: 100px 0; color: var(--muted); text-align: center; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 0 46px; border-top: 1px solid var(--line); }
.site-footer .brand-link { font-size: 1rem; }
.site-footer .brand-link img { width: 34px; height: 34px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: .86rem; }
.site-footer nav a { text-underline-offset: 4px; }

@media (max-width: 850px) {
  .category-grid, .episode-list { grid-template-columns: 1fr; }
  .category-card { min-height: 250px; }
  .archive-head { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .episode-head { grid-template-columns: 1fr; }
  .episode-hero { max-width: 560px; }
  .download-banner { grid-template-columns: 1fr; }
  .download-banner-art-link { width: min(100%, 520px); justify-self: center; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 1120px); }
  .site-header { align-items: flex-start; }
  .header-actions { align-items: flex-end; flex-direction: column-reverse; gap: 8px; }
  .header-download { display: none; }
  .language-switcher button { padding: 7px 9px; font-size: .74rem; }
  .page-head { padding-top: 40px; }
  .breadcrumb { column-gap: 8px; padding-top: 24px; font-size: .94rem; }
  .download-banner { gap: 26px; margin-bottom: 55px; padding: 24px; border-radius: 24px; }
  .download-banner-art { border-radius: 14px; }
  .episode-card { grid-template-columns: 82px 1fr auto; gap: 12px; min-height: 108px; }
  .episode-visual.card-visual { width: 82px; height: 82px; }
  .podcast-icon { width: 98%; height: 98%; }
  .episode-card p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .episode-head { gap: 30px; padding-top: 28px; }
  .episode-player { margin-top: -38px; }
  .route-map-viewer { border-radius: 18px; }
  .map-controls { right: 10px; bottom: 10px; }
  .map-controls button { width: 38px; height: 38px; }
  .route-legend { padding: 18px; }
  .route-days { padding-left: 0; }
  .route-day { grid-template-columns: 11px 64px 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
