:root {
  --eac-blue: #1a3a6e;
  --eac-blue-dark: #0f2549;
  --eac-blue-light: #e8edf7;
  --eac-gold: #f2c230;
  --eac-red: #c8202f;
  --eac-green: #1a7a3c;
  --eac-green-light: #e6f4ea;
  --eac-red-light: #fbe8e9;
  --eac-gold-light: #fdf3d9;
  --eac-orange: #e07a2c;
  --eac-orange-light: #fbeadb;

  --bg: #f4f6fb;
  --surface: #ffffff;
  --border: #e3e7f0;
  --text: #1a2233;
  --text-muted: #5b6579;
  --text-faint: #8a93a6;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Flag stripe ---------- */
.flag-stripe {
  height: 6px;
  display: flex;
  width: 100%;
}
.flag-stripe span { flex: 1; }
.flag-stripe .blue { background: var(--eac-blue); }
.flag-stripe .gold { background: var(--eac-gold); }
.flag-stripe .red { background: var(--eac-red); }
.flag-stripe .green { background: var(--eac-green); }

/* ---------- Header ---------- */
header.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-text .name {
  font-weight: 700;
  font-size: 15px;
  color: var(--eac-blue);
  line-height: 1.2;
}
.brand-text .sub {
  font-size: 12.5px;
  color: var(--eac-green);
  font-weight: 600;
}
nav.site-nav {
  display: flex;
  gap: 4px;
}
nav.site-nav a {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
nav.site-nav a:hover { background: var(--eac-blue-light); color: var(--eac-blue); }
nav.site-nav a.active { background: var(--eac-blue); color: #fff; }
.btn-login {
  padding: 9px 20px;
  border: 1.5px solid var(--eac-blue);
  border-radius: 8px;
  color: var(--eac-blue);
  font-weight: 700;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}
.btn-login:hover { background: var(--eac-blue-light); }

footer.site-footer {
  text-align: center;
  padding: 40px 24px 56px;
  color: var(--text-faint);
  font-size: 13.5px;
}
footer.site-footer a { color: var(--eac-blue); font-weight: 600; }

/* ---------- Page heading ---------- */
.page-head { padding: 40px 0 24px; }
.page-head h1 { font-size: 32px; margin: 0 0 6px; font-weight: 800; }
.page-head p { margin: 0; color: var(--text-muted); font-size: 15.5px; }

/* ---------- Hero ---------- */
.hero {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--eac-blue) 0%, var(--eac-blue-dark) 100%);
  position: relative;
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(to right, var(--eac-blue) 25%, var(--eac-gold) 25% 50%, var(--eac-red) 50% 75%, var(--eac-green) 75%);
}
.hero-left { color: #fff; max-width: 620px; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #dbe4f7;
  margin-bottom: 18px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}
.hero h1 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.15;
}
.hero .hero-sub {
  color: #c3d0ea;
  font-size: 15px;
  margin: 0;
}
.hero-progress {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 22px 28px;
  min-width: 300px;
  backdrop-filter: blur(4px);
}
.hero-progress .label { color: #c3d0ea; font-size: 13.5px; margin-bottom: 8px; }
.hero-progress .value { color: #fff; font-size: 44px; font-weight: 800; line-height: 1; margin-bottom: 16px; }
.progress-track {
  height: 8px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to right, var(--eac-gold), #8bd450, var(--eac-green));
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #a9b8d8;
}

/* ---------- Section group label ---------- */
.group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 12px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.blue { background: var(--eac-blue); }
.dot.green { background: var(--eac-green); }

/* ---------- Stat tiles ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 8px repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.stat-row .spacer { visibility: hidden; }
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-tile .num { font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-tile .lbl { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.num.blue { color: var(--eac-blue); }
.num.green { color: var(--eac-green); }
.num.red { color: var(--eac-red); }
.num.gray { color: var(--text-muted); }
.num.ink { color: var(--text); }

/* ---------- Card grid (3-up) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 18px; font-size: 16px; font-weight: 700; }

.chart-center-value { font-size: 30px; font-weight: 800; text-align: center; }
.chart-center-label { font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: 2px; }

/* ---------- Chart hover tooltips ---------- */
.donut-seg { cursor: pointer; transition: opacity 0.1s; }
.donut-seg:hover { opacity: 0.85; }
.bar-group { cursor: pointer; }
.bar-group:hover .bar-bg { fill: #eef1f7; }
.chart-tooltip {
  display: none;
  position: fixed;
  z-index: 300;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16,24,40,0.14);
  padding: 8px 13px;
  pointer-events: none;
  font-family: var(--font);
  white-space: nowrap;
}
.chart-tooltip .ct-label { font-size: 12.5px; font-weight: 700; color: var(--text); }
.chart-tooltip .ct-value { font-size: 13px; font-weight: 800; margin-top: 2px; }

.legend-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.legend-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.legend-row .swatch-lbl { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.legend-row .swatch { width: 9px; height: 9px; border-radius: 50%; }
.legend-row b { font-weight: 700; }

/* ---------- Section title ---------- */
.section-title {
  font-size: 20px;
  font-weight: 800;
  margin: 40px 0 16px;
}

/* ---------- Strategic pillar card ---------- */
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.pillar-card .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.pillar-card .title-wrap { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.pillar-card .pct { font-weight: 800; font-size: 20px; }
.pillar-card .meta { color: var(--text-muted); font-size: 13px; margin: 4px 0 12px; }
.bar-track {
  height: 8px;
  background: var(--eac-blue-light);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 999px; }

/* ---------- Risk cards ---------- */
.risk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.risk-rank {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.risk-rank.critical { background: var(--eac-red); }
.risk-rank.high { background: var(--eac-orange); }
.risk-rank.medium { background: var(--eac-gold); color: #6b4e00; }
.risk-body { flex: 1; }
.risk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.risk-head .name { font-weight: 700; font-size: 15.5px; }
.risk-head .count { color: var(--text-faint); font-size: 13px; }
.risk-desc { color: var(--text-muted); font-size: 13.5px; line-height: 1.5; }
.risk-score { text-align: right; flex-shrink: 0; }
.risk-score .n { font-size: 22px; font-weight: 800; color: var(--eac-red); }
.risk-score.high .n { color: var(--eac-orange); }
.risk-score.medium .n { color: #b58900; }
.risk-score .of10 { color: var(--text-faint); font-size: 11.5px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.critical { background: var(--eac-red-light); color: var(--eac-red); }
.badge.high { background: var(--eac-orange-light); color: var(--eac-orange); }
.badge.medium { background: var(--eac-gold-light); color: #9c7a00; }
.badge.low { background: #eef1f7; color: var(--text-muted); }

/* ---------- Partner cards ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.partner-top { display: flex; align-items: center; gap: 12px; }
.partner-badge {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--eac-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12.5px;
  flex-shrink: 0;
}
.partner-name { font-weight: 700; font-size: 14.5px; }
.partner-type { color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.partner-committed { font-size: 24px; font-weight: 800; color: var(--eac-blue); }
.partner-committed .unit { font-size: 12.5px; color: var(--text-muted); font-weight: 600; margin-left: 4px;}
.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mini-stat { text-align: center; }
.mini-stat .n { font-weight: 800; font-size: 16px; }
.mini-stat .l { font-size: 10.5px; color: var(--text-faint); }
.avg-progress-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.avg-progress-row b { color: var(--text); font-size: 15px; }
.linked-label { font-size: 11.5px; font-weight: 700; color: var(--text-faint); letter-spacing: 0.04em; margin-top: 2px; }
.linked-item { font-size: 13px; margin: 6px 0; }
.linked-item .row1 { display: flex; justify-content: space-between; margin-bottom: 4px; }
.linked-item .row1 span:last-child { font-weight: 700; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag {
  background: var(--eac-blue-light);
  color: var(--eac-blue);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- CTA buttons ---------- */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 44px 0 8px;
}
.btn {
  padding: 12px 26px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--eac-blue); color: #fff; }
.btn-primary:hover { background: var(--eac-blue-dark); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--eac-blue); color: var(--eac-blue); }

/* ---------- Filter bar (Initiatives / Roadmap) ---------- */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.4fr;
  gap: 12px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}
.filter-bar select, .filter-bar input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  font-family: var(--font);
}
.filter-bar select:focus, .filter-bar input:focus { outline: 2px solid var(--eac-blue); outline-offset: -1px; }
.filter-bar.filter-bar-2 { grid-template-columns: repeat(2, 1fr); }

.summary-bar {
  display: flex;
  gap: 32px;
  margin: 22px 4px;
  flex-wrap: wrap;
}
.summary-bar .item { display: flex; align-items: baseline; gap: 6px; font-size: 14.5px; color: var(--text-muted); font-weight: 600; }
.summary-bar .item b { font-size: 19px; }

/* ---------- Initiatives table ---------- */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
table.init-table { width: 100%; border-collapse: collapse; }
table.init-table thead th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #fafbfd;
}
table.init-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}
table.init-table tr:last-child td { border-bottom: none; }
table.init-table tr:hover td { background: #fafbfd; }
tr.init-row { cursor: pointer; }
.expand-toggle-cell { transition: transform 0.15s; }
.expand-toggle-cell.open { transform: rotate(180deg); }
tr.expand-row td { background: #fafbfd; padding: 0; border-bottom: 1px solid var(--border); }
tr.expand-row:hover td { background: #fafbfd; }
.expand-panel { padding: 18px 20px 22px; }
.expand-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 10px; }
.expand-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.expand-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.expand-box label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.expand-box div { font-size: 13.5px; color: var(--text); line-height: 1.5; }
.expand-box.wide { min-height: 60px; }
.dep-chip {
  display: inline-block;
  background: var(--eac-blue-light);
  color: var(--eac-blue);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  margin: 1px 3px 1px 0;
}

@media (max-width: 900px) {
  .expand-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .expand-grid-3 { grid-template-columns: 1fr; }
}
.pillar-chip {
  background: var(--eac-blue-light);
  color: var(--eac-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.init-title { font-weight: 700; color: var(--text); margin-bottom: 3px; }
.init-meta { color: var(--text-faint); font-size: 12.5px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.in-progress { background: #e5edfb; color: #2054c9; }
.status-pill.completed { background: var(--eac-green-light); color: var(--eac-green); }
.status-pill.not-started { background: #eef1f7; color: var(--text-muted); }
.status-pill.planned { background: #eef1f7; color: var(--text-muted); }
.fund-pill { font-weight: 700; font-size: 13px; }
.fund-pill.funded { color: var(--eac-green); }
.fund-pill.unfunded { color: var(--eac-red); }
.progress-cell { display: flex; align-items: center; gap: 10px; }
.progress-cell .bar-track { width: 70px; }

/* ---------- Roadmap Gantt ---------- */
.gantt-legend {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.gantt-legend .item { display: flex; align-items: center; gap: 7px; }
.gantt-legend .swatch { width: 16px; height: 8px; border-radius: 4px; }
.gantt-legend .dotc { width: 9px; height: 9px; border-radius: 50%; }

.gantt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 18px;
  overflow-x: auto;
}
.gantt-grid {
  display: grid;
  grid-template-columns: 220px repeat(28, minmax(0, 1fr));
  width: 100%;
}
.gantt-grid .head-cell {
  padding: 10px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.gantt-grid .head-cell.year {
  grid-column: span 4;
  background: #fafbfd;
  border-left: 1px solid var(--border);
}
.gantt-grid .head-cell.init-col { grid-row: span 2; text-align: left; padding: 12px 16px; display: flex; align-items: center; font-size: 12px; color: var(--text-faint); letter-spacing: .04em; text-transform: uppercase; }
.gantt-grid .head-cell.quarter { border-left: 1px solid var(--border); font-size: 11px; color: var(--text-faint); }

.gantt-row-label {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid transparent;
}
.gantt-row-label .t { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; line-height: 1.35; }
.gantt-row-label .m { font-size: 12px; color: var(--text-faint); }
.gantt-row-label .m .started { color: var(--eac-orange); font-weight: 600; }

.gantt-track-cell {
  grid-column: span 28;
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 18px 8px;
}
.gantt-track-cell .qlines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(28, 1fr);
}
.gantt-track-cell .qlines div { border-left: 1px solid #f0f2f7; }
.gantt-bar-wrap { position: relative; height: 40px; margin-top: 14px; }
.gantt-bar-original {
  position: absolute;
  top: 0;
  height: 8px;
  border-radius: 4px;
  background: var(--eac-blue-light);
}
.gantt-bar {
  position: absolute;
  top: 18px;
  height: 22px;
  border-radius: 6px;
  background: var(--eac-blue-light);
}
.gantt-bar-fill {
  position: absolute;
  top: 18px;
  left: 0;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}
.gantt-bar-fill.in-progress { background: var(--eac-blue); }
.gantt-bar-fill.completed { background: var(--eac-green); }
.gantt-bar-fill.not-started { background: var(--text-faint); }
.gantt-label-over {
  position: absolute;
  top: -13px;
  left: 0;
  font-size: 10px;
  color: var(--text-faint);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .grid-3, .partner-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  nav.site-nav { display: none; }
}
