/* Culture as Strategy: Executive Report Dashboard
   PHB design system: navy #0d2b4e, teal #1d9e75, gold #ba7517
   Playfair Display (headings), Source Sans 3 (body)
   All rules scoped to #phb-root. Hardcoded hex throughout. */

body { background: transparent !important; }

#phb-root {
  background: #f6f8fa !important;
  color: #1c2b3a;
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  max-width: 1120px;
  margin: 0 auto !important;
  padding: 0 0 48px 0 !important;
  box-sizing: border-box;
}
#phb-root * { box-sizing: border-box; }

#phb-root h1, #phb-root h2, #phb-root h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #0d2b4e;
  line-height: 1.25;
  margin: 0 0 14px 0;
}
#phb-root h2 { font-size: 30px; margin-top: 40px; }
#phb-root h3 { font-size: 19px; }
#phb-root p { margin: 0 0 16px 0; }
#phb-root a { color: #1d9e75; text-decoration: underline; }
#phb-root button { font-family: 'Source Sans 3', Arial, sans-serif; cursor: pointer; }

.cr-hide { display: none !important; }

/* ---------- Hero ---------- */
#phb-root .cr-hero {
  background: linear-gradient(135deg, #0d2b4e 0%, #123a63 60%, #0f4a5c 100%) !important;
  color: #ffffff;
  padding: 52px 40px 40px 40px !important;
  border-radius: 0 0 18px 18px;
}
#phb-root .cr-kicker {
  color: #ba7517;
  background: rgba(255,255,255,0.08);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  color: #f0c98d;
}
#phb-root .cr-title {
  color: #ffffff;
  font-size: 44px;
  font-weight: 800;
  max-width: 820px;
}
#phb-root .cr-lede {
  color: #cfdcea;
  font-size: 19px;
  max-width: 860px;
  margin-bottom: 30px;
}
#phb-root .cr-statband {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 8px 0 14px 0;
}
#phb-root .cr-stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 4px solid #1d9e75;
  border-radius: 12px;
  padding: 18px 18px 16px 18px;
}
#phb-root .cr-stat-num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
#phb-root .cr-stat-label { color: #b9c9da; font-size: 13.5px; line-height: 1.45; display: block; }
#phb-root .cr-hero .cr-footnote { color: #8fa6bd; }
#phb-root .cr-footnote { font-size: 13px; color: #5c6f82; margin-top: 8px; }

/* ---------- Sticky pill nav ---------- */
#phb-root .cr-nav {
  position: sticky !important;
  top: 0;
  z-index: 40;
  background: #f6f8fa !important;
  padding: 14px 20px !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  border-bottom: 1px solid #dde5ec;
}
#phb-root .cr-pill {
  background: #ffffff;
  border: 1.5px solid #c8d4df;
  color: #0d2b4e;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s ease;
}
#phb-root .cr-pill:hover { border-color: #1d9e75; color: #1d9e75; }
#phb-root .cr-pill.is-active {
  background: #0d2b4e !important;
  border-color: #0d2b4e;
  color: #ffffff !important;
}

/* ---------- Panels ---------- */
#phb-root .cr-panel { display: none !important; padding: 10px 40px 20px 40px !important; }
#phb-root .cr-panel.is-active { display: block !important; }
#phb-root .cr-hint { font-size: 14.5px; color: #5c6f82; font-style: italic; margin-bottom: 18px; }

/* ---------- Callouts ---------- */
#phb-root .cr-callout {
  border-radius: 12px;
  padding: 22px 26px 12px 26px;
  margin: 26px 0;
}
#phb-root .cr-callout-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
#phb-root .cr-callout-navy { background: #0d2b4e !important; color: #dce7f2; }
#phb-root .cr-callout-navy p { color: #dce7f2; font-size: 18px; }
#phb-root .cr-callout-navy .cr-callout-tag { background: #1d9e75; color: #ffffff; }
#phb-root .cr-callout-gold { background: #fbf3e6 !important; border-left: 6px solid #ba7517; }
#phb-root .cr-callout-gold p { color: #5b3f14; font-size: 17.5px; }
#phb-root .cr-callout-gold .cr-callout-tag { background: #ba7517; color: #ffffff; }
#phb-root .cr-callout-teal { background: #e9f6f1 !important; border-left: 6px solid #1d9e75; }
#phb-root .cr-callout-teal p { color: #14503d; }
#phb-root .cr-callout-teal .cr-callout-tag { background: #1d9e75; color: #ffffff; }

/* ---------- Accordions (findings, evidence, avoid, gov, fail, rounding) ---------- */
#phb-root .cr-findings, #phb-root .cr-rounding { display: grid !important; gap: 10px; }
#phb-root .cr-evgrid, #phb-root .cr-avoid, #phb-root .cr-govgrid, #phb-root .cr-failgrid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: start;
}
#phb-root .cr-finding, #phb-root .cr-evcard, #phb-root .cr-avoidcard,
#phb-root .cr-govcard, #phb-root .cr-failcard, #phb-root .cr-round {
  background: #ffffff !important;
  border: 1px solid #dde5ec;
  border-radius: 12px;
  overflow: hidden;
}
#phb-root .cr-finding-head, #phb-root .cr-evhead, #phb-root .cr-avoidhead,
#phb-root .cr-govhead, #phb-root .cr-failhead, #phb-root .cr-roundhead {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 16px 18px;
  font-size: 16.5px;
  font-weight: 700;
  color: #0d2b4e;
}
#phb-root .cr-finding-num, #phb-root .cr-round-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  color: #ba7517;
  font-size: 18px;
  min-width: 28px;
}
#phb-root .cr-chev {
  margin-left: auto;
  color: #1d9e75;
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s ease;
  line-height: 1;
}
#phb-root [data-acc].is-open .cr-chev { transform: rotate(45deg); }
#phb-root .cr-finding-body, #phb-root .cr-evbody, #phb-root .cr-avoidbody,
#phb-root .cr-govbody, #phb-root .cr-failbody, #phb-root .cr-roundbody {
  display: none;
  padding: 0 18px 6px 18px;
  border-top: 1px solid #eef2f6;
}
#phb-root [data-acc].is-open .cr-finding-body, #phb-root [data-acc].is-open .cr-evbody,
#phb-root [data-acc].is-open .cr-avoidbody, #phb-root [data-acc].is-open .cr-govbody,
#phb-root [data-acc].is-open .cr-failbody, #phb-root [data-acc].is-open .cr-roundbody {
  display: block !important;
  padding-top: 14px;
}
#phb-root [data-acc].is-open { border-color: #1d9e75; }

#phb-root .cr-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
#phb-root .cr-dot-red { background: #b4443c; }
#phb-root .cr-dot-amber { background: #ba7517; }

/* ---------- Pathway / step frameworks ---------- */
#phb-root .cr-pathway {
  background: #ffffff !important;
  border: 1px solid #dde5ec;
  border-radius: 14px;
  padding: 30px 26px 22px 26px;
  margin: 20px 0 30px 0;
  position: relative;
}
#phb-root .cr-path-line {
  position: absolute;
  top: 46px;
  left: 60px;
  right: 60px;
  height: 4px;
  background: #dde5ec;
  border-radius: 2px;
  overflow: hidden;
}
#phb-root .cr-path-progress {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1d9e75, #ba7517);
  border-radius: 2px;
  transition: width 0.5s ease;
}
#phb-root .cr-path-steps {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
  margin-bottom: 20px;
}
#phb-root .cr-path-steps-3 { grid-template-columns: repeat(3, 1fr); }
#phb-root .cr-path-step {
  background: transparent;
  border: none;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px;
}
#phb-root .cr-path-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #c8d4df;
  transition: all 0.25s ease;
}
#phb-root .cr-path-step.is-active .cr-path-dot,
#phb-root .cr-path-step.is-passed .cr-path-dot { border-color: #1d9e75; background: #1d9e75; }
#phb-root .cr-path-name {
  font-size: 14px;
  font-weight: 700;
  color: #5c6f82;
  text-align: center;
}
#phb-root .cr-path-step.is-active .cr-path-name { color: #0d2b4e; }
#phb-root .cr-path-detail {
  background: #f2f7fa;
  border-left: 5px solid #1d9e75;
  border-radius: 10px;
  padding: 18px 22px 6px 22px;
}
#phb-root .cr-path-detail h3 { margin-bottom: 8px; }

/* ---------- Just accountability spectrum ---------- */
#phb-root .cr-spectrum {
  display: grid !important;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 10px;
  margin: 18px 0 12px 0;
}
#phb-root .cr-zone {
  border-radius: 12px;
  border: 2px solid #dde5ec;
  background: #ffffff;
  padding: 18px 14px;
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}
#phb-root .cr-zone-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 18px; color: #0d2b4e; }
#phb-root .cr-zone-sub { font-size: 13px; color: #5c6f82; text-transform: uppercase; letter-spacing: 0.08em; }
#phb-root .cr-zone-warn.is-active { border-color: #b4443c; background: #faeeed !important; }
#phb-root .cr-zone-good.is-active { border-color: #1d9e75; background: #e9f6f1 !important; }
#phb-root .cr-zone-detail {
  display: none;
  background: #ffffff;
  border: 1px solid #dde5ec;
  border-radius: 10px;
  padding: 16px 20px 2px 20px;
  margin-bottom: 24px;
}
#phb-root .cr-zone-detail.is-active { display: block !important; }

/* ---------- Question / scorecard toggle cards ---------- */
#phb-root .cr-qgrid, #phb-root .cr-scoregrid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
#phb-root .cr-qcard, #phb-root .cr-scorecard {
  background: #ffffff !important;
  border: 1px solid #dde5ec;
  border-top: 5px solid #0d2b4e;
  border-radius: 12px;
  padding: 20px 22px 8px 22px;
}
#phb-root .cr-qtoggle { display: flex !important; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
#phb-root .cr-qbtn, #phb-root .cr-sbtn {
  border: 1.5px solid #c8d4df;
  background: #ffffff;
  color: #5c6f82;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 13px;
  transition: all 0.15s ease;
}
#phb-root .cr-qbtn.is-active, #phb-root .cr-sbtn.is-active {
  background: #1d9e75 !important;
  border-color: #1d9e75;
  color: #ffffff !important;
}
#phb-root .cr-qcard.is-warn { border-top-color: #ba7517; }
#phb-root .cr-qcard.is-warn .cr-qbtn.is-active { background: #ba7517 !important; border-color: #ba7517; }
#phb-root .cr-qtext, #phb-root .cr-stext { font-size: 16px; color: #33465a; }

/* ---------- Workforce evidence stats ---------- */
#phb-root .cr-evrow { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
#phb-root .cr-evstat {
  background: #ffffff !important;
  border: 1px solid #dde5ec;
  border-left: 6px solid #ba7517;
  border-radius: 12px;
  padding: 20px 22px 6px 22px;
}
#phb-root .cr-evstat-num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 800;
  color: #0d2b4e;
  margin-bottom: 8px;
}

/* ---------- Recommendations ---------- */
#phb-root .cr-recs { display: grid !important; gap: 12px; }
#phb-root .cr-rec {
  display: flex !important;
  gap: 18px;
  background: #ffffff !important;
  border: 1px solid #dde5ec;
  border-radius: 12px;
  padding: 20px 24px 8px 22px;
}
#phb-root .cr-rec-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  background: #1d9e75;
  min-width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#phb-root .cr-rec h3 { margin-bottom: 6px; }

/* ---------- Self-assessment ---------- */
#phb-root .cr-assess {
  background: #ffffff !important;
  border: 1px solid #dde5ec;
  border-radius: 14px;
  padding: 26px 28px;
}
#phb-root .cr-scale-key {
  display: flex !important;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #5c6f82;
  border-bottom: 1px dashed #dde5ec;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
#phb-root .cr-aitem {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f6;
}
#phb-root .cr-aq { margin: 0; font-size: 16px; }
#phb-root .cr-atag {
  display: inline-block;
  background: #0d2b4e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 2px 8px;
  margin-right: 8px;
}
#phb-root .cr-arate { display: flex !important; gap: 6px; }
#phb-root .cr-rbtn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid #c8d4df;
  background: #ffffff;
  font-weight: 700;
  color: #5c6f82;
  transition: all 0.15s ease;
}
#phb-root .cr-rbtn:hover { border-color: #1d9e75; color: #1d9e75; }
#phb-root .cr-rbtn.is-active { background: #1d9e75 !important; border-color: #1d9e75; color: #ffffff !important; }
#phb-root .cr-assess-actions { display: flex !important; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
#phb-root .cr-btn {
  background: #0d2b4e !important;
  color: #ffffff !important;
  border: 2px solid #0d2b4e;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 26px;
}
#phb-root .cr-btn:hover { background: #1d9e75 !important; border-color: #1d9e75; }
#phb-root .cr-btn-ghost { background: transparent !important; color: #0d2b4e !important; }
#phb-root .cr-btn-ghost:hover { color: #ffffff !important; }
#phb-root .cr-assess-warning { color: #b4443c; font-weight: 600; margin: 0; }

#phb-root .cr-results { margin-top: 26px; border-top: 2px solid #eef2f6; padding-top: 22px; }
#phb-root .cr-results-top {
  display: grid !important;
  grid-template-columns: 1fr 1.4fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
}
#phb-root .cr-overall { text-align: center; }
#phb-root .cr-overall-num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 64px;
  font-weight: 800;
  color: #0d2b4e;
  line-height: 1;
}
#phb-root .cr-overall-band {
  display: inline-block;
  margin-top: 10px;
  background: #1d9e75;
  color: #ffffff;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 15px;
}
#phb-root .cr-overall-band.band-dev { background: #ba7517; }
#phb-root .cr-overall-band.band-fragile { background: #a0522d; }
#phb-root .cr-overall-band.band-risk { background: #b4443c; }
#phb-root .cr-overall-note { font-size: 13px; color: #5c6f82; margin-top: 12px; }
#phb-root .cr-chartwrap { position: relative; width: 100%; }
#phb-root .cr-domains { display: grid !important; gap: 10px; margin-bottom: 18px; }
#phb-root .cr-dom {
  display: grid !important;
  grid-template-columns: 220px 1fr 56px;
  gap: 14px;
  align-items: center;
}
#phb-root .cr-dom-name { font-weight: 700; color: #0d2b4e; font-size: 15px; }
#phb-root .cr-dom-track { background: #eef2f6; height: 12px; border-radius: 6px; overflow: hidden; }
#phb-root .cr-dom-fill { display: block; height: 100%; background: #1d9e75; border-radius: 6px; transition: width 0.6s ease; }
#phb-root .cr-dom-fill.fill-dev { background: #ba7517; }
#phb-root .cr-dom-fill.fill-low { background: #b4443c; }
#phb-root .cr-dom-val { font-weight: 700; color: #0d2b4e; text-align: right; }
#phb-root .cr-bands { background: #f2f7fa; border-radius: 10px; padding: 16px 20px 2px 20px; font-size: 14.5px; }

/* ---------- Source & references ---------- */
#phb-root .cr-srcgrid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 10px 0; }
#phb-root .cr-srccard {
  background: #ffffff !important;
  border: 1px solid #dde5ec;
  border-radius: 12px;
  padding: 22px 24px;
}
#phb-root .cr-reffilters { display: flex !important; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
#phb-root .cr-fpill {
  background: #ffffff;
  border: 1.5px solid #c8d4df;
  color: #0d2b4e;
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 13.5px;
  font-weight: 600;
}
#phb-root .cr-fpill.is-active { background: #1d9e75 !important; border-color: #1d9e75; color: #ffffff !important; }
#phb-root .cr-refs { display: grid !important; gap: 10px; }
#phb-root .cr-ref {
  background: #ffffff !important;
  border: 1px solid #dde5ec;
  border-left: 5px solid #ba7517;
  border-radius: 10px;
  padding: 14px 18px 2px 18px;
  font-size: 15px;
}
#phb-root .cr-ref.cr-hide { display: none !important; }

/* ---------- Footer ---------- */
#phb-root .cr-footer {
  text-align: center;
  color: #5c6f82;
  font-size: 13.5px;
  border-top: 1px solid #dde5ec;
  margin: 40px 40px 0 40px;
  padding-top: 20px;
}

/* ---------- Reveal animation ---------- */
#phb-root .cr-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
#phb-root .cr-reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  #phb-root .cr-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  #phb-root .cr-path-progress, #phb-root .cr-dom-fill { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  #phb-root .cr-statband { grid-template-columns: repeat(2, 1fr); }
  #phb-root .cr-evgrid, #phb-root .cr-avoid, #phb-root .cr-govgrid, #phb-root .cr-failgrid,
  #phb-root .cr-qgrid, #phb-root .cr-scoregrid, #phb-root .cr-evrow, #phb-root .cr-srcgrid,
  #phb-root .cr-results-top { grid-template-columns: 1fr; }
  #phb-root .cr-title { font-size: 32px; }
  #phb-root .cr-hero { padding: 40px 22px 30px 22px !important; }
  #phb-root .cr-panel { padding: 10px 22px 20px 22px !important; }
  #phb-root .cr-dom { grid-template-columns: 1fr; gap: 6px; }
  #phb-root .cr-dom-val { text-align: left; }
}
@media (max-width: 620px) {
  #phb-root .cr-statband { grid-template-columns: 1fr; }
  #phb-root .cr-spectrum { grid-template-columns: 1fr; }
  #phb-root .cr-aitem { grid-template-columns: 1fr; }
  #phb-root .cr-path-line { left: 30px; right: 30px; }
  #phb-root .cr-path-name { font-size: 12px; }
}
