.index-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding-block: clamp(1.5rem,3.2vw,3.4rem) 1.25rem; }
.index-heading h1 { line-height: .98; }
.index-count { display: flex; gap: .8rem; align-items: center; white-space: nowrap; padding-bottom: .15rem; }
.index-count span + span { padding-left: .8rem; border-left: 1px solid var(--ink); }
.atlas { display: grid; grid-template-columns: minmax(0,1.38fr) minmax(21rem,.9fr); border-block: 2px solid var(--ink); }
.map-sheet { min-width: 0; display: flex; flex-direction: column; background-color: var(--field); border-right: 1px solid var(--ink); }
.map-top, .map-caption, .table-head, .entry-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .35rem .8rem; }
.map-top { padding: .8rem 1.15rem .4rem; }
.map-top span:last-child { color: var(--muted); font-size: .67rem; }
.locator { width: 100%; height: auto; flex: 1; display: block; min-height: 0; }
.map-caption { border-top: 1px solid var(--line); padding: .6rem 1rem; font: .72rem/1.4 var(--mono); color: var(--muted); }
.svg-name { font: 700 17px var(--sans); letter-spacing: -.02em; fill: var(--ink); }
.svg-detail { font: 10px var(--mono); letter-spacing: 1px; fill: var(--muted); }
.map-point .marker { fill: var(--accent); stroke: var(--paper); stroke-width: 2; }
.map-point .key { fill: #fff; font: bold 13px var(--mono); }
.map-point:hover .svg-name, .map-point:focus .svg-name { fill: var(--accent); text-decoration: underline; }
.map-point:focus { outline: none; }
.map-point:focus .marker { stroke: var(--ink); stroke-width: 4; }
.region-index { padding: 0 0 0 clamp(1rem,2.3vw,2rem); }
.table-head { min-height: 2.8rem; border-bottom: 1px solid var(--ink); }
.table-head h2 { font: 700 .75rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.index-row { display: grid; grid-template-columns: 1.8rem minmax(0,1fr) 1.2rem; gap: .8rem; align-items: center; min-height: 4.25rem; padding-block: .78rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.index-row:last-child { border-bottom: 0; }
.index-row strong { display: block; font-size: clamp(1.03rem,1.75vw,1.55rem); line-height: 1.15; letter-spacing: -.035em; }
.index-row small { display: block; color: var(--muted); margin-top: .17rem; line-height: 1.35; }
.index-row .arrow { color: var(--accent); }
.place-code { display: inline-grid; align-items: center; justify-items: center; width: 1.72rem; height: 1.72rem; border: 1px solid var(--ink); border-radius: 50%; }
.resource-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; border-block: 1px solid var(--line); }
.resource-strip a { padding: 1.05rem; text-decoration: none; border-left: 1px solid var(--line); }
.resource-strip a:first-child { padding-left: 0; border-left: 0; }
.resource-strip strong { display: flex; justify-content: space-between; gap: .3rem; margin-bottom: .3rem; }
.resource-strip small { color: var(--muted); font-size: .9rem; }
.section { margin-top: clamp(2rem,4vw,3.8rem); }
.section-title { margin-bottom: 1rem; }
.index-intro { display: flex; gap: .6rem 1.4rem; flex-wrap: wrap; align-items: baseline; justify-content: space-between; padding: .72rem 0; border-bottom: 1px solid var(--line); }
.city-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(17.5rem,.85fr); align-items: start; gap: clamp(1.3rem,4vw,4rem); }
.city-head { padding-block: .9rem 1.1rem; display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; }
.city-head h1 { font-size: clamp(2.5rem,5.2vw,4.9rem); }
.city-head .action { font-size: .9rem; }
.point-index { border-top: 2px solid var(--ink); }
.point-index .index-row { min-height: 3.5rem; grid-template-columns: 2rem minmax(0,1fr) auto; padding: .6rem 0; }
.point-index .index-row strong { font-size: 1.08rem; }
.point-index .index-row small { font-family: var(--mono); font-size: .74rem; }
.point-index .place-code { color: var(--accent); border: 0; border-radius: 0; }
.point-index .index-row[aria-current] { color: var(--accent); background: var(--field); }
.city-context { padding-block: 1.1rem; max-width: 67ch; }
.city-context p + p { margin-top: .65rem; }
.city-context p:last-child { color: var(--muted); }
.arrival { border-top: 2px solid var(--ink); padding: 1.35rem 0; scroll-margin-top: .8rem; }
.arrival:target { border-color: var(--accent); }
.arrival h2 { margin: .25rem 0 .4rem; }
.arrival p { max-width: 68ch; }
.arrival p + p, .arrival .source-line, .arrival .facts { margin-top: .7rem; }
.arrival .source-line { padding-top: .7rem; border-top: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .33rem .85rem; padding-block: .6rem; }
dt { align-self: baseline; color: var(--muted); }
dd { margin: 0; }
.source-line, .service-meta { font: .75rem/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.source-line a { display: inline-block; padding-block: .3rem; font: 650 .94rem/1.45 var(--sans); color: var(--accent); }
.source-line time, .service-meta time { white-space: nowrap; }
.finder { padding: 1.15rem; background: var(--field); border-top: 3px solid var(--accent); }
.finder h2 { font-size: clamp(1.4rem,2.3vw,2rem); }
.finder > p { margin-block: .55rem; }
.finder label, .filters label { display: block; margin: .6rem 0 .25rem; font-weight: 650; font-size: .89rem; }
.finder input { background: var(--paper); }
.service { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.service h3 { margin-bottom: .35rem; }
.service p { max-width: 69ch; }
.service .action { font-size: .92rem; }
.service-meta { margin-top: .3rem; }
.finder .service { padding-block: .8rem; }
.finder .service h3 { font-size: 1.05rem; }
.finder .service p { font-size: .92rem; }
.finder .service .service-meta { font-size: .72rem; }
.filters { display: grid; grid-template-columns: 1fr 1fr auto; gap: .55rem 1rem; align-items: end; }
.filters button { min-height: 44px; background: var(--paper); border: 1px solid var(--muted); padding-inline: 1rem; }
.city-table, .task-list { border-top: 2px solid var(--ink); }
.city-record { display: grid; grid-template-columns: minmax(9rem,.75fr) minmax(0,1.5fr) auto; gap: .4rem 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.city-record small { color: var(--muted); display: block; }
.city-record .arrow { color: var(--accent); }
.rg-note, .resource-layout, .next-region { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.6fr); gap: clamp(1.25rem,4vw,4rem); }
.rg-note { padding-block: 1.25rem; border-block: 1px solid var(--line); }
.rg-note p { max-width: 65ch; }
.jump { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: 0 1rem; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; }
.resource-layout > aside { border-top: 2px solid var(--ink); padding-top: .8rem; }
.resource-layout > aside a { display: block; padding: .55rem 0; }
.resource-section { padding-block: 1.1rem; border-top: 2px solid var(--ink); }
.resource-section h2 { margin-bottom: .55rem; }
.resource-section .service:first-of-type { margin-top: .7rem; }
.resource-section + .resource-section { margin-top: 1.1rem; }
.resource-section p, .reading p { max-width: 70ch; }
.city-listing { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.city-listing p { margin-top: .45rem; }
.credits ul { padding-left: 1.2rem; }
.form-frame { border: 1px solid var(--line); width: 100%; height: 760px; margin-block: 1rem; background: white; }
.reading { max-width: 79ch; }
.reading section { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.reading h2 { margin-bottom: .6rem; }
.reading p + p { margin-top: .7rem; }
@media(max-width: 950px) {
  .atlas { grid-template-columns: minmax(0,1.12fr) minmax(17rem,.88fr); }
  .map-top, .map-caption { padding-inline: .7rem; }
  .region-index { padding-left: .9rem; }
  .resource-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resource-strip a:nth-child(3) { border-left: 0; padding-left: 0; }
  .resource-strip a:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media(max-width: 700px) {
  .atlas, .city-layout, .rg-note, .next-region, .resource-layout { grid-template-columns: minmax(0,1fr); }
  .index-heading { flex-wrap: wrap; padding-block: 1.35rem .85rem; gap: .6rem; }
  .index-heading h1 { font-size: clamp(2.55rem,9vw,4rem); }
  .index-count { font-size: .65rem; }
  .map-sheet { border-right: 0; border-bottom: 1px solid var(--ink); }
  .locator { flex: auto; max-height: 17rem; }
  .svg-detail { display: none; }
  .svg-name { font-size: 23px; }
  .map-point .key { font-size: 16px; }
  .region-index { padding-left: 0; }
  .region-index .index-row { min-height: 3.4rem; padding-block: .55rem; }
  .city-head { align-items: baseline; gap: .2rem 1rem; padding-block: .55rem .65rem; }
  .city-head .eyeline { font-size: .65rem; }
  .city-head .action { min-height: 40px; }
  .city-layout { gap: 1rem; }
  .city-record { grid-template-columns: 1fr auto; }
  .city-record > .record-points { grid-column: 1; grid-row: 2; }
  .city-record > .arrow { grid-column: 2; grid-row: 1 / 3; }
  .resource-layout > aside .jump { margin-top: 0; }
  .resource-layout > aside a { display: inline-flex; margin-right: .8rem; min-height: 44px; align-items: center; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters button { grid-column: 1/-1; justify-self: start; }
  .city-context { padding-block: .85rem; }
  .source-line a { min-height: 44px; align-content: center; }
  .resource-strip strong { font-size: .96rem; }
}
@media(max-width: 380px) {
  .filters, .resource-strip { grid-template-columns: 1fr; }
  .resource-strip a { padding:.8rem 0; border-left: 0; }
  .resource-strip a + a { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: minmax(0,1fr); gap: .12rem; }
}
