/* The loco page (templates/loco.html). Only what site.css doesn't have. */
.hero .drawing { flex: 1.4 1 460px; }
.formerly { margin: 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--lede); }
.formerly-plate { height: 26px; padding: 0 10px; border-radius: 8px; background: var(--rim); color: var(--paper); font-size: 12px; font-weight: 900; letter-spacing: 0.06em; display: inline-flex; align-items: center; }

/* Scoped to .days: a bare .day also matched the date in each .changes row and drew a box round it. */
.days .day { height: 40px; border-radius: 6px; border: 2px solid; }
.days .day--confirmed { background: var(--ink); border-color: var(--ink); }
.days .day--deduced { background: var(--paper); border: 2px dashed var(--ink); }
.days .day--none { background: var(--band); border-color: var(--band); }
.days-ends { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--muted); }

.runs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.runs .card { display: flex; flex-direction: column; gap: 8px; }
.run-day { font-size: 15px; font-weight: 900; width: 76px; }
.run-code { font-size: 18px; text-decoration: none; }
.run-route { flex: 1 1 200px; font-size: 15px; font-weight: 800; }
.run-why { font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--body-2); }

.correction { flex: 1.4 1 460px; background: var(--paper); padding: 20px; }
/* .field is flex: 1 1 180px for rows; in the column form that basis became a height. */
.correction > .field { flex: none; }

/* Phones (canvas artboard OpenPhoneLoco, 390 px wide). No markup changes: the hero's intro is
   unwrapped with display: contents so the drawing can sit between the formerly line and the buttons. */
@media (max-width: 520px) {
  .section { padding-top: 24px; padding-bottom: 24px; }

  .hero .wrap { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; padding-bottom: 24px; }
  .hero .intro { display: contents; }
  .hero .drawing { flex: none; order: 1; margin: 6px 0; }
  .hero .btn-row { order: 2; flex-direction: column; gap: 14px; }
  .hero .btn-row .btn { justify-content: center; }
  .hero .title--number { font-size: 72px; }
  .hero .facts-line { font-size: 16px; }

  .days { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
  .days .day { height: 30px; }

  .runs .card { padding: 12px 14px; gap: 6px; }
  .run-day { width: auto; }
  .run-route { flex-basis: 100%; }

  .side .panel--pad { padding: 16px 18px; }
  .side .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side .facts dt { font-size: 13px; border-top: 2px solid var(--band); padding-top: 8px; }
  .side .facts dt:not(:first-child) { margin-top: 10px; }

  .changes li { padding: 12px 14px; gap: 6px 8px; }
  .changes .day { font-size: 13px; color: var(--muted); }

  .correction { padding: 16px; }
  .correction .btn--ink { width: 100%; justify-content: center; }
}
