/* The two indexes occupy opposite banks of the same drawn river. */
.atlas-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 31%); align-items: end; gap: 2rem; padding-block: clamp(1.7rem, 3.1vw, 3rem) clamp(1.3rem, 2.3vw, 2rem); }
.atlas-intro h1 { margin-top: .35rem; font-size: clamp(3.2rem, 6.3vw, 6.1rem); }
.atlas-intro em { font-weight: 400; }
.rule { display: inline-block; width: 2rem; height: 4px; margin-right: .65rem; vertical-align: middle; background: linear-gradient(90deg, #b78732 44%, var(--river) 44% 57%, #8fbac5 57%); }
.atlas-caption { max-width: 38ch; font-size: 1rem; line-height: 1.45; }
.atlas-key { display: flex; flex-wrap: wrap; gap: .5rem 1.15rem; padding-top: .65rem; font: .73rem/1.3 var(--mono); }
.atlas-key span { display: inline-flex; align-items: center; gap: .35rem; }
.key-point, .city-select::before, .city-choice:not(.guide-shortcut)::before { width: .47rem; height: .47rem; flex: none; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); }
.atlas { position: relative; border: 2px solid var(--ink); background: var(--paper); }
.region-pair { isolation: isolate; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); background: linear-gradient(90deg,var(--prairie) 50%, var(--blue) 50%); }
.region-pair::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("river-index.svg") center / 100% 100% no-repeat; }
.region-pair::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; pointer-events: none; opacity: .5; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 18px); }
.river-fold { pointer-events: none; position: absolute; z-index: 1; top: 0; bottom: 0; left: 50%; display: grid; justify-items: center; align-items: center; width: 0; }
.north-mark { position: absolute; top: 10px; left: 0; transform: translateX(-50%); width: 28px; height: 42px; color: var(--ink); }
.river-fold > span { position: absolute; left: 0; top: 52%; transform: translate(-50%,-50%) rotate(-90deg); border: 1px solid #d9e7df; background: var(--river); color: white; padding: .25rem .65rem; font: 650 .66rem/1.15 var(--mono); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.region { min-width: 0; padding: clamp(1.1rem,2.2vw,2rem) clamp(1.1rem,2.6vw,2.5rem) clamp(1.5rem,2.6vw,2.6rem); }
.region.west { padding-right: clamp(2.2rem,4.8vw,4.6rem); }
.region.east { padding-left: clamp(2.2rem,4.8vw,4.6rem); }
.region-heading { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: .5rem; }
.region-heading h2 { font-size: clamp(2.25rem,3.6vw,3.65rem); font-weight: 600; letter-spacing: -.065em; }
.region-heading .micro { display: block; margin-top: .3rem; }
.region-map { flex: none; width: clamp(48px,5.4vw,80px); height: auto; }
.search-wrap { display: flex; align-items: center; gap: .65rem; min-width: 0; margin: 1rem 0 .7rem; padding-inline: .8rem; background: var(--light); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 rgb(21 27 28 / .17); }
.search-wrap > .icon { width: 1.1rem; height: 1.1rem; }
.search-wrap:focus-within { outline: 3px solid var(--river); outline-offset: 2px; }
.search-wrap input { width: 100%; min-width: 0; min-height: 44px; padding: 0; border: 0; outline: 0; border-radius: 0; background: transparent; font: 500 1rem/1.2 var(--sans); }
input::placeholder { color: #364449; opacity: 1; }
.city-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 clamp(.85rem,2vw,1.8rem); align-content: start; list-style: none; margin: .55rem 0 0; padding: 0; }
.city-index li { display: flex; align-items: stretch; min-width: 0; border-bottom: 1px solid rgb(21 27 28 / .38); }
.city-select, .city-choice { display: inline-flex; align-items: center; gap: .56rem; min-width: 0; min-height: 42px; border: 0; padding: .25rem .1rem; color: var(--ink); background: transparent; font: 650 1.02rem/1.22 var(--sans); text-align: left; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.city-select, .city-choice:not(.guide-shortcut) { flex: 1; }
.city-select::before, .city-choice:not(.guide-shortcut)::before { content: ""; }
.city-select[aria-pressed="true"]::before { background: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.city-select[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 3px; }
.city-choice:hover, .city-select:hover { color: var(--ink); background: rgb(255 255 255 / .45); }
.guide-shortcut { justify-content: center; flex: none; min-width: 32px; font-weight: 400; }
.search-empty { margin-top: .7rem; font-size: .92rem; }
.selection { display: grid; grid-template-columns: minmax(0,1.15fr) repeat(2,minmax(0,1fr)) auto; align-items: center; gap: clamp(1.1rem,2.2vw,2.3rem); padding: clamp(1.15rem,2vw,1.8rem) clamp(1.2rem,2.6vw,2.5rem); background: var(--ink); color: var(--light); }
.selection .micro { display: block; color: var(--prairie); font-size: .65rem; }
.sel-place .micro b { color: #d9dfd5; }
.sel-place .micro .icon { margin-right: .32rem; }
.selection h2 { margin-top: .23rem; font-size: clamp(2rem,3vw,3rem); color: white; }
.result-action { border-left: 1px solid #728081; padding-left: clamp(1rem,1.9vw,2rem); }
.result-action a, .guide-button { display: inline-flex; align-items: center; gap: .4rem; line-height: 1.2; }
.result-action a { min-height: 42px; padding-block: .35rem; color: white; font-size: 1.05rem; }
.selection a:focus-visible { outline-color: #f4c356; }
.guide-button { justify-content: center; min-height: 44px; padding: .65rem .95rem; background: var(--prairie); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 700; }
.guide-button:hover { background: #fff1c9; color: var(--ink); }
@media (min-width: 701px) and (max-width: 1000px) {
  .region { padding-inline: 1.2rem; }
  .region.west { padding-right: 2.3rem; }
  .region.east { padding-left: 2.3rem; }
  .city-index { gap: 0 .75rem; }
  .city-select, .city-choice { font-size: .91rem; }
  .guide-shortcut { min-width: 26px; }
  .selection { gap: .9rem; }
  .result-action { padding-left: .75rem; }
  .guide-button { padding-inline: .65rem; }
}
@media (max-width: 700px) {
  .atlas-intro { grid-template-columns: minmax(0,1fr); gap: .45rem; padding-block: 1.05rem .85rem; }
  .atlas-intro h1 { font-size: clamp(2.4rem,9.4vw,3.7rem); margin-top: .18rem; }
  .atlas-intro .kicker { font-size: .62rem; }
  .atlas-caption { max-width: 58ch; font-size: .87rem; line-height: 1.37; }
  .atlas-key { font-size: .65rem; padding-top: .35rem; }
  .region { padding: .8rem .65rem 1rem; }
  .region.west { padding-right: 1.2rem; }
  .region.east { padding-left: 1.2rem; }
  .region-heading { align-items: start; }
  .region-heading h2 { font-size: clamp(1.65rem,5.8vw,2.3rem); }
  .region-heading .micro { font-size: .59rem; margin-top: .1rem; letter-spacing: .075em; }
  .region-heading .region-map { display: none; }
  .north-mark { top: 8px; width: 19px; height: 29px; }
  .river-fold > span { font-size: .55rem; padding: .15rem .4rem; }
  .search-wrap { margin: .6rem 0 .25rem; padding-inline: .4rem; gap: .3rem; }
  .search-wrap > .icon { width: .85rem; }
  .search-wrap input { min-height: 38px; font-size: 1rem; }
  .search-wrap input::placeholder { font-size: .77rem; }
  .city-index { grid-template-columns: minmax(0,1fr); gap: 0; margin-top: .25rem; }
  .city-select, .city-choice { min-height: 33px; font-size: .85rem; gap: .4rem; }
  .guide-shortcut { min-width: 28px; }
  .selection { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem .85rem; padding: .9rem; }
  .sel-place { grid-column: 1; grid-row: 1; }
  .selection h2 { font-size: 1.65rem; }
  .selection .micro { font-size: .58rem; letter-spacing: .065em; }
  .sel-place .micro .icon { display: none; }
  .guide-button { grid-column: 2; grid-row: 1; justify-self: end; min-height: 40px; font-size: .8rem; }
  .result-action { padding: .55rem 0 0; border: 0; border-top: 1px solid #728081; align-self: stretch; }
  .result-action a { min-height: 37px; font-size: .9rem; }
}
@media (max-width: 360px) {
  .city-select, .city-choice { gap: .3rem; }
  .region-heading h2 { font-size: 1.45rem; }
  .search-wrap input::placeholder { font-size: .7rem; }
}
