:root{--journey-orange:#ee7043;--journey-paper:#f2f0eb;--journey-muted:#92908a;--journey-line:#363532}
.journeys-hero{position:relative;display:flex;min-height:270px;align-items:center;justify-content:space-between;gap:30px;padding-block:39px 34px;border-bottom:1px solid #30302d}
.journeys-copy{min-width:0}.journeys-copy h1{margin-top:13px;color:var(--journey-paper);font:500 clamp(45px,6.5vw,83px)/.95 Georgia,"Times New Roman",serif;letter-spacing:-.065em}.journeys-copy h1 em{color:var(--journey-orange);font-weight:500}.journeys-chinese{margin-top:10px;color:#c3c0b9;font:500 20px/1.35 "Songti SC",serif;letter-spacing:.07em}.journeys-deck{max-width:760px;margin-top:12px;color:#aaa8a2;font:15px/1.7 "Songti SC",serif}.journeys-hero-meta{display:flex;align-items:center;gap:11px;margin-top:16px;color:#797770;font:10px/1.55 Arial,"PingFang SC",sans-serif;letter-spacing:.09em}.journeys-hero-meta img{width:44px;height:44px;object-fit:contain}.journeys-map-jump{display:flex;flex:none;align-items:center;gap:22px;min-height:48px;padding:0 18px;border:1px solid var(--journey-orange);color:#f4eee6;font:700 12px/1.2 Arial,"PingFang SC",sans-serif;letter-spacing:.05em;transition:background .2s ease,color .2s ease}.journeys-map-jump span:last-child{color:var(--journey-orange);font-size:18px}.journeys-map-jump:hover{background:var(--journey-orange);color:#130f0d}.journeys-map-jump:hover span:last-child{color:#130f0d}
.journey-map-section{padding-block:39px 46px}.journey-map-heading{display:flex;align-items:end;justify-content:space-between;gap:22px}.journey-map-heading h2{margin-top:9px;color:#ebe8e1;font:500 clamp(28px,3.7vw,46px)/1.15 Georgia,"Songti SC",serif;letter-spacing:-.045em}.journey-map-heading>p{flex:none;margin-bottom:5px;color:#85837d;font:12px/1.5 Arial,"PingFang SC",sans-serif}.journey-controls{display:grid;grid-template-columns:minmax(0,1fr) 175px auto;align-items:end;gap:10px;margin-top:20px;padding:12px;border:1px solid #353431;background:#090909}.journey-controls label{display:flex;min-width:0;flex-direction:column;gap:6px;color:#8d8b85;font:10px/1.3 Arial,"PingFang SC",sans-serif}.journey-controls input,.journey-controls select{width:100%;min-height:46px;padding:9px 11px;border:1px solid #44433e;border-radius:0;background:#10100f;color:#eee;font:16px/1.3 Arial,"PingFang SC",sans-serif}.journey-controls input::placeholder{color:#686660}.journey-controls input:focus,.journey-controls select:focus,.journey-reset:focus-visible,.map-zoom-controls button:focus-visible,.journey-detail-link:focus-visible,.journey-card-focus:focus-visible,.journey-nearby-item:focus-visible,.journey-map-marker:focus-visible{outline:2px solid var(--journey-orange);outline-offset:2px}.journey-reset{min-height:43px;padding:9px 14px;border:1px solid #5b5953;background:transparent;color:#d3d0c9;font:700 11px/1.3 Arial,"PingFang SC",sans-serif;cursor:pointer}.journey-reset:hover{border-color:var(--journey-orange);color:#fff}
.journey-map-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,350px);gap:14px;align-items:stretch;margin-top:14px}.journey-map-column{min-width:0}.journey-map-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:49px;padding:5px 11px;border:1px solid #393732;border-bottom:0;background:#0a0a09;color:#c9c5bd;font:11px/1.3 Arial,"PingFang SC",sans-serif;letter-spacing:.035em}.journey-map-toolbar>span{display:flex;align-items:center;gap:9px}.journey-map-toolbar>span i{display:block;width:9px;height:9px;border:2px solid var(--journey-orange);border-radius:50%;background:#fff}.map-zoom-controls{display:flex;align-items:center;gap:5px}.map-zoom-controls button{min-width:42px;height:38px;padding:0 9px;border:1px solid #4b4943;background:#10100f;color:#e9e6df;font:600 18px/1 Arial,"PingFang SC",sans-serif;cursor:pointer}.map-zoom-controls button:last-child{min-width:54px;font-size:10px}.map-zoom-controls button:hover{border-color:var(--journey-orange);color:var(--journey-orange)}
.journey-map-frame{position:relative;overflow:hidden;aspect-ratio:1.48;border:1px solid #46423b;background:#bdb8ac;box-shadow:0 15px 45px #0006}.journey-map-svg{display:block;width:100%;height:100%;touch-action:pan-y;user-select:none}.journey-map-svg.is-dragging{cursor:grabbing}.journey-map-svg:not(.is-dragging){cursor:grab}.journey-map-svg>image{filter:sepia(.11) saturate(.78) contrast(.96) brightness(.93)}.journey-map-tint{fill:#d0a575;fill-opacity:.08;pointer-events:none}.map-grid-line{fill:none;stroke:#50483c;stroke-width:1.8;stroke-opacity:.28;vector-effect:non-scaling-stroke;pointer-events:none}.map-grid-line-lat{stroke-opacity:.22}.map-grid-label{fill:#574d40;fill-opacity:.88;font:17px Arial,"PingFang SC",sans-serif;paint-order:stroke;stroke:#e5dfd3;stroke-width:4px;stroke-opacity:.8;pointer-events:none}.map-region-labels{fill:#48443c;fill-opacity:.57;font:600 33px Arial,"PingFang SC",sans-serif;letter-spacing:.15em;pointer-events:none}.journey-map-marker{cursor:pointer;outline:none}.map-marker-hit{fill:transparent;pointer-events:all}.map-marker-ring{fill:#ef7043;fill-opacity:.93;stroke:#fff8ef;stroke-width:3.2;vector-effect:non-scaling-stroke;filter:drop-shadow(0 2px 4px #2a201b88);transition:r .16s ease,fill .16s ease}.map-marker-core{fill:#fffaf2;stroke:#bb5535;stroke-width:1.2;vector-effect:non-scaling-stroke}.journey-map-marker:hover .map-marker-ring,.journey-map-marker:focus-visible .map-marker-ring{fill:#fa936b;stroke:#21130e;stroke-width:4.5}.journey-map-marker.is-selected .map-marker-ring{fill:#fff7ed;stroke:var(--journey-orange);stroke-width:6}.journey-map-marker.is-selected .map-marker-core{fill:var(--journey-orange);stroke:#fffaf2;stroke-width:2}.journey-map-marker.is-cluster .map-marker-ring{fill:#d9633e}.map-marker-count{fill:#fffaf2;font:700 19px/1 Arial,sans-serif;pointer-events:none}.map-empty{position:absolute;inset:45% auto auto 50%;transform:translate(-50%,-50%);padding:11px 15px;border:1px solid #72695f;background:#141310df;color:#f1ede6;font:12px/1.5 Arial,"PingFang SC",sans-serif}.journey-map-note{max-width:850px;margin-top:9px;color:#85837d;font:11px/1.65 "Songti SC",serif}.journey-map-credit{margin-top:12px;color:#77756f;font:10px/1.5 Arial,"PingFang SC",sans-serif}.journey-map-credit a{color:#c1b5a6;text-decoration:underline;text-underline-offset:2px}.journey-map-credit a:hover{color:var(--journey-orange)}
.journey-detail{display:flex;min-width:0;flex-direction:column;padding:13px;border:1px solid #383632;background:#090908}.journey-detail-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 1px 10px;color:#85827a;font:9px/1.2 Arial,"PingFang SC",sans-serif;letter-spacing:.12em}.detail-position{color:#aaa69f;font-variant-numeric:tabular-nums}.journey-feature-photo{margin:0;background:#171613}.journey-feature-photo img{display:block;width:100%;aspect-ratio:1.43;object-fit:cover;object-position:center;background:#211f1b}.journey-feature-photo figcaption{padding:7px 9px;color:#8c8981;font:9px/1.35 Arial,"PingFang SC",sans-serif;letter-spacing:.04em}.journey-detail-date{margin-top:15px;color:var(--journey-orange);font:700 11px/1.3 Arial,"PingFang SC",sans-serif;letter-spacing:.04em}.journey-detail h3{margin-top:7px;color:#f0ede7;font:500 clamp(22px,2.2vw,29px)/1.25 "Songti SC",Georgia,serif;overflow-wrap:anywhere}.journey-detail-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;padding-block:11px;border-top:1px solid #33312e;border-bottom:1px solid #33312e}.journey-detail-stats>div{display:flex;min-width:0;flex-direction:column;gap:5px}.journey-detail-stats span{color:#7f7c75;font:9px/1.35 Arial,"PingFang SC",sans-serif}.journey-detail-stats strong{color:#e1ddd5;font:500 13px/1.4 "Songti SC",Arial,sans-serif;overflow-wrap:anywhere}.journey-detail-route{margin-top:13px}.journey-detail-route>span{color:#85827a;font:9px/1.3 Arial,"PingFang SC",sans-serif;letter-spacing:.1em}.journey-detail-route p{margin-top:6px;color:#c6c2ba;font:12px/1.75 "Songti SC",serif;overflow-wrap:anywhere}.journey-nearby{margin-top:10px;padding:10px;border:1px solid #3c3933;background:#11100e}.journey-nearby>p{color:#aaa69d;font:10px/1.5 "Songti SC",serif}.journey-nearby-list{display:grid;gap:5px;margin-top:7px}.journey-nearby-item{width:100%;min-height:36px;padding:7px 8px;border:1px solid #45423b;background:#171613;color:#e5e0d7;text-align:left;font:10px/1.4 "Songti SC",serif;cursor:pointer}.journey-nearby-item[aria-pressed="true"]{border-color:var(--journey-orange);color:#ffb190}.journey-detail-link{display:flex;align-items:center;justify-content:space-between;min-height:40px;margin-top:auto;padding:9px 1px 0;border:0;background:transparent;color:var(--journey-orange);text-align:left;font:700 10px/1.4 Arial,"PingFang SC",sans-serif;cursor:pointer}.journey-detail-link span{font-size:16px}.journey-record-note{margin-top:9px;color:#77756f;font:10px/1.55 "Songti SC",serif}
.journeys-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #30302d;border-bottom:1px solid #30302d}.journeys-facts>div{display:flex;min-height:93px;flex-direction:column;justify-content:center;padding:14px 21px;border-left:1px solid #30302d}.journeys-facts>div:last-child{border-right:1px solid #30302d}.journeys-facts strong{color:var(--journey-paper);font:500 25px/1.15 Georgia,"Songti SC",serif;letter-spacing:-.035em}.journeys-facts span{margin-top:7px;color:#88867f;font:10px/1.4 Arial,"PingFang SC",sans-serif;letter-spacing:.04em}
.journey-method{margin-top:0;background:#0b0b0b;border-bottom:1px solid #30302d}.journey-method-grid{display:grid;grid-template-columns:minmax(130px,.45fr) minmax(0,1fr);gap:6vw;padding-block:56px 62px}.journey-method-grid h2{max-width:720px;color:#e9e6df;font:500 clamp(29px,3.6vw,46px)/1.22 Georgia,"Songti SC",serif;letter-spacing:-.045em}.journey-method-grid>div>p{max-width:790px;margin-top:16px;color:#9a9892;font:14px/1.85 "Songti SC",serif}
.journey-archive{padding-block:67px 88px}.journey-archive-heading{display:flex;align-items:end;justify-content:space-between;gap:25px}.journey-archive-heading h2{max-width:770px;margin-top:12px;color:#ece9e2;font:500 clamp(30px,4.2vw,54px)/1.16 Georgia,"Songti SC",serif;letter-spacing:-.045em}.journey-archive-heading>p{flex:none;margin-bottom:5px;color:#85837d;font:11px/1.5 Arial,"PingFang SC",sans-serif}.journey-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px}.journey-card{display:grid;grid-template-columns:98px minmax(0,1fr);gap:15px;min-width:0;padding:18px 17px;border:1px solid #363532;background:#090909}.journey-card[aria-current="true"]{border-color:#966145;background:#100e0c}.journey-card-index{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding-top:2px}.journey-year-label{color:var(--journey-orange);font:700 9px/1.45 Arial,"PingFang SC",sans-serif;letter-spacing:.03em}.journey-id-label{color:#696760;font:9px/1.45 Arial,"PingFang SC",sans-serif;overflow-wrap:anywhere}.journey-card-main{min-width:0}.journey-card h3{color:#ece9e2;font:500 19px/1.4 "Songti SC",Georgia,serif;overflow-wrap:anywhere}.journey-route{margin-top:7px;color:#a9a69e;font:12px/1.75 "Songti SC",serif;overflow-wrap:anywhere}.journey-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.journey-tags span{padding:4px 6px;border:1px solid #393732;color:#8e8b83;font:9px/1.35 "Songti SC",Arial,sans-serif}.journey-card details{margin-top:11px;border-top:1px solid #32302d}.journey-card summary{padding-block:9px;color:#c6c2ba;font:10px/1.4 "Songti SC",serif;cursor:pointer}.journey-card summary:focus-visible{outline:2px solid var(--journey-orange);outline-offset:2px}.journey-card dl{display:grid;gap:7px;padding:2px 0 7px}.journey-card dl>div{display:grid;grid-template-columns:105px minmax(0,1fr);gap:9px}.journey-card dt{color:#77756e;font:10px/1.6 "Songti SC",serif}.journey-card dd{color:#b6b2aa;font:10px/1.6 "Songti SC",serif;overflow-wrap:anywhere}.journey-record-note,.journey-record-note{color:#77756f;font:10px/1.6 "Songti SC",serif}.journey-card-focus{min-height:38px;margin-top:10px;padding:7px 0;border:0;border-top:1px solid #3a3833;background:transparent;color:var(--journey-orange);text-align:left;font:700 10px/1.4 Arial,"PingFang SC",sans-serif;cursor:pointer}.journey-card-focus:hover{color:#ff9b76}.journey-empty{margin-top:20px;padding:24px;border:1px solid #3a3833;color:#aaa69f;text-align:center;font:13px/1.6 "Songti SC",serif}
@media(max-width:1120px){.journey-map-layout{grid-template-columns:minmax(0,1fr) 305px}.journeys-copy h1{font-size:clamp(46px,7vw,72px)}.journey-detail{padding:11px}.journey-card{grid-template-columns:82px minmax(0,1fr);gap:12px}}
@media(max-width:760px){.journeys-hero{min-height:0;align-items:flex-start;padding-block:32px 25px}.journeys-copy h1{max-width:610px;font-size:clamp(43px,10vw,68px);line-height:.98}.journeys-deck{font-size:14px}.journeys-map-jump{min-height:44px;padding-inline:12px;font-size:10px}.journey-map-section{padding-block:31px 37px}.journey-map-heading{align-items:flex-start;flex-direction:column;gap:7px}.journey-map-heading h2{font-size:clamp(28px,7.5vw,39px)}.journey-controls{grid-template-columns:minmax(0,1fr) 150px;gap:9px;padding:10px}.journey-controls .journey-search{grid-column:1/-1}.journey-reset{grid-column:1/-1}.journey-map-layout{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:10px}.journey-map-frame{aspect-ratio:1.48}.journey-detail{padding:13px}.journey-feature-photo img{aspect-ratio:1.55}.journey-detail h3{font-size:24px}.journey-detail-route p{font-size:13px}.journey-detail-link{margin-top:14px}.journey-map-note{font-size:10px}.journey-map-credit{margin-top:8px}.journeys-facts>div{min-height:82px;padding:11px 13px}.journeys-facts strong{font-size:21px}.journeys-facts span{font-size:9px}.journey-method-grid{grid-template-columns:minmax(0,1fr);gap:17px;padding-block:43px 48px}.journey-method-grid h2{font-size:32px}.journey-method-grid>div>p{font-size:13px}.journey-archive{padding-block:48px 65px}.journey-list{grid-template-columns:minmax(0,1fr);gap:9px;margin-top:16px}.journey-card{grid-template-columns:80px minmax(0,1fr);padding:16px 14px}.journey-card h3{font-size:18px}.journey-card dl>div{grid-template-columns:94px minmax(0,1fr)}}
@media(max-width:420px){.journeys-hero{gap:8px}.journeys-map-jump{gap:0;min-width:44px;width:44px;justify-content:center;padding-inline:0}.journeys-map-jump-label{display:none}.journeys-map-jump span:last-child{font-size:20px}.journeys-hero-meta{margin-top:12px}.journey-map-heading>p{font-size:10px}.journey-controls{grid-template-columns:minmax(0,1fr) 128px;padding:8px}.journey-controls input,.journey-controls select{min-height:46px;padding-inline:9px}.journey-reset{min-height:44px}.journey-map-toolbar{min-height:47px;padding-inline:8px}.map-zoom-controls{gap:4px}.map-zoom-controls button{min-width:44px;height:44px;padding-inline:7px}.journey-detail-stats{grid-template-columns:1fr 1fr}.journeys-facts strong{font-size:18px}.journeys-facts span{font-size:8px;letter-spacing:0}.journey-archive-heading{align-items:flex-start;flex-direction:column;gap:8px}.journey-card{grid-template-columns:68px minmax(0,1fr);gap:10px;padding:14px 11px}.journey-year-label,.journey-id-label{font-size:8px}.journey-card dl>div{grid-template-columns:1fr;gap:0}.journey-card dd{font-size:10px}}
@media(orientation:landscape) and (max-width:900px){.journey-map-layout{grid-template-columns:minmax(0,1fr) 290px}.journey-map-frame{aspect-ratio:1.48}.journeys-hero{padding-block:20px}.journeys-map-section{padding-block:22px 30px}.journey-detail{padding:10px}.journey-feature-photo img{aspect-ratio:1.6}.journey-detail-route p{font-size:11px}}

@media(max-width:390px){.journey-map-frame{aspect-ratio:1.48}.journey-controls{grid-template-columns:minmax(0,1fr) 118px}.journey-map-toolbar{font-size:10px}}
@media(orientation:landscape) and (max-height:500px){.journeys-hero{min-height:0;padding-block:22px}.journey-map-section{padding-block:25px 30px}.journey-map-frame{aspect-ratio:1.48}}
@media(max-width:760px){body[data-page="journeys"] .site-header .brand-text small{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;font-size:10px;line-height:1.4;letter-spacing:0}}
@media(max-width:390px){body[data-page="journeys"] .site-header .brand-text small{font-size:10px;line-height:1.4}}
@media(max-width:390px){body[data-page="journeys"] .site-header .brand-text small{display:block;max-width:min(220px,100%);white-space:normal;overflow:visible;text-overflow:clip}}
@media(max-width:340px){body[data-page="journeys"] .site-header .brand-text small{max-width:min(190px,100%);font-size:9.5px;line-height:1.35}}

/* Homepage polish: keep the title compact so the map leads the first screen. */
.journeys-hero {
  min-height: 0;
  align-items: center;
  gap: 28px;
  padding-block: 23px 20px;
}
.journeys-copy h1 {
  margin-top: 7px;
  font-size: clamp(45px, 5.3vw, 68px);
  line-height: 1;
}
.journeys-chinese { margin-top: 4px; font-size: 16px; }
.journeys-deck { max-width: 820px; margin-top: 7px; font-size: 13px; line-height: 1.55; }
.journeys-hero-mark {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: #8c8981;
  font: 9px/1.5 Arial, "PingFang SC", sans-serif;
  letter-spacing: .12em;
}
.journeys-hero-mark img { display: block; width: 68px; height: 68px; object-fit: contain; }
.journey-map-section { padding-block: 20px 38px; }
.journey-map-heading h2 { margin-top: 5px; font-size: clamp(27px, 3.1vw, 39px); }
.journey-controls { grid-template-columns: minmax(0, 1fr) 164px auto; gap: 8px; margin-top: 13px; padding: 9px; }
.journey-map-layout { grid-template-columns: minmax(0, 1.72fr) minmax(280px, .78fr); gap: 14px; margin-top: 10px; }
.journey-map-toolbar {
  min-height: 46px;
  gap: 12px;
  padding: 4px 10px;
  background: #11110fe8;
}
.journey-map-legend { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.journey-map-legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.journey-legend-line { display: block; width: 21px; height: 0; border-top: 2px dashed #e87349; }
.journey-legend-point { display: block; width: 10px; height: 10px; border: 2px solid #e87349; border-radius: 50%; background: #fffaf2; }
.journey-map-frame { border-color: #39352e; box-shadow: 0 12px 32px #0005; }
.journey-map-tint { fill-opacity: .035; }
.map-grid-line { stroke-opacity: .15; }
.map-grid-line-lat { stroke-opacity: .11; }
.map-grid-label { fill-opacity: .72; stroke-opacity: .6; }
.map-region-labels { fill-opacity: .43; font-size: 29px; }
.journey-map-route-group { cursor: pointer; outline: none; }
.journey-map-route-hit { fill: none; stroke: transparent; stroke-width: 22px; pointer-events: stroke; }
.journey-map-route-line {
  fill: none;
  stroke: #b75634;
  stroke-width: 2.6px;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-opacity: .78;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  transition: stroke .16s ease, stroke-opacity .16s ease, stroke-width .16s ease;
}
.journey-map-route-group:hover .journey-map-route-line,
.journey-map-route-group:focus-visible .journey-map-route-line { stroke: #de633b; stroke-opacity: .96; }
.journey-map-route-group.is-selected .journey-map-route-line {
  stroke: #e4663d;
  stroke-width: 3.6px;
  stroke-dasharray: 10 6;
  stroke-opacity: 1;
}
.journey-detail-mapmode {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 11px;
  color: #aaa69d;
  font: 10px/1.4 "Songti SC", Arial, sans-serif;
}
.journey-detail-mapmode i { display: block; width: 18px; height: 0; border-top: 2px dashed #e87349; }
.journey-detail-mapmode:not(.is-route) i { width: 9px; height: 9px; border: 2px solid #e87349; border-radius: 50%; background: #fffaf2; }
.journey-detail-route { margin-top: 10px; }
.journey-card[aria-current="true"] { border-color: #a05e40; }
.journey-tags span:last-child { color: #d8a083; }

@media (max-width: 760px) {
  .journeys-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: start;
    gap: 8px;
    padding-block: 20px 17px;
  }
  .journeys-copy { grid-column: 1; grid-row: 1; }
  .journeys-copy h1 { max-width: none; font-size: clamp(30px, 9.2vw, 52px); line-height: 1.02; }
  .journeys-chinese { font-size: 14px; }
  .journeys-deck { margin-top: 6px; font-size: 13px; line-height: 1.6; }
  .journeys-hero-mark { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .journeys-hero-mark img { width: 42px; height: 42px; }
  .journeys-hero-mark span { display: none; }
  .journey-map-section { padding-block: 18px 30px; }
  .journey-map-heading { gap: 5px; }
  .journey-map-heading h2 { font-size: clamp(25px, 7vw, 35px); }
  .journey-controls { grid-template-columns: minmax(0, 1fr) 126px; gap: 8px; margin-top: 11px; padding: 8px; }
  .journey-controls .journey-search { grid-column: 1 / -1; }
  .journey-controls .journey-year { grid-column: 1; }
  .journey-reset { grid-column: 2; min-height: 46px; }
  .journey-map-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 9px; }
  .journey-map-toolbar { min-height: 46px; flex-wrap: wrap; padding: 5px 8px; }
  .journey-map-legend { gap: 7px 12px; font-size: 10px; }
  .map-zoom-controls { margin-left: auto; }
  .map-zoom-controls button { min-width: 44px; height: 44px; }
  .journey-map-frame { aspect-ratio: 1.48; }
  .journey-map-note { font-size: 10px; }
  .journey-detail { padding: 12px; }
  .journey-feature-photo img { aspect-ratio: 1.55; }
}
@media (max-width: 420px) {
  .journeys-copy h1 { font-size: clamp(29px, 9.1vw, 39px); }
  .journey-controls { grid-template-columns: minmax(0, 1fr) 116px; }
  .journey-controls input, .journey-controls select { min-height: 46px; }
  .journey-map-toolbar { gap: 7px; }
  .journey-map-legend { gap: 6px 9px; font-size: 9px; }
  .journey-legend-line { width: 16px; }
  .map-zoom-controls button { min-width: 44px; }
}
@media (orientation: landscape) and (max-width: 900px) {
  .journeys-hero { padding-block: 16px; }
  .journey-map-section { padding-block: 16px 26px; }
  .journey-map-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .journey-map-frame { aspect-ratio: 1.48; }
}

/* Editorial photo archive and full-width map for every landscape viewport. */
.journey-map-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, .46fr); }
.journey-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-top: 28px;
}
.journey-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-color: #302e2a;
  background: #0b0b0a;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.journey-card:hover { border-color: #72513f; transform: translateY(-2px); }
.journey-card[aria-current="true"] { border-color: var(--journey-orange); background: #100e0c; }
.journey-card-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.62;
  margin: 0;
  background: #171613;
}
.journey-card-photo::after {
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(180deg, transparent 0%, #080807bb 100%);
  content: "";
  pointer-events: none;
}
.journey-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}
.journey-card:hover .journey-card-photo img { transform: scale(1.035); }
.journey-card-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 13px;
  bottom: 12px;
  left: 13px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  color: #f2f0eb;
  font: 9px/1.35 Arial, "PingFang SC", sans-serif;
  letter-spacing: .09em;
  text-shadow: 0 1px 5px #000;
}
.journey-card-photo figcaption span:last-child {
  max-width: 65%;
  overflow: hidden;
  font-family: "Songti SC", Georgia, serif;
  font-size: 11px;
  letter-spacing: .01em;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.journey-card-main { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 16px 17px 13px; }
.journey-card-index { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; padding: 0; }
.journey-year-label { font-size: 10px; }
.journey-id-label { flex: none; font-size: 8px; text-align: right; }
.journey-card h3 { margin-top: 9px; font-size: 21px; line-height: 1.35; }
.journey-route { margin-top: 7px; font-size: 12px; line-height: 1.7; }
.journey-tags { gap: 6px; margin-top: 12px; }
.journey-tags span { font-size: 9px; }
.journey-card details { margin-top: 12px; }
.journey-card-focus { margin-top: auto; padding-top: 10px; }
.journey-map-selection { display: none; }
.journey-map-selection button:focus-visible { outline: 2px solid var(--journey-orange); outline-offset: 2px; }
@media (min-width: 1540px) {
  .journey-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 980px) {
  .journey-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
}
@media (max-width: 680px) {
  .journey-list { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 18px; }
  .journey-card-photo { aspect-ratio: 1.72; }
  .journey-card-main { padding: 15px 15px 12px; }
  .journey-card h3 { font-size: 20px; }
}
@media (orientation: landscape) {
  .journey-map-layout { grid-template-columns: minmax(0, 1fr); }
  .journey-detail { display: none; }
  .journey-map-frame { aspect-ratio: 1.48; }
  .journey-map-selection {
    position: absolute;
    z-index: 2;
    bottom: 12px;
    left: 12px;
    display: grid;
    width: min(330px, calc(100% - 150px));
    gap: 5px;
    padding: 11px 13px 10px;
    border: 1px solid #736456;
    background: #10100ee8;
    color: #f2f0eb;
    box-shadow: 0 5px 20px #0005;
  }
  .map-selection-kicker { color: #aaa69d; font: 8px/1.3 Arial, sans-serif; letter-spacing: .13em; }
  .journey-map-selection strong { overflow: hidden; font: 500 17px/1.3 "Songti SC", Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
  .journey-map-selection > span:nth-of-type(2) { color: #aaa69d; font: 9px/1.4 Arial, "PingFang SC", sans-serif; }
  .journey-map-selection button {
    justify-self: start;
    min-height: 44px;
    padding: 3px 0 0;
    border: 0;
    background: transparent;
    color: var(--journey-orange);
    font: 700 10px/1.4 Arial, "PingFang SC", sans-serif;
    cursor: pointer;
  }
}
@media (max-width: 760px) and (orientation: portrait) {
  .journey-map-layout { grid-template-columns: minmax(0, 1fr); }
  .journey-detail { display: flex; }
}
@media (orientation: landscape) and (max-width: 680px) {
  .journey-map-selection { bottom: 7px; left: 7px; width: min(245px, calc(100% - 105px)); gap: 3px; padding: 7px 9px; }
  .journey-map-selection strong { font-size: 13px; }
  .journey-map-selection button { min-height: 44px; font-size: 9px; }
}

/* Photo-led editorial archive: one scenic frame, then a quiet facts hierarchy. */
.journey-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin-top: 31px;
}
.journey-card {
  border-color: #36332e;
  background: #0d0d0c;
  box-shadow: 0 10px 28px #0003;
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}
.journey-card:hover { border-color: #8a5a40; background: #11100e; transform: translateY(-3px); }
.journey-card:focus-within { border-color: #a46b4a; }
.journey-card[aria-current="true"] { border-color: var(--journey-orange); background: #11100e; }
.journey-card-photo {
  aspect-ratio: 1.48;
  background: #171613;
}
.journey-card-photo::after {
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent 0%, #080807d9 100%);
}
.journey-card-photo img { object-position: center; }
.journey-card-photo figcaption { right: 17px; bottom: 15px; left: 17px; font-size: 9px; }
.journey-card-photo figcaption span:first-child { opacity: .86; }
.journey-card-photo figcaption span:last-child { font-size: 12px; }
.journey-card-main { padding: 19px 20px 16px; }
.journey-card-index {
  justify-content: flex-start;
  padding-bottom: 11px;
  border-bottom: 1px solid #302e2a;
}
.journey-year-label { color: #ed8a5b; font-size: 11px; letter-spacing: .11em; }
.journey-card h3 { margin-top: 14px; font-size: 23px; line-height: 1.38; }
.journey-route {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 9px;
  padding-left: 11px;
  border-left: 1px solid #a7603d;
  color: #b9b5ac;
  font-size: 13px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.journey-tags { gap: 7px 13px; margin-top: 16px; }
.journey-tags span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 0;
  border: 0;
  color: #aaa69d;
  font-size: 11px;
  line-height: 1.6;
}
.journey-tags span::before {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  align-self: center;
  border-radius: 50%;
  background: var(--journey-orange);
  content: "";
}
.journey-card details { margin-top: 14px; }
.journey-card summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: #bcb8b0;
  font-size: 11px;
}
.journey-card dl { gap: 8px; padding-block: 5px 10px; }
.journey-card dl > div { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.journey-card dt { font-size: 11px; }
.journey-card dd { font-size: 11px; line-height: 1.7; }
.journey-record-note { margin-top: 5px; font-size: 10px; }
.journey-card-focus {
  min-height: 46px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 11px;
  letter-spacing: .02em;
}
@media (min-width: 1600px) {
  .journey-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .journey-card-main { padding: 15px 15px 13px; }
  .journey-card h3 { font-size: 20px; }
  .journey-route { font-size: 12px; }
  .journey-tags span { font-size: 10px; }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .journey-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .journey-card-main { padding: 16px 16px 14px; }
  .journey-card h3 { font-size: 21px; }
}
@media (max-width: 1020px) {
  .journey-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
}
@media (max-width: 680px) {
  .journey-list { grid-template-columns: minmax(0, 1fr); gap: 17px; margin-top: 22px; }
  .journey-card-photo { aspect-ratio: 1.66; }
  .journey-card-main { padding: 17px 17px 14px; }
  .journey-card h3 { margin-top: 12px; font-size: 22px; }
  .journey-route { -webkit-line-clamp: 4; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-card, .journey-card-photo img { transition: none; }
  .journey-card:hover { transform: none; }
}

/* Curated landscape archive: the photograph leads; only date, image window and route remain. */
.journey-card-photo::after { display: none; }
.journey-card-photo { aspect-ratio: 1.5; }
.journey-card-main { padding: 15px 16px 14px; }
.journey-card-index {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
}
.journey-year-label { font-size: 11px; }
.journey-focus-days {
  color: #b7b1a7;
  font: 10px/1.4 Arial, "PingFang SC", sans-serif;
  white-space: nowrap;
}
.journey-card h3 {
  margin-top: 11px;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.journey-card-focus { min-height: 44px; margin-top: 8px; padding-top: 7px; }
@media (max-width: 680px) {
  .journey-card-photo { aspect-ratio: 1.6; }
  .journey-card-main { padding: 15px 16px 13px; }
  .journey-card h3 { font-size: 21px; }
}

@media (min-width: 1024px) and (orientation: landscape) {
  .journey-map-column { width: min(100%, 90vh, 1280px); margin-inline: auto; }
  .map-zoom-controls button { min-width: 44px; height: 44px; }
  .journey-map-selection {
    width: min(400px, calc(100% - 150px));
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
  }
  .journey-map-selection > img {
    display: block;
    width: 84px;
    height: 72px;
    border: 1px solid #696052;
    object-fit: cover;
  }
  .map-selection-copy { display: grid; min-width: 0; gap: 4px; }
  .journey-map-selection strong { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .journey-map-selection button { min-height: 40px; padding-top: 0; }
}
@media (orientation: landscape) and (max-width: 680px) {
  .journey-map-selection {
    grid-template-columns: 54px minmax(0, 1fr);
    width: min(250px, calc(100% - 105px));
    gap: 7px;
  }
  .journey-map-selection > img { width: 54px; height: 54px; }
  .journey-map-selection strong { font-size: 12px; }
  .journey-map-selection button { min-height: 44px; font-size: 9px; }
}
.journey-map-svg:focus-visible { outline: 2px solid var(--journey-orange); outline-offset: -3px; }

/* Map-first opening view: place the full, pannable archive map in the first viewport. */
body[data-page="journeys"] .site-header { z-index: 50; }
body[data-page="journeys"] .header-inner {
  width: calc(100% - 32px);
  min-height: 56px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding-block: 0;
}
body[data-page="journeys"] .brand-text .borderlab-logo { width: 176px; }
body[data-page="journeys"] .brand-text small { display: block; }
body[data-page="journeys"] .site-nav {
  position: absolute;
  top: 56px;
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 7px 16px 14px;
  border-bottom: 1px solid #555;
  background: #080808;
  box-shadow: 0 18px 28px #000a;
}
body[data-page="journeys"] .site-nav.open { display: flex; }
body[data-page="journeys"] .site-nav a { min-height: 43px; border-bottom: 1px solid #363636; font-size: 11px; }
body[data-page="journeys"] .bcl-brand { width: 102px; min-height: 42px; padding-left: 12px; }
body[data-page="journeys"] .bcl-brand img { width: 88px; }
body[data-page="journeys"] .menu-toggle {
  display: flex;
  width: 42px;
  height: 42px;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #696969;
  background: transparent;
}
body[data-page="journeys"] .menu-toggle span { display: block; width: 17px; height: 1px; background: #f2f0eb; }
.journeys-hero { display: none; }
.journey-map-section.shell {
  display: grid;
  width: calc(100% - 32px);
  max-width: none;
  height: calc(100svh - 57px);
  grid-template-columns: max-content max-content minmax(170px, 1fr) 118px max-content max-content max-content;
  grid-template-rows: 50px minmax(0, 1fr);
  align-items: center;
  gap: 0 7px;
  margin-inline: auto;
  padding: 3px 0 14px;
}
.journey-map-heading { display: contents; }
.journey-heading-name { display: flex; min-width: 0; grid-column: 1; grid-row: 1; align-items: center; gap: 7px; }
.journey-heading-name > img { width: 29px; height: 29px; object-fit: contain; }
.journey-heading-name > div { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.journey-heading-name .section-index { display: none; }
.journey-heading-name h1 {
  color: var(--journey-paper);
  font: 500 20px/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.journey-heading-name h1 em { color: var(--journey-orange); font-weight: 500; }
.journey-heading-name h1 span {
  margin-left: 8px;
  color: #9d9a92;
  font: 11px/1.3 "Songti SC", Georgia, serif;
  letter-spacing: .04em;
}
.journey-map-heading > p {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #85837d;
  font: 9px/1.35 Arial, "PingFang SC", sans-serif;
  white-space: nowrap;
}
.journey-controls { display: contents; }
.journey-search { grid-column: 3; grid-row: 1; }
.journey-year { grid-column: 4; grid-row: 1; }
.journey-reset { grid-column: 5; grid-row: 1; }
.journey-controls label { position: relative; display: block; min-width: 0; }
.journey-controls label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.journey-controls input, .journey-controls select {
  min-height: 36px;
  padding: 5px 9px;
  font-size: 12px;
}
.journey-reset { min-height: 36px; padding: 5px 9px; font-size: 9px; white-space: nowrap; }
.journey-map-layout, .journey-map-column, .journey-map-toolbar { display: contents; }
.journey-map-legend { grid-column: 6; grid-row: 1; gap: 6px 10px; font-size: 9px; }
.journey-map-legend span { gap: 5px; }
.journey-legend-line { width: 17px; }
.map-zoom-controls { grid-column: 7; grid-row: 1; gap: 4px; }
.map-zoom-controls button { min-width: 44px; height: 44px; padding-inline: 7px; }
.map-zoom-controls button:last-child { min-width: 52px; }
.journey-map-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-column: 1 / -1;
  grid-row: 2;
  aspect-ratio: auto;
  border-color: #39352e;
}
.journey-map-svg {
  width: 100%;
  height: 100%;
  margin: 0;
}
.journey-map-note, .journey-map-credit { display: none; }
.journey-map-layout .journey-detail { display: none; }
.journey-map-selection {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 12px;
  display: grid;
  width: min(390px, calc(100% - 150px));
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #736456;
  background: #10100ee8;
  color: #f2f0eb;
  box-shadow: 0 5px 20px #0005;
}
.journey-map-selection > img { display: block; width: 82px; height: 70px; border: 1px solid #696052; object-fit: cover; }
.map-selection-copy { display: grid; min-width: 0; gap: 4px; }
.map-selection-kicker { color: #aaa69d; font: 8px/1.3 Arial, sans-serif; letter-spacing: .13em; }
.journey-map-selection strong { overflow: hidden; font: 500 16px/1.3 "Songti SC", Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.journey-map-selection > span:nth-of-type(2) { color: #aaa69d; font: 9px/1.4 Arial, "PingFang SC", sans-serif; }
.journey-map-selection button {
  justify-self: start;
  min-height: 38px;
  padding: 1px 0 0;
  border: 0;
  background: transparent;
  color: var(--journey-orange);
  font: 700 10px/1.4 Arial, "PingFang SC", sans-serif;
  cursor: pointer;
}
@media (min-width: 761px) and (max-width: 1120px) {
  .journey-map-section.shell {
    grid-template-columns: max-content minmax(120px, 1fr) 104px max-content minmax(132px, max-content) max-content;
  }
  .journey-map-heading > p { display: none; }
  .journey-search { grid-column: 2; }
  .journey-year { grid-column: 3; }
  .journey-reset { grid-column: 4; }
  .journey-map-legend { grid-column: 5; }
  .map-zoom-controls { grid-column: 6; }
  .journey-map-legend { gap: 5px; font-size: 8px; }
}
@media (max-width: 760px) {
  body[data-page="journeys"] .header-inner {
    min-height: calc(66px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
  body[data-page="journeys"] .brand-text .borderlab-logo { width: 148px; }
  body[data-page="journeys"] .bcl-brand { width: 48px; min-height: 42px; padding-left: 9px; }
  body[data-page="journeys"] .bcl-brand img { display: none; }
  body[data-page="journeys"] .bcl-brand-short { display: block; color: #fff; font: 800 15px/1 Arial, sans-serif; }
  body[data-page="journeys"] .site-nav { top: calc(66px + env(safe-area-inset-top)); }
  .journey-map-section.shell {
    display: block;
    width: calc(100% - 16px);
    height: auto;
    padding: 3px 0 24px;
  }
  .journey-map-heading { display: flex; height: 32px; align-items: center; justify-content: space-between; gap: 5px; }
  .journey-heading-name { gap: 5px; }
  .journey-heading-name > img { width: 25px; height: 25px; }
  .journey-heading-name > div { gap: 0; }
  .journey-heading-name h1 { font-size: 17px; }
  .journey-heading-name h1 span { margin-left: 6px; font-size: 10px; }
  .journey-map-heading > p { display: block; margin: 0; font-size: 8px; }
  .journey-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px auto;
    align-items: center;
    gap: 5px;
    min-height: 42px;
    margin: 0;
    padding: 2px 0 4px;
    border: 0;
    background: transparent;
  }
  .journey-search, .journey-year, .journey-reset { grid-column: auto; grid-row: auto; }
  .journey-controls input, .journey-controls select { min-height: 36px; padding-inline: 8px; font-size: 12px; }
  .journey-reset { min-width: 68px; min-height: 36px; padding-inline: 5px; font-size: 9px; white-space: nowrap; }
  .journey-map-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 0; }
  .journey-map-column { display: block; width: 100%; }
  .journey-map-toolbar { display: flex; min-height: 44px; gap: 6px; padding: 1px 5px; }
  .journey-map-legend { display: flex; grid-column: auto; grid-row: auto; gap: 5px 9px; font-size: 9px; }
  .map-zoom-controls { grid-column: auto; grid-row: auto; }
  .journey-map-frame { height: auto; min-height: 0; aspect-ratio: 1.48; }
  .journey-map-svg { width: 100%; height: 100%; margin: 0; }
  .journey-map-selection { display: none; }
  .journey-map-layout .journey-detail { display: flex; margin-top: 12px; }
  .journey-map-note, .journey-map-credit { display: block; margin-top: 8px; }
  .journey-map-note { font-size: 9px; }
}
@media (max-width: 420px) {
  body[data-page="journeys"] .brand-text .borderlab-logo { width: 138px; }
  .journey-heading-name h1 { font-size: 15px; }
  .journey-heading-name h1 span { margin-left: 5px; font-size: 9px; }
  .journey-map-heading > p { font-size: 8px; }
  .journey-controls { grid-template-columns: minmax(0, 1fr) 88px auto; gap: 4px; }
  .journey-controls input, .journey-controls select { min-height: 36px; padding-inline: 6px; font-size: 11px; }
  .journey-reset { min-width: 62px; font-size: 8px; }
  .journey-map-legend { font-size: 8px; }
  .journey-legend-line { width: 14px; }
}

/* Core physical regions remain readable as the relief map is zoomed. */
.map-region-label-size { pointer-events: none; }
.map-region-label-en,
.map-region-label-zh {
  paint-order: stroke;
  stroke: #eee8de;
  stroke-width: 2.5px;
  stroke-opacity: .78;
  pointer-events: none;
}
.map-region-label-en {
  fill: #514a40;
  fill-opacity: .78;
  font: 700 11px/1 Arial, "PingFang SC", sans-serif;
  letter-spacing: .14em;
}
.map-region-label-zh {
  fill: #403b33;
  fill-opacity: .86;
  font: 600 16px/1 "Songti SC", "PingFang SC", serif;
  letter-spacing: .08em;
}
.map-region-pamir { text-anchor: start; }
@media (max-width: 760px) {
  .map-region-label-en { font-size: 8px; stroke-width: 2px; }
  .map-region-label-zh { font-size: 12px; stroke-width: 2px; }
}
@media (max-width: 540px) {
  .map-region-kunlun { display: none; }
  .map-region-label-en { display: none; }
}

/* Scheme 02: keep the relief map edge-to-edge and place the year timeline on it. */
@media (min-width: 761px) {
  .journey-map-section.shell {
    grid-template-columns: max-content max-content minmax(150px, 1fr) max-content max-content max-content;
  }
  .journey-reset { grid-column: 4; }
  .journey-map-legend { grid-column: 5; }
  .map-zoom-controls { grid-column: 6; }
  .journey-map-column { width: 100% !important; max-width: none; }
}
@media (min-width: 761px) and (max-width: 1120px) {
  .journey-map-section.shell {
    grid-template-columns: max-content minmax(120px, 1fr) max-content minmax(132px, max-content) max-content;
  }
  .journey-map-heading > p { display: none; }
  .journey-search { grid-column: 2; }
  .journey-reset { grid-column: 3; }
  .journey-map-legend { grid-column: 4; }
  .map-zoom-controls { grid-column: 5; }
}
.journey-reset { grid-column: 4; }
.journey-map-legend { gap: 7px 12px; }
.journey-map-legend span { white-space: nowrap; }
.journey-legend-boundary {
  position: relative;
  display: block;
  width: 20px;
  height: 5px;
  border-top: 1px solid #e5d8c1;
  box-shadow: 0 -1px 0 #423d35;
}
.journey-legend-boundary::after {
  position: absolute;
  top: 3px;
  left: 0;
  width: 13px;
  border-top: 1px dashed #e5d8c1;
  content: "";
}
.journey-map-frame { width: 100%; aspect-ratio: auto; }
.journey-map-column { width: 100%; max-width: none; }
.journey-map-layout { grid-template-columns: minmax(0, 1fr); }
.journey-map-layout .journey-detail { display: none; }
.journey-map-selection {
  top: 12px;
  bottom: auto;
  left: 12px;
  width: min(380px, calc(100% - 24px));
}
.china-land-boundary { pointer-events: none; }
.journey-map-route-group.is-time-muted .journey-map-route-line { stroke-opacity: .16; }
.journey-map-route-group.is-time-active .journey-map-route-line { stroke-opacity: .98; }
.journey-map-marker.is-time-muted { opacity: .18; }
.journey-map-marker.is-time-active { opacity: 1; }
.journey-map-selection[hidden], .journey-detail[hidden] { display: none !important; }
.journey-timebar {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 12px;
  left: 14px;
  min-height: 72px;
  padding: 8px 14px 7px;
  border: 1px solid #554d41;
  background: #11110feF;
  box-shadow: 0 4px 18px #0007;
  color: #f2eee6;
  backdrop-filter: blur(10px);
}
.journey-timebar-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  font-family: Arial, "PingFang SC", sans-serif;
}
.journey-timebar-kicker { color: #928e85; font-size: 8px; letter-spacing: .15em; }
.journey-timebar-heading strong { color: #f2eee6; font: 500 18px/1 Georgia, "Songti SC", serif; }
.journey-timebar-heading > span:nth-of-type(2) { color: #aaa69d; font-size: 10px; }
#journey-timebar-all {
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid #71685a;
  background: transparent;
  color: #cfc9bf;
  font: 9px/1 Arial, "PingFang SC", sans-serif;
  cursor: pointer;
}
#journey-timebar-all[aria-pressed="true"] { border-color: var(--journey-orange); color: #ffac8b; }
#journey-timebar-all:focus-visible,
#journey-timebar-range:focus-visible { outline: 2px solid var(--journey-orange); outline-offset: 2px; }
#journey-timebar-range {
  display: block;
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: var(--journey-orange);
  cursor: ew-resize;
}
.journey-timebar-years { position: relative; height: 11px; color: #99958c; font: 8px/1 Arial, sans-serif; }
.journey-timebar-years span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.journey-timebar-years span.is-last { transform: translateX(-100%); }


.journey-map-credit { max-width: 1000px; }

@media (max-width: 760px) {
  .journey-map-section.shell { height: auto; }
  .journey-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .journey-search { grid-column: 1; }
  .journey-reset { grid-column: 2; }
  .journey-map-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .journey-map-column { display: block; width: 100%; }
  .journey-map-frame { height: auto; aspect-ratio: 1.2; }
  .journey-map-selection { display: none; }
  .journey-map-layout .journey-detail { display: flex; }
  .journey-timebar { top: 7px; right: 7px; bottom: auto; left: 7px; min-height: 57px; padding: 6px 8px 5px; }
  .journey-timebar-heading { gap: 6px; }
  .journey-timebar-kicker { font-size: 7px; }
  .journey-timebar-heading strong { font-size: 15px; }
  .journey-timebar-heading > span:nth-of-type(2) { font-size: 8px; }
  #journey-timebar-all { padding: 5px 7px; font-size: 8px; }
  #journey-timebar-range { height: 16px; }
  .journey-timebar-years { height: 9px; font-size: 7px; }
  
  .journey-map-legend { gap: 4px 8px; font-size: 8px; }
  .journey-legend-boundary { width: 13px; }
}
@media (max-width: 420px) {
  .journey-map-frame { aspect-ratio: 1.15; }
  .journey-map-legend { gap: 4px 6px; font-size: 7px; }
  .journey-map-toolbar { min-height: 42px; }
  .journey-timebar { top: 6px; right: 6px; left: 6px; }
  .journey-timebar-kicker { letter-spacing: .08em; }
}
@media (max-width: 760px) and (orientation: landscape) {
  .journey-map-frame { aspect-ratio: 1.8; }
  .journey-timebar { top: auto; right: 7px; bottom: 7px; left: auto; width: min(56%, 460px); }
  .journey-map-selection { top: 7px; bottom: auto; left: 7px; display: grid; width: min(250px, 48%); }
}

/* Dismiss controls for the selected-journey overlays. */
.journey-selection-close {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #6f6658;
  background: #141310;
  color: #f2eee6;
  font: 24px/1 Arial, sans-serif;
  cursor: pointer;
}
.journey-selection-close:hover { border-color: var(--journey-orange); color: var(--journey-orange); }
.journey-selection-close:focus-visible { outline: 2px solid var(--journey-orange); outline-offset: 2px; }
.map-selection-copy { position: relative; padding-right: 42px; }
.map-selection-copy .journey-selection-close { position: absolute; top: -8px; right: -10px; }
.journey-detail-topline .journey-selection-close { margin-left: auto; flex: none; }

/* Compact point names support regional reading while the map remains zoomable. */
.map-marker-place-label { pointer-events: none; }
.map-marker-place-label rect {
  fill: #10100ff0;
  stroke: #e9ddca;
  stroke-opacity: .56;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.map-marker-place-label text {
  fill: #fff7ec;
  font-family: "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-weight: 600;
  paint-order: stroke;
  stroke: #10100f;
  stroke-opacity: .7;
  stroke-width: .6px;
  pointer-events: none;
}
.journey-map-marker.is-selected .map-marker-place-label rect { stroke: var(--journey-orange); stroke-opacity: .95; }
.journey-map-marker.is-selected .map-marker-place-label text { fill: #ffc0a5; }
.journey-map-marker.is-time-muted { opacity: 1; }
.journey-map-marker.is-time-muted .map-marker-ring,
.journey-map-marker.is-time-muted .map-marker-core,
.journey-map-marker.is-time-muted .map-marker-count { opacity: .2; }
.journey-map-marker.is-time-muted .map-marker-place-label { opacity: .88; }
.journey-map-marker.is-time-muted:hover .map-marker-ring,
.journey-map-marker.is-time-muted:focus-visible .map-marker-ring { opacity: .78; }

/* Match the shared masthead: one complete desktop title, grouped phone lines. */
@media(min-width:761px){
  body[data-page="journeys"] .brand-text{min-width:0;gap:10px}
  body[data-page="journeys"] .brand-text .borderlab-logo{flex:0 0 176px;width:176px}
  body[data-page="journeys"] .brand-text small{flex:none;width:max-content;max-width:none;margin:0;color:#c4c1bc;font-size:clamp(13px,.83vw,15px);line-height:1.35;white-space:nowrap}
  body[data-page="journeys"] .brand-text small span{display:inline}
}
@media(min-width:761px) and (max-width:1120px){
  body[data-page="journeys"] .brand-text .borderlab-logo{flex-basis:clamp(128px,18vw,176px);width:clamp(128px,18vw,176px)}
  body[data-page="journeys"] .brand-text small{font-size:clamp(9px,1vw,11px);line-height:1.25}
}
@media(max-width:760px){
  body[data-page="journeys"] .header-inner{min-height:calc(76px + env(safe-area-inset-top));grid-template-columns:minmax(0,1fr) 48px 42px;grid-template-rows:42px auto;align-items:start;column-gap:8px;row-gap:0;padding:calc(5px + env(safe-area-inset-top)) 0 7px}
  body[data-page="journeys"] .brand{grid-column:1/-1;grid-row:1/3;align-self:stretch;z-index:0}
  body[data-page="journeys"] .brand-text{display:grid;width:100%;min-width:0;grid-template-columns:minmax(0,1fr);grid-template-rows:42px auto;align-content:start;gap:0}
  body[data-page="journeys"] .brand-text .borderlab-logo{grid-column:1;grid-row:1;align-self:center;flex:none;width:clamp(108px,35vw,138px);max-width:100%}
  body[data-page="journeys"] .brand-text small{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:1px;width:100%;max-width:none;margin:0;color:#c4c1bc;font-size:9.5px;line-height:1.2;white-space:normal;overflow:visible;text-overflow:clip}
  body[data-page="journeys"] .brand-text small span{display:block;white-space:nowrap}
  body[data-page="journeys"] .bcl-brand{grid-column:2;grid-row:1;z-index:1}
  body[data-page="journeys"] .menu-toggle{grid-column:3;grid-row:1;z-index:1}
  body[data-page="journeys"] .site-nav{top:calc(76px + env(safe-area-inset-top))}
}
@media(max-width:390px){
  body[data-page="journeys"] .header-inner{column-gap:6px}
  body[data-page="journeys"] .brand-text small{font-size:9px;line-height:1.18}
}
@media(max-width:340px){
  body[data-page="journeys"] .header-inner{grid-template-columns:minmax(0,1fr) 46px 42px;column-gap:5px}
  body[data-page="journeys"] .brand-text small{font-size:8.5px;line-height:1.16}
  body[data-page="journeys"] .bcl-brand{width:46px}
  body[data-page="journeys"] .menu-toggle{width:42px;height:42px}
}

/* A compact geographic scale stays anchored to the lower-left map corner. */
.journey-map-scale {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 94px;
  display: grid;
  justify-items: start;
  gap: 4px;
  max-width: calc(100% - 24px);
  padding: 6px 8px 7px;
  background: #11110fd9;
  color: #f2eee6;
  font: 10px/1 Arial, "PingFang SC", sans-serif;
  letter-spacing: .035em;
  pointer-events: none;
}
.journey-map-scale-rule {
  width: var(--journey-scale-width, 78px);
  height: 7px;
  border-right: 1px solid #f2eee6;
  border-bottom: 2px solid #f2eee6;
  border-left: 1px solid #f2eee6;
}
@media (max-width: 760px) {
  .journey-map-scale { left: 8px; bottom: 8px; padding: 5px 7px 6px; font-size: 9px; }
}
