/* The World guide's district pages (/world/districts/, src/world/districts.njk and district.njk; the user approved
   them, 2026-11-16). Built on the brochure's own pieces in main.css (sections, place cards, lists, chips); only what
   they don't cover is here. Theme tokens only. */

/* the index: one tile per district, west to east */
.district-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.district-index__tile { display: flex; flex-direction: column; color: var(--ink-soft); text-decoration: none; font-size: 15px; line-height: 1.45; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-sunken); overflow: hidden; transition: border-color 0.15s ease, transform 0.15s ease; }
.district-index__tile:hover, .district-index__tile:focus-visible { border-color: var(--accent-teal); transform: translateY(-2px); }
.district-index__tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.district-index__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.district-index__body strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--brand-text); line-height: 1.2; }
.district-index__facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--ink-soft); }
.district-index__facts > span { display: inline-flex; align-items: center; gap: 5px; }
.district-index__facts .icon { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .district-index__tile { transition: none; } .district-index__tile:hover { transform: none; } }

/* a list with a pictogram in its first column: the pictogram needs no time column's width */
#beyond .whats-on__item, #see-and-do .whats-on__item, #getting-here .whats-on__item { grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: start; }
#beyond .whats-on__when .icon, #see-and-do .whats-on__when .icon, #getting-here .whats-on__when .icon { width: 22px; height: 22px; margin-top: 1px; }
#beyond .whats-on__what strong { color: var(--ink); }
#beyond .whats-on__addr { font-size: 14px; line-height: 1.5; margin-top: 2px; }
@media (max-width: 700px) {
  #beyond .whats-on__item, #see-and-do .whats-on__item, #getting-here .whats-on__item { grid-template-columns: 1.75rem minmax(0, 1fr); }
  #beyond .whats-on__item > .whats-on__when, #see-and-do .whats-on__item > .whats-on__when, #getting-here .whats-on__item > .whats-on__when { grid-column: 1; grid-row: 1 / span 2; }
  #beyond .whats-on__item > .whats-on__what, #see-and-do .whats-on__item > .whats-on__what, #getting-here .whats-on__item > .whats-on__what { grid-column: 2; }
  #beyond .whats-on__item > .whats-on__where:empty, #see-and-do .whats-on__item > .whats-on__where:empty { display: none; }
  #getting-here .whats-on__item > .whats-on__where { grid-column: 2; grid-row: auto; text-align: left; }
}

/* a district page */
.district-crumbs { margin: 0 0 14px; font-size: 14px; }
.district-crumbs a::before { content: "‹ "; }
.district-sub { margin: 18px 0 10px; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); }
.district-more { font-size: 14px; }
.district-notices[hidden] { display: none; }
.district-notices .card-notices { margin: 0; }
#getting-here > .brochure__line { margin-bottom: 14px; }

/* its stations, with their lines as chips */
.district-stations { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.district-stations li { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-sunken); }
.district-stations__name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.district-stations__name:hover, .district-stations__name:focus-visible { color: var(--brand-text); }
.district-stations__lines { display: flex; flex-wrap: wrap; gap: 6px; }
.district-stations small { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.district-ring { line-height: 1.8; }

/* west and east along the map */
.district-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 8px; }
.district-pager a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-raised); color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3; }
.district-pager a:hover, .district-pager a:focus-visible { border-color: var(--accent-teal); }
.district-pager small { font-size: 12px; font-weight: 400; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.district-pager__next { text-align: right; }
.district-pager__all { align-self: stretch; justify-content: center; text-align: center; }
@media (max-width: 700px) {
  .district-pager { grid-template-columns: 1fr 1fr; }
  .district-pager__all { grid-column: 1 / -1; grid-row: 2; }
}
