/* An operator's page (templates/operator.html). Only what site.css doesn't have.
   The hero's background and bottom rule, and the bars' fills, are the operator's colours, set inline from the data. */
.op-hero { border-bottom: 10px solid var(--rim); }
.op-hero .drawing { flex: 1.3 1 440px; }
.op-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--muted-ink); }
.op-plate { height: 28px; padding: 0 10px; border-radius: 8px; background: var(--ink-deep); color: var(--paper); font-size: 15px; display: inline-flex; align-items: center; }
.op-hero .btn--paper { height: 52px; border-color: var(--ink-deep); color: var(--ink); box-shadow: 0 5px 0 var(--ink-deep); }  /* .hero a would turn it paper on paper */
.op-hero .btn--paper:hover { color: var(--ink); }

/* Counts strip */
.op-counts { padding-top: 24px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.op-counts > div { display: flex; flex-direction: column; }
.op-counts .n { font-size: 32px; font-weight: 900; line-height: 1.1; }
.op-counts .what { font-size: 15px; font-weight: 800; color: var(--muted); }

/* Fleet by class and workings by cargo */
.op-panels { padding-top: 32px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.op-panels > .panel { flex: 1 1 420px; min-width: 0; padding: 20px; }
.op-panels .heading-row .aside { font-size: 14px; }
.panel--ink .heading-row .aside { color: var(--muted-ink); }
.bar-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px; align-items: center; gap: 12px; }
.bar-row--cargo { grid-template-columns: 110px minmax(0, 1fr) 40px; }
.bar-row .bar { height: 14px; }
.bar-row .name { font-size: 15px; font-weight: 800; }
.bar-row a { font-size: 15px; }
.bar-row .n { font-size: 16px; font-weight: 900; text-align: right; }

/* Yesterday's trains */
.train-code { font-size: 18px; text-decoration: none; }
.train-time { font-size: 14px; color: var(--muted); }

/* Sources band */
.op-sources { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 24px; font-size: 15px; font-weight: 700; line-height: 1.45; }
.op-sources li { display: flex; flex-direction: column; }

@media (max-width: 520px) {
  .op-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
