/* Locos and units (templates/pages/locos.html). Only what site.css doesn't have. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The finder hero */
.finder-hero .wrap { padding-top: 44px; padding-bottom: 32px; }
.finder-hero .intro { flex-basis: 100%; gap: 18px; }
.finder-hero .lede { max-width: 720px; }
.finder { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.finder .input { flex: 1 1 280px; width: auto; height: 64px; border-radius: 14px; border-color: var(--ink-deep); padding: 0 20px; font-size: 24px; font-weight: 900; letter-spacing: 0.02em; box-shadow: inset 0 3px 0 var(--line); }
.finder .btn--primary { height: 64px; padding: 0 30px; font-size: 18px; }
.finder-hint { color: var(--muted-ink); font-size: 14px; }
.hero-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; padding-top: 12px; border-top: 2px solid var(--rim); }
.hero-counts > div { display: flex; flex-direction: column; }
.hero-counts .n { font-size: 32px; font-weight: 900; line-height: 1.1; }
.hero-counts .what { font-size: 15px; font-weight: 800; color: var(--muted-ink); }

/* On a train yesterday */
.seen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
a.seen-card { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.seen-head { display: flex; align-items: center; gap: 8px; }
.seen-num { flex: 1; font-size: 22px; font-weight: 900; }
.seen-run { font-size: 14px; font-weight: 800; color: var(--body-2); }
.seen-run .b { font-size: 15px; color: var(--ink); }

/* By operator */
.ops-pair { align-items: stretch; gap: 24px; }
.ops { flex: 1 1 440px; min-width: 0; padding: 20px; }
.panel--ink .heading-row .aside { color: var(--muted-ink); }
.ops .heading-row .aside { font-size: 14px; }
.op-row { display: grid; grid-template-columns: minmax(130px, 210px) minmax(0, 1fr) 48px; align-items: center; gap: 12px; text-decoration: none; }
.op-name { font-size: 15px; font-weight: 800; }
.op-n { font-size: 15px; font-weight: 900; text-align: right; }
.ops .bar { height: 14px; }
.ops--units .bar > span { background: var(--ink); }
.ops--locos .bar > span { background: var(--gilt); }
.ops--locos .op-row { color: var(--paper); }

/* What the locos are doing. Status colours are fixed keys, not data. */
.status-strip { display: flex; height: 28px; border-radius: 8px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.status-strip > span { display: block; height: 100%; }
.status-key { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.status-key > span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.status-key .key { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ink); }
.status--in-service { background: var(--ink); }
.status--stored { background: #8C98A6; }
.status--registered { background: #4B4FD6; }
.status--heritage-main-line { background: var(--gilt); }
.status--delivering { background: var(--teal); }
.status--heritage-lines { background: var(--link-hover); }
.status--in-works { background: var(--muted); }
.status--not-known { background: var(--paper); }

/* Names */
.names { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.names li { background: var(--ink); color: var(--paper); border-radius: 12px; box-shadow: 0 4px 0 var(--ink-deep); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.names a { color: var(--paper); font-size: 17px; font-weight: 900; text-decoration: none; }
.names .name, .heritage-card .name { font-size: 18px; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.names .small { color: var(--muted-ink); }

/* Renumbered */
.table td.was { font-weight: 800; color: var(--muted); text-decoration: line-through; }
.table .when { font-weight: 800; color: var(--ink); }

/* Heritage: a navy band like the hero, lower down the page */
.navy-band { background: var(--navy); color: var(--paper); }
.navy-band a { color: var(--paper); }
.navy-band .heading-row .aside { color: var(--muted-ink); }
.heritage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.heritage-card { background: var(--navy-2); border: 2px solid var(--rim); border-radius: 16px; box-shadow: 0 4px 0 #050A12; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.heritage-card .num { font-size: 18px; font-weight: 900; }
.heritage-card .cond { font-size: 14px; font-weight: 800; color: var(--lede); }
.heritage-card .checked { color: var(--muted-ink); }

@media (max-width: 520px) {
  .finder-hero .wrap { padding-top: 28px; padding-bottom: 24px; }
  .finder .btn--primary { flex: 1 1 100%; justify-content: center; }
  .hero-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seen-grid, .names { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .seen-num { font-size: 18px; }
  .seen-head { flex-wrap: wrap; gap: 4px 8px; }
  .ops { padding: 16px 18px; }
  .op-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 40px; gap: 10px; }
  .section { padding-top: 24px; padding-bottom: 24px; }
}
