/* Cordillera v3 visual evolution. Loaded after the base and interaction styles. */
:root{
  --st-notstarted:#64748B;
  --panel-radius:14px;
  --control-radius:9px;
  --shadow-focus:0 1px 2px rgba(15,23,42,.05),0 18px 38px -28px rgba(15,23,42,.42);
  --rule:color-mix(in srgb,var(--border) 82%,transparent);
  --font:"Segoe UI Variable","Aptos","Segoe UI",system-ui,-apple-system,sans-serif;
}
:root[data-theme="dark"]{
  --st-notstarted:#8291A5;
  --shadow-focus:0 1px 2px rgba(0,0,0,.38),0 22px 46px -28px rgba(0,0,0,.8);
}

body{font-family:var(--font);font-feature-settings:"tnum" 1,"ss01" 1}
.page{animation:v3-page-in .14s ease-out}
@keyframes v3-page-in{from{opacity:.82}to{opacity:1}}
.page-head{align-items:center;margin-bottom:20px}
.page-head h1{font-size:28px;line-height:1.15;letter-spacing:-.7px;font-weight:760}
.page-head p{font-size:13.5px;max-width:78ch}
.card h3,.section-heading h2,.section-heading h3{font-size:15.5px;line-height:1.25;letter-spacing:-.12px}
.card .sub{line-height:1.45}
.val,.num,.tnum,.metric-value,.mh-summary strong,.mh-next time{font-variant-numeric:tabular-nums lining-nums}

/* Flat daily-work surfaces; only a focal panel carries elevation. */
.card,.kpi,.dcard{box-shadow:none;border-radius:var(--panel-radius)}
.card,.kpi{border-color:var(--rule)}
.focal-panel{
  background:var(--card);border:1px solid var(--border);border-radius:var(--panel-radius);
  box-shadow:var(--shadow-focus);padding:20px;min-width:0;
}
.flat-panel{
  min-width:0;padding:18px 0;background:transparent;border:0;border-top:1px solid var(--border);
  border-radius:0;box-shadow:none;
}
.flat-panel:first-child{border-top:0}
.chart-frame{min-width:0;padding:14px 16px;border:1px solid var(--rule);border-radius:12px;background:var(--card-2)}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 12px}
.section-heading h2,.section-heading h3{margin:0}
.section-heading p{margin:3px 0 0;color:var(--muted);font-size:12.5px}

/* Compact executive hierarchy. */
.executive-brief{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:0;overflow:hidden}
.executive-brief>.brief-lead{padding:22px 24px}
.executive-brief>.brief-side{padding:22px 24px;border-left:1px solid var(--rule);background:var(--card-2)}
.brief-lead h2{font-size:23px;line-height:1.18;letter-spacing:-.45px;margin:0 0 8px}
.brief-lead p{max-width:72ch;color:var(--muted);margin:0;line-height:1.65}
.metric-strip{
  display:grid;grid-template-columns:repeat(var(--metric-count,4),minmax(0,1fr));
  background:var(--card);border:1px solid var(--rule);border-radius:var(--panel-radius);overflow:hidden;
}
.metric{min-width:0;padding:15px 17px;border-right:1px solid var(--rule)}
.metric:last-child{border-right:0}
.metric-label{display:block;color:var(--muted);font-size:11.5px;font-weight:650;margin-bottom:5px}
.metric-value{display:block;color:var(--ink);font-size:24px;font-weight:790;letter-spacing:-.55px;line-height:1.12}
.metric-detail{display:block;color:var(--muted);font-size:11.5px;margin-top:5px;line-height:1.35}
.metric.is-risk .metric-value,.metric.is-risk .metric-detail{color:var(--over)}
.metric.is-watch .metric-value{color:var(--committed)}
.metric.is-positive .metric-value{color:var(--under)}

.attention-list{display:grid;border-top:1px solid var(--rule)}
.attention-item{
  display:grid;grid-template-columns:5px minmax(0,1fr);gap:2px 12px;align-items:center;
  min-height:54px;padding:9px 8px 9px 0;border-bottom:1px solid var(--rule);
}
.attention-item::before{content:"";grid-row:1/3;align-self:stretch;border-radius:4px;background:var(--faint)}
.attention-item.is-risk::before{background:var(--over)}
.attention-item.is-watch::before{background:var(--committed)}
.attention-item.is-positive::before{background:var(--under)}
.attention-item strong,.attention-item>b{display:block;grid-column:2;font-size:13px;line-height:1.3}
.attention-item p,.attention-item>span{grid-column:2;margin:0;color:var(--muted);font-size:11.5px;line-height:1.35}
.attention-item>.attention-value{font-weight:750;font-variant-numeric:tabular-nums;text-align:right}

.insight-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.insight-grid>*{grid-column:span 6}
.insight-grid>.wide{grid-column:span 8}.insight-grid>.narrow{grid-column:span 4}.insight-grid>.half{grid-column:span 6}
.source-freshness{display:block}
.source-freshness small{display:block;color:var(--muted);font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.45px}
.source-freshness strong{display:block;margin-top:3px;font-size:13px}

/* Milestone Horizon */
.mh{min-width:0}
.mh-summary{display:grid;grid-template-columns:minmax(220px,.58fr) minmax(300px,1.42fr);gap:20px;align-items:end;margin-bottom:15px}
.mh-summary>div:first-child strong{display:block;font-size:20px;line-height:1.15;letter-spacing:-.3px}
.mh-kicker{display:block;color:var(--jacobs-2);font-size:10px;font-weight:800;letter-spacing:.68px;text-transform:uppercase;margin-bottom:3px}
.mh-next{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:baseline;padding-left:18px;border-left:1px solid var(--rule)}
.mh-next>span{color:var(--muted);font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.42px}
.mh-next strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mh-next time{font-size:12px;font-weight:760;color:var(--ink);white-space:nowrap}
.mh-section-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:11px 0 5px;color:var(--muted);font-size:10.5px}
.mh-section-label span:first-child{color:var(--ink);font-weight:800;text-transform:uppercase;letter-spacing:.5px}
.mono{font-family:ui-monospace,"Cascadia Code","Segoe UI Mono",Consolas,monospace;font-size:11.5px;color:var(--muted);white-space:nowrap}
.mh-waterfall{display:block;width:100%;height:auto;border:1px solid var(--rule);border-radius:10px;background:var(--card);overflow:visible}
.mh-overview,.mh-focus{display:block;width:100%;height:auto;border:1px solid var(--rule);border-radius:10px;background:var(--card);overflow:visible}
.mh-focus{background:var(--card)}
.mh-callouts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:10px;border:1px solid var(--rule);border-radius:10px;overflow:hidden}
.mh-callouts>div{display:grid;grid-template-columns:auto 1fr;gap:2px 9px;align-content:start;padding:9px 11px;border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);min-width:0}
.mh-callouts>div:nth-child(3n){border-right:0}
.mh-callouts time{grid-row:1/3;color:var(--jacobs);font-size:10.5px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.mh-callouts span{font-size:11.5px;font-weight:700;line-height:1.25}
.mh-callouts small{color:var(--muted);font-size:9.5px;line-height:1.2}
.mh-empty{padding:20px;border:1px dashed var(--border);border-radius:12px;color:var(--muted);text-align:center}

.mh-mobile-list{list-style:none;margin:0;padding:0;max-height:min(68dvh,720px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-top:1px solid var(--rule)}
.mh-mobile-row{display:grid;grid-template-columns:68px 16px minmax(0,1fr);gap:9px;align-items:start;min-height:44px;padding:9px 4px 9px 0;border-bottom:1px solid var(--rule);position:relative}
.mh-mobile-row time{font-size:10.5px;font-weight:750;color:var(--muted);font-variant-numeric:tabular-nums;padding-top:2px}
.mh-mobile-mark{width:10px;height:10px;margin-top:4px;background:var(--card);border:2px solid var(--jacobs);transform:rotate(45deg);position:relative}
.mh-mobile-mark::after{content:"";position:absolute;left:50%;top:12px;width:1px;height:calc(100% + 29px);background:var(--border);transform:translateX(-50%) rotate(-45deg);transform-origin:top}
.mh-mobile-row:last-child .mh-mobile-mark::after{display:none}
.mh-mobile-mark.is-done{background:var(--st-complete);border-color:var(--st-complete)}
.mh-mobile-mark.is-late{border-color:var(--over);border-width:3px}
.mh-mobile-copy{min-width:0}
.mh-mobile-copy small,.mh-mobile-copy span{display:block;color:var(--muted);font-size:9.5px;line-height:1.25}
.mh-mobile-copy strong{display:block;font-size:12px;line-height:1.3;margin:2px 0;overflow-wrap:anywhere}

/* Waterfall and compact chart framing. */
.waterfall-wrap{min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:3px}
.waterfall-wrap .waterfall{display:block;min-width:640px}
.waterfall .hit:focus-visible{stroke:var(--ink);stroke-width:2px}

/* Tables read as working surfaces, not stacked cards. */
.tbl-wrap{contain:inline-size;max-width:100%}
.tbl th{background:var(--card);color:var(--muted);font-size:10.5px;letter-spacing:.42px}
.tbl td{padding-top:10px;padding-bottom:10px}
.progress{height:7px;background:color-mix(in srgb,var(--border) 72%,transparent)}
.interaction-hint{font-size:10.5px}
.btn:active,.chip:active,.iconbtn:active{transform:translateY(1px)}

@media(max-width:1120px){
  .metric-strip{--metric-count:2}
  .metric:nth-child(2n){border-right:0}
  .metric:nth-child(n+3){border-top:1px solid var(--rule)}
  .insight-grid>*,.insight-grid>.wide,.insight-grid>.narrow,.insight-grid>.half{grid-column:span 12}
  .mh-callouts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mh-callouts>div:nth-child(3n){border-right:1px solid var(--rule)}
  .mh-callouts>div:nth-child(2n){border-right:0}
}
@media(max-width:680px){
  .page-head h1{font-size:25px}
  .page-head{align-items:flex-start}
  .focal-panel{padding:16px}
  .flat-panel{padding:15px 0}
  .executive-brief{grid-template-columns:1fr}
  .executive-brief>.brief-lead,.executive-brief>.brief-side{padding:17px 16px}
  .executive-brief>.brief-side{border-left:0;border-top:1px solid var(--rule)}
  .metric-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .metric{padding:13px 14px}
  .metric-value{font-size:21px}
  .attention-item{grid-template-columns:4px minmax(0,1fr)}
  .attention-item>.attention-value{grid-column:2;text-align:left;font-size:11.5px}
  .mh-summary{grid-template-columns:1fr;gap:10px;align-items:start}
  .mh-next{grid-template-columns:1fr auto;padding:10px 0 0;border-left:0;border-top:1px solid var(--rule);gap:2px 8px}
  .mh-next>span{grid-column:1/-1}
  .mh-next strong{white-space:normal;overflow:visible}
  .mh-mobile-list{max-height:68dvh}
  .mh-callouts{grid-template-columns:1fr}
  .mh-callouts>div,.mh-callouts>div:nth-child(2n),.mh-callouts>div:nth-child(3n){border-right:0}
  .section-heading{align-items:flex-start;flex-direction:column;gap:7px}
}
@media(max-width:430px){
  .metric-strip{grid-template-columns:1fr}
  .metric,.metric:nth-child(2n){border-right:0;border-top:1px solid var(--rule)}
  .metric:first-child{border-top:0}
  .mh-mobile-row{grid-template-columns:62px 14px minmax(0,1fr);gap:7px}
}
@media(prefers-reduced-motion:reduce){.page{animation:none!important}}
@media print{
  .focal-panel,.card,.kpi{box-shadow:none!important}
  .mh-mobile-list{max-height:none;overflow:visible}
  .attention-item{break-inside:avoid}
}
