/* The freight index (templates/pages/freight.html). Only what site.css doesn't have. */

.hero .freight-hero { padding-top: 44px; padding-bottom: 36px; flex-direction: column; align-items: stretch; gap: 18px; }
.freight-hero .lede { max-width: 760px; }
.freight-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.freight-search .input { flex: 1 1 260px; width: auto; height: 56px; border-radius: 14px; border-color: var(--ink-deep); padding: 0 18px; font-size: 18px; box-shadow: inset 0 3px 0 var(--line); }
.freight-search .btn--primary { height: 56px; padding: 0 28px; font-size: 17px; }

/* Yesterday: how we know what hauled each train. The striped key copies the dashed WORKED OUT tag
   (README "Look": the one allowed pattern). */
.known-bar { display: flex; height: 44px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 0 var(--ink); }
.known-bar .known { display: block; height: 100%; min-width: 6px; }
.known--confirmed { background: var(--ink); }
.known--deduced { background: repeating-linear-gradient(135deg, var(--paper) 0 6px, var(--ink) 6px 9px); }
.known--usual { background: var(--stone); }
.known--none { background: var(--panel); }
.known-keys { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.known-keys li { display: flex; align-items: flex-start; gap: 10px; }
.known-key { width: 22px; height: 22px; flex: none; margin-top: 6px; border-radius: 6px; border: 2px solid var(--ink); }
.known-text { display: flex; flex-direction: column; }
.known-n { font-size: 26px; font-weight: 900; line-height: 1.1; }
.known-what { font-size: 14px; font-weight: 800; color: var(--body-2); }

/* Working cards: Locos known yesterday, Where we know least */
.working-card { display: flex; flex-direction: column; gap: 8px; }
.working-card .code-line { display: flex; align-items: baseline; gap: 10px; }
.working-card .code { font-size: 20px; }
.working-card .time { font-size: 14px; color: var(--muted); }
.working-card .route { font-size: 15px; font-weight: 800; }
.working-card .loco { font-size: 16px; font-weight: 900; }
.working-card .note { font-size: 14px; font-weight: 700; color: var(--body-2); }
.working-card--ask { background: var(--paper); gap: 6px; }
.working-card--ask a { font-size: 15px; }

/* By operator, by cargo */
.breakdowns { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.breakdown { flex: 1 1 400px; min-width: 0; padding: 20px; }
.breakdown-head { display: flex; align-items: baseline; gap: 12px; }
.breakdown-head .sh { flex: 1; }
.breakdown-head .label { font-size: 14px; font-weight: 800; }
.breakdown-row { display: grid; align-items: center; gap: 12px; text-decoration: none; }
.breakdown-row--op { grid-template-columns: minmax(130px, 170px) minmax(0, 1fr) 44px; }
.breakdown-row--cargo { grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) 44px; }
.breakdown-row .name { font-size: 15px; font-weight: 800; }
.breakdown-row .n { font-size: 16px; font-weight: 900; text-align: right; }
.panel--ink a.breakdown-row:hover { color: var(--paper); }
.panel--ink a.breakdown-row:hover .name { text-decoration: underline; }

/* The classes they usually get */
.traction { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.traction-card { border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
a.traction-card { display: flex; }
.traction-card .name { font-size: 24px; text-transform: uppercase; }
.traction-card .n { font-size: 22px; font-weight: 900; }
.traction-card .note { font-size: 13px; font-weight: 800; color: var(--muted); }

@media (max-width: 520px) {
  .hero .freight-hero { padding-top: 28px; padding-bottom: 28px; }
  .freight-search .btn--primary { flex: 1 1 auto; justify-content: center; }
  .breakdown { padding: 16px; }
  .breakdown-row--op { grid-template-columns: minmax(96px, 120px) minmax(0, 1fr) 40px; gap: 10px; }
  .breakdown-row--cargo { grid-template-columns: minmax(96px, 120px) minmax(0, 1fr) 40px; gap: 10px; }
}
