/* Storms – Stronger & Wetter. Everything is scoped under .stm and ids are prefixed stm-, so the page can be embedded
   in a host site with its own styles. Colours only through theme.css tokens and the design guide's scales (4.3).
   Layout follows the container's width. Patterns are those of cce.css (Climate Change Explained). */

.stm {
  /* type scale and spacing of the site's design guide (DESIGN-PRINCIPLES.md 3.2, 5) */
  --font-text: Arial, Helvetica, sans-serif;
  --font-support: "Google Sans Code", "Courier New", monospace;
  --step--1: 0.8125rem; --step-0: 1.0625rem; --step-1: 1.3125rem; --step-2: clamp(1.5rem, 3vw, 1.875rem); --step-3: 2.4rem;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --block-pad: clamp(2.5rem, 6vw, 4.5rem);
  --sticky-top: 0px;
  /* storm strength: the guide's sequential scale, four steps for separate marks (4.3); weaker than a storm = "everything else" grey */
  --seq4-1: #F09E8C; --seq4-2: #E36D54; --seq4-3: #BC4E3A; --seq4-4: #734B46; --other: #C9CED4;
  container: stm / inline-size;
  font-family: var(--font-text); font-size: var(--step-0); color: var(--ink); background: var(--paper); line-height: 1.55;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stm { --seq4-1: #944E3D; --seq4-2: #C4563A; --seq4-3: #E47037; --seq4-4: #DEA43B; --other: #5A626B; } }
:root[data-theme="dark"] .stm { --seq4-1: #944E3D; --seq4-2: #C4563A; --seq4-3: #E47037; --seq4-4: #DEA43B; --other: #5A626B; }
.stm :where(h1, h2, h3, p, ul, li, button, figure, blockquote) { margin: 0; padding: 0; font: inherit; color: inherit; border: 0; background: none; }
.stm :is(img, canvas, svg) { border: 0; }   /* a host page's image styles stay outside */
.stm :where(svg, canvas, select, input, label, figcaption, table, caption, th, td) { margin: 0; border: 0; }
.stm :where(a) { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.stm[data-layout="standalone"] { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

.stm .stm-head { display: grid; gap: 0.75rem; padding-block: clamp(2rem, 6vw, 4rem) 2rem; max-width: 46rem; }
.stm h1 { font-size: var(--step-3); font-weight: 400; line-height: 1.1; }
.stm h2 { font-size: var(--step-2); line-height: 1.1; font-weight: 400; color: var(--ink); }
.stm h3 { font-size: var(--step-1); line-height: 1.2; font-weight: 400; color: var(--ink); }
.stm .stm-dek { font-size: var(--step-1); color: var(--muted); }
.stm .stm-note { font-family: var(--font-support); font-size: var(--step--1); color: var(--muted); }
.stm :is(.stm-head h1, section > h2, .block__rail > h2)::after { content: ""; display: inline-block; width: 0.12em; height: 0.12em; margin-left: 0.07em;
  border-radius: 50%; background: var(--red); vertical-align: baseline; }

.stm .stm-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; padding-block: 0.75rem; margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule); font-family: var(--font-support); font-size: 0.875rem; }
.stm .stm-nav a { color: var(--ink); }
.stm :is(section, h2)[id], .stm #stm-nav { scroll-margin-top: calc(var(--sticky-top) + 0.75rem); }
.stm section { position: relative; }
.stm .stm-top { position: absolute; top: 0.6rem; right: 0; z-index: 2; font-family: var(--font-support); font-size: 0.8125rem;
  color: var(--muted); text-decoration: none; padding: 0.2rem 0; }
.stm .stm-top:hover, .stm .stm-top:focus-visible { color: var(--ink); text-decoration: underline; }

/* Lead: two big figures (guide 3.3) */
.stm .stm-lead { display: grid; gap: 0.75rem; padding-block: var(--block-pad); }
.stm .stm-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem var(--gap); align-items: start; }
.stm .stm-hero__item { display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.stm .stm-hero__label { font-family: var(--font-support); font-size: 0.875rem; color: var(--muted); }
.stm .stm-hero__figure { font-weight: 400; font-size: clamp(3.25rem, 10vw, 6.5rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stm .stm-hero__figure small { font-size: 0.4em; letter-spacing: 0; color: var(--muted); }
.stm .stm-hero__text { max-width: 26rem; color: var(--muted); }
@container stm (max-width: 520px) { .stm .stm-hero { grid-template-columns: minmax(0, 1fr); } }

/* The story: steps scroll past the held map */
.stm section:is(.stm-record, .stm-disaster) { padding-bottom: 0; }   /* the steps end with their own free space */
.stm section > h2 { margin-bottom: 0.875rem; }
.stm section > .stm-intro { max-width: 26rem; color: var(--muted); }
.stm .story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); position: relative; }
.stm .story__steps { grid-column: 1; grid-row: 1; min-width: 0; padding-bottom: 40vh; }
.stm .story__graphic { grid-column: 2; grid-row: 1; position: sticky; top: var(--sticky-top); box-sizing: border-box;
  height: calc(100vh - var(--sticky-top)); display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; min-width: 0;
  padding-block: 1rem; }   /* the graphic sits in the middle of the window, as in the other stories */
.stm .step { min-height: 85vh; display: grid; align-content: start; padding-block: clamp(1.5rem, 4vh, 2.5rem) 1.5rem; }
.stm .step:first-child { min-height: 60vh; }
.stm .step__text { display: grid; gap: 0.75rem; max-width: 26rem; color: var(--muted); transition: color 0.25s; }
.stm .step.is-active .step__text { color: var(--ink); }
.stm .step__text strong { color: var(--ink); font-weight: 600; }
.stm .stm-map { position: relative; width: 100%; flex: 1 1 0; min-height: 220px; }
.stm .stm-map canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.stm .stm-skip { position: absolute; left: -9999px; }
.stm .stm-skip:focus { position: static; display: inline-block; margin-bottom: 0.4rem; font-family: var(--font-support); font-size: var(--step--1); }
.stm .stm-key { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-family: var(--font-support); font-size: 0.75rem; color: var(--muted); min-height: 1.2em; }
.stm .stm-key span { display: inline-flex; align-items: center; gap: 0.35rem; }
.stm .stm-key i { display: inline-block; width: 16px; height: 0; border-top: 3px solid; }
.stm .stm-key i.stm-sq { width: 10px; height: 10px; border: 0; }
/* four strength classes: tropical storm (grey), Category 1-2, 3, 4-5 (steps 1, 3, 4 of the scale, for contrast between neighbours) */
.stm [data-k="0"] { color: var(--other); } .stm [data-k="1"] { color: var(--seq4-1); } .stm [data-k="2"] { color: var(--seq4-3); } .stm [data-k="3"] { color: var(--seq4-4); }
.stm .stm-key i.stm-sq { background: currentColor; }
.stm .stm-tip { position: absolute; z-index: 3; max-width: 18rem; padding: 0.55rem 0.7rem; background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); box-shadow: 0 6px 24px rgb(0 0 0 / 0.12); font-size: 0.875rem; line-height: 1.4; pointer-events: none; }
.stm .stm-tip[hidden] { display: none; }
.stm .stm-tip b { display: block; }
.stm .stm-tip .stm-note { display: block; }

@container stm (max-width: 860px) {
  .stm .story { display: block; }
  .stm .story__graphic { height: calc(100svh - var(--sticky-top)); z-index: 0; justify-content: flex-start; padding: 0.5rem 0 0; background: var(--paper); }
  .stm .stm-map { flex: none; height: 52svh; min-height: 220px; }
  .stm .story__steps { position: relative; z-index: 1; margin-top: calc(var(--sticky-top) - 100svh); padding-bottom: 50svh; pointer-events: none; }
  .stm .step, .stm .step:first-child { min-height: 92svh; align-content: end; padding-bottom: 6svh; }
  .stm .step__text { pointer-events: auto; max-width: none; padding: 1rem 1.1rem; background: var(--paper);
    border: 1px solid var(--rule); color: var(--ink); box-shadow: 0 6px 24px rgb(0 0 0 / 0.08); }
  .stm section > .stm-top { top: 0.5rem; }
  .stm section:has(> .stm-top) { padding-top: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) { .stm .step__text { transition: none; } }

/* Section blocks (design guide 3.2): rows of a rail (heading, explanation) and a body (controls, key, graphic, note)
   on the 4/8 grid; one rule between sections. */
.stm section:not(.stm-lead) { padding-block: var(--block-pad); border-top: 1px solid var(--rule); }
/* inside a chapter: every further block is set off like a chapter (space, rule, space: guide 3.4) */
.stm section > :is(.block, .stm-intro, .story) + .block { margin-top: var(--block-pad); padding-top: var(--block-pad); border-top: 1px solid var(--rule); }
.stm section > .story + .block { margin-top: 0; }
.stm .block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
.stm .block__rail { display: grid; gap: 0.875rem; align-content: start; min-width: 0; }
.stm .block__body { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.stm .block__rail .stm-prose { display: grid; gap: 0.875rem; max-width: 26rem; color: var(--muted); }
.stm .block__rail .stm-prose strong { color: var(--ink); }
@container stm (max-width: 760px) {
  .stm .block { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}

/* Charts */
.stm .stm-chart { position: relative; width: 100%; }
.stm .stm-chart svg { display: block; width: 100%; overflow: visible; }
.stm .stm-axis text { font-family: var(--font-support); font-size: 12px; fill: var(--muted); }
.stm .stm-axis line, .stm .stm-axis path { stroke: var(--rule); }
.stm .stm-axis .domain { display: none; }
.stm .stm-base { stroke: var(--muted); stroke-width: 1; }
.stm .stm-bar { fill: currentColor; }
.stm .stm-hit { fill: transparent; }
.stm .stm-col.is-on .stm-hit { fill: var(--ink); fill-opacity: 0.07; }
.stm .stm-line { fill: none; stroke: var(--muted); stroke-width: 1; }
.stm .stm-dot { fill: var(--muted); }
.stm .stm-dot.is-on { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.stm .stm-smooth { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; }
.stm .stm-key i[data-k="smooth"] { border-top-color: var(--red); }
.stm .stm-finding .stm-prose, .stm .block__rail .stm-quote + .stm-prose { margin-top: 0.5rem; }
.stm .stm-table { font-family: var(--font-support); font-size: var(--step--1); }
.stm .stm-table summary { cursor: pointer; color: var(--muted); }
.stm .stm-table__scroll { max-height: 320px; overflow: auto; margin-top: 0.5rem; }
.stm .stm-table table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.stm .stm-table :is(th, td) { text-align: right; padding: 0.2rem 0.6rem 0.2rem 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.stm .stm-table th { color: var(--muted); position: sticky; top: 0; background: var(--paper); }
.stm .stm-table :is(th, td):first-child { text-align: left; }

/* A finding: what the IPCC says, next to what the record shows */
.stm .stm-finding__head { font-family: var(--font-support); font-size: 0.875rem; color: var(--muted); }
.stm .stm-finding__head strong { color: var(--ink); font-weight: 500; }
.stm .stm-quote { display: grid; gap: 0.4rem; max-width: 26rem; padding-left: 0.9rem; border-left: 2px solid var(--rule); color: var(--muted); }
.stm .stm-quote cite { font-family: var(--font-support); font-size: var(--step--1); font-style: normal; }
.stm .stm-conf { font-family: var(--font-support); font-size: var(--step--1); color: var(--ink); }

/* Controls on the rule, as in the other articles of the series (Europe's Divides): a 44px row on a thin rule, a mono label,
   no box; a thick ink bar under the field in use; a chevron on dropdowns. */
.stm .stm-tools { display: flex; flex-wrap: wrap; align-items: stretch; column-gap: 1.5rem;
  background: repeating-linear-gradient(to bottom, transparent 0 43px, var(--rule) 43px 44px); }
.stm .stm-pick { position: relative; display: flex; align-items: center; gap: 0.55rem; height: 44px; min-width: 0;
  font-family: var(--font-support); font-size: 0.875rem; color: var(--muted); cursor: pointer; }
.stm .stm-pick:focus-within { color: var(--ink); box-shadow: inset 0 -4px 0 var(--ink); }
.stm .stm-pick > span { white-space: nowrap; }
.stm .stm-pick select { -webkit-appearance: none; appearance: none; border: 0; border-radius: 0; background: none; margin: 0;
  font: inherit; font-family: var(--font-support); font-size: 0.875rem; font-weight: 500; color: var(--ink);
  height: 100%; min-width: 0; max-width: 100%; padding: 0 1.4rem 0 0; cursor: pointer; outline: 0; text-overflow: ellipsis; }
.stm .stm-pick select option { color: initial; background: initial; }
.stm .stm-tools, .stm .stm-pick { min-width: 0; max-width: 100%; }
.stm .stm-pick select { flex: 1 1 0; width: 0; }   /* long option names must not widen the column on phones */
.stm .stm-pick::after { content: ""; position: absolute; right: 0.2rem; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none; }
@media (forced-colors: active) {
  .stm .stm-tools { background: none; }
  .stm .stm-pick { border-bottom: 1px solid CanvasText; }
  .stm .stm-pick:focus-within { border-bottom-width: 4px; box-shadow: none; }
}
.stm .stm-tools .stm-pick { flex: 1 1 18rem; max-width: 24rem; }

.stm .stm-method p { max-width: 52rem; }
.stm .stm-method ul { list-style: none; display: grid; gap: 0.5rem; max-width: 52rem; }
.stm .stm-method li { font-size: 0.9375rem; color: var(--muted); }
.stm .stm-method li strong { color: var(--ink); font-weight: 600; }
.stm .stm-method .stm-updated { margin-bottom: 1rem; font-family: var(--font-support); font-size: var(--step--1); color: var(--muted); }
.stm .stm-method__body { display: grid; gap: 0.875rem; min-width: 0; overflow-wrap: anywhere; }

/* Wind and pressure: two groups of readings (categorical: red and blue), rankings as bars, storm peaks per season */
.stm .stm-g-na { color: var(--red); } .stm .stm-g-other { color: var(--blue); }
.stm .stm-pair { fill: currentColor; }
.stm .stm-ranks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem var(--gap); }
@container stm (max-width: 900px) { .stm .stm-ranks { grid-template-columns: minmax(0, 1fr); } }
.stm .stm-rank { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.stm .stm-rank h3 { font-size: var(--step-0); font-weight: 600; }
.stm .stm-rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.stm .stm-rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 0.5rem; font-size: 0.875rem; align-items: baseline; }
.stm .stm-rank li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stm .stm-rank li b { font-family: var(--font-support); font-weight: 400; font-variant-numeric: tabular-nums; }
.stm .stm-rank li i { grid-column: 1 / -1; display: block; height: 4px; width: calc(var(--p) * 100%); background: var(--red); }
.stm .stm-peak { fill: var(--muted); fill-opacity: 0.22; }
.stm .stm-top-line { fill: none; stroke: var(--ink); stroke-width: 1; }
.stm .stm-top-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.stm .stm-method .stm-earlier { margin-top: 0.5rem; }
.stm .stm-axis-lab { font-family: var(--font-support); font-size: 12px; fill: var(--muted); }
.stm .stm-ranks-host { position: relative; min-width: 0; }
.stm .stm-tip--map { width: 17.5rem; max-width: calc(100% - 0.5rem); }
.stm .stm-rmap { display: block; max-width: 100%; height: auto; margin-top: 0.5rem; overflow: hidden; }
.stm .stm-rank li { cursor: default; }
.stm .stm-rank li.is-on span:first-child { text-decoration: underline; }
.stm .stm-rank li small { font-size: 0.75rem; color: var(--muted); }
.stm .stm-panel-lab { fill: var(--ink); }

/* What makes a storm a disaster: the drawn scene */
.stm .stm-scene { position: relative; width: 100%; aspect-ratio: 8 / 5; flex: 0 1 auto; min-height: 200px; }   /* as tall as the drawing, so that head and note sit on it */
.stm .stm-scene svg { display: block; width: 100%; height: 100%; }
.stm .stm-scene__head { font-family: var(--font-support); font-size: 0.875rem; color: var(--muted); }
.stm .stm-scene__head strong { color: var(--ink); font-weight: 500; }
.stm .stm-ex:empty { display: none; }
.stm .stm-ex { font-size: 0.9375rem; }
.stm .stm-sc-sea { fill: var(--sea); fill-opacity: 0.35; }
.stm .stm-sc-land, .stm .stm-sc-ground { fill: var(--land); stroke: var(--rule); stroke-width: 1; }
.stm .stm-sc-field { fill: var(--blue); fill-opacity: 0.22; stroke: var(--blue); stroke-width: 1; }
.stm .stm-sc-core { fill: var(--blue); fill-opacity: 0.35; }
.stm .stm-sc-eye { fill: var(--paper); stroke: var(--blue); stroke-width: 1.5; }
.stm .stm-sc-arrow line { stroke: var(--ink); stroke-width: 1.5; } .stm .stm-sc-arrow path { fill: var(--ink); }
.stm .stm-sc-hit { stroke: var(--blue); stroke-width: 6; stroke-linecap: round; }
.stm .stm-sc-lab { font-family: var(--font-support); font-size: 13px; fill: var(--muted); }
.stm .stm-sc-lab--strong, .stm .stm-sc-lab--view { fill: var(--ink); }
.stm .stm-sc-cloud { fill: var(--muted); fill-opacity: 0.35; }
.stm .stm-sc-rain line { stroke: var(--blue); stroke-width: 1.2; stroke-linecap: round; }
.stm .stm-sc-water { fill: var(--blue); fill-opacity: 0.55; }
.stm .stm-sc-before { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 3; }
.stm .stm-sc-house { fill: var(--ink); stroke: var(--paper); stroke-width: 1; }
.stm .stm-sc-house.is-wet { fill: var(--red); }
.stm .stm-sc-shelter path { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.stm .stm-sc-person { fill: var(--yellow); stroke: var(--ink); stroke-width: 0.8; }
@container stm (max-width: 860px) { .stm .stm-scene { flex: none; aspect-ratio: auto; height: 50svh; min-height: 220px; } }
@container stm (max-width: 620px) { .stm .stm-sc-lab { font-size: 24px; } .stm .stm-sc-person { r: 4px; } }

/* Storm table chart */
.stm .stm-catline { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 3; }
.stm .stm-idot { fill: var(--red); stroke: var(--paper); stroke-width: 2; }
.stm .stm-ipt.is-on .stm-idot { stroke: var(--ink); }
.stm .stm-idot.stm-idot--part { fill: var(--paper); stroke: var(--red); stroke-width: 2; }   /* direct deaths only */
.stm .stm-ilab { font-family: var(--font-support); font-size: 12px; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
.stm .stm-table td:nth-child(2) { text-align: left; white-space: normal; min-width: 12rem; }

/* What more warming changes */
.stm .stm-frow { padding-block: 10px 14px; border-top: 1px solid var(--rule); }
.stm .stm-frow:first-child { border-top: 0; }
.stm .stm-frow__head { margin: 0 0 4px; font-family: var(--font-support); font-size: 13px; }
.stm .stm-frow__head strong { display: block; font-family: inherit; font-size: 15px; }
.stm .stm-frow .stm-note { margin-top: 4px; }
.stm .stm-frange { stroke: var(--other); stroke-width: 6; stroke-linecap: round; }
.stm .stm-fdot circle:first-child { stroke: var(--paper); stroke-width: 2; }
.stm .stm-fdot.is-on circle:first-child { stroke: var(--ink); }
.stm .stm-rangekey { width: 22px !important; height: 6px !important; border-radius: 3px; background: var(--other) !important; }
.stm .stm-table td:last-child { white-space: normal; }

/* Attribution list */
.stm .stm-alist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem 2rem; }
.stm .stm-aitem { border-bottom: 1px solid var(--rule); padding-block: 0 1rem; }   /* rule below, so the first card starts on the heading's line */
.stm .stm-aitem h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.stm .stm-aitem h3 span { font-family: var(--font-support); font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.stm .stm-amap { position: relative; margin: 0.2rem 0 0.7rem; min-width: 0; }
.stm .stm-amark { fill: currentColor; stroke: var(--ink); stroke-width: 2; pointer-events: none; }
.stm .stm-amark.is-weak { fill: var(--paper); }
.stm .stm-amap svg { display: block; width: 100%; overflow: hidden; }
.stm .stm-aseg { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.stm .stm-aseg.is-weak { stroke: var(--muted); stroke-width: 1; opacity: 0.6; }
.stm .stm-afind { margin-top: 0.6rem; }
.stm .stm-afind p { margin: 0; }
.stm .stm-aaspect { display: block; font-family: var(--font-support); font-size: 0.75rem; color: var(--muted); }
.stm .stm-afind details { margin-top: 0.25rem; font-family: var(--font-support); font-size: var(--step--1); color: var(--muted); }
.stm .stm-afind summary { cursor: pointer; min-height: 24px; }
.stm .stm-afind .stm-quote { margin: 0.4rem 0 0; font-family: var(--font-body, inherit); }

/* What a tropical cyclone is */
.stm .stm-wmap svg { display: block; overflow: hidden; }
.stm [data-word="0"] { color: var(--yellow); } .stm [data-word="1"] { color: var(--blue); } .stm [data-word="2"] { color: var(--red); }
.stm .stm-wdot { fill: currentColor; opacity: 0.55; }
.stm .stm-wlab { fill: var(--ink); font-size: 12px; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
.stm .stm-what__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem var(--gap); align-items: start; min-width: 0; }
.stm .stm-what__pair > div { min-width: 0; position: relative; }
.stm .stm-scale tbody tr.is-on :is(th, td) { border-bottom-color: var(--ink); }
.stm .stm-mcell.is-on span { outline: 2px solid var(--ink); outline-offset: 0; }
.stm .stm-what__cap { margin: 0; }
.stm .stm-what .stm-wtable { max-width: none; }
.stm .stm-wtable .stm-num { text-align: right; }
.stm .stm-scale .stm-wbar i { background: currentColor; }
.stm .stm-months :is(th, td) { padding-right: 0; }
.stm .stm-months thead th:not(:first-child) { text-align: center; }
.stm .stm-months tbody th { padding-right: 0.5rem; white-space: normal; min-width: 5.5rem; }
.stm .stm-mcell { width: 1.1rem; min-width: 0.95rem; padding: 0.25rem 1px !important; border-bottom-color: transparent !important; }
.stm .stm-mcell span { display: block; height: 1.1rem; font-size: 0; background: color-mix(in srgb, var(--ink) calc(var(--v) * 0.85), var(--paper)); outline: 1px solid var(--rule); outline-offset: -1px; }
@media (forced-colors: active) { .stm .stm-mcell span { font-size: 0.6rem; background: none; height: auto; } }

/* Who loses what */
.stm .stm-wscroll { overflow-x: auto; max-width: 100%; }
.stm .stm-wtable { width: 100%; margin: 0; border-collapse: collapse; font-family: var(--font-support); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.stm .stm-wcap { margin: 0; }
.stm .stm-wtable :is(th, td) { text-align: left; font-weight: 400; padding: 0.25rem 0.75rem 0.25rem 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.stm .stm-wtable thead th { color: var(--muted); }
.stm .stm-raintable :is(th, td) { white-space: normal; vertical-align: top; }
.stm .stm-raintable td:nth-child(2) { color: var(--ink); font-family: var(--font-body, inherit); min-width: 14rem; }
.stm .stm-raintable tbody th { min-width: 5rem; }
.stm .stm-wtable td:nth-child(2) { color: var(--muted); white-space: normal; }
.stm .stm-wbar { width: 32%; min-width: 6rem; }
.stm .stm-wbar i { display: inline-block; vertical-align: middle; height: 8px; min-width: 1px; max-width: calc(100% - 3.5rem); background: var(--ink); border-radius: 0 2px 2px 0; }
.stm .stm-wbar span { margin-left: 0.4rem; }
.stm .stm-wealth .stm-table td { white-space: normal; text-align: left; min-width: 9rem; }
@media (forced-colors: active) { .stm .stm-wbar i { background: CanvasText; } }

/* Six storms */
.stm .stm-case h3 span { display: block; font-family: var(--font-support); font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.stm .stm-case__fig { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem 1.5rem; }
.stm .stm-case__pics { display: flex; align-items: flex-start; gap: 1rem 1.5rem; }
.stm .stm-pic { margin: 0; min-width: 0; }
.stm .stm-pic--satellite { flex: 2 1 0; }   /* a square beside a 3:2 photograph: the same height */
.stm .stm-pic--impact { flex: 3 1 0; }
.stm .stm-pic img { display: block; width: 100%; height: auto; background: var(--rule); }
.stm .stm-pic figcaption { margin-top: 0.5rem; font-family: var(--font-support); font-size: var(--step--1); line-height: 1.45; color: var(--muted); }
.stm .stm-pic figcaption b { font-weight: 400; color: var(--ink); }
.stm .stm-pic figcaption span { display: block; margin-top: 0.15rem; }
@media (max-width: 600px) { .stm .stm-case__pics { flex-direction: column; } .stm .stm-pic { flex: none; width: 100%; } }
.stm .stm-csea { fill: var(--paper); }
.stm .stm-cland { fill: var(--land); stroke: var(--rule); stroke-width: 0.5; }
.stm .stm-cpath { fill: none; stroke: var(--muted); stroke-width: 1; }
.stm .stm-cfix { fill: currentColor; stroke: var(--paper); stroke-width: 1; }
.stm .stm-cfix.is-weak { fill: var(--paper); stroke: var(--muted); }
.stm .stm-cfix.is-on { stroke: var(--ink); stroke-width: 2; }
.stm .stm-cline { stroke: var(--ink); }
.stm .stm-key i.stm-dotkey { width: 10px; height: 10px; border: 0; border-radius: 50%; background: currentColor; }
.stm .stm-key i.stm-dotkey--weak { background: var(--paper); border: 1px solid var(--muted); }
.stm .stm-case .stm-table td { white-space: normal; text-align: left; min-width: 9rem; }
.stm .stm-catlab { paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
.stm .stm-cmap svg { overflow: hidden; display: block; }
