/* City of Midland — shared design system for the Citywide Telephone Performance suite.
   Single source of truth for brand tokens and cross-page components (nav, footer).
   Pages layer their own layout CSS on top; brand changes happen here, once. */

:root {
  /* brand */
  --city-blue: #00599c;
  --city-dark: #04386d;
  --city-light: #76b9f0;
  --city-lighter: #cae7ff;
  /* surfaces */
  --paper: #eef6ff;
  --bone: #f4f9fe;
  --card: #ffffff;
  --line: #d7e7f6;
  /* ink */
  --ink: #071426;
  --ink-soft: #34455f;
  --ink-mute: #687993;
  /* status */
  --good: #0b7a53;
  --bad: #c2542d;
  /* chart series (validated: CVD-safe on white) */
  --s1: #00599c;
  --s2: #e07a28;
  --s3: #0f8f77;
  /* type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  /* elevation */
  --shadow-card: 0 1px 2px rgba(4, 56, 109, 0.06);
}

/* ---------- site navigation (page-highlight set per page via .active) ---------- */
.sitenav { display: flex; gap: 8px; flex-wrap: wrap; }
.sitenav a {
  font-family: var(--font-sans);
  font-size: 12.5px; font-weight: 700; color: var(--city-blue);
  text-decoration: none; border: 1.5px solid var(--city-blue);
  border-radius: 999px; padding: 6px 15px; white-space: nowrap;
}
.sitenav a:hover { background: var(--city-lighter); }
.sitenav a.active { background: var(--city-blue); color: #fff; }

/* ---------- branded page header (pattern from the Analyst Workbench) ---------- */
.brandhead {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  border-bottom: 3px solid var(--city-blue);
  padding: 26px 0 24px;
}
.brandhead .brandrow { display: flex; align-items: center; gap: 18px; }
.brandhead .brandmark {
  width: 176px; flex: none; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
.brandhead .brandmark img { display: block; width: 100%; height: auto; }
.brandhead .brandcopy { min-width: 0; }
.brandhead .kicker {
  font-size: 11.5px; text-transform: uppercase;
  color: var(--city-blue); font-weight: 800;
}
.brandhead .brandtitle {
  font-family: var(--font-sans); font-size: 32px; font-weight: 800;
  color: var(--ink); margin: 5px 0 0; line-height: 1.08;
}
.brandhead .rolechip {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--city-dark); background: var(--city-lighter);
  border: 1px solid rgba(0, 89, 156, 0.18); padding: 1px 7px;
  border-radius: 5px; margin-left: 8px; vertical-align: middle;
}
.brandhead .brandchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.brandhead .brandchip {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  color: var(--city-dark); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px;
}
.brandhead .brandchip.fill { background: var(--city-blue); border-color: var(--city-blue); color: #fff; }
.brandhead .subline { color: var(--ink-soft); font-size: 13.5px; margin-top: 12px; max-width: 840px; }
.brandhead .headmeta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  justify-content: space-between; margin-top: 16px;
}
@media (max-width: 680px) {
  .brandhead .brandrow { flex-direction: column; align-items: flex-start; }
  .brandhead .brandmark { width: 154px; }
  .brandhead .brandtitle { font-size: 27px; }
}

/* ---------- shared footer ---------- */
.site-footer {
  margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.55; color: var(--ink-mute);
}
.site-footer a { color: var(--city-blue); }
