/* CIO dashboard — cloud modernization program view
   Serious consulting-document feel. Dense data grid, amber accent. */

.cio-slide {
  display: grid;
  grid-template-rows: auto 460px 1fr auto;
  gap: 14px;
  padding: 22px 40px 16px;
  height: 1000px;
  box-sizing: border-box;
}

/* ========== Header ========== */
.cio-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.cio-head h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
  color: var(--fg);
}
.cio-head h1 .tilt { color: var(--accent); }
.cio-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.cio-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  column-gap: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  text-align: right;
}
.cio-meta .ck {
  display: block;
  font-size: 10px;
  color: var(--fg-4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 3px;
}
.cio-meta .cv { font-size: 13px; color: var(--fg); font-weight: 500; font-family: var(--font-sans); }

/* ========== Top row: portfolio + cost curve ========== */
.cio-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  min-height: 0;
}
.cio-card {
  background: var(--bg-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.cio-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.cio-card-head h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin: 2px 0 0;
}
.cio-card-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.cio-card-head .right {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-4);
  text-transform: uppercase;
}

/* ========== Program portfolio ========== */
.pp-grid {
  display: grid;
  grid-template-columns: 20px minmax(160px, 1.3fr) 60px 90px 110px 90px minmax(160px, 1.2fr) 80px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  row-gap: 0;
}
.pp-grid .pph {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-4);
  padding: 0 6px 8px;
  border-bottom: 1px solid var(--rule);
}
.pp-grid .pph:first-child { padding-left: 0; }

.pp-row {
  display: contents;
}
.pp-row > * {
  padding: 4px 6px;
  border-bottom: 1px solid var(--rule);
  transition: background 120ms ease;
  line-height: 1.25;
}
.pp-row:last-child > * { border-bottom: none; }
.pp-row:hover > * { background: var(--bg-3); cursor: pointer; }
.pp-row > *:first-child { padding-left: 0; }

.pp-rag {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.pp-rag.green  { background: var(--ok); }
.pp-rag.amber  { background: #ffa329; }
.pp-rag.red    { background: var(--err); }

.pp-name {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.pp-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-4);
  margin-top: 0;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.3;
}
.pp-pct {
  font-variant-numeric: tabular-nums;
  color: var(--fg-2);
}
.pp-bar-wrap {
  width: 100%;
  height: 5px;
  background: var(--bg-4);
  border-radius: 2px;
  overflow: hidden;
}
.pp-bar {
  height: 100%;
  background: var(--accent);
  transition: width 300ms ease;
}
.pp-money {
  font-variant-numeric: tabular-nums;
  color: var(--fg-2);
  font-family: var(--font-mono);
}
.pp-money .muted { color: var(--fg-4); }
.pp-owner {
  color: var(--fg-3);
  font-size: 10px;
}
.pp-milestone {
  color: var(--fg-2);
  font-size: 10px;
  line-height: 1.35;
}
.pp-milestone .when { color: var(--fg-4); display: block; margin-top: 1px; font-size: 9px; }
.pp-arrow {
  color: var(--fg-4);
  text-align: right;
  font-size: 13px;
}
.pp-row:hover .pp-arrow { color: var(--accent); }

/* ========== Cost curve ========== */
.cc-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.cc-stat .lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 3px;
}
.cc-stat .val {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.cc-stat .delta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ok);
  margin-left: 4px;
}
.cc-stat .delta.down { color: var(--err); }

.cc-chart {
  flex: 1;
  min-height: 0;
  position: relative;
}
.cc-legend {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.cc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cc-legend .sw { width: 10px; height: 2px; }
.cc-sw-dc      { background: var(--fg-3); }
.cc-sw-cloud   { background: #48a5da; }
.cc-sw-saved   { background: #ffa329; }

/* ========== Wave roadmap ========== */
.wr-wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.wr-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  flex: 1;
  min-height: 0;
}
.wr-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-4);
}
.wr-quarters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.wr-quarters span {
  padding: 0 8px;
  border-left: 1px solid var(--rule);
}
.wr-quarters span:first-child { border-left: none; }

.wr-rows {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.wr-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--rule);
  min-height: 28px;
}
.wr-row:last-child { border-bottom: none; }
.wr-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-2);
  padding-right: 12px;
}
.wr-label .tag {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-4);
  margin-left: 6px;
}
.wr-track {
  position: relative;
  height: 18px;
  background:
    linear-gradient(to right, var(--rule) 1px, transparent 1px) 0 0 / 16.666% 100% repeat-x;
  border-radius: 3px;
}
.wr-bar {
  position: absolute;
  top: 3px;
  height: 12px;
  background: var(--accent);
  opacity: 0.9;
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent-ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
}
.wr-bar.done     { background: var(--ok); }
.wr-bar.planned  { background: var(--bg-4); color: var(--fg-3); border: 1px solid var(--rule-2); }
.wr-bar.at-risk  { background: repeating-linear-gradient(45deg, var(--accent), var(--accent) 6px, var(--accent-2) 6px, var(--accent-2) 12px); }

.wr-milestone {
  position: absolute;
  top: 0;
  width: 12px; height: 12px;
  transform: translate(-6px, 3px) rotate(45deg);
  background: var(--fg);
  border: 1.5px solid var(--bg-1);
}

/* Today marker */
.wr-today {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 1px;
  background: var(--accent);
  z-index: 2;
}
.wr-today::before {
  content: 'TODAY';
  position: absolute;
  top: -14px;
  left: -20px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.1em;
  width: 40px;
  text-align: center;
}

/* ========== Sources strip ========== */
.cio-sources {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cio-sources strong {
  color: var(--fg-3);
  font-weight: 500;
  margin-right: 4px;
}
.cio-sources .src {
  padding: 4px 9px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  color: var(--fg-3);
  background: var(--bg-1);
}
.cio-sources .src::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ok);
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 1px;
}

/* Nav at bottom (deep dives links) */
.cio-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cio-nav-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 12px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  color: var(--fg-3);
  text-decoration: none;
}
.cio-nav-btn:hover { color: var(--fg); border-color: var(--fg-4); }
