/* Staff dashboard. Brand tokens and the font are in brand.css. */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-primary);
  line-height: 1.45;
}
h1,
h2,
p {
  margin: 0;
}
.muted {
  color: var(--text-muted);
}

.page-header,
main,
.page-footer {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 1024px) {
  .page-header,
  main,
  .page-footer {
    padding: 0 32px;
  }
}
.brand-bar {
  background: var(--surface);
  border-bottom: 4px solid var(--accent);
  margin-bottom: 24px;
}
.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
/* Brand minimum for digital use is 150px; the space around it is the
   clearance the brand book asks for. */
.brand-logo {
  display: block;
  width: 150px;
  height: auto;
  flex: none;
  margin: 8px;
}
/* Brand guidelines: bold capitals for headline messaging, slightly tracked. */
.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
}
.source-badge {
  border: 1px solid var(--border);
  background: var(--surface-0);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

main {
  display: grid;
  gap: 16px;
}
.banner {
  border-radius: var(--radius);
  padding: 10px 14px;
}
.banner-info {
  background: var(--info-bg);
}
.banner-error {
  background: var(--error-bg);
}
/* Gust watch: the yellow accent as a side bar, the text stays ink. */
.banner-watch {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-left: 8px solid var(--accent);
  font-weight: 600;
}


.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tile,
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}
.tile-hero {
  grid-column: 1 / -1;
}
.tile-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.hero-value {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 4px 0;
}
.tile-value {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 4px 0;
}
.tile-note,
.card-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.card h2 {
  font-size: 1.125rem;
  font-weight: 700;
}

.chart {
  position: relative;
  margin-top: 12px;
  height: 280px;
}
.chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart .empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text-muted);
}
.axis-text {
  fill: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.grid-line {
  stroke: var(--grid);
  stroke-width: 1;
}
.baseline {
  stroke: var(--text-muted);
  stroke-width: 1;
}
.zero-line {
  stroke: var(--text-muted);
  stroke-width: 1;
}
.series-line {
  fill: none;
  stroke: var(--series-1);
  stroke-width: 2;
  stroke-linejoin: round;
}
.series-area {
  fill: var(--series-1);
  opacity: 0.12;
}
/* Gusts: a different colour and dashed, so they don't rely on colour alone. */
.gust-line {
  fill: none;
  stroke: var(--series-2);
  stroke-width: 1.5;
  stroke-dasharray: 5 3;
  stroke-linejoin: round;
}
.bar {
  fill: var(--series-2);
}
.bar.active {
  opacity: 0.8;
}
.crosshair {
  stroke: var(--text-muted);
  stroke-width: 1;
}
.marker {
  fill: var(--series-1);
  stroke: var(--surface-1);
  stroke-width: 2;
}
.hit {
  fill: transparent;
}
.tooltip {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8125rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.12);
}
.tooltip strong {
  display: block;
  font-size: 0.9375rem;
}

details {
  margin-top: 12px;
}
summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.table-wrap {
  overflow-x: auto;
  max-height: 360px;
  margin-top: 8px;
}
/* Status lists show every row; only the long chart tables scroll. */
.table-wrap.full {
  max-height: none;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
}
th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
th {
  color: var(--text-secondary);
  font-weight: 600;
}
td.wrap {
  white-space: normal;
  min-width: 8em;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.swatch {
  display: inline-block;
  width: 16px;
  height: 0;
  margin-right: 6px;
  vertical-align: middle;
}
.swatch-wind {
  border-top: 2px solid var(--series-1);
}
.swatch-gust {
  border-top: 2px dashed var(--series-2);
}
/* Wind direction: an arrow pointing the way the wind is blowing to. */
.compass {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 10px;
  vertical-align: -0.15rem;
}
.compass svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--text-secondary);
}
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.page-footer {
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 0.8125rem;
}
.tile-value small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.page-footer p + p {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .brand {
    gap: 12px;
  }
  .page-header h1 {
    font-size: 1.5rem;
  }
  .hero-value {
    font-size: 2.75rem;
  }
  .chart {
    height: 220px;
  }
  .wide-only {
    display: none;
  }
  th,
  td {
    padding: 8px 6px;
  }
  /* Two-line headings ("High (°C)") rather than a wide table. */
  th.num {
    white-space: normal;
  }
}

