/* Home (src/pages/index.astro, src/components/guide/home/). Ported from design/home-mocks/i-home.css onto the
   tokens; layout per design/HANDOFF-home.md and design/system/specs/nine-hubs.md. Phone <600, tablet
   600-1099, desktop >=1100. Link after tokens.css, guide.css and hubs.css (Home pages only). */

.home h2 {
  margin: 0;
  font: var(--w-bold) var(--fs-h2) / 1.05 var(--f1);
  letter-spacing: -0.01em;
}
.home img {
  display: block;
  max-width: 100%;
}
.hhd {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.hhd p:last-child,
.int .intro p:last-child,
.ix .hd p:last-child {
  margin: 0;
  color: var(--ink2);
  font-size: 1.05rem;
}
.home .lbl {
  margin: 0;
}

/* ---------- Hero: lantern grid, kana, sun, title window, picker ---------- */
.hero {
  --x: 68%;
  --y: 40%;
  --rad: var(--lantern-rad);
  --ss: var(--lantern-sun);
  position: relative;
  height: max(600px, calc(100vh - var(--hh)));
  height: max(600px, calc(100svh - var(--hh)));
  overflow: hidden;
  background: var(--bg);
}
.hg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 2px;
}
/* Each photo sits in a clipping cell and fills it absolutely: no percentage height on a grid item
   (WebKit resolves that against the whole hero and zooms the photo). */
.hg .cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.hg .cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hg.gray {
  filter: var(--lantern-gray);
}
.hg.col {
  -webkit-mask-image: radial-gradient(
    circle var(--rad) at var(--x) var(--y),
    #000 55%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--rad) at var(--x) var(--y),
    #000 55%,
    transparent 100%
  );
}
.ht {
  position: relative;
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.ht b {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 8px;
  border: 1px solid var(--ink);
  background: var(--bg);
  font: var(--w-label) var(--fs-mono-s) / 1.3 var(--f2);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.ht:hover b,
.ht:focus-visible b {
  opacity: 1;
}
.ht:focus-visible {
  outline-offset: -3px;
}
.kj0 {
  position: absolute;
  left: 0;
  right: 0;
  top: 28%;
  font: var(--w-kanji) var(--fs-kana) / 1.25 var(--fj);
  letter-spacing: -0.04em;
  text-align: center;
  opacity: 0.88;
  /* Paper outline under the ink fill: readable over dark tiles (phones show colour photos). */
  text-shadow:
    0 0 2px var(--bg),
    0 0 10px var(--bg);
  -webkit-text-stroke: 3px var(--bg);
  paint-order: stroke fill;
  pointer-events: none;
}
.sunb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--ss);
  height: var(--ss);
  margin: calc(var(--ss) / -2) 0 0 calc(var(--ss) / -2);
  border-radius: var(--radius-dot);
  background: var(--red);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hb {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  pointer-events: none;
}
.hb > * {
  pointer-events: auto;
}
.win {
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--ink);
  background: var(--bg);
}
.win.open {
  width: min(560px, 100%);
}
.ttl {
  margin: 0;
}
.ttl button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 22px 16px;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--w-bold) var(--fs-title) / 1 var(--f1);
  letter-spacing: var(--track-head);
  text-align: left;
  cursor: pointer;
}
.ttl button:hover {
  color: var(--acc);
}
.pm {
  flex: none;
  display: block;
}
[aria-expanded="true"] > .pm .v {
  display: none;
}
.hero .card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 16px 32px 24px;
  border-top: 1px solid var(--ink);
}
.hero .card[hidden] {
  display: none;
}
.hero .card .big {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
}
.hero-copy {
  margin: 0;
  color: var(--ink2);
  font-size: var(--fs-body);
  line-height: 1.55;
  text-wrap: balance;
}
@media (min-width: 1100px) {
  .hb {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
@media (max-width: 899px) {
  .hg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
  }
  .hg > :nth-child(n + 16) {
    display: none;
  }
  .hero {
    --rad: var(--lantern-rad-tablet);
    --ss: var(--lantern-sun-tablet);
  }
  .kj0 {
    top: 16%;
  }
}
@media (max-width: 599px) {
  /* Phone (design/_qa/phone-home.md P1, P3): 6 tiles at 3/4 in two rows, then the title window and the
     picker under the grid, never behind the bar. */
  .hero {
    height: auto;
    --x: 250px;
    --y: 170px;
    --rad: var(--lantern-rad-phone);
    --ss: var(--lantern-sun-phone);
  }
  .kj0 {
    top: 120px;
    font-size: 70px;
    line-height: 1.2;
    -webkit-text-stroke-width: 6px;
  }
  .hg {
    grid-template-rows: none;
    grid-auto-rows: auto;
    align-content: start;
  }
  .hg.gray {
    position: relative;
    inset: auto;
  }
  .hg .cell {
    aspect-ratio: 3 / 4;
  }
  .hg > :not([data-phone]) {
    display: none;
  }
  .hb {
    position: static;
    padding: 12px 12px 16px;
  }
  .win,
  .win.open {
    width: 100%;
  }
  .ttl button {
    padding: 10px 14px 12px;
    font-size: 34px;
  }
  .hero .card {
    padding: 14px 20px 18px;
  }
  .hero .card .big {
    font-size: 22px;
  }
  .hero .cani {
    width: 100%;
  }
}
/* Touch: photos in colour, no lantern. */
@media (hover: none), (pointer: coarse) {
  .hg.col {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .sunb {
    display: none;
  }
}

/* ---------- Explore: hub photo cards ---------- */
.xs {
  padding: var(--space-8) var(--pad);
}
.hcs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hc {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}
.hc .im {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.hc .im img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  object-fit: cover;
}
.hc .im img {
  filter: var(--photo-gray);
  transition: filter var(--t-img) var(--ease);
}
.hc:hover .im img,
.hc:focus-visible .im img {
  filter: none;
}
.kjs {
  position: absolute;
  right: 10px;
  bottom: 4px;
  color: var(--bg);
  font: var(--w-kanji) 44px/1.1 var(--fj);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
}
.hc .tb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "no kj" "nm kj" "g g";
  gap: 4px var(--space-3);
  flex: 1 1 auto;
  align-content: start;
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 5px solid var(--c);
}
.hc .no {
  grid-area: no;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mute);
  font: var(--w-label) var(--fs-mono-xs) var(--f2);
  letter-spacing: var(--track-label);
}
.hc .no i {
  display: none;
  width: var(--dot-s);
  height: var(--dot-s);
  border-radius: var(--radius-dot);
  background: var(--c);
  box-shadow: 0 0 0 1px var(--rule-dot);
}
.hc .nm {
  grid-area: nm;
  justify-self: start;
  background: linear-gradient(var(--c), var(--c)) 0 100% / 0 0.2em no-repeat;
  font: var(--w-bold) 1.35rem/1.15 var(--f1);
  transition: background-size var(--t-base);
}
.hc:hover .nm,
.hc:focus-visible .nm {
  background-size: 100% 0.2em;
}
.hc .kj {
  grid-area: kj;
  display: none;
  font: var(--w-kanji) 1.4rem/1 var(--fj);
}
.hc .g {
  grid-area: g;
  margin-top: 4px;
  color: var(--ink2);
  font-size: var(--fs-body-s);
  line-height: 1.45;
  text-wrap: balance;
}
.hc:focus-visible {
  outline-offset: 3px;
}
@media (min-width: 600px) and (max-width: 1099px) {
  .hcs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Odd count: the last card spans the row, photo left half, text right. */
  .hcs li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .hcs li:last-child:nth-child(odd) .hc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hcs li:last-child:nth-child(odd) .tb {
    border-top: 0;
    border-left: 5px solid var(--c);
  }
  .hcs li:last-child:nth-child(odd) .im {
    aspect-ratio: auto;
    min-height: 100%;
  }
}
@media (max-width: 599px) {
  .xs {
    padding: var(--space-6) var(--pad);
  }
  .hcs {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink);
  }
  .hc {
    border: 0;
    border-bottom: 1px solid var(--rule);
  }
  .hc .im {
    display: none;
  }
  .hc .tb {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "no nm kj" "g g g";
    align-items: center;
    min-height: 52px;
    padding: var(--space-3) 0;
    border-top: 0;
  }
  .hc .no i,
  .hc .kj {
    display: block;
  }
  .hc .nm {
    font-size: 1.15rem;
  }
  .hc .g {
    margin: 0;
    font-size: var(--fs-body-xs);
  }
  .hc:focus-visible {
    outline-offset: -3px;
  }
}

/* ---------- Interest pills ---------- */
.int {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: var(--space-8) var(--pad) var(--space-7);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.int .intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.int .intro p:last-child {
  margin: 0;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pills a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 18px;
  border: 1px solid var(--ink);
  border-left: var(--bw-pill) solid var(--c);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs-h4);
  text-decoration: none;
}
.pills a:hover,
.pills a:focus-visible {
  background: var(--tint-on);
  text-decoration: underline 0.18em var(--c);
  text-underline-offset: 6px;
}
.pills a i {
  width: var(--dot-m);
  height: var(--dot-m);
  border-radius: var(--radius-dot);
  background: var(--c);
  box-shadow: 0 0 0 1px var(--rule-strong);
}
@media (min-width: 1100px) {
  .int {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: var(--space-8);
  }
}
@media (max-width: 599px) {
  .int {
    display: none;
  }
}

/* ---------- Changed in 2026 ---------- */
.stubs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  padding: 23px var(--pad);
}
.stubs .hd {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
}
.stubs h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 52px;
  line-height: 1;
}
.stubs h2 i {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-dot);
  background: var(--red);
}
.stubs ul,
.stubs li {
  display: contents;
}
.stub {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.stub .d {
  color: var(--red);
  font: var(--w-label) var(--fs-mono-xs) / 1.3 var(--f2);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.stub .b {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stub .b span:first-child {
  font-size: var(--fs-body);
  line-height: 1.3;
}
.stub .b .w {
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.35;
}
.stub:hover {
  color: var(--red);
}
.stubs .all {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 56px;
  padding: 14px;
  background: var(--red);
  color: var(--white);
  font: var(--w-label) var(--fs-mono) var(--f2);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
}
.stubs .all:hover {
  background: var(--ink);
  color: var(--white);
}
.stubs .all:focus-visible {
  outline-color: var(--ink);
}
@media (min-width: 600px) {
  .stubs li:nth-child(n + 4):not(:last-child) {
    display: none;
  }
}
@media (min-width: 1100px) {
  .stubs {
    grid-template-columns: 380px repeat(3, minmax(0, 1fr)) 150px;
  }
  .stubs .hd,
  .stubs .all {
    grid-column: auto;
  }
  .stubs .all {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 599px) {
  .stubs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 0 28px;
    border-top: 1px solid var(--ink);
  }
  .stubs .hd {
    justify-content: space-between;
    padding: 0 var(--pad);
  }
  .stubs h2 {
    font-size: 40px;
  }
  .stubs h2 i {
    width: 18px;
    height: 18px;
  }
  .stubs ul {
    display: flex;
  }
  .stubs li {
    display: block;
  }
  .stub {
    width: 262px;
    height: 100%;
  }
  .stubs .all {
    width: 150px;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    font-size: var(--fs-mono-s);
  }
}

/* Swipe rows (phone): horizontal scroll-snap, the next card peeks. */
.swipe {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 var(--pad) 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--pad);
  list-style: none;
}
.swipe > li {
  flex: none;
  scroll-snap-align: start;
}

/* ---------- Route: map, stops, stop detail ---------- */
.rt {
  border-top: 1px solid var(--rule);
}
.rth {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: var(--space-8) var(--pad) 28px;
}
.rt h2 {
  font-size: var(--fs-h2-l);
  line-height: 1;
}
.rtb {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  padding: 0 var(--pad) var(--space-8);
}
.mp {
  position: relative;
  width: min(560px, 100%);
}
.mp .atlas {
  display: block;
  width: 100%;
  height: auto;
}
/* Two inlined maps: compact labels on tablet and desktop, bigger labels on phones (the dialog shows one of them). */
.atlas-slot .atlas-ph {
  display: none;
}
@media (max-width: 599px) {
  .atlas-slot .atlas-dk {
    display: none;
  }
  .atlas-slot .atlas-ph {
    display: block;
  }
}
.map-open,
.map-x {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  min-height: var(--target);
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--w-label) var(--fs-mono) var(--f2);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  cursor: pointer;
}
.map-open:hover,
.map-x:hover {
  background: var(--ink);
  color: var(--bg);
}
html.map-lock {
  overflow: hidden;
}
.map-dlg {
  max-width: 98vw;
  max-height: 98vh;
  margin: auto;
  padding: 60px 16px 16px;
  overflow: auto;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
}
.map-dlg::backdrop {
  background: #15161bb3;
}
.map-body svg {
  display: block;
  width: min(92vw, calc(88vh * 440 / 480));
  height: auto;
  margin: 0 auto;
}
/* Atlas layers: region tints multiply over the bone land; hit areas and stop dots drive the same [data-i] pick as the tiles. */
.rg {
  mix-blend-mode: multiply;
  fill-opacity: 0.7;
  stroke-opacity: 0.7;
  stroke-width: 0.6;
  pointer-events: none;
  transition:
    fill-opacity 0.15s,
    stroke-opacity 0.15s;
}
.rg.on {
  fill-opacity: 1;
  stroke-opacity: 1;
}
.rg-hit,
.st-hit {
  fill: transparent;
  pointer-events: fill;
}
.rg-hit {
  cursor: pointer;
}
.atlas text {
  transition: fill 0.15s;
}
.atlas text:hover {
  fill: var(--red);
}
.st {
  cursor: pointer;
}
.st:focus-visible {
  outline: none;
}
.st-halo {
  fill: transparent;
}
.st.on .st-halo,
.st:focus-visible .st-halo {
  fill: rgba(188, 0, 45, 0.22);
}
/* Focus ring in the system's focus colour, as wide as on other controls. */
.st:focus-visible .st-halo {
  stroke: var(--red);
  stroke-width: 2;
}
.st-dot {
  fill: var(--red);
  stroke: var(--ink);
  stroke-width: 0;
}
.st-hub .st-dot {
  fill: var(--ink);
}
.st-soon .st-dot {
  fill: var(--bg);
  stroke-width: 1.2;
}
.st text,
.atlas .st text:hover {
  fill: var(--bg);
  font: 500 5.2px var(--f2);
  pointer-events: none;
}
.atlas-ph .st text,
.atlas-ph .st text:hover {
  font-size: 6.6px;
}
.st-soon text,
.atlas .st-soon text:hover {
  fill: var(--ink);
}
.leg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  font: var(--w-label) var(--fs-mono-xs) var(--f2);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.leg p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
}
.leg span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.leg p + p {
  color: var(--mute);
}
.rtr {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.stopl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stopl a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 10px;
  border-left: var(--bw-4) solid var(--t);
  color: var(--ink);
  text-decoration: none;
}
.stopl a.on {
  background: var(--tint-on);
}
.stopl .dt {
  flex: none;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-dot);
  background: var(--bg);
}
.stopl a.guide .dt {
  border-color: var(--red);
  background: var(--red);
}
.stopl .tx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.stopl b {
  font: var(--w-bold) 17px/1.1 var(--f1);
}
.stopl small {
  color: var(--mute);
  font: var(--w-label) var(--fs-mono-xs) var(--f2);
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
}
.stopl a:focus-visible {
  outline-offset: -3px;
}
.detw {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--ink);
}
.det {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
}
.det .no {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-transform: uppercase;
}
.det .no i {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-dot);
}
.det.guide .no i {
  border-color: var(--red);
  background: var(--red);
}
.det .nm {
  margin: 0;
  font: var(--w-bold) 30px/1 var(--f1);
}
.det .sub {
  margin: 0;
  color: var(--ink2);
  font-size: var(--fs-body-m);
  font-style: italic;
}
.det .dl {
  text-transform: uppercase;
}
.det .cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: var(--target);
  margin-top: auto;
  color: var(--ink);
  text-transform: uppercase;
  text-underline-offset: 4px;
}
.det .cta:hover {
  color: var(--red);
}
.df {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-left: 1px solid var(--rule);
}
.df-h {
  text-transform: uppercase;
}
.fq {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 6.5em;
  margin: 0;
}
.ft {
  align-self: flex-start;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid var(--rule-strong);
  color: var(--ink2) !important;
  font-size: var(--fs-mono-xs) !important;
  letter-spacing: var(--track-tight) !important;
  line-height: 1.3 !important;
}
.fx {
  font-size: var(--fs-body-m);
  line-height: 1.45;
}
.df-c {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.df-n {
  margin-right: auto !important;
}
.df-b {
  display: grid;
  place-items: center;
  width: var(--target);
  height: var(--target);
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.df-b:hover {
  border-color: var(--ink);
  background: var(--tint-on);
}
.df-b[data-state="playing"] .pl,
.df-b[data-state="paused"] .pz {
  display: none;
}
.df[data-mode="single"] .df-c,
.df[data-mode="quote"] .df-c,
.df[data-mode="quote"] .df-h,
.df[data-mode="quote"] .ft {
  display: none;
}
.df[data-mode="quote"] .fx {
  margin: auto 0;
  color: var(--ink2);
  font-size: 18px;
  font-style: italic;
}
@media (min-width: 1100px) {
  .rtb {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-7);
    align-items: start;
  }
  .mp {
    width: 100%;
  }
}
@media (max-width: 599px) {
  .rth {
    padding: 24px var(--pad) 10px;
  }
  .rt h2 {
    font-size: 28px;
  }
  .rt {
    border-top: 1px solid var(--ink);
  }
  .stopl b {
    font-size: 13px;
  }
  .stopl a {
    padding: 6px;
  }
  .detw {
    grid-template-columns: minmax(0, 1fr);
  }
  .df {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .det .nm {
    font-size: 24px;
  }
  .map-dlg[open] {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 60px 0 0;
    border: 0;
  }
  .map-body {
    overflow: auto;
    padding: 0 8px 16px;
  }
  .map-body svg {
    width: 160vw;
    max-width: none;
  }
}

/* ---------- Region index ---------- */
.ix {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: var(--space-8) var(--pad) 40px;
  border-top: 1px solid var(--rule);
}
.ix .hd {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.ix .hd > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ix h2 {
  font-size: var(--fs-h2-l) !important;
  line-height: 1 !important;
}
.ixl {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.ixl li {
  border-bottom: 1px solid var(--rule);
}
.ixl a {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 120px minmax(0, 1.4fr) 200px;
  align-items: center;
  gap: 24px;
  min-height: 96px;
  color: var(--ink);
  text-decoration: none;
}
.ixl a:hover,
.ixl a:focus-visible {
  background: var(--tint-hover);
}
.ixl a:focus-visible {
  outline-offset: -3px;
}
.ixl .n {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  color: var(--ink) !important;
}
.ixl .n i {
  width: var(--dot-m);
  height: var(--dot-m);
  border-radius: var(--radius-dot);
  background: var(--t);
  box-shadow: 0 0 0 1px var(--rule-dot);
}
.ixl .t {
  font: var(--w-bold) 34px/1 var(--f1);
  text-decoration: underline 3px transparent;
  text-underline-offset: 8px;
}
.ixl a:hover .t,
.ixl a:focus-visible .t {
  text-decoration-color: var(--ink);
}
.ixl .k {
  font: var(--w-kanji) 36px/1 var(--fj);
  opacity: 0.85;
}
.ixl .g {
  color: var(--ink2);
  line-height: 1.45;
}
.ixl .im {
  height: 80px;
  overflow: hidden;
}
.ixl .im img {
  width: 200px;
  height: 80px;
  min-height: 0;
  object-fit: cover;
}
.ixl .im img {
  filter: var(--photo-gray);
  transition: filter var(--t-img) var(--ease);
}
.ixl a:hover .im img,
.ixl a:focus-visible .im img {
  filter: none;
}
@media (max-width: 1099px) {
  .ixl a {
    grid-template-columns: 56px minmax(0, 1fr) 72px 160px;
    gap: 16px;
  }
  .ixl .g {
    display: none;
  }
  .ixl .t {
    font-size: 28px;
  }
  .ixl .im img {
    width: 160px;
  }
}
@media (max-width: 599px) {
  .ix {
    padding: var(--space-6) var(--pad);
  }
  .ixl a {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 2px 12px;
    min-height: 64px;
    padding: 8px 0;
  }
  .ixl .n {
    padding-left: 0;
  }
  .ixl .t {
    font-size: 22px;
  }
  .ixl .k {
    font-size: 24px;
  }
  .ixl .im {
    display: none;
  }
}

/* ---------- Questions ---------- */
.ans {
  padding: var(--space-8) var(--pad);
  border-top: 1px solid var(--rule);
}
.ans h2 {
  font-size: var(--fs-h2-l) !important;
  line-height: 1 !important;
}
.qs2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 48px;
  align-items: start;
}
.qp {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qi {
  max-width: 40rem;
  margin: 12px 0 0;
  color: var(--ink2);
  font-size: 17px;
  text-wrap: balance;
}
.qx {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  margin-top: 32px;
}
.ans:hover .qx .kw span {
  filter: none;
}
.qkey p {
  margin: 0 0 12px;
  color: var(--mute);
  font: var(--w-label) var(--fs-mono-s) var(--f2);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.qkey ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.qkey li {
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  background: var(--bg);
  box-shadow: 3px 3px 0 var(--ink);
}
.qkey li:nth-child(1) {
  transform: rotate(-2deg);
}
.qkey li:nth-child(2) {
  margin-left: 14px;
  transform: rotate(1.5deg);
}
.qkey li:nth-child(3) {
  margin-left: 4px;
  transform: rotate(-1deg);
}
.qr {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.qr .cani {
  width: 100%;
}
.fqh {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.fqh li {
  border-bottom: 1px solid var(--rule);
}
.fqh li:first-child {
  border-top: 1px solid var(--ink);
}
.fqh h3 {
  margin: 0;
  font: inherit;
}
.fqb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: var(--w-bold) clamp(1.05rem, 1.8vw, 1.3rem) / 1.3 var(--f1);
  text-align: left;
  cursor: pointer;
}
.fqb:hover {
  background: var(--tint-hover);
}
.fqb:focus-visible {
  outline-offset: -4px;
}
.fqd {
  max-width: 44rem;
  padding: 0 4px 16px;
}
.fqd[hidden] {
  display: none;
}
.fqd p {
  margin: 0;
  color: var(--ink2);
  font-size: var(--fs-body);
  line-height: 1.6;
}
.fqd .fa {
  color: var(--ink);
  text-underline-offset: 4px;
  white-space: nowrap;
}
.fqd .fa:hover {
  color: var(--red);
}
.more2 {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: var(--target);
  margin-top: 16px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font: var(--w-label) var(--fs-mono) var(--f2);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
}
.more2:hover {
  border-color: var(--red);
  color: var(--red);
}
@media (min-width: 1100px) {
  .qs2 {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .qr {
    margin-top: clamp(2rem, 5vw, 3.5rem);
  }
}
@media (max-width: 599px) {
  .ans {
    padding: var(--space-6) var(--pad);
    border-top: 1px solid var(--ink);
  }
  .ans h2 {
    font-size: 28px !important;
  }
  .qi {
    font-size: 15px;
  }
  .qx {
    margin-top: 20px;
  }
  .qx .kw {
    --kw: 96px;
  }
}
