/* Inter is linked from the document head, not @import-ed here: an @import cannot
   start downloading until this stylesheet has itself arrived and been parsed,
   which delays every font by a full round-trip. */

/* ============================================================
   Euro Chlor — Chlor-Alkali Industry Review 2025-2026
   Design system
   ============================================================ */

:root {
  /* Brand palette (supplied by Euro Chlor) */
  --black:      #272525;
  --blue-dark:  #325da7;
  --blue-light: #719dc3;
  --yellow:     #fde62f;

  /* Derived tints & shades, used for charts and surfaces */
  --navy:       #1c3260;
  --blue-mid:   #4a7ac0;
  --blue-pale:  #a8c4dc;
  --blue-wash:  #eaf1f8;
  --blue-tint:  #f5f8fc;

  --grey-900: #272525;
  --grey-700: #4f4c4c;
  --grey-500: #7d7a7a;
  --grey-400: #a5a2a2;
  --grey-300: #d6d3d3;
  --grey-200: #e8e6e6;
  --grey-100: #f4f3f3;
  --white:    #ffffff;

  --ink:      var(--grey-900);
  --ink-soft: var(--grey-700);
  --rule:     var(--grey-200);

  /* Type */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --wide:   1280px;
  --narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 72px;

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

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "tnum" 0;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--navy); }
:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3, h2.h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); }
h4 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; color: var(--ink); }
.lede {
  font-size: clamp(1.12rem, 1.7vw, 1.32rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
}
.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin: 0 0 .85rem;
}
.u-tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* Accent word colouring, mirroring the print edition's blue keywords */
.hl { color: var(--blue-dark); }
.hl-light { color: var(--blue-light); }

/* ---------- layout ---------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wide)); margin-inline: auto; }
.wrap-narrow { width: min(100% - var(--gutter) * 2, var(--narrow)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--blue-tint); }
.section--wash { background: var(--blue-wash); }
.stack > * + * { margin-top: 1.05em; }

/* Chapter articles alternate a plain and a tinted full-bleed band, the same
   treatment the home page gives the Director's message, so the start of a new
   article is legible at a glance. The band supplies the vertical rhythm, so
   the blocks inside it drop their own margin at the two edges. */
.blk { margin-block: clamp(1.25rem, 2.5vw, 2rem); }
.blk-lg { margin-block: clamp(2rem, 4vw, 3rem); }
.blk-xl { margin-block: clamp(2.5rem, 5vw, 4rem); }
.blk-top { margin-block-start: clamp(2.5rem, 5vw, 4rem); }
.band { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band--tint { background: var(--blue-tint); }
.band > :first-child { margin-block-start: 0; }
.band > :last-child { margin-block-end: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.75rem, 4vw, 3.25rem);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: 50%; translate: -50% -120%;
  z-index: 200; background: var(--blue-dark); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 6px 6px; font-weight: 600;
  transition: translate .18s var(--ease);
}
.skip:focus { translate: -50% 0; color: #fff; }

/* Same idea inside a map figure: invisible until a keyboard user reaches it,
   then it offers to step over the map's dozens of markers in one tab. */
.skipmap {
  position: absolute; left: 50%; top: .75rem; translate: -50% -260%;
  z-index: 4; background: var(--blue-dark); color: #fff;
  padding: .5rem 1rem; border-radius: 6px; font-size: .85rem; font-weight: 600;
  transition: translate .18s var(--ease);
}
.skipmap:focus { translate: -50% 0; color: #fff; }

/* ---------- in-page sub-nav (long chapters only) ---------- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 90;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-100);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.subnav ul {
  display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; white-space: nowrap; padding: .85rem 0; text-decoration: none;
  font-size: .84rem; font-weight: 500; color: var(--grey-500);
  border-bottom: 2px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="true"] { color: var(--blue-dark); border-bottom-color: var(--blue-dark); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* The blur lives on a pseudo-element, never on .header itself: backdrop-filter
   makes an element a containing block for position:fixed descendants, which
   would collapse the mobile nav drawer into the height of the header. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
}
.header.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 20px rgba(39, 37, 37, .05);
}
.header__inner {
  width: min(100% - var(--gutter) * 2, 1440px);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .85rem; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 104px; }
.brand__sep { width: 1px; height: 26px; background: var(--grey-300); }
.brand__txt {
  font-size: .74rem; font-weight: 600; line-height: 1.25;
  letter-spacing: .01em; color: var(--ink-soft); max-width: 11ch;
}
.brand__txt b { display: block; color: var(--blue-dark); font-weight: 700; }

.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a, .nav button {
  font: inherit; font-size: .845rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  padding: .55rem .7rem; border-radius: 6px;
  background: none; border: 0; cursor: pointer;
  white-space: nowrap; letter-spacing: -0.005em;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav a:hover, .nav button:hover { color: var(--blue-dark); background: var(--blue-tint); }
.nav a[aria-current="page"] { color: var(--blue-dark); font-weight: 600; }

/* dropdown */
.menu { position: relative; }
.menu__btn::after {
  content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  rotate: 45deg; translate: 0 -2px; transition: rotate .2s var(--ease);
}
.menu[data-open="true"] .menu__btn { color: var(--blue-dark); background: var(--blue-tint); }
.menu[data-open="true"] .menu__btn::after { rotate: -135deg; translate: 0 1px; }
.menu__panel {
  position: absolute; top: calc(100% + .5rem); left: 50%; translate: -50% 0;
  min-width: 250px; padding: .5rem;
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: 0 14px 44px rgba(28, 50, 96, .13);
  display: grid; gap: 1px;
  opacity: 0; visibility: hidden; translate: -50% 6px;
  transition: opacity .18s var(--ease), translate .18s var(--ease), visibility .18s;
}
.menu[data-open="true"] .menu__panel { opacity: 1; visibility: visible; translate: -50% 0; }
.menu__panel a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .7rem; border-radius: 7px; font-size: .87rem; width: 100%;
}
.menu__panel a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-light); flex: 0 0 auto; opacity: .5;
  transition: opacity .16s var(--ease), scale .16s var(--ease);
}
.menu__panel a:hover::before, .menu__panel a[aria-current="page"]::before { opacity: 1; scale: 1.25; }

/* `.nav a` is (0,1,1) and would otherwise beat a bare `.btn-pdf` (0,1,0),
   silently blanking the background — hence the doubled class. */
.nav a.btn-pdf {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue-dark); color: #fff;
  padding: .58rem 1rem; border-radius: 999px;
  font-weight: 600; font-size: .84rem;
  margin-left: .6rem; text-decoration: none;
}
.nav a.btn-pdf:hover { background: var(--navy); color: #fff; }
.nav a.btn-pdf svg { width: 14px; height: 14px; }

/* burger + mobile drawer */
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.burger span {
  display: block; width: 21px; height: 1.8px; background: var(--ink);
  margin: 4.5px auto; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-open .burger span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }

@media (max-width: 1100px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 1.25rem var(--gutter) 3rem;
    overflow-y: auto; margin: 0;
    opacity: 0; visibility: hidden; translate: 0 -8px;
    transition: opacity .22s var(--ease), translate .22s var(--ease), visibility .22s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; translate: 0; }
  .nav a, .nav button { padding: .9rem .25rem; font-size: 1.02rem; border-radius: 0; text-align: left; width: 100%; }
  .nav > a:not(.btn-pdf), .menu { border-bottom: 1px solid var(--grey-100); }
  /* Matched to the desktop open-state selector's specificity (0,2,0); a plain
     `.menu__panel` override loses to it and leaves the panel translated -50%. */
  .menu__panel,
  .menu[data-open="true"] .menu__panel {
    position: static; left: auto; translate: 0; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-radius: 0; min-width: 0;
    padding: 0 0 .5rem .9rem;
  }
  .menu__panel { display: none; }
  .menu[data-open="true"] .menu__panel { display: grid; }
  .nav a.btn-pdf { margin: 1.25rem 0 0; justify-content: center; padding: .85rem 1rem; width: 100%; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20, 34, 62, .92) 0%, rgba(28, 50, 96, .78) 45%, rgba(28, 50, 96, .35) 100%);
}
.hero__inner {
  position: relative;
  padding-block: clamp(4rem, 12vw, 8.5rem);
  max-width: 44ch;
}
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255, 255, 255, .82); margin-top: 1.25rem; }

/* the cover lockup ("2025 2•26" in its framed panel), as supplied */
.hero__lockup { width: clamp(200px, 24vw, 300px); height: auto; margin-bottom: 1.6rem; }

/* ---------- page head (section pages) ---------- */
.pagehead { position: relative; padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.pagehead__inner { position: relative; z-index: 1; display: flex; gap: 2rem; align-items: flex-start; }
.pagehead__txt { flex: 1 1 auto; }

/* Hero photo with the focus icon laid over it, as in the print edition: a large
   white icon in a translucent panel, framed by a white rule broken at two corners. */
.herofig { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 21 / 8; }
.herofig img { width: 100%; height: 100%; object-fit: cover;
  object-position: var(--hero-pos, center); }
.heroicon {
  position: absolute; left: clamp(1.25rem, 4%, 3.5rem); top: 50%; translate: 0 -50%;
  width: clamp(104px, 15vw, 190px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: rgba(28, 50, 96, .34);
  border-left: 2px solid rgba(255, 255, 255, .95);
  border-right: 2px solid rgba(255, 255, 255, .95);
}
/* the two long rules stop short, leaving the print's corner gaps */
.heroicon::before, .heroicon::after {
  content: ""; position: absolute; height: 2px; background: rgba(255, 255, 255, .95);
}
.heroicon::before { top: -2px; left: 24%; right: -2px; }
.heroicon::after  { bottom: -2px; left: -2px; right: 24%; }
.heroicon img { width: 62%; height: 62%; object-fit: contain; }
@media (max-width: 640px) {
  .herofig { aspect-ratio: 16 / 9; }
  .heroicon { width: clamp(84px, 26vw, 130px); }
}

/* ---------- pull quote (corner-bracket motif from print) ---------- */
.quote {
  position: relative; margin: clamp(2rem, 4vw, 3rem) 0;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.42; font-weight: 400; letter-spacing: -0.02em;
  color: var(--ink);
}
.quote::before, .quote::after {
  content: ""; position: absolute; width: 34px; height: 34px; border: 2px solid var(--blue-dark);
}
.quote::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.quote::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.quote em { font-style: normal; color: var(--blue-dark); }
.quote cite {
  display: block; margin-top: 1.1rem; font-size: .82rem; font-style: normal;
  font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--grey-500);
}

/* ---------- social-stats callout (corner brackets, mirrors the print) ---------- */
.statbox { position: relative; margin: clamp(2rem, 4vw, 3rem) 0; padding: clamp(1.75rem, 3.5vw, 2.75rem); }
.statbox::before, .statbox::after {
  content: ""; position: absolute; width: 32px; height: 32px; border: 2px solid var(--blue-dark);
}
.statbox::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.statbox::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.statbox__title {
  margin: 0 0 1.4rem; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700;
  line-height: 1.3; letter-spacing: -0.01em; color: var(--ink);
}
.statbox__title em { font-style: normal; color: var(--blue-dark); }
.statbox__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.statbox__list li { display: flex; align-items: center; gap: 1rem; }
.statbox__list a { flex: none; display: inline-flex; line-height: 0; transition: opacity .15s; }
.statbox__list a:hover { opacity: .7; }
.statbox__list svg { flex: none; width: 34px; height: 34px; fill: var(--blue-dark); }
.statbox__list span { font-size: 1rem; line-height: 1.4; color: var(--ink); }
.statbox__list b { color: var(--blue-dark); font-weight: 700; font-size: 1.15em; }

/* ---------- message / portrait blocks ---------- */
.message { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.25rem); align-items: start; }
/* Without a portrait the text column would otherwise stretch to ~95 characters;
   hold it to a comfortable measure and keep the pull-quote tied to it. */
.message__body { max-width: 66ch; }
.message__body .quote { max-width: 58ch; }
@media (max-width: 760px) { .message { grid-template-columns: 1fr; } }
.portrait { border-radius: 14px; overflow: hidden; background: var(--blue-wash); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.byline { margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid var(--blue-light); }
.byline b { display: block; font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.byline span { font-size: .87rem; color: var(--grey-500); }

/* Signature rail — occupies the column a portrait would, so the message keeps its
   editorial rhythm when no photograph is available. */
.rail { position: sticky; top: calc(var(--header-h) + 2.25rem); }
.rail__rule { width: 46px; height: 3px; background: var(--blue-light); border-radius: 2px; margin-bottom: 1.15rem; }
.rail__eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue-dark); margin: 0 0 1.4rem; line-height: 1.5;
}
.rail__name {
  font-size: 1.28rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.25;
  color: var(--ink); margin: 0;
}
.rail__role { font-size: .87rem; color: var(--grey-500); margin: .3rem 0 0; line-height: 1.45; }
@media (max-width: 760px) {
  .rail { position: static; }
  .rail__eyebrow { margin-bottom: 1rem; }
}

/* ---------- KPI / priority-action badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem; vertical-align: middle;
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-dark); background: var(--blue-wash);
  padding: .22rem .55rem .22rem .3rem; border-radius: 999px; white-space: nowrap;
}
.badge img { width: 15px; height: 15px; }
.badge--kpi { color: var(--blue-dark); }
.badge--action { color: #7a6a00; background: #fdf8d6; }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
}
.card--flat { border: 0; background: var(--blue-tint); }

/* Card-sized link out to a sub-page (the plants directory from Competitiveness) */
.crosslink {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--blue-tint); border: 1px solid var(--rule); border-radius: 14px;
  padding: clamp(1.35rem, 2.8vw, 2rem); text-decoration: none; color: inherit;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.crosslink:hover { border-color: var(--blue-light); background: var(--blue-wash); }
.crosslink .eyebrow { display: block; }
.crosslink h2 { margin: .35rem 0 .5rem; }
.crosslink__txt { display: block; max-width: 60ch; color: var(--ink-soft); }
.crosslink__go { flex: none; width: 30px; height: 30px; color: var(--blue-dark);
  transition: translate .18s var(--ease); }
.crosslink:hover .crosslink__go { translate: 4px 0; }
.crosslink__cta { display: inline-block; margin-top: .85rem; padding: .5rem .9rem;
  background: var(--blue-dark); color: #fff; border-radius: 8px;
  font-weight: 600; font-size: .95rem; }
.crosslink:hover .crosslink__cta { background: var(--navy); }
.card__title { font-size: 1.02rem; font-weight: 600; margin-bottom: .5rem; }

/* The four MCS pillars always read as a 2x2 block. .grid-2's auto-fit packs three
   across at wide widths, orphaning the fourth on its own row. */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }

/* pillar cards */
.pillar {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  padding: 1.6rem; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pillar:hover { border-color: var(--blue-light); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(28, 50, 96, .09); }
.pillar__icon { width: 46px; height: 46px; margin-bottom: 1rem; }
.pillar h3 { margin-bottom: .45rem; color: var(--blue-dark); }
.pillar p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---------- figures / charts ---------- */
.figure {
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  border: 1px solid var(--rule); border-radius: 14px; padding: clamp(1.1rem, 2.4vw, 1.6rem);
  background: #fff;
  position: relative;
}
h2[id], h3[id], .figure[id] { scroll-margin-top: 92px; }
/* where the sub-nav is present it sticks below the header, so anchors have to
   clear both */
:has(.subnav) :is(h2[id], h3[id], .figure[id]) { scroll-margin-top: 140px; }
.figure__link {
  position: absolute; top: .65rem; right: .65rem; z-index: 2;
  width: 30px; height: 30px; padding: 6px; border: 0; border-radius: 8px;
  background: none; color: var(--grey-400); cursor: pointer;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.figure__link svg { width: 100%; height: 100%; display: block; }
.figure__link:hover, .figure__link:focus-visible { color: var(--blue-dark); background: var(--blue-tint); }
.figure__link.is-copied { color: var(--blue-dark); }
.figure__head { margin-bottom: 1rem; padding-right: 2.1rem; }
.figure__title { font-size: .98rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.figure__sub { font-size: .82rem; color: var(--grey-500); margin-top: .2rem; }
.figure__body { position: relative; }
/* ---------- per-figure data view ---------- */
.figdata { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .6rem; }
.figdata__btn {
  border: 1px solid var(--rule); border-radius: 999px; background: #fff;
  padding: .3rem .8rem; font: inherit; font-size: .74rem; font-weight: 500;
  color: var(--grey-500); text-decoration: none; cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.figdata__btn:hover, .figdata__btn:focus-visible { color: var(--blue-dark); border-color: var(--blue-light); }
.figdata__box { margin-top: .75rem; overflow-x: auto; }
.figdata__box table { border-collapse: collapse; font-size: .76rem; width: 100%; }
.figdata__box caption { text-align: left; font-weight: 600; color: var(--ink); padding-bottom: .45rem; }
.figdata__box th, .figdata__box td {
  border-bottom: 1px solid var(--grey-100); padding: .3rem .6rem .3rem 0;
  text-align: right; white-space: nowrap;
}
.figdata__box thead th, .figdata__box tbody th { text-align: left; font-weight: 600; }
.figdata__box thead th { color: var(--grey-500); }

.figure__foot {
  margin-top: .9rem; padding-top: .75rem; border-top: 1px solid var(--grey-100);
  font-size: .74rem; color: var(--grey-500);
  display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: space-between;
}
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; display: block; }

/* chart primitives */
.c-grid line { stroke: var(--grey-200); stroke-width: 1; shape-rendering: crispEdges; }
.c-axis line, .c-axis path { stroke: var(--grey-300); stroke-width: 1; shape-rendering: crispEdges; }
.c-axis text, .c-tick { font-size: 11px; fill: var(--grey-500); font-weight: 450; }
.c-axtitle { font-size: 11px; fill: var(--grey-500); font-weight: 500; }
.c-line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.c-dot { stroke: #fff; stroke-width: 1.5; }
.c-label { font-size: 11px; font-weight: 600; fill: var(--ink); }
.c-hit { fill: transparent; cursor: pointer; }
.c-band { fill: var(--blue-tint); opacity: 0; transition: opacity .12s; }
.c-band.is-on { opacity: 1; }

.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .9rem; }
.legend__item {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; color: var(--ink-soft); background: none; border: 0;
  padding: .15rem 0; cursor: pointer; font-family: inherit;
}
.legend__swatch { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
.legend__item[aria-pressed="false"] { opacity: .38; }
.legend__item:hover { color: var(--ink); }

/* tooltip */
.tip {
  position: absolute; z-index: 20; pointer-events: none;
  background: var(--ink); color: #fff; border-radius: 8px;
  padding: .6rem .7rem; font-size: .78rem; line-height: 1.45;
  box-shadow: 0 8px 26px rgba(28, 50, 96, .22);
  opacity: 0; transition: opacity .12s var(--ease);
  min-width: 130px; max-width: 300px;
}
.tip.is-on { opacity: 1; }
.tip__t { font-weight: 700; margin-bottom: .3rem; font-size: .76rem; letter-spacing: .02em;
  overflow-wrap: anywhere; }
/* The series name wraps; only the value is kept on one line. Forcing nowrap on the
   whole row pushed long names ("Process incidents and losses") outside the box. */
.tip__r { display: flex; align-items: baseline; gap: .45rem; }
.tip__r span { min-width: 0; overflow-wrap: anywhere; }
.tip__r span:last-child { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow-wrap: normal; }
.tip__sw { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto;
  align-self: flex-start; margin-top: .28em; }

/* ---------- data table ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 620px; }
table.data th, table.data td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--grey-100); }
table.data thead th {
  position: sticky; top: 0; background: var(--blue-tint); z-index: 1;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-dark); white-space: nowrap; border-bottom: 1px solid var(--grey-200);
}
/* Where the table fits without sideways scrolling, drop the wrapper's overflow so
   the page itself is the scroll container — then the header row pins under the site
   header as you scroll the page. (An overflow-x wrapper traps the sticky header
   inside a box that never scrolls vertically, so it just slides away with the rows.)
   Below this width the wrapper keeps its horizontal scroll; pinning is a fair trade
   to give up on small screens. */
@media (min-width: 760px) {
  .tablewrap { overflow-x: visible; }
  table.data thead th { top: var(--header-h); }
}
table.data thead th .unit { text-transform: none; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody tr:hover { background: var(--blue-tint); }
table.data tbody tr.is-highlit { background: var(--blue-wash); }
table.data tbody tr.is-selected { background: var(--yellow); }
table.data tbody tr.is-selected td { border-bottom-color: #e4cf1a; }
/* Chimcomplex is no longer a Euro Chlor member: its rows render in italics. */
table.data tbody tr.nonmember td { font-style: italic; }
table.data tfoot td { font-weight: 700; border-top: 2px solid var(--blue-light); background: var(--blue-tint); }
table.data .muted { color: var(--grey-400); }

/* ---------- interactive capacities map ---------- */
.mapwrap { position: relative; }
.capmap { width: 100%; height: auto; max-height: 680px; display: block; margin-inline: auto; }
.capmap__land path { fill: var(--grey-200); stroke: #fff; stroke-width: .3; }
/* outline:none on every state kills the browser's default focus rectangle around
   the <g> (a mouse click fires :focus, not :focus-visible); keyboard focus is shown
   on the dot itself below, so no affordance is lost. */
.pin { cursor: pointer; outline: none; }
.pin:focus { outline: none; }
.pin__dot {
  fill: var(--blue-dark); stroke: #fff; stroke-width: .6;
  transition: fill .2s var(--ease), r .2s var(--ease),
              stroke .2s var(--ease), stroke-width .2s var(--ease);
}
.pin__num { fill: #fff; font-size: 3.1px; font-weight: 600; pointer-events: none;
  transition: font-size .2s var(--ease); }

/* ---------- electricity-price choropleth ---------- */
.elecmap { width: 100%; height: auto; max-height: 640px; display: block; margin-inline: auto; }
.elecmap__c { transition: fill .12s var(--ease); }
.elecmap__c.is-priced { cursor: pointer; }
.elecmap__c.is-hi { stroke: var(--ink); stroke-width: 1.1; }
.elecmap__c:focus-visible { outline: none; stroke: var(--ink); stroke-width: 1.1; }
.elecleg { max-width: 420px; margin: 1rem auto 0; }
.elecleg__bar { height: 12px; border-radius: 6px; border: 1px solid var(--rule); }
.elecleg__scale { display: flex; justify-content: space-between; align-items: baseline; margin-top: .4rem;
  font-size: .76rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.elecleg__cap { font-weight: 500; color: var(--grey-500); text-align: center; padding: 0 .5rem; }
.pin:hover .pin__dot, .pin.is-on .pin__dot { fill: var(--navy); r: 4.4; }
.pin.is-on .pin__dot { stroke: var(--blue-light); stroke-width: 1; }
.pin.is-sel .pin__dot { fill: var(--navy); stroke: var(--yellow); stroke-width: 1.6; r: 5; }
.pin.is-sel .pin__num { font-size: 3.5px; }
.pin:focus-visible .pin__dot { stroke: var(--yellow); stroke-width: 1.2; r: 4.4; }
.tip__sub { margin-top: .3rem; font-size: .72rem; color: rgba(255,255,255,.72); }
/* The sort control is a real button so it can be reached and fired from the
   keyboard; it fills the cell so the whole header stays clickable as before. */
th.sortable { padding: 0; }
th.sortable button {
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
  background: none; border: 0; cursor: pointer; user-select: none;
  width: 100%; padding: .6rem .8rem; text-align: inherit;
}
th.sortable button::after { content: "↕"; opacity: .35; margin-left: .35em; font-size: .9em; }
th.sortable[aria-sort="ascending"] button::after  { content: "↑"; opacity: 1; }
th.sortable[aria-sort="descending"] button::after { content: "↓"; opacity: 1; }
th.sortable button:hover { color: var(--blue-dark); }

.tablebar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.field {
  display: flex; align-items: center; gap: .5rem;
  border: 1px solid var(--grey-300); border-radius: 999px; padding: .4rem .9rem;
  background: #fff;
}
.field:focus-within { border-color: var(--blue-dark); box-shadow: 0 0 0 3px var(--blue-wash); }
.field input, .field select {
  font: inherit; font-size: .86rem; border: 0; outline: 0; background: none; color: var(--ink);
  min-width: 130px;
}
.field svg { width: 14px; height: 14px; fill: none; stroke: var(--grey-400); stroke-width: 2; }
.count { font-size: .8rem; color: var(--grey-500); margin-left: auto; }

/* ---------- figure grid on data-heavy pages ---------- */
/* Fixed two columns so every chart card is the same width — a lone chart in a row
   (caustic transport, hydrogen utilisation, waste, EU–US electricity) takes half the
   row instead of stretching to double size. One column below 900px. */
.figs { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start; }  /* cards size to their own chart, not the tallest neighbour */
@media (max-width: 900px) { .figs { grid-template-columns: 1fr; } }
.figs > .figure { margin: 0; }

/* ---------- footer ---------- */
.footer { background: var(--black); color: rgba(255, 255, 255, .68); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: clamp(3rem, 6vw, 5rem); font-size: .87rem; }
.footer a { color: rgba(255, 255, 255, .8); }
.footer a:hover { color: #fff; }
.footer h2 { color: #fff; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; font-weight: 600; }
.footer__logo { width: 118px; margin-bottom: 1.25rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.75rem, 4vw, 3rem); }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
/* The Data Book sits in the General column, so it stacks: the code first,
   then the line that says what scanning it gets you. */
.footer__databook { margin-top: 2rem; }
.footer__qr {
  display: block; width: 96px; height: 96px;
  background: #fff; border-radius: 8px; padding: 6px; margin-bottom: .8rem;
}
.footer__databook p { margin: 0; max-width: 34ch; font-size: .85rem; line-height: 1.5; }
.footer__members { color: var(--yellow); font-weight: 500; margin-top: .4rem !important; }
.footer__legal {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .78rem;
}
.footer__legal a,
.footer__legal button { text-decoration: none; color: rgba(255, 255, 255, .62); }
.footer__legal a:hover,
.footer__legal button:hover { color: #fff; text-decoration: underline; }
.footer__legal button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer__legal li + li { position: relative; padding-left: 1.1rem; }
.footer__legal li + li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: .8em; background: rgba(255, 255, 255, .22);
}
.footer__bar {
  margin-top: 1rem; padding-top: 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .78rem; color: rgba(255, 255, 255, .5);
}
.social { display: flex; gap: .6rem; }
.social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  display: grid; place-items: center; transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.social a:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.social svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- download CTA ---------- */
.download { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 640px) { .download { grid-template-columns: 1fr; } }
.download__cover { border-radius: 10px; box-shadow: 0 18px 44px rgba(28, 50, 96, .18); }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--blue-dark); color: #fff !important; text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .93rem;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--navy); transform: translateY(-2px); }
.btn__meta { font-weight: 400; opacity: .75; white-space: nowrap; }
.btn--ghost { background: none; color: var(--blue-dark) !important; border: 1.5px solid var(--blue-pale); }
.btn--ghost:hover { background: var(--blue-tint); border-color: var(--blue-dark); }
.btn svg { width: 16px; height: 16px; }

/* ---------- prev/next ---------- */
.pager { display: flex; gap: 1rem; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.pager a { display: grid; gap: .2rem; text-decoration: none; max-width: 46%; }
.pager__next { text-align: right; margin-left: auto; }
.pager small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-400); font-weight: 600; }
.pager b { font-size: 1rem; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.pager a:hover b { color: var(--blue-dark); }

/* ---------- reveal on scroll ---------- */
/* Gated on .js: without scripting the content must still be visible, so the
   hidden state is never applied at all rather than relying on JS to undo it. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.maxch { max-width: 68ch; }

/* ---------- print ---------- */
@media print {
  .header, .footer, .pager, .burger, .btn-pdf, .figure__link, .skipmap { display: none !important; }
  body { font-size: 11pt; }
  .figure { break-inside: avoid; border-color: #ccc; }
  a { color: inherit; text-decoration: none; }
}
