/* =============================================================
   KEY PERFORMANCE INDICATORS — page-specific styles
   Structurally matches the other report inside pages.
   Dark / Energy Saver is the default presentation; Cinematic
   switches the page to its light-state tokens.
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Page-scoped theme tokens (dark = default) */
  --kpi-bg:          #0a1628;
  --kpi-bg-deep:     #061525;
  --kpi-card-bg:     rgba(255,255,255,0.04);
  --kpi-card-bd:     rgba(255,255,255,0.10);
  --kpi-text:        rgba(255,255,255,0.85);
  --kpi-text-strong: #ffffff;
  --kpi-name:        #0a9bd6;
  --kpi-label:       #ffffff;
  --kpi-meta-head:   #ffffff;
  --kpi-meta-body:   rgba(255,255,255,0.72);
  --kpi-rule:        rgba(255,255,255,0.14);
  --kpi-line:        #0069aa;
  --kpi-note:        rgba(255,255,255,0.55);
}

/* Light-state tokens — Cinematic mode switches the KPI page to the
   same light presentation used across the other inside pages. */
body.energy-saver {
  --kpi-bg:          #f4f6f9;
  --kpi-bg-deep:     #ffffff;
  --kpi-card-bg:     #ffffff;
  --kpi-card-bd:     rgba(10,30,60,0.10);
  --kpi-text:        #2a3340;
  --kpi-text-strong: #0d1b2e;
  --kpi-name:        #0069aa;
  --kpi-label:       #0d1b2e;
  --kpi-meta-head:   #0d1b2e;
  --kpi-meta-body:   #495464;
  --kpi-rule:        rgba(10,30,60,0.12);
  --kpi-line:        #0069aa;
  --kpi-note:        #5a6573;
}

body {
  background: var(--kpi-bg);
  color: var(--kpi-text-strong);
  font-family: "proxima-nova", "Proxima Nova", Arial, sans-serif;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ══════════════════════════════════════
   HEADER — keep fixed + solid (matches env pages)
══════════════════════════════════════ */
.site-header {
  position: fixed !important;
  top: 0 !important;
  transform: translateY(0) !important;
}
.site-header .nav-bar {
  background: var(--navy-glass, rgba(4, 14, 32, 0.96)) !important;
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 4px 24px -8px rgba(0,0,0,0.55);
}
.site-header .utility-bar {
  background: rgba(4, 14, 26, 0.92) !important;
}

/* In cinematic mode, lighten the fixed header so it reads on a light page. */
body.energy-saver .site-header .nav-bar {
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 4px 24px -10px rgba(10,30,60,0.25);
}
body.energy-saver .site-header .utility-bar {
  background: #eef2f7 !important;
}
body.energy-saver .nav-link,
body.energy-saver .utility-links a,
body.energy-saver .tts-toggle span,
body.energy-saver .saver-toggle__label { color: #1c2530 !important; }
body.energy-saver .nav-link__caret { border-top-color: #1c2530 !important; }

/* ══════════════════════════════════════
   PAGE WRAPPER + BREADCRUMB
══════════════════════════════════════ */
.kpi-page {
  padding-top: 62px;
  position: relative;
  background: var(--kpi-bg);
  transition: background 0.4s ease;
}

.bod-breadcrumb {
  position: absolute !important;
  top: calc(38px + 76px + 8px) !important;
  left: 0 !important;
  width: 100%;
  z-index: 89;
  pointer-events: none;
}
.bod-breadcrumb__inner {
  max-width: 1400px !important;
  margin: 0 auto;
  padding: 0 clamp(2rem, 8vw, 7rem) !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  pointer-events: auto;
}
.bod-breadcrumb__item {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  /* Dark mode: dark banner → light text. */
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}
.bod-breadcrumb__item:hover { color: rgba(255,255,255,0.9); }
.bod-breadcrumb__item--active { color: var(--kpi-name); }
.bod-breadcrumb__sep {
  padding: 0 8px;
  color: rgba(255,255,255,0.35);
}
/* Light mode: white banner → dark text. */
body.energy-saver .bod-breadcrumb__item { color: #5a6573; }
body.energy-saver .bod-breadcrumb__item:hover { color: #1c2530; }
body.energy-saver .bod-breadcrumb__item--active { color: var(--kpi-name); }
body.energy-saver .bod-breadcrumb__sep { color: #b7c0cc; }

/* ══════════════════════════════════════
   HERO BANNER  (replicates board-of-directors hero)
══════════════════════════════════════ */
.kpi-hero {
  position: relative;
  height: auto;
  overflow: hidden;
  /* Solid (no gradient): dark navy in dark mode, white in light mode. */
  background: #061525;
  padding-bottom: 0px !important;
  transition: background 0.4s ease;
}
body.energy-saver .kpi-hero { background: #ffffff; }

.kpi-hero__overlay {
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

/* Banner animations */
@keyframes kpiSlideLeft  { 0% { opacity: 0; transform: translateX(-80px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes kpiSlideRight { 0% { opacity: 0; transform: translateX(80px);  } 100% { opacity: 1; transform: translateX(0); } }

/* Inner grid */
.kpi-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 142px clamp(2rem, 8vw, 7rem) 20px;
}

/* Left top: heading text */
.kpi-banner-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  animation: kpiSlideLeft 0.9s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}

.kpi-banner-text__main {
  font-family: 'League Gothic', sans-serif;
  font-size: 35px;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 19px;
  -webkit-text-fill-color: transparent;
  color: rgb(0, 105, 170);
  background: linear-gradient(90deg, rgb(0, 105, 170) 0%, rgb(114, 191, 68) 100%) text;
}

/* ── Title block with a green→blue gradient patch behind it ── */
.kpi-titleblock {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 28px 14px 20px;
  isolation: isolate;
}
/* the gradient patch — a narrow slice behind only the left edge of the text */
.kpi-titleblock__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 100%;
  background: linear-gradient(180deg, #4D6DB3 0%, #70AAA5 55%, #5DB787 100%);
  z-index: -1;
}
.kpi-titleblock__title {
  display: block;
  font-family: 'League Gothic', sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #ffffff;
  margin-left: -10px;
}
.kpi-titleblock__sub {
  display: block;
  font-family: 'League Gothic', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 4px;
  margin-left: -10px;
}
/* Cinematic mode: banner is white → title text goes dark navy. */
body.energy-saver .kpi-titleblock__title,
body.energy-saver .kpi-titleblock__sub { color: #0d1b2e; }

/* ══════════════════════════════════════
   CONSOLIDATED FINANCIAL PERFORMANCE
   Exact replica of the EPUB chart spread.
══════════════════════════════════════ */
.cfp {
  /* ── DARK MODE = default (matches the rest of the page) ── */
  --cfp-green:    #6cb33f;            /* highlight / FY2026 bar (brand green, stays put) */
  --cfp-blue:     #2aa3e6;            /* section title + table accent (brighter on dark) */
  --cfp-ink:      rgba(255,255,255,0.82); /* axis labels / values / body */
  --cfp-head:     #ffffff;            /* panel sub-heads */
  --cfp-axis:     #6cb33f;            /* L-shaped chart axis */
  --cfp-rule:     rgba(255,255,255,0.16);  /* thin divider under panel head */
  --cfp-page-bg:  var(--kpi-bg);      /* sit on the page background */
  --cfp-tbl-row:  rgba(255,255,255,0.10);  /* table row separators */
  --cfp-tbl-hi:   rgba(42,163,230,0.18);   /* FY2026 column highlight */
  /* bar greys, light → dark (FY2022 → FY2025) — lightened so they read on dark */
  --cfp-g1: #e3e5e8;
  --cfp-g2: #c4c8cd;
  --cfp-g3: #9aa0a6;
  --cfp-g4: #6a7077;
  /* stacked-mix segment colours */
  --cfp-silver: #aab0b7;
  --cfp-wind:   #e3e5e8;
  --cfp-others: #7e858d;
  background: var(--cfp-page-bg);
  color: var(--cfp-ink);
  transition: background 0.4s ease, color 0.4s ease;
}

/* ── LIGHT MODE = Cinematic on → restore the source-artwork look ── */
body.energy-saver .cfp {
  --cfp-blue:     #0a7bc2;
  --cfp-ink:      #3a3a3a;
  --cfp-head:     #1b1b1b;
  --cfp-rule:     #c9ccd1;
  --cfp-page-bg:  #ffffff;
  --cfp-tbl-row:  #e6e8eb;
  --cfp-tbl-hi:   #e2ecf6;
  --cfp-g1: #d6d8da;
  --cfp-g2: #b9bcc0;
  --cfp-g3: #8d9196;
  --cfp-g4: #54585d;
  --cfp-silver: #54585d;
  --cfp-wind:   #d6d8da;
  --cfp-others: #9aa0a6;
}
.cfp__inner {
  max-width: 1400px;          /* full content width — aligns with the hero/breadcrumb */
  margin: 0 auto;
  padding: 40px clamp(2rem, 8vw, 7rem) 72px;
}
.cfp__title {
  font-family: "proxima-nova", "Proxima Nova", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cfp-blue);
  margin-bottom: 28px;
  scroll-margin-top: 100px; /* #anchor jumps land below the fixed header */
}
.cfp__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  row-gap: 48px;
}

/* ── Panel ── */
.cfp-panel { min-width: 0; }
.cfp-panel__head {
  border-bottom: 1.5px solid var(--cfp-rule);
  padding-bottom: 10px;
}
.cfp-panel__name {
  font-family: "proxima-nova", "Proxima Nova", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--cfp-head);
}
.cfp-panel__unit {
  font-size: 12.5px;
  color: var(--cfp-ink);
  margin-top: 10px;
}
.cfp-panel__unit--right { text-align: right; }

/* ── Chart frame ── */
.cfp-chart {
  position: relative;
  margin-top: 14px;
  padding: 0 6px 0 8px;
}
.cfp-bars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 4px;
  height: 210px;
}
.cfp-bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.cfp-bar__val {
  font-size: 13px;
  font-weight: 400;
  color: var(--cfp-ink);
  margin-bottom: 8px;
  white-space: nowrap;
}
.cfp-bar__col {
  width: 22px;
  height: calc(var(--val, 0) * 1%);
  border-radius: 0;
  transform-origin: bottom;
  animation: cfpGrow 0.9s cubic-bezier(0.22,1,0.36,1) both;
}
.cfp-bar__col--g1 { background: var(--cfp-g1); }
.cfp-bar__col--g2 { background: var(--cfp-g2); }
.cfp-bar__col--g3 { background: var(--cfp-g3); }
.cfp-bar__col--g4 { background: var(--cfp-g4); }
.cfp-bar__col--green { background: var(--cfp-green); }

@keyframes cfpGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ── Stacked bars (Revenue Mix) ── */
.cfp-bars--stacked .cfp-stack {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.cfp-stack__seg {
  width: 22px;
  display: block;
}
.cfp-stack__seg--zinc   { background: var(--cfp-green); }
.cfp-stack__seg--silver { background: var(--cfp-silver); }
.cfp-stack__seg--wind   { background: var(--cfp-wind); }
.cfp-stack__seg--others { background: var(--cfp-others); }

/* ── L-shaped green axis (left + bottom, with end caps) ── */
.cfp-axis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;        /* sits at the baseline, above the x-labels */
  top: 0;
  pointer-events: none;
}
.cfp-axis::before {   /* bottom rule */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cfp-axis);
}
.cfp-axis::after {    /* left + right end caps (short vertical ticks) */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  border-left: 2px solid var(--cfp-axis);
  border-right: 2px solid var(--cfp-axis);
}

/* ── X-axis labels ── */
.cfp-xlabels {
  display: flex;
  justify-content: space-around;
  gap: 4px;
  margin-top: 8px;
}
.cfp-xlabels span {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--cfp-ink);
}
.cfp-xlabels span.is-current { font-weight: 700; color: var(--cfp-head); }

/* ── Revenue Mix data table ── */
.cfp-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 12.5px;
  color: var(--cfp-ink);
  border-top: 2px solid var(--cfp-blue);
}
.cfp-table th,
.cfp-table td {
  padding: 5px 8px;
  text-align: right;
  white-space: nowrap;
}
.cfp-table thead th { font-weight: 700; color: var(--cfp-head); }
.cfp-table th.cfp-table__lead,
.cfp-table td.cfp-table__lead {
  text-align: left;
  width: 38%;
}
.cfp-table td.cfp-table__lead {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cfp-table tbody tr { border-bottom: 1px solid var(--cfp-tbl-row); }
/* FY2026 column highlight (blue tint) */
.cfp-table .is-current { background: var(--cfp-tbl-hi); color: var(--cfp-blue); font-weight: 700; }

/* table legend keys */
.cfp-key {
  width: 12px;
  height: 12px;
  flex: none;
  display: inline-block;
}
.cfp-key--zinc   { background: var(--cfp-green); }
.cfp-key--silver { background: var(--cfp-silver); }
.cfp-key--wind   { background: var(--cfp-wind); }
.cfp-key--others { background: var(--cfp-others); }

/* Reveal-on-scroll helper (shared with [data-div-reveal] in index.html) */
[data-div-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-div-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════ KPI graph images (dark/light swap) ════════════ */
/* Default + Energy Saver = dark page → show the white-line SVGs.
   Cinematic = light page → show the darker source SVGs. */
.kpi-fig { margin: 0; min-width: 0; }
.kpi-fig img { width: 100%; height: auto; display: block; }
.kpi-fig__color { display: none !important; }
.kpi-fig__white { display: block !important; }
body.cinematic .kpi-fig__white,
body.is-saver .kpi-fig__white,
html.is-saver .kpi-fig__white { display: block !important; }
body.cinematic .kpi-fig__color,
body.is-saver .kpi-fig__color,
html.is-saver .kpi-fig__color { display: none !important; }
body.energy-saver .kpi-fig__white { display: none !important; }
body.energy-saver .kpi-fig__color { display: block !important; }

/* Secondary section title spacing + sub-headings */
.cfp__title--mt { margin-top: 64px; }
.kpi-subhead {
  font-family: "proxima-nova", "Proxima Nova", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--cfp-head);
  margin: 0 0 22px;
}
.kpi-intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cfp-ink);
  margin: 0 0 26px;
  max-width: 1000px;
}
.kpi-foot {
  font-size: 12px;
  line-height: 1.5;
  color: var(--cfp-ink);
  margin: 22px 0 0;
}

/* Ratio cell = chart + description/management statement */
.kpi-ratio { min-width: 0; }
.kpi-ratio__desc h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--cfp-blue);
  margin: 16px 0 4px;
}
.kpi-ratio__desc p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--cfp-ink);
  margin: 0;
}

/* Placeholder for charts whose SVG is not yet supplied */
.kpi-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 240px;
  padding: 22px;
  border: 1.5px dashed var(--cfp-rule);
  background: rgba(255, 255, 255, 0.025);
}
body.energy-saver .kpi-ph { background: rgba(0, 0, 0, 0.02); }
.kpi-ph__title { font-size: 15px; font-weight: 700; color: var(--cfp-head); }
.kpi-ph__unit { font-size: 12px; color: var(--cfp-blue); }
.kpi-ph__note {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cfp-ink);
  opacity: 0.6;
  margin-top: 4px;
}

/* Data tables (Economic Value Added, Sustainable Revenue Disclosure) */
.kpi-dtable__wrap { overflow-x: auto; margin-top: 8px; }
.kpi-dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--cfp-ink);
}
.kpi-dtable th,
.kpi-dtable td {
  padding: 9px 12px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--cfp-tbl-row);
}
.kpi-dtable thead th {
  color: var(--cfp-head);
  font-weight: 700;
  border-bottom: 2px solid var(--cfp-blue);
}
.kpi-dtable th.kpi-dtable__lead,
.kpi-dtable td.kpi-dtable__lead { text-align: left; white-space: normal; }
.kpi-dtable .is-current { color: var(--cfp-blue); font-weight: 700; }
.kpi-dtable tbody tr.kpi-dtable__strong td { font-weight: 700; color: var(--cfp-head); }
.kpi-dtable tbody tr.kpi-dtable__section td {
  font-weight: 700;
  color: var(--cfp-head);
  border-bottom-color: var(--cfp-blue);
}
