/* =================================================================
   DSNG Sustainability Report 2025 — Interactive PWA
   Design system: elegant, nature-inspired, dependency-free
   ================================================================= */

:root {
  /* Palette — forest / emerald / earth */
  --green-900: #07120e;
  --green-800: #0b3a2c;
  --green-700: #0e5c46;
  --green-600: #137a5c;
  --green-500: #1f9d6b;
  --green-400: #34b87f;
  --green-300: #7bc8a4;
  --green-100: #cfe8da;
  --gold: #c9a24b;
  --sand: #f4efe6;

  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-2: #eef3ee;
  --ink: #112019;
  --ink-soft: #4b5b53;
  --line: #e1e8e1;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(7, 18, 14, .06);
  --shadow: 0 10px 30px rgba(7, 18, 14, .10);
  --shadow-lg: 0 24px 60px rgba(7, 18, 14, .18);

  --sidebar-w: 280px;
  --header-h: 64px;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --bg: #0a1410;
  --surface: #0f1e18;
  --surface-2: #13241d;
  --ink: #eaf3ee;
  --ink-soft: #9fb4aa;
  --line: #1d322a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; font-weight: 700; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout shell ---------- */
.app { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--green-800), var(--green-900));
  color: #eafff6;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: transform .35s var(--ease);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-logo {
  height: 34px; width: auto; flex: none;
  object-fit: contain;
}
.brand-title {
  display: flex; flex-direction: column; line-height: 1.1;
  padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .18);
}
.brand-title .bt-line1 {
  font-family: var(--serif); font-weight: 700; font-size: .9rem; color: #fff;
  letter-spacing: 1.2px; text-transform: uppercase;
}
.brand-title .bt-line2 {
  font-size: .66rem; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--green-300); font-weight: 700;
}

.nav { padding: 14px 12px; overflow-y: auto; flex: 1; }
.nav::-webkit-scrollbar { width: 8px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; }

.nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #d7eee4;
  font-size: .92rem;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  position: relative;
  border: 1px solid transparent;
}
.nav-item svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.nav-item:hover { background: rgba(255, 255, 255, .07); transform: translateX(3px); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(31,157,107,.35), rgba(31,157,107,.1));
  color: #fff;
  border-color: rgba(52, 184, 127, .4);
}
.nav-item.active::before {
  content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 60%; background: var(--gold); border-radius: 0 4px 4px 0;
}

.sidebar-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .72rem; color: var(--green-300);
}

/* ---------- Main ---------- */
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }

.topbar {
  height: var(--header-h);
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
/* header brand shown only on mobile (the sidebar already carries it on desktop) */
.header-brand { display: none; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.topbar .lang-toggle, .topbar #themeBtn, .topbar #hamburger { flex: none; }
.header-brand .hb-logo { height: 30px; width: auto; flex: none; }
.header-title {
  display: flex; flex-direction: column; justify-content: center;
  line-height: 1.1; padding-left: 12px; min-width: 0;
  border-left: 1px solid var(--line);
}
.header-title .ht-line1 {
  font-family: var(--serif); font-weight: 700; font-size: .92rem; color: var(--ink);
  letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap;
}
.header-title .ht-line2 {
  font-size: .68rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green-600); font-weight: 700; white-space: nowrap;
}
[data-theme="dark"] .header-title .ht-line2 { color: var(--green-400); }
/* keep the colour logo legible on a dark topbar */
[data-theme="dark"] .header-brand .hb-logo { background: rgba(255,255,255,.92); border-radius: 6px; padding: 3px 5px; }

.topbar .crumb { font-size: .82rem; color: var(--ink-soft); flex: 1; text-align: right; }
.topbar .crumb b { color: var(--ink); font-family: var(--serif); }

.icon-btn {
  width: 40px; height: 40px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  border-radius: 11px; cursor: pointer; display: grid; place-items: center;
  transition: background .2s, transform .15s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }

.lang-toggle {
  display: flex; border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  font-size: .8rem; font-weight: 600;
}
.lang-toggle button { border: 0; background: var(--surface); color: var(--ink-soft); padding: 9px 12px; cursor: pointer; }
.lang-toggle button.on { background: var(--green-600); color: #fff; }

#hamburger { display: none; }

/* ---------- Content / sections ---------- */
.content { padding: 34px clamp(18px, 4vw, 54px) 80px; max-width: 1160px; }
.section { display: none; animation: fade .5s var(--ease); }
.section.show { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.section-head { margin-bottom: 26px; }
.section-head .eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green-600); font-weight: 700; margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.section-head .lead { color: var(--ink-soft); max-width: 720px; margin-top: 10px; font-size: 1.05rem; }
/* pillar header: eyebrow on top, then icon + title row, then lead below */
.section-head.pillar-head .sh-head { display: flex; align-items: center; gap: 16px; margin: 4px 0 10px; }
.section-head.pillar-head .sh-icon { flex: none; width: 72px; height: 72px;
  display: grid; place-items: center; }
.section-head.pillar-head .sh-icon img { width: 72px; height: 72px; object-fit: contain; }
.section-head.pillar-head h2 { margin: 0; min-width: 0; }
.section-head.pillar-head .lead { margin-top: 0; }
@media (max-width: 560px) {
  .section-head.pillar-head .sh-icon { width: 56px; height: 56px; }
  .section-head.pillar-head .sh-icon img { width: 56px; height: 56px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; border-radius: 26px; overflow: hidden;
  background: linear-gradient(135deg, var(--green-800), var(--green-600) 60%, var(--green-500));
  color: #eafff6; padding: clamp(34px, 6vw, 70px);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  min-height: clamp(360px, 56vw, 560px);
  display: flex; flex-direction: column; justify-content: center;
}
/* cover image fills the hero; a gradient keeps the overlaid text readable */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: url('../cover_sr25.png');
  background-size: cover; background-position: center top;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(7,18,14,.86) 0%, rgba(11,58,44,.72) 42%, rgba(11,58,44,.18) 100%),
    linear-gradient(0deg, rgba(7,18,14,.55), transparent 55%);
}
.hero .leaf-deco {
  position: absolute; right: -40px; bottom: -40px; width: 320px; opacity: .12; z-index: -1;
  transform: rotate(-12deg);
}
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 14px; border-radius: 999px; font-size: .78rem; letter-spacing: .5px;
  margin-bottom: 18px; backdrop-filter: blur(6px);
}
.hero .tag svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: 8px; }
.hero .sub { font-size: clamp(1rem, 2.4vw, 1.4rem); color: var(--green-100); font-style: italic; font-family: var(--serif); }
.hero .company { margin-top: 18px; font-weight: 600; letter-spacing: .3px; }
.hero .company small { display:block; color: var(--green-100); font-weight: 400; }
.hero .cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
  font-size: .95rem;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gold); color: #1c1405; box-shadow: 0 10px 24px rgba(201,162,75,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201,162,75,.5); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

/* ---------- App-style launcher grid (home) ---------- */
.launch-head { display: flex; align-items: baseline; justify-content: space-between;
  margin: 34px 2px 16px; }
.launch-head h3 { font-size: 1.3rem; }
.launch-head span { font-size: .82rem; color: var(--ink-soft); }

.launch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.launch-tile {
  position: relative; overflow: hidden; cursor: pointer; text-align: left;
  border: 0; border-radius: 20px; padding: 18px; color: #fff;
  min-height: 140px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow); transition: transform .22s var(--ease), box-shadow .22s;
  font-family: inherit;
}
.launch-tile::after { /* subtle sheen */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120px 120px at 85% -10%, rgba(255,255,255,.28), transparent 70%);
}
.launch-tile:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow-lg); }
.launch-tile:active { transform: translateY(-2px) scale(.99); }
.launch-tile .lt-ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.22); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.3); flex: none; position: relative;
}
.launch-tile .lt-ic svg { width: 26px; height: 26px; }
.launch-tile .lt-text { margin-top: auto; position: relative; }
.launch-tile .lt-title { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.18rem; line-height: 1.18; }
.launch-tile .lt-sub { display: block; font-size: .8rem; opacity: .9; margin-top: 3px; }
/* gradient tones */
.launch-tile.l1 { background: linear-gradient(150deg, #0e5c46, #1f9d6b); }
.launch-tile.l2 { background: linear-gradient(150deg, #0b3a2c, #137a5c); }
.launch-tile.l3 { background: linear-gradient(150deg, #1f9d6b, #34b87f); }
.launch-tile.l4 { background: linear-gradient(150deg, #137a5c, #7bc8a4); }
.launch-tile.l5 { background: linear-gradient(150deg, #0e5c46, #c9a24b); }
.launch-tile.l6 { background: linear-gradient(150deg, #0b3a2c, #4b5b53); }

@media (max-width: 720px) { .launch-grid { gap: 12px; } }
@media (max-width: 480px) {
  .launch-grid { grid-template-columns: repeat(2, 1fr); }
  .launch-tile { min-height: 124px; }
}

/* ---------- Generic blocks ---------- */
.block { margin: 30px 0; }
.block > h3 { font-size: 1.3rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.block > h3::before { content: ''; width: 6px; height: 22px; background: var(--green-500); border-radius: 4px; }

.prose p { color: var(--ink-soft); font-size: 1.04rem; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--green-500); }

/* two-column prose (report page 3); stacks on mobile */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.col-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--green-500); }
.col-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.col-card p { color: var(--ink-soft); font-size: .98rem; line-height: 1.65; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } }

/* portrait photo floated top-left inside prose/quote (e.g. a director) */
.portrait { float: left; margin: 0 18px 12px 0; width: 120px; }
.portrait img { width: 120px; height: 150px; object-fit: cover; border-radius: 14px;
  box-shadow: var(--shadow); display: block; }
.portrait figcaption { margin-top: 8px; font-family: var(--serif); font-weight: 700;
  font-size: .9rem; line-height: 1.2; }
.portrait figcaption span { display: block; font-family: var(--sans); font-weight: 500;
  font-size: .76rem; color: var(--ink-soft); margin-top: 2px; }
.prose.with-photo, .quote.with-photo { overflow: hidden; } /* contain the float */
.quote.with-photo .portrait figcaption { color: #fff; }
.quote.with-photo .portrait figcaption span { color: var(--green-100); }
.with-photo::after { content: ''; display: block; clear: both; }
@media (max-width: 480px) {
  /* keep the portrait floated top-left like desktop, just a touch smaller */
  .portrait { float: left; margin: 0 14px 10px 0; width: 92px; }
  .portrait img { width: 92px; height: 115px; }
  .portrait figcaption { font-size: .8rem; }
  .portrait figcaption span { font-size: .7rem; }
}

/* cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--green-300); }
.feature .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-600), var(--green-400)); color: #fff; margin-bottom: 14px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h4 { font-size: 1.12rem; margin-bottom: 7px; }
.feature p { color: var(--ink-soft); font-size: .95rem; }

/* icon-side variant: icon on the left, two-line title beside it, text below */
/* icon-side: header row (icon + two-line title), description below full-width */
.feature.iconside .fhead { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.feature.iconside .ic { margin-bottom: 0; flex: none; }
.feature.iconside .ftitle { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.feature.iconside .ftitle .t1 {
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--green-700);
}
[data-theme="dark"] .feature.iconside .ftitle .t1 { color: var(--green-400); }
.feature.iconside .ftitle .t2 {
  font-size: .95rem; font-weight: 600; color: var(--ink); letter-spacing: .2px;
}
.feature.iconside p { margin-top: 0; }

/* icon-row variant: icon on the left, full title beside it, text below */
.feature.iconrow { display: flex; align-items: flex-start; gap: 16px; }
.feature.iconrow .ic { margin-bottom: 0; flex: none; }
.feature.iconrow .fc { min-width: 0; }
.feature.iconrow h4 { margin-bottom: 6px; }
.feature.iconrow p { margin-top: 0; }

/* icon-head: header row (icon + title beside it), description full-width below */
.feature.iconhead .fhead { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.feature.iconhead .ic { margin-bottom: 0; flex: none; }
.feature.iconhead h4 { margin: 0; min-width: 0; }
.feature.iconhead p { margin-top: 0; }

/* stats grid */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat::before { content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, var(--green-500), var(--gold)); }
.stat .num { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--green-700); }
[data-theme="dark"] .stat .num { color: var(--green-400); }
.stat .lbl { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }

/* charts */
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); }
.chart-card .cap { color: var(--ink-soft); font-size: .85rem; margin-top: 10px; }
.chart-wrap { width: 100%; }
.chart-svg { display: block; width: 100%; height: auto; -webkit-tap-highlight-color: transparent; }
/* interactive chart elements */
.chart-svg [data-tip] { transition: opacity .15s; }
.chart-svg [data-tip]:hover { opacity: .85; }
.chart-svg .chart-active { filter: drop-shadow(0 2px 6px rgba(7,18,14,.35)); }
.chart-hint { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem;
  color: var(--green-600); font-weight: 600; margin-top: 12px; }
[data-theme="dark"] .chart-hint { color: var(--green-400); }
.chart-hint svg { width: 15px; height: 15px; }

/* floating tooltip shown on tap/click */
.chart-tip {
  position: absolute; z-index: 80; pointer-events: none;
  background: var(--green-800); color: #fff; padding: 8px 12px; border-radius: 10px;
  font-size: .82rem; line-height: 1.3; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
  white-space: nowrap; max-width: 70vw;
}
.chart-tip.show { opacity: 1; transform: none; }
.chart-tip b { display: block; font-family: var(--serif); font-size: .9rem; }
.chart-tip span { color: var(--green-100); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.legend .li { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-soft); }
.legend .dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.donut-flex { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.donut-flex .chart-wrap { width: 200px; flex: none; }

/* SDG */
/* SDG grid: full-width columns so the right edge is always flush.
   8 across on desktop/tablet, 4 across on phones. */
.sdg-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.sdg {
  width: auto; height: auto; aspect-ratio: 1 / 1;
  border-radius: 14px; color: #fff; font-weight: 700;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 8px; box-shadow: var(--shadow-sm); transition: transform .2s;
  font-size: .62rem; line-height: 1.1;
}
.sdg:hover { transform: scale(1.06); }
.sdg b { font-size: 1.4rem; font-family: var(--serif); }
.sdg span { display: block; }
/* image-based SDG tile: let the official icon fill the square */
.sdg.sdg-img { padding: 0; overflow: hidden; background: transparent; box-shadow: var(--shadow-sm); }
.sdg.sdg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* a tile that fell back to the coloured number keeps its centred layout */
.sdg.tile { padding: 8px; }

/* accordion */
.acc-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px;
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.acc-q { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; cursor: pointer; font-weight: 600; }
.acc-q .chev { transition: transform .3s; color: var(--green-600); display: inline-flex; }
.acc-q .chev svg { width: 18px; height: 18px; }
.acc-item.open .acc-q .chev { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-a p { padding: 0 20px 18px; color: var(--ink-soft); }

/* badges */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.cert {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s;
}
.cert:hover { transform: translateY(-4px); border-color: var(--gold); }
.cert .seal { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: #fff; font-size: .8rem;
  background: linear-gradient(135deg, var(--green-700), var(--green-500)); box-shadow: var(--shadow-sm); }
/* official certification logo — fixed box so logos of different shapes align */
.cert-logo { height: 64px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.cert-logo img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
[data-theme="dark"] .cert-logo { background: rgba(255,255,255,.92); border-radius: 10px; padding: 6px; }
.cert b { display: block; font-size: 1rem; }
.cert span { font-size: .78rem; color: var(--ink-soft); }

/* table */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .92rem; min-width: 560px; }
table.data th { background: var(--green-700); color: #fff; text-align: left; padding: 14px 16px; font-weight: 600; }
table.data td { padding: 13px 16px; border-top: 1px solid var(--line); color: var(--ink-soft); }
table.data tr:nth-child(even) td { background: var(--surface-2); }
table.data td:first-child { color: var(--ink); font-weight: 600; }

/* timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--green-500), var(--green-300)); }
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--green-500); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--green-500); }
.tl-item .yr { font-family: var(--serif); font-weight: 700; color: var(--green-700); font-size: 1.15rem; }
[data-theme="dark"] .tl-item .yr { color: var(--green-400); }
.tl-item p { color: var(--ink-soft); }

/* quote */
.quote { background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: #eafff6;
  border-radius: var(--radius); padding: 34px; position: relative; box-shadow: var(--shadow); }
.quote .mark { font-family: var(--serif); font-size: 5rem; line-height: .6; opacity: .35; }
.quote p { font-size: 1.25rem; font-style: italic; font-family: var(--serif); margin: 4px 0 14px; }
.quote .by { color: var(--green-100); font-size: .9rem; }

/* gallery */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gal {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; align-items: flex-end; padding: 16px; color: #fff; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .25s;
}
.gal:hover { transform: scale(1.02); }
.gal::after { content:''; position:absolute; inset:0; background: linear-gradient(transparent, rgba(0,0,0,.55)); z-index:0; }
.gal span { position: relative; z-index: 1; font-weight: 600; }
.gal.g1 { background: linear-gradient(135deg,#0e5c46,#1f9d6b); }
.gal.g2 { background: linear-gradient(135deg,#137a5c,#34b87f); }
.gal.g3 { background: linear-gradient(135deg,#0b3a2c,#137a5c); }
.gal.g4 { background: linear-gradient(135deg,#1f9d6b,#7bc8a4); }
.gal.g5 { background: linear-gradient(135deg,#c9a24b,#137a5c); }
.gal.g6 { background: linear-gradient(135deg,#0e5c46,#c9a24b); }

/* video */
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm); }
.video-frame { aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, var(--green-800), var(--green-600)); display: grid; place-items: center; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; }
.video-frame .ph { text-align: center; color: #eafff6; padding: 20px; }
.video-frame .ph .play { width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: grid; place-items: center; border: 2px solid rgba(255,255,255,.5); }
.video-frame .ph .play svg { width: 30px; height: 30px; }

/* download cta */
.dl { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: #fff;
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.dl .ic { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.18);
  display: grid; place-items: center; flex: none; }
.dl .ic svg { width: 28px; height: 28px; }
.dl .txt { flex: 1; min-width: 200px; }
.dl .txt b { font-family: var(--serif); font-size: 1.1rem; }
.dl .txt p { color: var(--green-100); font-size: .9rem; }

/* note banner */
.note-banner {
  display: flex; gap: 12px; align-items: flex-start;
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: .88rem; color: var(--ink-soft);
  margin-bottom: 24px;
}
.note-banner svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 2px; }

/* "Baca Selengkapnya" button */
.more-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--green-500); background: transparent; color: var(--green-700);
  font-weight: 600; font-size: .9rem; font-family: inherit;
  transition: background .2s, color .2s, transform .15s;
}
[data-theme="dark"] .more-btn { color: var(--green-300); }
.more-btn:hover { background: var(--green-600); color: #fff; transform: translateY(-1px); }
.more-btn svg { width: 17px; height: 17px; }
.quote .more-btn { border-color: rgba(255,255,255,.6); color: #fff; }
.quote .more-btn:hover { background: rgba(255,255,255,.18); }

/* detail modal */
.modal {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(7,18,14,.55); backdrop-filter: blur(4px);
}
.modal.show { display: flex; animation: fade .25s var(--ease); }
.modal-card {
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
  width: min(720px, 100%); max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); position: relative; padding: 30px clamp(20px, 4vw, 38px) 34px;
}
.modal-x {
  position: sticky; top: 0; float: right; margin: -8px -8px 0 0;
  width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--ink);
}
.modal-x:hover { background: var(--surface-2); }
.modal-x svg { width: 18px; height: 18px; }
.modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); line-height: 1.2; }
.md-eyebrow { display: block; font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--green-600); font-weight: 700; margin-bottom: 4px; }
[data-theme="dark"] .md-eyebrow { color: var(--green-400); }
.md-portrait { flex: none; margin: 0; width: 84px; }
.md-portrait img { width: 84px; height: 100px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-sm); }
.md-portrait figcaption { display: none; }
/* pillar badge: square, uncropped, no shadow */
.md-portrait.md-badge { width: 72px; }
.md-portrait.md-badge img { width: 72px; height: 72px; object-fit: contain; box-shadow: none; border-radius: 14px; }
.modal-body h4 { font-family: var(--serif); color: var(--green-700); margin: 20px 0 8px; font-size: 1.08rem; }
[data-theme="dark"] .modal-body h4 { color: var(--green-300); }
.modal-body p { color: var(--ink-soft); margin-bottom: 12px; line-height: 1.7; }
.modal-body p:last-child { margin-bottom: 0; font-style: italic; color: var(--ink); }
@media (max-width: 480px) {
  .modal { padding: 0; }
  .modal-card { max-height: 100vh; border-radius: 0; width: 100%; }
}

/* footer */
.foot { padding: 26px clamp(18px,4vw,54px); border-top: 1px solid var(--line); color: var(--ink-soft);
  font-size: .82rem; display:flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* overlay for mobile drawer */
.overlay { position: fixed; inset: 0; background: rgba(7,18,14,.5); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.show { opacity: 1; pointer-events: auto; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* scroll-to-top */
#toTop { position: fixed; right: 22px; bottom: 22px; z-index: 45; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s; box-shadow: var(--shadow); }
#toTop.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  #hamburger { display: grid; }
  .header-brand { display: flex; } /* sidebar is hidden behind the burger, so show brand here */
}

@media (max-width: 720px) {
  /* On small screens the breadcrumb competes with the two-line title — hide it */
  .topbar .crumb { display: none; }
}

@media (max-width: 560px) {
  .lang-toggle button { padding: 9px 10px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .hero { padding: 28px 22px; }
  /* tighten the header brand so 'SUSTAINABILITY' isn't clipped */
  .header-brand { gap: 8px; }
  .header-brand .hb-logo { height: 26px; }
  .header-title { padding-left: 9px; }
  .header-title .ht-line1 { font-size: .82rem; letter-spacing: .6px; }
  .header-title .ht-line2 { font-size: .6rem; letter-spacing: 1px; }
  .sdg-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}

@media (max-width: 380px) {
  /* very small phones: drop the colour logo, keep the wordmark readable */
  .header-brand .hb-logo { display: none; }
  .header-title { padding-left: 0; border-left: 0; }
  .header-title .ht-line1 { font-size: .8rem; }
}

/* install banner */
#installBar {
  display: none; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--green-700); color: #fff; padding: 12px 18px; font-size: .9rem;
}
#installBar.show { display: flex; }
#installBar .btn { padding: 8px 14px; }