body { background: transparent !important; }

#phb-root {
  background: #f6f4ef;
  color: #1a1f2e;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

#phb-root *, #phb-root *::before, #phb-root *::after { box-sizing: border-box; }

#phb-root h1, #phb-root h2, #phb-root h3, #phb-root h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: #0d2b4e;
  margin-top: 0;
  letter-spacing: -0.01em;
}

#phb-root p { margin: 0 0 1em 0; }

/* ========== HERO HEADER ========== */
.phb-hero {
  background: linear-gradient(135deg, #0d2b4e 0%, #143a6b 60%, #1d9e75 130%);
  color: #ffffff;
  padding: 56px 40px 48px;
  position: relative;
  overflow: hidden;
}
.phb-hero::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(186,117,23,0.22) 0%, rgba(186,117,23,0) 70%);
  pointer-events: none;
}
.phb-hero::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,158,117,0.18) 0%, rgba(29,158,117,0) 70%);
  pointer-events: none;
}
.phb-hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.phb-hero-eyebrow {
  font-family: "Source Sans 3", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffd99a;
  margin-bottom: 18px;
}
#phb-root .phb-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 920px;
}
.phb-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.86);
  max-width: 780px;
  margin-bottom: 28px;
}
.phb-hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.phb-hero-meta-item { display: flex; flex-direction: column; }
.phb-hero-meta-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffd99a;
  margin-bottom: 4px;
}
.phb-hero-meta-value { font-size: 16px; font-weight: 600; color: #ffffff; }

/* ========== TABBED NAV ========== */
.phb-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e3ddd0;
  box-shadow: 0 2px 12px rgba(13,43,78,0.06);
}
.phb-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}
.phb-tab {
  flex: 0 0 auto;
  padding: 18px 22px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #5a5e6b;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phb-tab:hover { color: #0d2b4e; background: #f9f6ef; }
.phb-tab.active {
  color: #0d2b4e;
  border-bottom-color: #ba7517;
  background: #ffffff;
}
.phb-tab-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #f0e8d6;
  color: #ba7517;
  font-size: 11px;
  font-weight: 700;
}
.phb-tab.active .phb-tab-num { background: #ba7517; color: #ffffff; }

/* ========== CONTAINER & PANELS ========== */
.phb-container { max-width: 1280px; margin: 0 auto; padding: 40px; }
.phb-panel { display: none; }
.phb-panel.active { display: block; animation: phbFade 0.35s ease; }
@keyframes phbFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.phb-section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0d2b4e;
}
.phb-section-lede {
  font-size: 17px;
  color: #4a4f5c;
  max-width: 820px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.phb-callout-rule {
  width: 56px; height: 4px;
  background: #ba7517;
  margin-bottom: 18px;
  border-radius: 2px;
}

/* ========== METRIC CARDS ========== */
.phb-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.phb-metric-card {
  background: #ffffff;
  border: 1px solid #e6e0d2;
  border-left: 4px solid #1d9e75;
  border-radius: 6px;
  padding: 22px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.phb-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,43,78,0.08);
}
.phb-metric-card.gold { border-left-color: #ba7517; }
.phb-metric-card.navy { border-left-color: #0d2b4e; }
.phb-metric-card.crimson { border-left-color: #a83244; }
.phb-metric-value {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 700;
  color: #0d2b4e;
  line-height: 1;
  margin-bottom: 6px;
}
.phb-metric-label {
  font-size: 13px;
  font-weight: 600;
  color: #4a4f5c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.phb-metric-desc { font-size: 14px; color: #5a5e6b; line-height: 1.5; }

/* ========== CARDS ========== */
.phb-card {
  background: #ffffff;
  border: 1px solid #e6e0d2;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 22px;
}
.phb-card h3 { font-size: 22px; margin-bottom: 14px; color: #0d2b4e; }
.phb-card h4 { font-size: 17px; margin-bottom: 10px; color: #1d9e75; font-family: "Source Sans 3", sans-serif; font-weight: 700; }

.phb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.phb-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) {
  .phb-grid-2, .phb-grid-3 { grid-template-columns: 1fr; }
  .phb-container { padding: 24px 20px; }
  .phb-hero { padding: 40px 24px; }
}

/* ========== SEVERITY DOTS ========== */
.phb-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.phb-dot-critical { background: #a83244; }
.phb-dot-high { background: #ba7517; }
.phb-dot-medium { background: #d4a64f; }
.phb-dot-low { background: #1d9e75; }

.phb-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #f0e8d6;
  color: #8a570f;
  margin: 2px 4px 2px 0;
}
.phb-pill.teal { background: #d6eee5; color: #0e6e51; }
.phb-pill.navy { background: #d6e0ee; color: #0d2b4e; }
.phb-pill.crimson { background: #f1d6da; color: #832636; }
.phb-pill.neutral { background: #e8e3d6; color: #5a5247; }

/* ========== STAKEHOLDER / RACI ========== */
.phb-raci-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  border: 1px solid #e6e0d2;
}
.phb-raci-table th {
  background: #0d2b4e;
  color: #ffffff;
  padding: 12px 10px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.phb-raci-table th:first-child { text-align: left; padding-left: 18px; }
.phb-raci-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #efeadc;
  color: #2a2f3c;
}
.phb-raci-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #0d2b4e;
  padding-left: 18px;
  background: #faf7ee;
}
.phb-raci-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
}
.phb-raci-r { background: #a83244; }
.phb-raci-a { background: #0d2b4e; }
.phb-raci-c { background: #1d9e75; }
.phb-raci-i { background: #ba7517; }
.phb-raci-legend {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 14px; font-size: 13px; color: #5a5e6b;
}
.phb-raci-legend-item { display: inline-flex; align-items: center; gap: 8px; }

/* ========== LIFECYCLE TIMELINE ========== */
.phb-lifecycle {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 24px 0 32px;
}
@media (max-width: 1100px) { .phb-lifecycle { grid-template-columns: repeat(2, 1fr); } }
.phb-lifecycle-step {
  background: #ffffff;
  border: 1px solid #e6e0d2;
  border-top: 4px solid #1d9e75;
  border-radius: 6px;
  padding: 16px 14px;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-align: left;
}
.phb-lifecycle-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13,43,78,0.1);
  border-top-color: #ba7517;
}
.phb-lifecycle-step.active {
  border-top-color: #ba7517;
  background: #fdfaf2;
  box-shadow: 0 6px 20px rgba(186,117,23,0.18);
}
.phb-lifecycle-num {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  color: #ba7517;
  line-height: 1;
  margin-bottom: 4px;
}
.phb-lifecycle-label {
  font-size: 13px;
  font-weight: 700;
  color: #0d2b4e;
  line-height: 1.3;
}

.phb-lifecycle-detail {
  background: #ffffff;
  border: 1px solid #e6e0d2;
  border-radius: 8px;
  padding: 28px;
  min-height: 320px;
}

/* ========== TECHNICAL CONTROL CARDS ========== */
.phb-control-card {
  background: #ffffff;
  border: 1px solid #e6e0d2;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.phb-control-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 100%;
  background: linear-gradient(180deg, #1d9e75 0%, #0d2b4e 100%);
}
.phb-control-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.phb-control-name {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  color: #0d2b4e;
  margin-bottom: 4px;
}
.phb-control-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1d9e75;
}
.phb-control-body p { color: #3a3f4c; }
.phb-control-tradeoff {
  background: #faf7ee;
  border-left: 3px solid #ba7517;
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 14px;
  color: #5a4a2a;
  border-radius: 4px;
}
.phb-control-tradeoff strong { color: #8a570f; }

/* ========== BIAS / DRIFT ========== */
.phb-bias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.phb-bias-card {
  background: #ffffff;
  border: 1px solid #e6e0d2;
  border-radius: 8px;
  padding: 22px;
  border-top: 4px solid #a83244;
}
.phb-bias-card.mit { border-top-color: #1d9e75; }
.phb-bias-source {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #a83244; margin-bottom: 8px;
}
.phb-bias-card.mit .phb-bias-source { color: #0e6e51; }
.phb-bias-title {
  font-family: "Playfair Display", serif;
  font-size: 18px; font-weight: 700; color: #0d2b4e; margin-bottom: 10px; line-height: 1.3;
}

/* ========== MODEL LIFECYCLE ========== */
.phb-model-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 24px 0;
  position: relative;
}
@media (max-width: 900px) { .phb-model-flow { grid-template-columns: 1fr; } }
.phb-model-stage {
  background: #ffffff;
  border: 2px solid #0d2b4e;
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
}
.phb-model-stage-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #ba7517;
  color: #ffffff;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}
.phb-model-stage-name {
  font-weight: 700;
  color: #0d2b4e;
  font-size: 14px;
  margin-bottom: 6px;
}
.phb-model-stage-desc {
  font-size: 12px;
  color: #5a5e6b;
  line-height: 1.4;
}

/* ========== REGULATORY MAP ========== */
.phb-reg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.phb-reg-card {
  background: #ffffff;
  border: 1px solid #e6e0d2;
  border-radius: 8px;
  padding: 24px;
  position: relative;
  border-top: 5px solid #0d2b4e;
}
.phb-reg-card.us { border-top-color: #a83244; }
.phb-reg-card.eu { border-top-color: #0d2b4e; }
.phb-reg-card.global { border-top-color: #1d9e75; }
.phb-reg-card.iso { border-top-color: #ba7517; }
.phb-reg-flag {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a5e6b;
}
.phb-reg-name {
  font-family: "Playfair Display", serif;
  font-size: 22px; font-weight: 700;
  color: #0d2b4e; margin-bottom: 4px; padding-right: 60px;
}
.phb-reg-scope {
  font-size: 13px; color: #4a4f5c;
  font-style: italic;
  margin-bottom: 14px;
}
.phb-reg-list { list-style: none; padding: 0; margin: 0; }
.phb-reg-list li {
  font-size: 14px;
  color: #3a3f4c;
  padding: 6px 0 6px 20px;
  position: relative;
}
.phb-reg-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #ba7517;
  font-weight: 700;
}

/* ========== ASSESSMENT ========== */
.phb-assess-domain {
  background: #ffffff;
  border: 1px solid #e6e0d2;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 18px;
}
.phb-assess-domain-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.phb-assess-domain-name {
  font-family: "Playfair Display", serif;
  font-size: 19px; font-weight: 700; color: #0d2b4e;
}
.phb-assess-score {
  font-family: "Playfair Display", serif;
  font-size: 22px; font-weight: 700;
  color: #1d9e75;
  background: #d6eee5;
  padding: 6px 16px;
  border-radius: 18px;
  min-width: 80px;
  text-align: center;
}
.phb-assess-question {
  padding: 14px 0;
  border-top: 1px solid #efeadc;
}
.phb-assess-question:first-of-type { border-top: none; padding-top: 4px; }
.phb-assess-q-text {
  font-size: 14px;
  color: #2a2f3c;
  margin-bottom: 10px;
  line-height: 1.5;
}
.phb-rating-row {
  display: flex; gap: 6px;
  flex-wrap: wrap;
}
.phb-rating-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 4px;
  background: #f9f6ef;
  border: 1px solid #e6e0d2;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #5a5e6b;
  transition: all 0.15s ease;
}
.phb-rating-btn:hover { background: #f0e8d6; color: #0d2b4e; }
.phb-rating-btn.selected {
  background: #1d9e75;
  border-color: #1d9e75;
  color: #ffffff;
}

.phb-results-summary {
  background: linear-gradient(135deg, #0d2b4e 0%, #143a6b 100%);
  color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 24px;
}
.phb-results-summary h3 { color: #ffffff; font-size: 24px; margin-bottom: 8px; }
.phb-results-overall {
  display: flex; align-items: baseline; gap: 16px;
  margin: 18px 0;
}
.phb-results-score {
  font-family: "Playfair Display", serif;
  font-size: 64px;
  font-weight: 700;
  color: #ffd99a;
  line-height: 1;
}
.phb-results-level {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}
.phb-results-band {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd99a;
  margin-top: 4px;
}

.phb-action-card {
  background: #ffffff;
  border: 1px solid #e6e0d2;
  border-left: 4px solid #ba7517;
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.phb-action-priority {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ba7517;
  margin-bottom: 6px;
}
.phb-action-title {
  font-weight: 700;
  color: #0d2b4e;
  font-size: 16px;
  margin-bottom: 4px;
}
.phb-action-desc { font-size: 14px; color: #4a4f5c; line-height: 1.5; }

/* ========== CHARTS ========== */
.phb-chart-card {
  background: #ffffff;
  border: 1px solid #e6e0d2;
  border-radius: 8px;
  padding: 22px;
}
.phb-chart-title {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  color: #0d2b4e;
  margin-bottom: 4px;
}
.phb-chart-sub {
  font-size: 13px;
  color: #5a5e6b;
  margin-bottom: 14px;
}
.phb-chart-wrap {
  position: relative;
  height: 320px;
}

/* ========== ROADMAP ========== */
.phb-roadmap {
  background: #ffffff;
  border: 1px solid #e6e0d2;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
}
.phb-phase {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid #efeadc;
}
.phb-phase:first-child { border-top: none; padding-top: 4px; }
.phb-phase-marker {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 6px;
}
.phb-phase-num {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  font-weight: 700;
  color: #ba7517;
  line-height: 1;
}
.phb-phase-time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a5e6b;
}
.phb-phase-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  color: #0d2b4e;
  margin-bottom: 8px;
}
.phb-phase-desc { color: #3a3f4c; margin-bottom: 12px; }
.phb-phase-deliverables {
  display: flex; flex-wrap: wrap; gap: 6px;
}
@media (max-width: 700px) {
  .phb-phase { grid-template-columns: 1fr; gap: 8px; }
}

/* ========== FOOTER / REFERENCES ========== */
.phb-footer {
  background: #0d2b4e;
  color: rgba(255,255,255,0.78);
  padding: 36px 40px;
  margin-top: 40px;
}
.phb-footer-inner { max-width: 1280px; margin: 0 auto; }
.phb-footer h4 { color: #ffd99a; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-family: "Source Sans 3", sans-serif; font-weight: 700; margin-bottom: 14px; }
.phb-ref-list { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 1.7; }
.phb-ref-list li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.phb-ref-list li::before {
  content: counter(ref) ".";
  counter-increment: ref;
  position: absolute;
  left: 0;
  color: #ffd99a;
  font-weight: 700;
}
.phb-ref-list { counter-reset: ref; }

/* ========== PRINT BUTTON ========== */
.phb-btn {
  display: inline-flex;
  align-items: center; gap: 8px;
  padding: 12px 22px;
  background: #ba7517;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s ease;
}
.phb-btn:hover { background: #8a570f; }
.phb-btn-secondary { background: #0d2b4e; }
.phb-btn-secondary:hover { background: #143a6b; }