/* Overview: navy hero band with the railway timeline. */
.hero {
  background: var(--hero); color: var(--hero-text);
  border-radius: var(--radius-hero);
  padding: 28px 28px 20px;
  display: flex; flex-direction: column; gap: 22px;
}
.hero :focus-visible { outline-color: var(--highlight); }
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.hero-intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hero-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--hero-muted); }
.hero h1 {
  font-size: 30px; line-height: 1.15; letter-spacing: -0.015em;
  color: #FFFFFF; text-wrap: balance;
}
.hero-summary { color: var(--hero-soft); max-width: 56ch; }

.hero-stats {
  flex: 1 1 420px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; align-content: start;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-figure { display: flex; align-items: baseline; gap: 6px; }
.hero-stat-value { font-family: var(--font-head); font-size: 28px; font-weight: 600; color: #FFFFFF; }
.hero-stat-total { color: #8FA6C2; }
.hero-stat-label { color: var(--hero-soft); }
.hero-stat-label .term-label { font-weight: 400; text-decoration-color: #5F7896; }
.hero-stat-delta { font-size: 12px; font-weight: 500; }
.hero-stat-delta--up { color: #6EE7B7; }
.hero-stat-delta--late { color: #FCA5A5; }

/* Timeline: a railway line from programme start to year end. */
.tl { position: relative; height: 96px; }
.tl > * { position: absolute; }
.tl-closure { top: 18px; height: 44px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); }
.tl-closure-label { top: 22px; transform: translateX(-50%); font-size: 11px; color: var(--hero-muted); white-space: nowrap; }
.tl-sleepers {
  left: 0; right: 0; top: 38px; height: 12px;
  background: repeating-linear-gradient(90deg, #2A4462 0 3px, transparent 3px 13px);
}
.tl-rails, .tl-done {
  left: 0; top: 40px; height: 8px;
  border-top: 2px solid #3E5A7C; border-bottom: 2px solid #3E5A7C;
}
.tl-rails { right: 0; }
.tl-done { border-color: #6EE7B7; }
.tl-today { top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.tl-today-label {
  font-size: 11px; font-weight: 700; color: var(--hero);
  background: var(--highlight); border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.tl-today-line { width: 2px; height: 26px; background: var(--highlight); }

.tl-station { top: 37px; display: flex; flex-direction: column; gap: 8px; align-items: center; transform: translateX(-50%); }
.tl-station--start { align-items: flex-start; transform: none; }
.tl-station--end { align-items: flex-end; transform: translateX(-100%); }
.tl-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--hero); border: 3px solid #5F7896;
}
.tl-station.is-passed .tl-dot { border-color: #6EE7B7; }
.tl-text { display: flex; flex-direction: column; align-items: inherit; white-space: nowrap; }
.tl-name { font-weight: 500; color: #FFFFFF; }
.tl-date { font-size: 12px; color: var(--hero-muted); }

/* Needs attention beside the on-track chart. */
.overview-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.overview-attention { flex: 999 1 560px; min-width: 0; }
.table--attention { min-width: 620px; }
.table--papers { min-width: 780px; }
.table--papers td { padding-top: 9px; padding-bottom: 9px; }

/* On track for 31 March? */
.on-track { flex: 1 1 440px; min-width: 0; padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.on-track-head { display: flex; flex-direction: column; gap: 4px; }
.on-track-summary { font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--text-2); }
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.legend-row { display: flex; align-items: center; gap: 10px; }
.legend-swatch { width: 16px; height: 3px; border-radius: 2px; flex: none; }
.legend-swatch--findings { background: #1E3A5F; }
.legend-swatch--processes { background: #5B8FD0; }
.legend-label { flex: 1; min-width: 0; }
.legend-count { color: var(--text-2); }
.legend-note { font-size: 12px; color: var(--text-label); }

.code-tile {
  width: 26px; height: 26px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
  background: var(--navy-tint); color: var(--navy);
}
.code-tile.is-complete { background: #DDF5E9; color: var(--done-fg); }

@media (max-width: 900px) {
  .tl-name { display: none; }
}
