/* PCRTrend theme layer — applied to every dashboard page by build_netlify.py
   (via pcrtrend_skin.py). Look spec: PROJECT_STATUS.md "Dashboard look — LOCKED".
   Navy = data, honey = brand/active only, burnt orange = the only alarm color,
   2 px corners, Inter + Newsreader, content left-aligned beside the rail. */

html:root {
  --bg: #F6F5F1; --bg2: #F6F5F1; --surface: #FFFFFF; --white: #FFFFFF;
  --border: #E3E1DA; --text: #141C2B; --text2: #3A4252; --muted: #5B6474; --subtle: #8A909B;
  --navy: #1D3557; --navy2: #3E5C86; --navy-light: #3E5C86; --navy-pale: #E6ECF4;
  --gold: #D49A2A; --gold-light: #FBF1DC; --brand: #D49A2A;
  --shadow: none; --shadow-sm: none; --shadow-md: none;
  --pt-rail: 232px;
}

body[data-pt] {
  background: #F6F5F1 !important;
  color: #141C2B;
  font-family: Inter, system-ui, sans-serif !important;
  font-feature-settings: 'tnum' 1;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 48px 56px calc(var(--pt-rail) + 48px) !important;
  box-sizing: border-box;
}
body[data-pt] *:not(code):not(pre):not(kbd) { font-family: Inter, system-ui, sans-serif !important; }
body[data-pt] * { border-radius: 2px !important; box-shadow: none !important; }
body[data-pt] > *:not(.pt-rail) { max-width: 1800px; }
body[data-pt] .wrap, body[data-pt] .container, body[data-pt] .page, body[data-pt] main {
  max-width: 1800px !important; margin-left: 0 !important; margin-right: 0 !important;
}

/* the old navy header is replaced by the nameplate */
body[data-pt] .pcr-hdr, body[data-pt] .pct-hdr { display: none !important; }

/* ---- side rail ---- */
.pt-rail {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--pt-rail); z-index: 50;
  background: #FFFFFF; border-right: 1px solid #E3E1DA; overflow-y: auto;
  padding: 24px 16px; box-sizing: border-box;
}
.pt-rail * { font-family: Inter, system-ui, sans-serif !important; }
.pt-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #141C2B; margin: 0 6px 24px; }
.pt-logo b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.pt-logo b span { color: #B07D18; }
.pt-group { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: #5B6474; padding: 14px 10px 6px; }
.pt-item {
  display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px;
  font-size: 13.5px; color: #3A4252; text-decoration: none;
}
.pt-item:hover { background: #F6F5F1; color: #141C2B; }
.pt-item[aria-current="page"] { background: #FBF1DC; color: #141C2B; font-weight: 500; }
.pt-item svg { flex: 0 0 auto; }

/* ---- program nameplate ---- */
.pt-np {
  display: flex; align-items: center; gap: 18px;
  padding: 30px 0 22px; margin: 0 0 18px; border-bottom: 1px solid #E3E1DA;
  position: relative;
}
.pt-np-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: #B07D18; text-transform: uppercase; }
.pt-np-title {
  font-family: Newsreader, Georgia, serif !important; font-weight: 400; font-size: 38px;
  line-height: 1.1; letter-spacing: -0.015em; margin: 4px 0 4px; color: #141C2B;
}
.pt-np-sub { font-size: 14px; color: #5B6474; }
.pt-comb { position: fixed; top: 0; right: 0; pointer-events: none; z-index: 0; }

/* phones and narrow windows: rail becomes a top strip */
@media (max-width: 900px) {
  body[data-pt] { padding: 0 16px 40px 16px !important; }
  .pt-rail { position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid #E3E1DA;
             display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; margin: 0 -16px; }
  .pt-group { display: none; }
  .pt-logo { margin: 0 12px 0 0; }
  .pt-np-title { font-size: 28px; }
}

@media print {
  .pt-rail, .pt-comb { display: none !important; }
  body[data-pt] { padding: 0 !important; background: #FFFFFF !important; }
  .pt-np { padding-top: 0; }
}

/* page tabs (Dashboard / Findings / Definitions): one quiet style for every
   program -- some programs drew them as a solid accent band */
body[data-pt] .tabs, body[data-pt] .ca-tabs, body[data-pt] .tab-bar {
  background: #FFFFFF !important; border: 1px solid #E3E1DA !important;
  padding: 0 8px !important; display: flex; flex-wrap: wrap; gap: 4px;
}
body[data-pt] .tabs a, body[data-pt] .ca-tabs a, body[data-pt] .tab-bar a, body[data-pt] .tab-bar button {
  color: #3A4252 !important; background: transparent !important;
  border: 0 !important; border-bottom: 2px solid transparent !important;
  padding: 12px 14px !important; font-weight: 500;
}
body[data-pt] .tabs a.on, body[data-pt] .ca-tabs a.on, body[data-pt] .tab-bar .on, body[data-pt] .tab-bar .active {
  color: #141C2B !important; border-bottom-color: #D49A2A !important;
}
