:root {
  --content-width: 1120px;
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --radius: .75rem;
  --border: #d7d7d2;
  --text: #22251f;
  --muted: #666a61;
  --surface: #ffffff;
  --surface-alt: #f4f5f0;
  --accent: #315c3b;
  --accent-dark: #23452c;
  --header: #18261d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: #fafaf7;
  line-height: 1.75;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(24, 38, 29, .96);
  color: #fff;
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  min-height: 68px;
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.site-title {
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: #fff;
  border-radius: .5rem;
  padding: .5rem .75rem;
  font: inherit;
}
.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  list-style: none;
  gap: .2rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: .65rem .8rem;
  color: #fff;
  text-decoration: none;
  border-radius: .4rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: rgba(255,255,255,.12); }

.breadcrumbs {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-3) var(--space-3) 0;
  color: var(--muted);
  font-size: .92rem;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
}
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: #9a9d96; }

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3) var(--space-6);
}
.hero {
  padding: var(--space-5) 0 var(--space-4);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  margin: 0 0 var(--space-1);
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
}
h1 {
  margin: 0 0 var(--space-2);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
}
.hero p { margin: 0; color: var(--muted); }

.section-nav {
  position: sticky;
  top: 68px;
  z-index: 900;
  margin: 0 calc(var(--space-3) * -1) var(--space-5);
  padding: .65rem var(--space-3);
  background: rgba(250,250,247,.94);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.section-nav ul {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  gap: .5rem;
  list-style: none;
  padding: 0;
  min-width: max-content;
}
.section-nav a {
  text-decoration: none;
  display: block;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text);
}
.section-nav a:hover { background: #e5e8df; }

.content-section { margin: var(--space-6) 0; scroll-margin-top: 140px; }
.content-section > h2 {
  margin: 0 0 var(--space-4);
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--accent);
  font-size: 1.6rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--space-3);
}
.summary-card {
  margin: 0;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.summary-card dt { color: var(--muted); font-size: .9rem; }
.summary-card dd { margin: .25rem 0 0; font-weight: 700; }

.route-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.route-details summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  font-weight: 700;
  background: #f7f8f3;
}
.route-details summary::-webkit-details-marker { display: none; }
.route-details summary::before { content: "＋"; margin-right: .5rem; color: var(--accent); }
.route-details[open] summary::before { content: "−"; }
.route-details summary span { color: var(--muted); font-weight: 500; white-space: nowrap; }
.route-body { padding: .4rem 1.15rem 1rem; }
.route-body ul { margin-bottom: 0; padding-left: 1.25rem; }

.map-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #f7f8f3;
  color: var(--muted);
  font-size: .9rem;
}
#railway-map {
  width: 100%;
  height: clamp(360px, 62vh, 680px);
  background: #eef0ea;
}
.map-note {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .9rem;
}

.report-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--space-3);
}
.report-card {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
}
.report-card strong { display: block; margin-bottom: .25rem; }
.report-card span { color: var(--muted); font-size: .9rem; }
.report-card:hover { border-color: #abb7aa; transform: translateY(-1px); }

.site-footer {
  border-top: 1px solid var(--border);
  background: #f2f3ee;
}
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 760px) {
  .header-inner { min-height: 60px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    margin: 0;
    background: var(--header);
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; padding: .5rem 1rem 1rem; }
  .site-nav a { padding: .8rem .75rem; }
  .section-nav { top: 60px; }
  .summary-grid,
  .report-list { grid-template-columns: 1fr; }
  .route-details summary { align-items: flex-start; }
}

/* Home */
.home-main { padding-top: 0; }
.home-hero {
  min-height: min(720px, 76vh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(4rem, 10vw, 8rem) 0;
  border-bottom: 1px solid var(--border);
}
.home-hero-copy { max-width: 720px; }
.home-hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: .9;
  letter-spacing: -.055em;
}
.home-lead {
  max-width: 42rem;
  margin: 0;
  color: #4f544b;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.9;
}
.home-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); color: #fff; }
.button-secondary { background: transparent; color: var(--accent-dark); }
.hero-mark {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 45% 45% 18% 18% / 32% 32% 14% 14%;
  background: linear-gradient(155deg, #d8dfd3, #f5f2e8 65%);
  box-shadow: inset 0 0 0 1px rgba(49,92,59,.12);
}
.hero-mark::before,
.hero-mark::after {
  content: "";
  position: absolute;
  top: -15%;
  width: 5px;
  height: 135%;
  background: #667567;
  transform-origin: bottom;
}
.hero-mark::before { left: 42%; transform: rotate(7deg); }
.hero-mark::after { right: 42%; transform: rotate(-7deg); }
.hero-mark-sleeper {
  position: absolute;
  left: 50%;
  width: 42%;
  height: 5px;
  background: #8f7e68;
  transform: translateX(-50%);
  border-radius: 4px;
}
.sleeper-1 { top: 18%; width: 20%; }
.sleeper-2 { top: 33%; width: 25%; }
.sleeper-3 { top: 49%; width: 31%; }
.sleeper-4 { top: 66%; width: 38%; }
.sleeper-5 { top: 84%; width: 47%; }
.home-section { padding: clamp(4rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--border); }
.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(280px, .45fr);
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}
.section-heading-row h2,
.feature-section h2,
.home-notice h2 { margin: .15rem 0 0; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.15; }
.section-heading-row > p { margin: 0; color: var(--muted); }
.region-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.region-card {
  min-height: 235px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.region-card:hover { transform: translateY(-3px); border-color: #9aaa98; color: var(--text); }
.region-card-featured { background: #e9eee6; border-color: #bdcbb9; }
.region-kicker { color: var(--muted); font-size: .77rem; letter-spacing: .14em; }
.region-card strong { margin-top: auto; font-size: 2rem; }
.region-card > span:nth-of-type(2) { color: var(--muted); }
.region-arrow { margin-top: .8rem; color: var(--accent); font-weight: 700; font-size: .9rem; }
.feature-section {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(300px, 1.08fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}
.feature-copy > p:not(.eyebrow) { color: var(--muted); max-width: 40rem; }
.feature-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 2rem 0; }
.feature-facts div { border-top: 1px solid var(--border); padding-top: .8rem; }
.feature-facts dt { color: var(--muted); font-size: .82rem; }
.feature-facts dd { margin: .15rem 0 0; font-weight: 700; }
.text-link { font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.feature-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #cdd3c8;
  border-radius: var(--radius);
  background: #eef0e8;
}
.contour {
  position: absolute;
  border: 2px solid rgba(49,92,59,.17);
  border-radius: 50%;
  transform: rotate(-12deg);
}
.contour-a { width: 85%; height: 52%; left: -8%; top: 8%; }
.contour-b { width: 72%; height: 45%; right: -14%; top: 29%; }
.contour-c { width: 94%; height: 58%; left: 13%; bottom: -28%; }
.feature-route-line {
  position: absolute;
  width: 72%;
  height: 7px;
  left: 14%;
  top: 52%;
  border-radius: 999px;
  background: #486e4e;
  transform: rotate(-17deg);
  box-shadow: 0 0 0 4px rgba(72,110,78,.08);
}
.feature-route-point { position: absolute; width: 14px; height: 14px; border: 3px solid #486e4e; border-radius: 50%; background: #eef0e8; }
.point-a { left: 24%; top: 60%; }
.point-b { left: 52%; top: 50%; }
.point-c { right: 18%; top: 38%; }
.home-notice { max-width: 760px; border-bottom: 0; }
.home-notice p:not(.eyebrow) { color: var(--muted); }
.footer-layout { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.footer-layout div { display: grid; }
.footer-layout strong { color: var(--text); }

/* Region index */
.region-hero { padding: var(--space-5) 0 var(--space-5); border-bottom: 1px solid var(--border); }
.region-hero-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.region-hero h1 { max-width: 820px; }
.region-hero p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); }
.region-stat { display: flex; align-items: baseline; gap: .35rem; padding-bottom: .35rem; color: var(--accent-dark); }
.region-stat strong { font-size: clamp(3rem, 7vw, 5.5rem); line-height: .85; }
.region-stat span { font-weight: 700; }
.region-list-section { margin-top: var(--space-5); }
.list-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1rem; }
.list-heading h2 { margin: .15rem 0 0; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.list-note { margin: 0; color: var(--muted); font-size: .86rem; white-space: nowrap; }
.status-dot { display: inline-block; width: .62rem; height: .62rem; margin-right: .3rem; border-radius: 50%; vertical-align: .02em; }
.status-live { background: #b28a43; }
.status-pending { background: #c5c7c0; margin-left: .8rem; }
.railway-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.railway-index-item { display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; min-height: 64px; border-bottom: 1px solid var(--border); }
.railway-index-item.live { background: #faf6ed; }
.railway-index-item.live a { display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; min-height: 64px; grid-column: 1 / -1; padding: 0 .75rem 0 0; color: var(--text); text-decoration: none; }
.railway-index-item.live a:hover { background: #f5eedf; color: var(--text); }
.railway-number { color: #8a8f86; font-variant-numeric: tabular-nums; font-size: .83rem; letter-spacing: .08em; }
.railway-name { font-weight: 700; }
.status-label { color: var(--muted); font-size: .83rem; }
.live .status-label { color: #8b692f; font-weight: 700; }
.pending { color: #555a52; }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-mark { min-height: 280px; max-width: 520px; width: 100%; justify-self: center; }
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-section { grid-template-columns: 1fr; }
  .feature-panel { min-height: 330px; }
}

@media (max-width: 760px) {
  .home-hero { padding: 3.5rem 0 4rem; gap: 2.5rem; }
  .home-hero h1 { font-size: clamp(3.7rem, 22vw, 6rem); }
  .section-heading-row { grid-template-columns: 1fr; align-items: start; }
  .region-grid { grid-template-columns: 1fr 1fr; }
  .region-card { min-height: 190px; }
  .feature-facts { grid-template-columns: 1fr; }
  .footer-layout { align-items: flex-start; flex-direction: column; }
  .region-hero-row { grid-template-columns: 1fr; }
  .region-stat { justify-self: start; }
  .list-heading { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .list-note { white-space: normal; }
  .railway-index-item,
  .railway-index-item.live a { grid-template-columns: 2.8rem 1fr; min-height: 70px; }
  .railway-index-item.pending { padding: .6rem 0; }
  .railway-index-item .status-label { grid-column: 2; margin-top: -.2rem; }
  .railway-index-item.live .status-label { grid-column: 2; }
}

@media (max-width: 480px) {
  .region-grid { grid-template-columns: 1fr; }
  .hero-mark { min-height: 230px; }
}

/* Investigation report */
.report-page { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--page-padding) var(--space-6); }
.report-hero { max-width: 900px; padding: var(--space-5) 0 var(--space-4); }
.report-hero h1 { margin: .25rem 0 .8rem; font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -.04em; }
.report-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.25rem 0; }
.report-meta span { padding: .42rem .75rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .84rem; }
.report-intro { max-width: 680px; color: var(--muted); line-height: 1.9; }
.report-local-nav { display: flex; flex-wrap: wrap; gap: .6rem; padding: 1rem 0 var(--space-4); border-top: 1px solid var(--border); }
.report-local-nav a { padding: .55rem .85rem; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 700; }
.report-local-nav a:hover { background: #e7eee3; }
.report-article { max-width: 980px; }
.report-section { padding: var(--space-5) 0; border-top: 1px solid var(--border); }
.report-section-heading { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start; margin-bottom: 2rem; }
.report-section-heading h2 { margin: .15rem 0 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.section-number { margin: .2rem 0 0; color: #9a9e96; font-size: .85rem; letter-spacing: .16em; }
.migration-placeholder { max-width: 720px; padding: 1.4rem 1.5rem; border-left: 3px solid var(--accent); background: #f0f3ec; }
.migration-placeholder strong { display: block; margin-bottom: .35rem; }
.migration-placeholder p { margin: 0; color: var(--muted); line-height: 1.8; }
.report-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.photo-placeholder { margin: 0; }
.photo-wide { grid-column: 1 / -1; }
.photo-placeholder-box { min-height: 250px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: repeating-linear-gradient(135deg,#ecece6,#ecece6 12px,#f3f3ee 12px,#f3f3ee 24px); color: #8a8f86; }
.photo-wide .photo-placeholder-box { min-height: 410px; }
.photo-placeholder figcaption { margin-top: .65rem; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.report-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.pager-link { min-height: 110px; display: flex; flex-direction: column; justify-content: center; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
a.pager-link:hover { background: #edf2e9; color: var(--text); }
.pager-link span { color: var(--muted); font-size: .78rem; }
.pager-link strong { margin-top: .3rem; }
.pager-next { text-align: right; }
.pager-empty { visibility: hidden; }

@media (max-width: 760px) {
  .report-section-heading { grid-template-columns: 2.6rem 1fr; }
  .report-photo-grid { grid-template-columns: 1fr; }
  .photo-wide { grid-column: auto; }
  .photo-wide .photo-placeholder-box,
  .photo-placeholder-box { min-height: 240px; }
  .report-pager { grid-template-columns: 1fr; }
  .pager-empty { display: none; }
}


/* Route-following report log */
.report-route .report-article { max-width: 1040px; }
.segment-jump { margin: 0 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.segment-jump summary { cursor: pointer; padding: .85rem 1rem; font-weight: 700; }
.segment-jump summary span { margin-left: .4rem; color: var(--muted); font-size: .82rem; font-weight: 400; }
.segment-jump nav { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1rem 1rem; }
.segment-jump nav a { min-width: 2.6rem; padding: .45rem .6rem; text-align: center; border: 1px solid var(--border); border-radius: .45rem; text-decoration: none; color: var(--text); background: #fff; }
.segment-jump nav a:hover { background: #edf2e9; }
.report-segment { scroll-margin-top: 90px; border-top: 2px solid var(--text); }
.report-segment-heading { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: .55rem; padding: .55rem .75rem; background: rgba(247,247,242,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.report-segment-heading span { color: var(--muted); font-size: .76rem; letter-spacing: .12em; }
.report-segment-heading strong { font-size: 1.15rem; }
.report-segment-heading a { justify-self: end; color: var(--muted); font-size: .76rem; text-decoration: none; }
.route-point { scroll-margin-top: 70px; padding: clamp(2rem,5vw,4rem) 0; border-bottom: 1px solid var(--border); }
.route-point-header { display: grid; grid-template-columns: 4.3rem 1fr; gap: 1rem; align-items: start; margin-bottom: 1.2rem; }
.route-point-number { color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .12em; padding-top: .35rem; }
.legacy-position { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .08em; margin-bottom: .18rem; }
.route-point h3 { margin: 0; font-size: clamp(1.45rem,3.2vw,2.15rem); line-height: 1.3; }
.route-point-body { display: grid; grid-template-columns: minmax(230px,.78fr) minmax(0,1.35fr); gap: clamp(1.4rem,4vw,3rem); align-items: start; }
.route-point-text { color: #42473f; line-height: 1.95; overflow-wrap: anywhere; }
.no-comment { color: var(--muted); font-size: .88rem; }
.route-point-media { min-width: 0; }
.point-photo { margin: 0; }
.point-photo img, .slider-slide img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; border-radius: .55rem; background: #e8e9e3; }
.photo-slider { outline: none; }
.photo-slider:focus-visible { outline: 3px solid rgba(72,110,78,.35); outline-offset: 4px; border-radius: .55rem; }
.slider-viewport { position: relative; min-height: 180px; display: grid; place-items: center; }
.slider-slide { width: 100%; margin: 0; }
.slider-slide[hidden] { display: none; }
.slider-controls { display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center; gap: .6rem; margin-top: .65rem; }
.slider-button { width: 3rem; height: 2.7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.1rem; }
.slider-button:hover { background: #e7eee3; }
.slider-counter { text-align: center; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.photo-missing, .photo-load-note { padding: 1rem; border: 1px dashed var(--border); border-radius: .55rem; color: var(--muted); background: #f3f3ee; font-size: .85rem; }
.photo-load-note { margin: .65rem 0 0; }
@media (max-width: 760px) {
  .report-segment-heading { top: 0; }
  .route-point-header { grid-template-columns: 3rem 1fr; }
  .route-point-body { grid-template-columns: 1fr; }
  .route-point-text { order: 1; }
  .route-point-media { order: 2; }
  .point-photo img, .slider-slide img { max-height: none; }
}

/* GIS ↔ report point linkage */
.report-point-marker {
  background: transparent;
  border: 0;
}
.report-point-marker span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent, #486e4e);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  font-size: .68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.map-popup-link {
  display: inline-block;
  margin-top: .35rem;
  font-weight: 700;
}
.map-error {
  padding: 1rem;
}
.route-point-header .point-map-link {
  justify-self: end;
  align-self: center;
  padding: .45rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}
.route-point-header .point-map-link:hover {
  background: #e7eee3;
}
.route-point-header:has(.point-map-link) {
  grid-template-columns: 4.3rem minmax(0,1fr) auto;
}
@media (max-width: 760px) {
  .route-point-header:has(.point-map-link) {
    grid-template-columns: 3rem 1fr;
  }
  .route-point-header .point-map-link {
    grid-column: 2;
    justify-self: start;
  }
}

/* Static generator additions */
.empty-state { padding: 2rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--muted); }
.empty-state p { margin: .35rem 0; }
.legacy-map img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.legacy-map-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.legacy-map-gallery figure { margin: 0; }
.legacy-map-gallery img { display: block; width: 100%; height: auto; }
.legacy-map-gallery figcaption { margin-top: .4rem; color: var(--muted); font-size: .86rem; }
@media (max-width: 720px) { .legacy-map-gallery { grid-template-columns: 1fr; } }


/* Legacy multi-sheet map viewer */
.legacy-map-viewer { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.map-viewer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--border); background: #f5f6f1; }
.map-viewer-controls label { font-weight: 700; }
.map-viewer-controls select { min-width: min(18rem, 100%); padding: .55rem 2.1rem .55rem .7rem; border: 1px solid #b8bdb4; border-radius: .35rem; background: #fff; color: var(--text); font: inherit; }
.map-sheet-count { margin-left: auto; color: var(--muted); font-size: .85rem; }
.map-sheet-stack { min-height: 360px; }
.map-sheet { margin: 0; padding: 1rem; }
.map-sheet[hidden] { display: none; }
.map-sheet img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.map-sheet figcaption { margin-top: .6rem; text-align: center; color: var(--muted); font-size: .88rem; }
.map-image-placeholder { display: grid; place-items: center; align-content: center; gap: .35rem; min-height: 360px; padding: 2rem; background: repeating-linear-gradient(-45deg,#f0f1ec,#f0f1ec 12px,#e9ebe5 12px,#e9ebe5 24px); color: var(--muted); text-align: center; }
.map-image-placeholder strong { color: var(--text); font-size: 1.05rem; }
.map-image-placeholder code { margin-top: .35rem; padding: .25rem .4rem; border-radius: .25rem; background: rgba(255,255,255,.75); color: #5c6259; font-size: .78rem; }
.report-card-pending { background: #f7f7f4; border-style: dashed; color: #62675f; }
.report-card-pending strong { color: var(--text); }
.status-partial { background: var(--accent); margin-left: .8rem; }
.railway-index-item.partial { background: #f1f5ee; }
.railway-index-item.partial a { display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; min-height: 64px; grid-column: 1 / -1; padding: 0 .75rem 0 0; color: var(--text); text-decoration: none; }
.railway-index-item.partial a:hover { background: #e7eee3; color: var(--text); }
.partial .status-label { color: var(--accent); font-weight: 700; }
@media (max-width: 760px) {
  .map-viewer-controls { align-items: stretch; flex-direction: column; }
  .map-viewer-controls select { width: 100%; min-width: 0; }
  .map-sheet-count { margin-left: 0; }
  .map-image-placeholder { min-height: 260px; }
  .railway-index-item.partial a { grid-template-columns: 2.8rem 1fr; min-height: 70px; }
  .railway-index-item.partial .status-label { grid-column: 2; }
}

/* Single-image route map */
.legacy-map-single { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.map-single-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: #f5f6f1; color: var(--muted); font-size: .88rem; }
.map-original-link { font-weight: 700; text-decoration: none; }
.map-original-link:hover { text-decoration: underline; }
.legacy-map-single .legacy-map { margin: 0; padding: 1rem; }
.legacy-map-single .legacy-map a { display: block; width: fit-content; max-width: 100%; margin: 0 auto; }
.legacy-map-single .legacy-map img { display: block; max-width: 100%; height: auto; }
.legacy-map-single .legacy-map figcaption { margin-top: .65rem; text-align: center; color: var(--muted); font-size: .84rem; }
@media (max-width: 720px) {
  .map-single-toolbar { align-items: flex-start; flex-direction: column; }
  .legacy-map-single .legacy-map { padding: .65rem; }
}

/* Report migration placeholders / legacy segment maps */
.report-image-placeholder { min-height: 220px; display: grid; place-items: center; align-content: center; gap: .45rem; padding: 1rem; border: 1px dashed var(--border); border-radius: var(--radius); background: repeating-linear-gradient(-45deg,#f2f3ee,#f2f3ee 12px,#e9ebe5 12px,#e9ebe5 24px); color: var(--muted); text-align: center; }
.report-image-placeholder strong { color: var(--text); }
.report-image-placeholder code { max-width: 100%; overflow-wrap: anywhere; font-size: .78rem; }
.report-map-section { margin: 0 0 var(--space-5); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.report-map-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.report-map-heading h2 { margin: .1rem 0 0; }
.report-map-heading label { display: grid; gap: .3rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.report-map-heading select { min-width: 9rem; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: .4rem; background: #fff; color: var(--text); }
.report-segment-map { width: 100%; height: min(58vh, 520px); min-height: 320px; border-radius: .45rem; overflow: hidden; }
@media (max-width: 720px) { .report-map-heading { align-items: stretch; flex-direction: column; } .report-map-heading select { width: 100%; } .report-segment-map { min-height: 280px; height: 52vh; } }

/* Updates / BBS / Link utilities */
.external-mark { margin-left: .2em; font-size: .78em; opacity: .75; }
.utility-hero { max-width: 760px; }
.migration-note {
  margin: var(--space-5) 0;
  padding: var(--space-4);
  border: 1px solid #d8c98e;
  border-radius: var(--radius);
  background: #fff9e6;
}
.migration-note strong { display: block; margin-bottom: .35rem; }
.migration-note p { margin: 0; color: var(--muted); }
.migration-note code { font-size: .92em; }
.update-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.update-item {
  display: grid;
  grid-template-columns: minmax(7.5rem, 9rem) 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.update-item time { color: var(--muted); font-variant-numeric: tabular-nums; }
.update-item h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.update-item p { margin: 0; }
.empty-state { padding: var(--space-4); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); background: var(--surface); }
.link-groups { display: grid; gap: var(--space-5); }
.link-group h3 { margin: 0 0 var(--space-3); }
.external-link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.external-link-list a { display: grid; gap: .25rem; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.external-link-list a:hover { border-color: var(--accent); }
.external-link-list span { color: var(--muted); }
.utility-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-3); }
.utility-card { min-height: 150px; padding: var(--space-4); display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.utility-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.utility-card > span { margin-bottom: auto; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.utility-card strong { font-size: 1.35rem; }
.utility-card small { margin-top: .4rem; color: var(--muted); font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; }
.footer-nav a { color: inherit; text-decoration: none; opacity: .82; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 760px) {
  .update-item { grid-template-columns: 1fr; gap: .35rem; }
  .utility-card-grid { grid-template-columns: 1fr; }
  .utility-card { min-height: 120px; }
  .footer-layout { align-items: flex-start; }
  .footer-nav { justify-content: flex-start; }
}

/* Wider breakpoint for the expanded global navigation. */
@media (max-width: 1040px) and (min-width: 761px) {
  .header-inner { min-height: 60px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    margin: 0;
    background: var(--header);
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; padding: .5rem 1rem 1rem; }
  .site-nav a { padding: .8rem .75rem; }
  .section-nav { top: 60px; }
}

/* Imported legacy update history */
.update-notices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-5) 0;
}
.update-notice-card {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.notice-label {
  display: inline-block;
  margin-bottom: .65rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #e7eee3;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
}
.update-notice-card ul,
.update-detail-list { margin: 0; padding-left: 1.25rem; }
.update-notice-card li + li,
.update-detail-list li + li { margin-top: .4rem; }
.update-history { border-top: 1px solid var(--border); }
.update-year {
  margin: var(--space-5) 0 0;
  padding: 0 0 .65rem;
  border-bottom: 2px solid var(--text);
  font-size: 1.35rem;
}
.update-item { border-bottom: 1px solid var(--border); }
.update-item-new { background: #f6f8f3; padding-left: .75rem; padding-right: .75rem; }
.update-source {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

/* Imported legacy LINK page */
.site-banner-card {
  display: grid;
  grid-template-columns: minmax(250px, auto) 1fr;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.site-banner-card img { max-width: 250px; height: auto; }
.site-banner-card p { margin: 0; }
.external-link-list a {
  grid-template-columns: minmax(0, auto) 1fr;
  align-items: center;
  gap: var(--space-3);
}
.link-banner {
  display: grid;
  place-items: center;
  min-width: 220px;
}
.link-banner img { display: block; max-width: 250px; max-height: 80px; width: auto; height: auto; }
.link-copy { display: grid; gap: .35rem; }
.link-copy > span { line-height: 1.7; }
.link-banner-placeholder {
  min-width: 220px;
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .2rem;
  padding: .65rem;
  border: 1px dashed var(--border);
  border-radius: .45rem;
  background: repeating-linear-gradient(-45deg,#f2f3ee,#f2f3ee 10px,#e9ebe5 10px,#e9ebe5 20px);
  color: var(--muted);
  text-align: center;
}
.link-banner-placeholder strong { color: var(--text); font-size: .84rem; }
.link-banner-placeholder code { font-size: .72rem; }

@media (max-width: 760px) {
  .update-notices { grid-template-columns: 1fr; }
  .site-banner-card { grid-template-columns: 1fr; }
  .external-link-list a { grid-template-columns: 1fr; }
  .link-banner, .link-banner-placeholder { min-width: 0; width: 100%; }
}


.region-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.region-overview-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.region-overview-figure a {
  display: block;
}

.region-overview-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  background: #ece9e2;
}

.region-overview-figure figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.region-overview-note {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(180deg, #f7f4ee 0%, #f2eee7 100%);
  padding: 1.25rem;
}

.region-overview-note h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.region-overview-note p {
  margin: 0 0 0.85rem;
}

.overview-tips {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted-strong);
}

.overview-tips li + li {
  margin-top: 0.35rem;
}


/* Leaflet GeoJSON route-name labels */
.railway-label-icon {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

.railway-label-content {
  display: inline-block;
  width: max-content;
  max-width: none;
  padding: .12em .32em;
  border: 1px solid rgba(0, 0, 0, .22);
  border-radius: .18em;
  background: #fff;
  color: #000;
  line-height: 1.25;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.railway-label-content > * {
  display: inline !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  background: transparent !important;
}

.recent-railway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.recent-railway-card {
  display: flex;
  min-height: 11rem;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease;
}

.recent-railway-card:hover,
.recent-railway-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.recent-railway-card strong {
  font-size: 1.08rem;
  line-height: 1.5;
}

.recent-railway-meta,
.recent-railway-date {
  color: var(--muted);
  font-size: 0.88rem;
}

.recent-railway-card .region-arrow {
  margin-top: auto;
}

.recent-railway-card-hidden {
  display: none;
}

@media (max-width: 900px) {
  .recent-railway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .recent-railway-grid {
    grid-template-columns: 1fr;
  }
}

/* TOP hero photo slider (AVIF) */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: stretch;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  background: #191d18;
  box-shadow: var(--shadow);
}
.hero-slider-track,
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
}
.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide figcaption {
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .7rem;
  width: fit-content;
  max-width: calc(100% - 1.5rem);
  padding: .35rem .6rem;
  border-radius: .35rem;
  background: rgba(255,255,255,.9);
  color: #20251f;
  font-size: .82rem;
  line-height: 1.4;
}
.hero-slider-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #222;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.hero-slider-prev { left: .65rem; }
.hero-slider-next { right: .65rem; }
.hero-slider-dots {
  position: absolute;
  z-index: 3;
  right: .75rem;
  bottom: .75rem;
  display: flex;
  gap: .38rem;
}
.hero-slider-dots button {
  width: .55rem;
  height: .55rem;
  padding: 0;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  cursor: pointer;
}
.hero-slider-dots button.is-active { background: #fff; }
@media (max-width: 800px) {
  .hero-slider {
    width: 100%;
    max-width: none;
    margin-top: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Continuous report and linked photo/map reader (2026-10). */
.report-page { padding-inline: clamp(1rem, 3vw, 2rem); }
.report-segment { border: 0; }
.report-reader { position: relative; }
.report-back-top { display: inline-block; margin-top: 2rem; }
.report-map-home { margin: 0 0 2rem; }
.report-map-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 1.2rem; min-width: 0; }
.report-map-panel .report-map-heading { align-items: center; margin-bottom: .5rem; }
.report-map-heading .eyebrow { margin: 0; }
.report-map-heading h2 { font-size: 1.5rem; }
.report-map-help { font-size: .83rem; color: var(--muted); margin: .5rem 0 .8rem; }
.map-button { min-height: 44px; padding: .5rem .85rem; border: 1px solid var(--border); border-radius: .5rem; color: var(--accent-dark); background: var(--surface); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.map-button:hover { background: #eaf0e6; }
.map-button:disabled { opacity: .45; cursor: default; }
.map-button:focus-visible, .point-map-link:focus-visible, .report-map-panel a:focus-visible, .report-map-panel select:focus-visible { outline: 3px solid #af7242; outline-offset: 3px; }
.report-map-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .65rem; }
.report-map-panel [hidden], .report-reader [hidden], .report-map-home[hidden], .map-reader-launch[hidden] { display: none !important; }
.report-linked-map { height: 400px; min-height: 200px; width: 100%; border-radius: .4rem; background: #e8ede4; isolation: isolate; }
.report-map-status { margin: .75rem 0 0; color: #705129; font-size: .82rem; }
.linked-point-marker { background: transparent; border: 0; }
.linked-point-marker > span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 2px solid white; border-radius: 50%; background: #315c3b; color: white; font: 700 11px/1 sans-serif; box-shadow: 0 2px 6px #0005; }
.linked-point-marker sup { font-size: 9px; }
.linked-point-marker.is-active > span { background: #a14c23; border: 3px solid white; outline: 3px solid #a14c23; transform: scale(1.12); }
.linked-point-marker:focus-visible > span { outline: 3px solid #1e2630; }
.map-zoomed-out .linked-point-marker:not(.is-active) > span { width: 14px; height: 14px; margin: 12px; font-size: 0; }
.map-zoomed-out .linked-point-marker:not(.is-active) sup { display: none; }
.report-map-preview { display: grid; grid-template-columns: minmax(100px, 180px) 1fr; gap: .75rem 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.map-preview-photo { display: grid; place-items: center; align-self: start; min-height: 100px; aspect-ratio: 4/3; background: #f0f2eb; border-radius: .4rem; overflow: hidden; color: var(--muted); font-size: .8rem; }
.map-preview-photo img { width: 100%; height: 100%; object-fit: contain; max-height: 150px; }
.map-preview-body { min-width: 0; }
.map-preview-number { color: var(--accent); font-size: .75rem; font-weight: 700; margin: 0 0 .15rem; }
.map-preview-body h3 { font-size: 1rem; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.map-preview-excerpt { color: var(--muted); font-size: .8rem; line-height: 1.65; margin: .3rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-preview-body .map-popup-link { font-size: .8rem; }
.map-photo-navigation { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.map-photo-navigation > span { color: var(--muted); font-size: .75rem; }
.map-shared-label { display: grid; gap: .2rem; font-size: .75rem; color: var(--muted); margin-bottom: .4rem; }
.map-shared-label select { width: 100%; min-height: 36px; font: inherit; }
.route-point-media > .point-map-link { margin-top: .8rem; }
.map-reader-launch { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 1001; background: #315c3b; color: white; border-color: #315c3b; box-shadow: 0 3px 12px #0003; border-radius: 999px; }
.map-reader-launch:hover { background: #23452c; color: white; }
.report-map-dock { min-width: 0; }
@media (min-width: 1100px) {
  .report-page.map-reader-open { max-width: 1480px; }
  .map-reader-open .report-reader { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
  .map-reader-open .report-map-dock { position: sticky; top: 88px; max-height: calc(100dvh - 104px); overflow-y: auto; scrollbar-width: thin; }
  .map-reader-open .report-map-panel { padding: .85rem; }
  .map-reader-open .report-map-help { display: none; }
  .map-reader-open .report-linked-map { height: clamp(200px, calc(100dvh - 430px), 440px); }
  .map-reader-open .report-map-preview { grid-template-columns: 96px 1fr; gap: .5rem .7rem; }
  .map-reader-open .map-preview-photo { min-height: 72px; }
  .map-reader-open .map-preview-photo img { max-height: 100px; }
  .map-reader-open .route-point-header { grid-template-columns: 3rem 1fr; }
  .map-reader-open .route-point-body { gap: 1.3rem; grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); }
  .map-reader-open .route-point h3 { font-size: 1.6rem; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .map-reader-open .route-point-body { grid-template-columns: 1fr; }
}
.report-map-dialog { width: min(720px, calc(100vw - 20px)); max-width: none; height: min(860px, calc(100dvh - 24px)); max-height: none; border: 0; border-radius: .8rem; padding: 0; background: white; color: var(--text); overscroll-behavior: contain; }
.report-map-dialog::backdrop { background: #14221acc; }
.report-map-dialog[open] { display: flex; }
.report-map-dialog .report-map-panel { display: flex; flex-direction: column; width: 100%; height: 100%; border: 0; padding: .8rem; overflow-y: auto; }
.report-map-dialog .report-map-heading { flex-direction: row; align-items: center; gap: .5rem; flex-shrink: 0; }
.report-map-dialog .report-map-help, .report-map-dialog .eyebrow { display: none; }
.report-map-dialog .report-map-toolbar { margin: .25rem 0 .5rem; flex-shrink: 0; }
.report-map-dialog .report-linked-map { flex: 1 0 180px; height: auto; min-height: 180px; }
.report-map-dialog .report-map-preview { flex-shrink: 0; grid-template-columns: 100px 1fr; gap: .5rem .75rem; margin-top: .7rem; padding-top: .7rem; }
.report-map-dialog .map-preview-photo { min-height: 75px; }
.report-map-dialog .map-preview-photo img { max-height: 100px; }
.report-map-modal-open { overflow: hidden; }
@media (max-width: 720px) {
  .report-map-panel { padding: .85rem; }
  .report-map-home .report-map-heading { flex-direction: row; align-items: center; }
  .report-map-home .report-linked-map { height: 300px; }
  .report-map-preview { grid-template-columns: 95px 1fr; gap: .5rem .7rem; }
  .map-preview-photo { min-height: 72px; }
  .map-button { padding: .5rem .65rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
