/* A passenger unit (templates/unit.html). Only what site.css doesn't have. */
.hero .drawing { flex: 1.4 1 460px; }

/* Planned for today */
.planned { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.planned .card { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.planned .code { font-size: 18px; }
.planned .time, .runs-table .time { font-size: 14px; color: var(--muted); }
.planned .route { font-size: 15px; font-weight: 800; }

/* The last 30 days. Cells are .cell, not .day, so they don't catch .changes .day. */
.days .cell { height: 40px; border-radius: 6px; border: 2px solid; }
.days .cell--confirmed { background: var(--ink); border-color: var(--ink); }
.days .cell--deduced { background: var(--paper); border: 2px dashed var(--ink); }
.days .cell--planned { background: var(--band); border-color: var(--stone); }
.days .cell--none { background: transparent; border-color: var(--band); }
.days-key { display: flex; flex-wrap: wrap; gap: 14px; }

/* Trains it worked */
.runs-table .nowrap { white-space: nowrap; }
.runs-table .code { font-size: 16px; color: var(--ink); }
.runs-table .time { font-size: 13px; }
.runs-table td.route { font-weight: 800; color: var(--ink); }
.runs-table .why { font-size: 14px; }

.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; }

@media (max-width: 520px) {
  .section { padding-top: 24px; padding-bottom: 24px; }
  /* As on the loco page (OpenPhoneLoco): the drawing sits above the buttons. */
  .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 .title--number { font-size: 72px; }
  .hero .facts-line { font-size: 16px; }
  .hero .btn-row { order: 2; flex-direction: column; gap: 14px; }
  .hero .btn-row .btn { justify-content: center; }
  .days { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
  .days .cell { height: 30px; }
  .days-key { order: 3; flex-basis: 100%; }
  .correction { padding: 16px; }
  .correction .btn--ink { width: 100%; justify-content: center; }
}
