/* =========================================================
   DECARBONISATION ROADMAP PAGE
   css/decarbonisation-roadmap.css
   ========================================================= */

/* ── Token aliases ── */
:root {
  --dr-thermal: #2a357e;
  --dr-cg:      #b8cad8;
  --dr-nz-bg:   #1d6e3a;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.dr-hero {
  position: relative;
  padding: 86px 0 100px;
  overflow: hidden;
  color: #fff;
  min-height: 440px;
  display: flex;
  align-items: center;
}

.dr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/decarbon-bg.jpg') center 30% / cover no-repeat;
  z-index: 0;
}

.dr-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(8, 20, 8, 0.90) 0%,
    rgba(8, 20, 8, 0.76) 55%,
    rgba(8, 20, 8, 0.55) 100%
  );
  z-index: 0;
}

.dr-hero .tp { position: relative; z-index: 1; }

.dr-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.dr-hero-eyebrow .sep {
  display: inline-block;
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.35);
}

.dr-hero h1 {
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: #fff;
  margin: 0 0 30px;
}

.dr-hero-lead {
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 300;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.84);
  max-width: 800px;
  margin: 0;
}

/* ═══════════════════════════════════════
   MAIN CONTENT SECTION
═══════════════════════════════════════ */
.dr-content {
  padding: 50px 0 72px;
  background: var(--bg);
}

.dr-main-grid {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 52px;
  align-items: start;
}

/* ─────────────────────────────────────
   LEFT: CATEGORY LISTS
───────────────────────────────────── */
.dr-cat {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.dr-cat:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.dr-cat-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.dr-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dr-cat-list li {
  position: relative;
  padding-left: 14px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 4px;
}
.dr-cat-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green, #00944a);
  font-size: 11px;
  line-height: 1.8;
}

/* ─────────────────────────────────────
   RIGHT COLUMN
───────────────────────────────────── */
.dr-right {
  display: flex;
  flex-direction: column;
}

/* ── Net Zero Card ── */
.dr-nz-card {
  background: #00944a;
  padding: 26px 26px 28px;
  color: #fff;
}

.dr-nz-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.55;
  margin: 0 0 6px;
}

.dr-nz-year-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.dr-nz-year {
  font-size: 74px;
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #fff;
  display: block;
}

.dr-nz-sdg-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.dr-nz-sdg-icons img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.dr-nz-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dr-nz-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13.5px;
  font-weight: 300;
  color: #fff;
  line-height: 1.5;
}
.dr-nz-list li::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  margin-top: 7px;
}

/* ── Evolving Generation Mix ── */
.dr-genmix {
  background: #00944a;
  border: 1px solid var(--border);
  border-top: none;
  padding: 22px 22px 22px;
}

.dr-genmix-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.dr-genmix-charts {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.dr-genmix-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1;
}

/* ── Donut chart ── */
.dr-donut-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}
.dr-donut {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 32px, black 33px);
          mask: radial-gradient(circle, transparent 32px, black 33px);
}
.dr-donut-lbl {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  pointer-events: none;
}

.dr-pct {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.dr-pct--cg  { color: #4a88b3; }
.dr-pct--th  { color: var(--dr-thermal); }

/* ── Legend ── */
.dr-genmix-legend {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}
.dr-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #fff;
}
.dr-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dr-thermal-dot { background: var(--dr-thermal); }
.dr-cg-dot      { background: var(--dr-cg); }

/* ═══════════════════════════════════════
   TIMELINE ARROW STRIP
═══════════════════════════════════════ */
.dr-timeline {
  background: #0b1c0c;
  padding: 56px 0 68px;
}

.dr-arrows {
  display: flex;
  align-items: stretch;
  width: 100%;
  column-gap: 50px;
}

.dr-arrow-chip {
  position: relative;
  flex: 1;
  padding: 28px 64px 28px 36px;
  color: #fff;
  background: #152a18;
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
  margin-right: -18px;
  z-index: 1;
  transition: background 0.2s ease;
}
.dr-arrow-chip:nth-child(2) { background: #1a3320; z-index: 2; }
.dr-arrow-chip:nth-child(3) { background: #1f3e25; z-index: 3; margin-right: 0; padding-right: 36px; }

.dr-arrow-chip:hover { filter: brightness(1.12); }

.dr-arrow-yr {
  display: inline-block;
  background: var(--yellow, #ffcc1b);
  color: #111;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 14px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  border-radius: 20px;
}

.dr-arrow-chip p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 220px;
}

/* ═══════════════════════════════════════
   DARK MODE
═══════════════════════════════════════ */
html[data-theme='dark'] .dr-nz-card      { background: #00944a; }

html[data-theme='dark'] .dr-genmix {
  background: #00944a;
  border-color: var(--border);
}
html[data-theme='dark'] .dr-genmix-legend { border-top-color: var(--border); }

html[data-theme='dark'] .dr-pct--cg  { color: #7ab5d8; }
html[data-theme='dark'] .dr-pct--th  { color: #8898cc; }
html[data-theme='dark'] .dr-donut-lbl { color: var(--text); }

html[data-theme='dark'] .dr-timeline { background: #060e07; }
html[data-theme='dark'] .dr-arrow-chip:nth-child(1) { background: #0f2011; }
html[data-theme='dark'] .dr-arrow-chip:nth-child(2) { background: #132717; }
html[data-theme='dark'] .dr-arrow-chip:nth-child(3) { background: #182e1c; }

html[data-theme='dark'] .dr-cat-list li { color: var(--text); }
html[data-theme='dark'] .dr-cat-title   { color: var(--text); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1100px) {
  .dr-main-grid {
    grid-template-columns: 1fr 370px;
    gap: 36px;
  }
}

@media (max-width: 920px) {
  .dr-main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .dr-right {
    max-width: 580px;
  }
}

@media (max-width: 680px) {
  .dr-hero {
    padding: 64px 0 72px;
    min-height: 320px;
  }
  .dr-content { padding: 36px 0 52px; }

  .dr-arrows {
    flex-direction: column;
    row-gap: 50px;
  }
  .dr-arrow-chip {
    clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
    margin-right: 0;
    margin-bottom: -18px;
    padding: 26px 36px 48px;
    z-index: unset;
  }
  .dr-arrow-chip:nth-child(2) { z-index: unset; }
  .dr-arrow-chip:nth-child(3) {
    clip-path: none;
    margin-bottom: 0;
    padding-bottom: 28px;
  }
  .dr-arrow-chip p { max-width: 100%; }

  .dr-timeline { padding: 36px 0 50px; }
}

@media (max-width: 480px) {
  .dr-donut-wrap { width: 80px; height: 80px; }
  .dr-donut {
    -webkit-mask: radial-gradient(circle, transparent 26px, black 27px);
            mask: radial-gradient(circle, transparent 26px, black 27px);
  }
  .dr-donut-lbl  { font-size: 10px; }
  .dr-nz-year    { font-size: 58px; }
}
