/* ─── Fonts ─────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&family=Figtree:wght@400;500;600;700&display=swap');

/* ─── Design tokens ─────────────────────────────────────────────────────── */
:root {
  /* Brand palette: navy, green, blue */
  --navy:       #000044;
  --green:      #56DEA6;
  --blue:       #00A7FF;
  /* Green and blue fail contrast as text on light; these shades reach WCAG AA */
  --green-text: #0B6B47;
  --blue-text:  #00639E;

  --bg:         #F4F5F8;
  --surface:    #FFFFFF;
  --border:     #E1E3EC;
  --text:       #14163A;
  --muted:      #4A4F6E;
  --accent:     var(--blue-text);
  --radius:     10px;
  --shadow:     0 2px 12px rgba(0,0,0,0.06);
  --fg:         var(--text);
  --bg2:        #E9EBF2;
  --font-display: 'Jost', 'Futura', system-ui, sans-serif;
  --font-body:    'Figtree', system-ui, sans-serif;

  --green-bg:   #DDF8EC;
  --green-fg:   var(--green-text);
  --blue-bg:    #D9F1FF;
  --blue-fg:    var(--blue-text);
  --slate-bg:   #ECEEF5;
  --slate-fg:   #3A3F66;

  /* Theme colours: green for Green ICT, blue for Greening by ICT */
  --gict-bg:    #DDF8EC;
  --gict-fg:    var(--green-text);
  --gbict-bg:   #D9F1FF;
  --gbict-fg:   var(--blue-text);

  /* Map steps for 1-3, 4-9, 10-19 and 20+ cases, per theme; --map-0 is a country with none */
  --map-0:      #EEF0F5;
  --map-g1: #B8F0D8; --map-g2: #56DEA6; --map-g3: #1FA571; --map-g4: #0B6B47;
  --map-b1: #99DCFF; --map-b2: #00A7FF; --map-b3: #0077C2; --map-b4: #00447A;
  --map-n1: #C9CCE0; --map-n2: #8C91BA; --map-n3: #45498A; --map-n4: #000044;

  /* Pathway badge */
  --path-bg:    #E8F6FF;
  --path-fg:    var(--blue-text);

  color-scheme: light;
}

/* ─── Reset + base ──────────────────────────────────────────────────────── */
html { scrollbar-gutter: stable; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

h1, h2, h3, #site-title, .card-title, #detail-title, .chart-title { font-family: var(--font-display); }

img { max-width: 100%; }
[hidden] { display: none !important; }

/* ─── Icons (drawings in icons.svg; --accent-c colours their accent parts) ─ */
.ico {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.disc {
  display: inline-grid; place-items: center; flex: none;
  border-radius: 50%; color: var(--navy);
}
.disc-green { background: #DDF8EC; --accent-c: var(--green-text); }
.disc-blue  { background: #D9F1FF; --accent-c: var(--blue-text); }

/* ─── Site header ───────────────────────────────────────────────────────── */
#site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--green);
  padding: 14px 24px 0;
}

#header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

#header-left {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

#header-left { text-decoration: none; color: inherit; }

#site-title {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
#site-title b { font-weight: 600; color: var(--green); }
/* The tagline sits under the wordmark */
#header-left { flex-direction: row; align-items: center; gap: 12px; padding-bottom: 14px; }
/* The two interlocked rings, the site's own mark, beside the wordmark */
#site-mark { width: 44px; height: 44px; flex: none; }
#header-words { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
#site-tagline { font-family: var(--font-body); font-size: 12.5px; color: rgba(255,255,255,0.8); }
#topbar[hidden] { display: none; }

#site-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
#site-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 10px 11px;
  border-radius: 8px 8px 0 0;
  --accent-c: var(--green);
}
#site-tabs a:hover { color: #fff; }
#site-tabs a:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
#site-tabs a.active { color: #fff; background: rgba(255,255,255,0.14); }
/* The folder tab covers the green line, so it runs straight into the white page menu */
#site-tabs a.folder,
#site-tabs a.folder:hover {
  position: relative;
  margin-bottom: -3px;
  padding-bottom: 14px;
  background: var(--surface);
  color: var(--navy);
  font-weight: 700;
  --accent-c: var(--green-text);
}
#site-tabs a.folder:focus-visible { outline-color: var(--blue-text); }

#site-foot {
  text-align: center;
  padding: 24px 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  background: var(--navy);
  border-top: 3px solid var(--green);
  margin-top: 40px;
}
#site-foot a { color: var(--green); }

/* ─── Phone menu: the sections behind one button, below the width where they fit ─ */
#menu-btn, #site-menu { display: none !important; }
@media (max-width: 1139px) {
  #site-header { padding-bottom: 11px; }
  #header-inner { align-items: center; }
  #header-left { padding-bottom: 0; }
  #site-tabs { display: none; }
  #menu-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    flex: none;
    background: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    padding: 7px 12px;
    font: 500 0.88rem var(--font-body);
    cursor: pointer;
  }
  #menu-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
  .burger { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }
  #site-menu:not([hidden]) {
    display: block !important;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 6px 0;
  }
  #site-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
  }
  #site-menu a.active { background: var(--bg); font-weight: 700; }
  #site-menu a:focus-visible { outline: 2px solid var(--blue-text); outline-offset: -2px; }
  #site-menu .disc { width: 30px; height: 30px; }
}

/* ─── Tab bar ───────────────────────────────────────────────────────────── */
/* The chrome wrapper takes no box of its own, so the page menu can stick to the top of the whole page */
#site-chrome { display: contents; }
#topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

#topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#topbar-inner::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 14px 20px;
  border: none;
  border-radius: 0;
  background: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.tab-btn:hover { color: var(--accent); }
.tab-btn.active {
  color: var(--accent);
  font-weight: 700;
  border-bottom-color: var(--accent);
}
.tab-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ─── Tab panels (kept for backward compat) ─────────────────────────────── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Filter area ───────────────────────────────────────────────────────── */
#filter-area {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px 10px;
  position: relative;
  z-index: 300;
}

#filter-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#search-input {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
#search-input:focus { border-color: var(--accent); }
#search-input::placeholder { color: var(--muted); }

/* Theme toggle pills */
.theme-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.theme-pill {
  padding: 6px 13px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.theme-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}
.theme-pill.active[data-theme="green-ict"] {
  background: var(--gict-bg);
  color: var(--gict-fg);
  border-color: var(--gict-fg);
  font-weight: 600;
}
.theme-pill.active[data-theme="greening-by-ict"] {
  background: var(--gbict-bg);
  color: var(--gbict-fg);
  border-color: var(--gbict-fg);
  font-weight: 600;
}
.theme-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Dropdown filter controls */
.dropdown-wrap { position: relative; }

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.dropdown-btn:hover { border-color: var(--accent); }
.dropdown-btn.has-selection {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.dropdown-btn .dd-caret { font-size: 10px; opacity: 0.55; }
.dropdown-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  padding: 4px 0;
}
.dropdown-panel.open { display: block; }

.dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: background 0.1s;
  user-select: none;
}
.dd-item:hover { background: var(--bg); }
.dd-item input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.dd-item .dd-item-label { flex: 1; }
.dd-item .dd-item-count {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ─── Active filter chips ───────────────────────────────────────────────── */
#chips-area {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 0 16px;
}
#chips-area:not(.has-chips) { display: none; }

#chips-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.chip-x {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  font-family: inherit;
  display: flex;
  align-items: center;
  border-radius: 3px;
}
.chip-x:hover { color: var(--text); }
.chip-x:focus-visible { outline: 2px solid var(--accent); }

.clear-all-btn {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  transition: background 0.1s;
}
.clear-all-btn:hover { background: var(--blue-bg); }
.clear-all-btn:focus-visible { outline: 2px solid var(--accent); }

/* ─── Result count ──────────────────────────────────────────────────────── */
#result-count {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px 4px;
  font-size: 13px;
  color: var(--muted);
}
#result-count strong { color: var(--text); }

/* ─── Cards grid ────────────────────────────────────────────────────────── */
#cards-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
  text-align: left;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: var(--border);
}

.card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.case-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.case-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.badge-gict  { background: var(--green); color: var(--navy); }
.badge-gbict { background: var(--blue);  color: var(--navy); }
.badge-tier  { background: var(--slate-bg); color: var(--slate-fg); }
.badge-path  { background: var(--path-bg);  color: var(--path-fg); }
.badge-sect  { background: #fef9c3; color: #854d0e; }
/* Pathway and sector tags carry their icon, in the tag's own text colour */
.badge .ico { width: 16px; height: 16px; margin-right: 4px; stroke-width: 1.9; --accent-c: currentColor; }
.badge-tech  { background: #f5f3ff; color: #5b21b6; }
.badge-geo   { background: #e2e8f0; color: #334155; }
.badge-monitoring { background: transparent; color: #7a4a0d; border: 1px solid currentColor; }

.card-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.card-pathways {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.card-abstract {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-org {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p { font-size: 14px; }

/* ─── Detail panel (centered modal) ─────────────────────────────────────── */
#detail-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 300;
}
#detail-backdrop.open { display: block; }

#detail-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.94);
  width: min(740px, 94vw);
  max-height: 88vh;
  max-height: 88dvh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  z-index: 400;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.18s ease;
}
#detail-panel.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 540px) {
  #detail-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 92dvh;
    border-radius: 14px 14px 0 0;
    transform: translateY(100%);
    opacity: 1;
  }
  #detail-panel.open {
    transform: translateY(0);
  }
}

#detail-head {
  position: sticky;
  top: 0;
  background: var(--navy);
  border-bottom: 3px solid var(--green);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  z-index: 10;
}

#detail-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 20px;
  color: rgba(255,255,255,0.8);
  border-radius: 6px;
  line-height: 1;
  transition: color 0.1s, background 0.1s;
}
#detail-close:hover { color: #fff; background: rgba(255,255,255,0.12); }
#detail-close:focus-visible { outline: 2px solid var(--accent); }

#detail-head-text { flex: 1; min-width: 0; }
.detail-case-id {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--green);
  margin-bottom: 4px;
}
#detail-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

#detail-body {
  padding: 18px 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.dsec-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 7px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.meta-cell {
  background: var(--bg);
  border-radius: 7px;
  padding: 9px 11px;
}
.meta-cell-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 3px;
}
.meta-cell-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sdg-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--surface);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.detail-abstract {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 7px 7px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

/* Markdown body */
.md-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.md-body h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}
.md-body h2:first-child { margin-top: 0; }
.md-body h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.md-body p { margin-bottom: 10px; }
.md-body p:last-child { margin-bottom: 0; }
.md-body ul, .md-body ol {
  padding-left: 20px;
  margin-bottom: 10px;
}
.md-body li { margin-bottom: 3px; }
.md-body strong { font-weight: 700; }
.md-body a { color: var(--accent); }
.md-body sup { font-size: 0.75em; }

/* Outcomes table */
.outcomes-wrap { overflow-x: auto; }
.outcomes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 400px;
}
.outcomes-table th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  padding: 6px 10px;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
}
.outcomes-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}
.outcomes-table tr:last-child td { border-bottom: none; }
.conf-high   { color: #15803d; font-weight: 600; font-size: 12px; }
.conf-medium { color: #92400e; font-weight: 600; font-size: 12px; }
.conf-low    { color: #b91c1c; font-weight: 600; font-size: 12px; }

/* Source cards */
.source-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.source-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.source-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; }
.source-meta  { font-size: 12px; color: var(--muted); }
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 3px;
}
.source-link:hover { text-decoration: underline; }

/* ─── Dashboard ─────────────────────────────────────────────────────────── */
#dashboard-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

#stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#charts-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: var(--fg);
  margin-bottom: 16px;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.charts-legend-item { display: flex; align-items: center; gap: 6px; }
.charts-legend-swatch {
  display: inline-block; width: 12px; height: 12px;
  border-radius: 2px; flex-shrink: 0;
}

#charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.chart-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  text-wrap: balance;
}
.chart-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.4;
}
.chart-wrap { position: relative; }
.chart-wrap.donut-wrap { max-width: 280px; margin: 0 auto; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #stat-cards { grid-template-columns: repeat(2, 1fr); }
  #charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  #cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  #site-header { padding: 11px 16px; }
  #site-mark { width: 36px; height: 36px; }
  #header-left { gap: 10px; }
  #site-title { font-size: 0.95rem; }
  .tab-btn { padding: 12px 14px; font-size: 0.85rem; }
  #filter-row { flex-direction: column; align-items: stretch; }
  #search-input { min-width: 0; }
  .theme-pills { justify-content: flex-start; }
  .dropdown-panel { min-width: 180px; }
  #detail-body { padding: 14px 14px 36px; }
  .meta-grid { grid-template-columns: minmax(0, 1fr); }
  #stat-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-num { font-size: 2rem; }
}

@media (max-width: 380px) {
  #stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .case-card,
  #detail-panel { transition: none; }
}

/* ─── Detail nav (prev/next) ─────────────────────────────────────────────── */
#detail-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
#detail-prev, #detail-next {
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  width: 30px; height: 30px;
  cursor: pointer;
  font-size: 15px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
#detail-prev:hover, #detail-next:hover { background: rgba(255,255,255,0.12); }
#detail-prev:disabled, #detail-next:disabled { opacity: 0.3; cursor: default; }
#detail-nav-pos { font-size: 11px; color: rgba(255,255,255,0.8); min-width: 40px; text-align: center; }

/* ─── Map tab ────────────────────────────────────────────────────────────── */
#map-inner { padding: 20px 0; max-width: 1100px; margin: 0 auto; }
#map-header-row { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
#world-map { width: 100%; height: auto; display: block; }
#map-tooltip {
  position: absolute;
  background: rgba(15,25,40,0.88);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}
#map-legend { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.map-legend-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; }
#map-body-row { position: relative; }
#world-map-wrap { width: 100%; position: relative; background: var(--bg2); border-radius: 10px; overflow: hidden; }
/* map theme toggle */
.map-theme-toggle[hidden] { display: none; }
.map-theme-toggle { display: flex; flex-wrap: wrap; max-width: 100%; gap: 0; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.map-theme-btn, .map-section-btn { background: var(--bg); border: none; padding: 6px 16px; font-size: 12px; font-family: inherit; cursor: pointer; color: var(--muted); transition: background 0.15s, color 0.15s; }
.map-theme-btn:not(:last-child), .map-section-btn:not(:last-child) { border-right: 1px solid var(--border); }
.map-theme-btn[data-theme="green-ict"] { color: var(--gict-fg); }
.map-theme-btn[data-theme="greening-by-ict"] { color: var(--gbict-fg); }
.map-theme-btn.active, .map-theme-btn.active[data-theme], .map-section-btn.active { background: var(--accent); color: var(--surface); }
#map-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
#map-note a { color: var(--accent); }
#load-error { max-width: 1200px; margin: 24px auto; padding: 16px 20px; border: 1px solid var(--border);
  border-left: 4px solid var(--green); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.map-country { cursor: default; transition: opacity 0.15s; stroke: #ffffff; stroke-width: 0.4px; }
.map-country.has-cases { cursor: pointer; }
.map-country.has-cases:hover { opacity: 0.75; }

/* ─── Methodology & Report tab content ──────────────────────────────────── */
.tab-content-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.tab-content-inner h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.tab-content-inner h2:first-child { margin-top: 0; }
.tab-content-inner p { color: var(--muted); margin-bottom: 14px; line-height: 1.7; }
.tab-content-inner a { color: var(--accent); }

.meth-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}
.meth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.meth-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 5px;
}
.meth-card-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.meth-card-body  { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

.meth-criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 24px;
}
@media (max-width: 640px) { .meth-criteria-grid { grid-template-columns: 1fr; } }
.meth-criteria-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.meth-criteria-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--accent); margin-bottom: 4px;
}
.meth-criteria-name { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.meth-criteria-scale { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

.meth-tier-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.88rem; }
/* A wide table scrolls inside itself on a phone instead of widening the page. */
@media (max-width: 600px) { .meth-tier-table { display: block; overflow-x: auto; } }
.meth-tier-table th { background: var(--navy); color: #fff; padding: 9px 13px; text-align: left; font-size: 0.82rem; }
.meth-tier-table td { padding: 9px 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
.meth-tier-table tr:last-child td { border-bottom: none; }
.meth-tier-table tr:nth-child(even) td { background: var(--bg); }
.meth-tier-badge {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  font-size: 0.75rem; font-weight: 700;
}
.meth-t1 { background: #dcfce7; color: #15803d; }
.meth-t2 { background: #dbeafe; color: #1d4ed8; }
.meth-t3 { background: #fef9c3; color: #a16207; }

/* ─── Reusable stat / finding / recommendation blocks (report + definitions pages) ── */
.pull-stat { display:inline-block; background:#f0fdff; border:1px solid #0891b2; border-radius:4px; padding:1px 7px; font-size:0.92em; font-weight:600; color:#155e75; white-space:nowrap; }

.stat-mini-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin:18px 0 24px; }
@media (max-width:640px) { .stat-mini-grid { grid-template-columns:repeat(2,1fr); } }
.stat-mini-box { background:var(--surface); border:1px solid var(--border); border-top:3px solid var(--accent); border-radius:var(--radius); padding:14px 12px; text-align:center; }
.stat-mini-num { font-size:1.5rem; font-weight:700; color:var(--text); line-height:1; margin-bottom:4px; }
.stat-mini-label { font-size:0.7rem; color:var(--muted); line-height:1.3; }

.finding-block { margin-bottom:22px; padding-left:16px; border-left:3px solid var(--accent); }
.finding-block-label { font-size:0.68rem; font-weight:700; letter-spacing:0.6px; text-transform:uppercase; color:var(--accent); margin-bottom:4px; }
.finding-block-title { font-size:0.92rem; font-weight:700; color:var(--text); margin-bottom:6px; line-height:1.4; }
.finding-block p { font-size:0.85rem; margin-bottom:0; }

.rec-mini-list { display:flex; flex-direction:column; gap:12px; margin:12px 0 20px; }
.rec-mini { display:grid; grid-template-columns:24px 1fr; gap:12px; align-items:start; }
.rec-mini-num { width:24px; height:24px; border-radius:50%; background:var(--navy); color:#fff; font-size:0.72rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px; }
.rec-mini-body strong { display:block; font-size:0.85rem; font-weight:700; color:var(--text); margin-bottom:2px; }
.rec-mini-body p { font-size:0.8rem; margin-bottom:0; }

.back-link { display:inline-flex; align-items:center; gap:6px; font-size:0.85rem; color:var(--accent); text-decoration:none; font-weight:600; margin-bottom:8px; }
.back-link:hover { text-decoration:underline; }

.def-term { margin-bottom:28px; padding-bottom:20px; border-bottom:1px solid var(--border); }
.def-term:last-child { border-bottom:none; }
.def-term-label { font-size:0.68rem; font-weight:700; letter-spacing:0.6px; text-transform:uppercase; color:var(--accent); margin-bottom:4px; }
.def-term-name { font-size:1.05rem; font-weight:700; color:var(--text); margin-bottom:8px; }
.def-term p { font-size:0.88rem; margin-bottom:8px; }
.def-term p:last-child { margin-bottom:0; }

.report-download-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 28px 0;
  box-shadow: var(--shadow);
}
.report-icon {
  font-size: 2.8rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.report-box-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.report-box-desc  { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 7px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-download:hover { opacity: 0.88; text-decoration: none; color: #fff; }
.btn-download[aria-disabled="true"] {
  background: var(--border);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}
@media (max-width: 640px) {
  .report-download-box { flex-direction: column; gap: 14px; }
  .meth-card-grid { grid-template-columns: 1fr; }
}

/* ─── Cards / network view (Browse page) ───────────────────────────────── */
#view-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#view-bar #result-count { margin: 0; padding: 4px 0; max-width: none; }
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.view-toggle button {
  font: inherit; font-size: 13px; padding: 6px 14px; border: 0; background: transparent;
  color: var(--text); cursor: pointer;
}
.view-toggle button + button { border-left: 1px solid var(--border); }
.view-toggle button.active { background: var(--accent); color: #fff; }
.view-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

#graph-wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 10px 16px 60px; }
#graph-wrap[hidden] { display: none; }
#graph-frame {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
#graph-controls {
  display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg2);
}
#graph-controls .view-toggle button { font-size: 12px; padding: 4px 11px; }
.gv-label { font-size: 13px; color: var(--muted); }
#graph-legend { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-left: auto; }
.gv-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.gv-key.gv-gdt  { background: var(--gict-fg); }
.gv-key.gv-gbdt { background: var(--gbict-fg); }
#graph-help { font-size: 13px; color: var(--muted); margin: 8px 2px 0; line-height: 1.5; }
#graph-svg {
  display: block; width: 100%; height: min(72vh, 680px); min-height: 420px;
}
#graph-empty { position: absolute; left: 0; right: 0; top: 50%; text-align: center; color: var(--muted); }
#graph-empty[hidden] { display: none; }

.gv-link { stroke: var(--muted); stroke-opacity: 0.18; stroke-width: 1; }
.gv-case { stroke: var(--surface); stroke-width: 1.2; cursor: pointer; transition: opacity 0.15s; }
.gv-case.gv-gdt  { fill: var(--gict-fg); }
.gv-case.gv-gbdt { fill: var(--gbict-fg); }
.gv-case:focus-visible { outline: none; stroke: var(--text); stroke-width: 2.5; }
.gv-hub { cursor: pointer; transition: opacity 0.15s; }
.gv-hub circle { fill: var(--path-bg); stroke: var(--path-fg); stroke-width: 1.5; }
.gv-hub.gv-on circle { fill: var(--accent); stroke: var(--accent); }
.gv-hub.gv-on .gv-hub-n { fill: #fff; }
.gv-hub:focus-visible { outline: none; }
.gv-hub:focus-visible circle { stroke: var(--text); stroke-width: 3; }
.gv-hub-label { font-size: 12px; font-weight: 600; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; pointer-events: none; }
.gv-hub-n { font-size: 11px; fill: var(--path-fg); text-anchor: middle; pointer-events: none; }
#graph-svg.gv-focus .gv-case:not(.gv-hl), #graph-svg.gv-focus .gv-hub:not(.gv-hl), #graph-svg.gv-focus .gv-hub-label:not(.gv-hl) { opacity: 0.15; }
#graph-svg.gv-focus .gv-link:not(.gv-hl) { stroke-opacity: 0.04; }
#graph-svg.gv-focus .gv-link.gv-hl { stroke: var(--accent); stroke-opacity: 0.8; stroke-width: 1.5; }

#graph-tip {
  position: absolute; z-index: 5; max-width: 320px; pointer-events: none;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--shadow); padding: 10px 12px; font-size: 13px; line-height: 1.45;
}
#graph-tip[hidden] { display: none; }
.gv-tip-id { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.gv-tip-title { font-weight: 600; margin-bottom: 4px; }
.gv-tip-meta { color: var(--muted); margin-bottom: 4px; }
.gv-tip-hint { font-size: 11px; color: var(--accent); margin-top: 4px; }

@media (max-width: 600px) {
  #graph-legend { margin-left: 0; }
  .view-toggle button { padding: 6px 10px; }
  #graph-svg { height: 480px; min-height: 0; }
}
#cards-grid[hidden] { display: none; }

/* ─── Hero band (home, use case overview, country pages) ───────────────── */
.page-hero { position:relative; overflow:hidden; background:var(--navy); color:#fff; padding:64px 24px 56px; text-align:center; }
/* Our own ring pattern, drawn in CSS */
.page-hero::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:0.35;
  background:repeating-radial-gradient(circle at 50% 135%, transparent 0 22px, rgba(0,167,255,0.55) 22px 23px); }
.page-hero > * { position:relative; }
.page-hero h1 { font-size:clamp(1.7rem,4vw,2.6rem); font-weight:500; margin:0 auto 18px; max-width:820px; line-height:1.15; }
/* The policy pages' country menu, in the same place under every title */
.policy-country { display:flex; align-items:center; justify-content:center; gap:8px; margin:0 auto 18px; font-weight:600; }
.policy-country[hidden] { display:none; }
.policy-country select { font:inherit; font-weight:400; padding:6px 10px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text); }
tr.chosen > th, tr.chosen > td { background:var(--green-bg); }
.page-hero p { font-size:1.05rem; color:rgba(255,255,255,0.88); max-width:680px; margin:0 auto 24px; line-height:1.7; }

/* Ask your AI: buttons that open the visitor's own assistant */
.ask-ai { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:14px 16px; margin:16px 0; }
.ask-ai-title { font-family:var(--font-display); font-weight:500; margin:0 0 10px; color:var(--text); }
.ask-ai-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.ask-ai-btn { font:inherit; font-size:0.9rem; padding:6px 12px; border-radius:999px; border:1px solid var(--border); background:var(--bg2); color:var(--accent); text-decoration:none; cursor:pointer; }
.ask-ai-btn:hover, .ask-ai-btn:focus-visible { border-color:var(--accent); }
.ask-ai-status { font-size:0.85rem; color:var(--muted); margin:8px 0 0; min-height:1em; }
.ask-ai-question { font-size:0.85rem; color:var(--muted); margin-top:6px; }
.ask-ai-question p { margin:6px 0 0; overflow-wrap:anywhere; }
/* Catalogue pages (Publications, Standards): site/catalogue.js */
.cat-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; align-items:start; }
@media (max-width:860px) { .cat-layout { grid-template-columns:minmax(0,1fr); } }
.cat-controls { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.cat-controls input, .cat-controls select { font:inherit; font-size:0.92rem; padding:7px 10px; border:1px solid var(--border);
  border-radius:6px; background:var(--surface); color:var(--text); min-width:0; max-width:100%; }
.cat-controls input { flex:1 1 220px; }
.cat-controls select { flex:0 1 auto; }
#cat-count { font-size:0.9rem; color:var(--muted); margin:0 0 14px; }
#cat-empty { padding:18px; background:var(--slate-bg); border-radius:8px; color:var(--slate-fg); }
.cat-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:18px 22px; margin-bottom:14px; }
.cat-card h2 { font-size:1.08rem; font-weight:600; line-height:1.35; margin:0 0 6px; overflow-wrap:anywhere; }
.cat-card h2 a { color:var(--text); text-decoration:none; }
.cat-card h2 a:hover { color:var(--accent); text-decoration:underline; }
.cat-meta { font-size:0.88rem; color:var(--muted); margin:0 0 8px; overflow-wrap:anywhere; }
.cat-summary { font-size:0.92rem; margin:0 0 8px; }
.cat-marks { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 8px; }
.cat-mark { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; border-radius:999px; padding:2px 10px; background:var(--slate-bg); color:var(--slate-fg); }
.cat-mark.free { background:var(--blue-bg); color:var(--blue-fg); }
.cat-tags { display:flex; flex-wrap:wrap; gap:6px; }
.cat-tag { font-size:0.75rem; font-weight:600; border-radius:999px; padding:2px 10px; background:var(--green-bg); color:var(--green-fg); }
.cat-side { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px 18px; position:sticky; top:64px; }
.cat-side h2 { font-size:0.95rem; margin:0 0 4px; }
.cat-side .hint { font-size:0.8rem; color:var(--muted); margin:0 0 10px; }
.cat-chart-group p { font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; color:var(--muted); margin:10px 0 4px; }
#cat-chart button { display:grid; grid-template-columns:128px minmax(0,1fr) 24px; gap:6px; align-items:center; width:100%;
  font:inherit; font-size:0.78rem; color:var(--text); background:none; border:none; border-radius:4px; padding:2px 4px; cursor:pointer; text-align:left; }
#cat-chart button:hover { background:var(--bg); }
#cat-chart button[aria-pressed="true"] { background:var(--blue-bg); font-weight:700; }
#cat-chart .lab { line-height:1.2; overflow-wrap:anywhere; }
#cat-chart .bar { height:10px; background:var(--bg2); border-radius:2px; overflow:hidden; }
#cat-chart .bar span { display:block; height:100%; background:var(--green-text); }
#cat-chart .n { text-align:right; color:var(--muted); }
@media (max-width:860px) { .cat-side { position:static; } }

/* Catalogue covers: the real cover, or a drawn one */
.cat-card { display:grid; grid-template-columns:72px minmax(0,1fr); gap:16px; align-items:start; }
.cat-body { min-width:0; }
.cat-cover { width:72px; aspect-ratio:3 / 4; object-fit:cover; object-position:top; border-radius:4px; border:1px solid var(--border); background:var(--bg); display:block; }
.cat-cover.tile { display:flex; flex-direction:column; justify-content:space-between; padding:7px 6px; box-sizing:border-box; color:#FFFFFF; background:var(--navy); overflow:hidden; }
.cat-cover.tile .who { font-size:0.62rem; font-weight:700; line-height:1.15; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
.cat-cover.tile .yr { font-size:0.7rem; opacity:0.85; }
.cat-cover.tile.g-footprint { background:var(--green-text); }
.cat-cover.tile.g-handprint { background:var(--blue-text); }
.cat-cover.tile.g-just-transition { background:#3A3F66; }
@media (max-width:480px) { .cat-card { grid-template-columns:56px minmax(0,1fr); gap:12px; } .cat-cover { width:56px; } }

.cat-mark.tbc { background:#FFF4D6; color:#7A5300; }
.cat-cover.tile.cal { justify-content:center; align-items:center; text-align:center; gap:0; }
.cat-cover.tile.cal .mon { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; }
.cat-cover.tile.cal .day { font-size:1.5rem; font-weight:700; line-height:1.1; }
