/* ===========================================================
   PHB Healthcare Fiscal Model — Dashboard Styles
   Palette: Navy #0d2b4e | Teal #1d9e75 | Gold #ba7517
   Headings: Playfair Display | Body: Source Sans 3
   =========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

#phb-root{
  --navy:#0d2b4e; --navy2:#15375e; --teal:#1d9e75; --teald:#167a5b;
  --gold:#ba7517; --ltteal:#e7f4ee; --ltgold:#f8f0e1; --line:#e2e7ed;
  --ink:#22303e; --mute:#5a6473; --bg:#f4f6f9; --card:#ffffff;
  background:#f4f6f9; color:#22303e;
  font-family:'Source Sans 3',-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.5; -webkit-font-smoothing:antialiased; padding:0; margin:0;
  border-radius:14px; overflow:hidden; box-shadow:0 1px 3px rgba(13,43,78,.08);
}
body{background:transparent !important;}
#phb-root *{box-sizing:border-box;}

/* Hero */
#phb-root .phb-hero{background:#0d2b4e;color:#fff;padding:30px 30px 26px;position:relative;overflow:hidden;}
#phb-root .phb-hero:after{content:"";position:absolute;right:-60px;top:-60px;width:240px;height:240px;
  background:radial-gradient(circle,rgba(29,158,117,.35),transparent 70%);}
#phb-root .phb-eyebrow{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#7fd3b4;font-weight:700;margin:0 0 8px;}
#phb-root .phb-hero h1{font-family:'Playfair Display',serif;font-weight:800;font-size:30px;line-height:1.1;margin:0 0 8px;color:#fff;}
#phb-root .phb-hero p{margin:0;color:#c6d3e2;font-size:15px;max-width:680px;}
#phb-root .phb-hero .phb-byline{margin-top:14px;font-size:13px;color:#9fb2c8;}
#phb-root .phb-hero .phb-byline b{color:#7fd3b4;}

/* Tabs */
#phb-root .phb-tabs{position:sticky;top:0;z-index:20;background:#15375e;display:flex;flex-wrap:wrap;
  padding:0 14px;border-bottom:3px solid #ba7517;}
#phb-root .phb-tab{appearance:none;border:0;background:transparent;color:#bcd0e6;font-family:inherit;
  font-weight:600;font-size:13.5px;padding:13px 15px;cursor:pointer;border-bottom:3px solid transparent;
  margin-bottom:-3px;transition:color .15s,border-color .15s;white-space:nowrap;}
#phb-root .phb-tab:hover{color:#fff;}
#phb-root .phb-tab.is-active{color:#fff;border-bottom-color:#1d9e75;}

/* Panels */
#phb-root .phb-body{padding:26px 30px 34px;}
#phb-root .phb-panel{display:none;animation:phbfade .25s ease;}
#phb-root .phb-panel.is-active{display:block;}
@keyframes phbfade{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}
#phb-root h2.phb-h{font-family:'Playfair Display',serif;font-weight:700;font-size:22px;color:#0d2b4e;margin:0 0 4px;}
#phb-root .phb-sub{color:#5a6473;font-size:14px;margin:0 0 20px;}
#phb-root .phb-secthead{display:flex;align-items:center;gap:10px;margin:24px 0 12px;}
#phb-root .phb-secthead span{font-family:'Playfair Display',serif;font-weight:700;color:#15375e;font-size:16px;}
#phb-root .phb-secthead:before{content:"";width:5px;height:18px;background:#1d9e75;border-radius:3px;}

/* Metric cards */
#phb-root .phb-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;}
#phb-root .phb-card{background:#fff;border:1px solid #e2e7ed;border-radius:12px;padding:16px 18px;position:relative;overflow:hidden;}
#phb-root .phb-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#1d9e75;}
#phb-root .phb-card.gold:before{background:#ba7517;}
#phb-root .phb-card.navy:before{background:#0d2b4e;}
#phb-root .phb-card .phb-k{font-size:12.5px;color:#5a6473;font-weight:600;margin:0 0 6px;text-transform:uppercase;letter-spacing:.03em;}
#phb-root .phb-card .phb-v{font-size:26px;font-weight:700;color:#0d2b4e;font-family:'Playfair Display',serif;line-height:1;}
#phb-root .phb-card .phb-note{font-size:12px;color:#8a929c;margin-top:6px;}

/* Two-column layout */
#phb-root .phb-grid2{display:grid;grid-template-columns:1.05fr .95fr;gap:24px;align-items:start;}
@media(max-width:820px){#phb-root .phb-grid2{grid-template-columns:1fr;}#phb-root .phb-hero h1{font-size:24px;}}

/* Inputs */
#phb-root .phb-field{margin:0 0 16px;}
#phb-root .phb-field label{display:flex;justify-content:space-between;align-items:baseline;font-size:13.5px;font-weight:600;color:#22303e;margin-bottom:6px;gap:10px;}
#phb-root .phb-field .phb-val{font-family:'Source Sans 3';font-weight:700;color:#167a5b;background:#e7f4ee;border-radius:6px;padding:2px 9px;font-size:13px;min-width:64px;text-align:center;}
#phb-root input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:6px;
  background:linear-gradient(90deg,#1d9e75,#1d9e75) no-repeat,#dfe6ee;background-size:50% 100%;cursor:pointer;}
#phb-root input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;
  background:#0d2b4e;border:3px solid #fff;box-shadow:0 1px 4px rgba(13,43,78,.35);cursor:pointer;}
#phb-root input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#0d2b4e;border:3px solid #fff;cursor:pointer;}
#phb-root .phb-num{width:120px;padding:7px 9px;border:1px solid #cfd8e3;border-radius:8px;font-family:inherit;font-size:14px;color:#0d2b4e;font-weight:600;}
#phb-root .phb-num:focus{outline:none;border-color:#1d9e75;box-shadow:0 0 0 3px rgba(29,158,117,.15);}

/* Chart wrap */
#phb-root .phb-chartwrap{background:#fff;border:1px solid #e2e7ed;border-radius:12px;padding:18px;}
#phb-root .phb-chartwrap h3{margin:0 0 10px;font-size:14px;color:#15375e;font-weight:700;}
#phb-root .phb-canvas-box{position:relative;height:300px;}

/* Table */
#phb-root table.phb-tbl{width:100%;border-collapse:collapse;font-size:13.5px;background:#fff;border:1px solid #e2e7ed;border-radius:12px;overflow:hidden;}
#phb-root table.phb-tbl th{background:#15375e;color:#fff;font-weight:600;text-align:right;padding:10px 12px;font-size:12.5px;}
#phb-root table.phb-tbl th:first-child{text-align:left;}
#phb-root table.phb-tbl td{padding:9px 12px;text-align:right;border-top:1px solid #eef1f5;color:#22303e;}
#phb-root table.phb-tbl td:first-child{text-align:left;font-weight:600;color:#15375e;}
#phb-root table.phb-tbl tr.total td{background:#e7f4ee;font-weight:700;color:#0d2b4e;border-top:2px solid #1d9e75;}
#phb-root table.phb-tbl tr.neg td{color:#b13b3b;}

/* Lever rows */
#phb-root .phb-lever{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px;align-items:center;padding:11px 0;border-top:1px solid #eef1f5;}
#phb-root .phb-lever:first-of-type{border-top:0;}
#phb-root .phb-lever .ln{font-weight:600;color:#15375e;font-size:13.5px;}
#phb-root .phb-lever .ld{font-size:11.5px;color:#8a929c;display:block;font-weight:400;margin-top:2px;}
#phb-root .phb-lever .cap{font-size:11px;color:#8a929c;text-transform:uppercase;letter-spacing:.04em;display:block;}

/* Pills / callouts */
#phb-root .phb-callout{background:#f8f0e1;border-left:4px solid #ba7517;border-radius:0 10px 10px 0;padding:14px 18px;font-size:14px;color:#5a4216;font-style:italic;font-weight:600;}
#phb-root .phb-quote{background:#0d2b4e;color:#fff;border-radius:12px;padding:22px 26px;font-family:'Playfair Display',serif;
  font-style:italic;font-size:18px;text-align:center;margin-top:8px;position:relative;}
#phb-root .phb-quote b{color:#7fd3b4;font-style:normal;}

/* Scenario tags */
#phb-root .phb-scenrow{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:12px;}
#phb-root .phb-scencol{background:#fff;border:1px solid #e2e7ed;border-radius:12px;padding:16px;text-align:center;}
#phb-root .phb-scencol h4{margin:0 0 12px;font-size:13px;text-transform:uppercase;letter-spacing:.05em;}
#phb-root .phb-scencol.cons h4{color:#b07d2a;}
#phb-root .phb-scencol.base h4{color:#167a5b;}
#phb-root .phb-scencol.aggr h4{color:#0d2b4e;}
#phb-root .phb-scencol .sv{font-family:'Playfair Display',serif;font-weight:700;font-size:21px;color:#0d2b4e;}
#phb-root .phb-scencol .sk{font-size:11.5px;color:#8a929c;margin:2px 0 10px;}
@media(max-width:820px){#phb-root .phb-scenrow{grid-template-columns:1fr;}#phb-root .phb-lever{grid-template-columns:1fr;}}

#phb-root .phb-foot{margin-top:26px;padding-top:16px;border-top:1px solid #e2e7ed;font-size:12px;color:#8a929c;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;}
#phb-root .phb-foot a{color:#167a5b;text-decoration:none;font-weight:600;}
#phb-root .phb-reset{appearance:none;border:1px solid #cfd8e3;background:#fff;color:#15375e;font-family:inherit;font-weight:600;
  font-size:12.5px;padding:7px 14px;border-radius:8px;cursor:pointer;}
#phb-root .phb-reset:hover{background:#f4f6f9;border-color:#1d9e75;}
#phb-root .phb-chartnote{font-size:12px;color:#b13b3b;padding:10px;}
