/* ===========================================================================
   Theme — Report 2026-42, "Wet-Bulb Temperatures and the Emerging Geography
   of Unsurvivable Heat"

   Aesthetic: mercury skyline. The masthead is a skyline of thermometer
   columns, one for each of the 161 sites analysed, sorted by the highest
   hourly wet-bulb temperature each reached in 2024 and filled on a
   teal-to-crimson ramp. Two horizontal lines cross it: the 30.5 °C limit
   measured in humid heat for young adults and the 35 °C theoretical
   ceiling. The gap between the tallest columns and those lines is the story
   (inline SVG data URI) on a deep petrol field. Below it the page is cool
   condensation-grey paper. The measured limit is orange, the theoretical
   ceiling crimson, warming levels run from teal to violet, and every h2
   opens with a small wick thermometer. Antonio for display, Sarabun for
   prose, Google Sans Code for figures.

   Loaded after report.css; report.js reads these tokens for chart colours,
   and charts.js reads the --z, --lim and --gw tokens so no hex lives in the script.
   =========================================================================== */

:root {
  --bg: #f1f4f2;
  --bg-card: #fbfcfb;
  --bg-accent: #e3eae7;
  --bg-dark: #0e2428;
  --bg-dark-2: #081719;

  --text: #142224;
  --text-secondary: #34474a;
  --text-muted: #607275;
  --text-inverse: #eef4f2;

  --primary: #0e3a40;
  --primary-light: #1f6b72;
  --accent: #d0451f;
  --accent-light: #ff9a6a;

  --border: #ccd8d4;
  --border-light: #e1e9e6;
  --rule: #b6c6c1;

  /* wet-bulb ramp, cool to lethal */
  --z0: #dfe9e6;
  --z1: #7fc2b8;
  --z2: #f0d36a;
  --z3: #f08a3a;
  --z4: #d0302a;
  --z5: #5a0b2e;
  /* limits */
  --lim-c: #e2741f;
  --lim-t: #b8102e;
  --lim-x: #7fc2b8;
  /* warming levels */
  --gw-1: #2a8f86;
  --gw-2: #d9a21b;
  --gw-3: #d0451f;
  --gw-4: #6a1f5c;
  /* regimes */
  --r-humid: #1f6b72;
  --r-dry: #c97a2a;

  --chart-blue: #1f6b72;
  --chart-blue-light: #9cc7c3;
  --chart-gold: #d9a21b;
  --chart-red: #b8102e;
  --chart-teal: #2a8f86;
  --chart-gray: #8a9a97;
  --chart-orange: #e2741f;
  --chart-purple: #6a1f5c;

  --serif: "Antonio", "Arial Narrow", "Helvetica Neue", sans-serif;
  --sans: "Sarabun", -apple-system, BlinkMacSystemFont, "system-ui", "Segoe UI", sans-serif;
  --mono: "Google Sans Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --skyline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='860' height='330' viewBox='0 0 860 330'%3E%3Crect x='0.7' y='300.2' width='3.9' height='17.8' rx='2.0' fill='%237fc2b8' fill-opacity='0.92'/%3E%3Crect x='6.0' y='258.9' width='3.9' height='59.1' rx='2.0' fill='%237fc2b8' fill-opacity='0.92'/%3E%3Crect x='11.4' y='253.3' width='3.9' height='64.7' rx='2.0' fill='%237fc2b8' fill-opacity='0.92'/%3E%3Crect x='16.7' y='245.5' width='3.9' height='72.5' rx='2.0' fill='%237fc2b8' fill-opacity='0.92'/%3E%3Crect x='22.1' y='228.8' width='3.9' height='89.2' rx='2.0' fill='%237fc2b8' fill-opacity='0.92'/%3E%3Crect x='27.4' y='226.5' width='3.9' height='91.5' rx='2.0' fill='%237fc2b8' fill-opacity='0.92'/%3E%3Crect x='32.7' y='210.9' width='3.9' height='107.1' rx='2.0' fill='%237fc2b8' fill-opacity='0.92'/%3E%3Crect x='38.1' y='209.8' width='3.9' height='108.2' rx='2.0' fill='%237fc2b8' fill-opacity='0.92'/%3E%3Crect x='43.4' y='206.5' width='3.9' height='111.5' rx='2.0' fill='%237fc2b8' fill-opacity='0.92'/%3E%3Crect x='48.8' y='202.0' width='3.9' height='116.0' rx='2.0' fill='%2387c3b3' fill-opacity='0.92'/%3E%3Crect x='54.1' y='202.0' width='3.9' height='116.0' rx='2.0' fill='%2387c3b3' fill-opacity='0.92'/%3E%3Crect x='59.5' y='202.0' width='3.9' height='116.0' rx='2.0' fill='%2387c3b3' fill-opacity='0.92'/%3E%3Crect x='64.8' y='199.8' width='3.9' height='118.2' rx='2.0' fill='%238ac4b0' fill-opacity='0.92'/%3E%3Crect x='70.1' y='198.7' width='3.9' height='119.3' rx='2.0' fill='%238cc4af' fill-opacity='0.92'/%3E%3Crect x='75.5' y='197.5' width='3.9' height='120.5' rx='2.0' fill='%238ec4ae' fill-opacity='0.92'/%3E%3Crect x='80.8' y='196.4' width='3.9' height='121.6' rx='2.0' fill='%2390c5ac' fill-opacity='0.92'/%3E%3Crect x='86.2' y='193.1' width='3.9' height='124.9' rx='2.0' fill='%2396c5a8' fill-opacity='0.92'/%3E%3Crect x='91.5' y='192.0' width='3.9' height='126.0' rx='2.0' fill='%2397c6a7' fill-opacity='0.92'/%3E%3Crect x='96.8' y='188.6' width='3.9' height='129.4' rx='2.0' fill='%239dc7a3' fill-opacity='0.92'/%3E%3Crect x='102.2' y='185.3' width='3.9' height='132.7' rx='2.0' fill='%23a3c79f' fill-opacity='0.92'/%3E%3Crect x='107.5' y='184.2' width='3.9' height='133.8' rx='2.0' fill='%23a5c89e' fill-opacity='0.92'/%3E%3Crect x='112.9' y='180.8' width='3.9' height='137.2' rx='2.0' fill='%23aac99a' fill-opacity='0.92'/%3E%3Crect x='118.2' y='179.7' width='3.9' height='138.3' rx='2.0' fill='%23acc999' fill-opacity='0.92'/%3E%3Crect x='123.6' y='178.6' width='3.9' height='139.4' rx='2.0' fill='%23aec998' fill-opacity='0.92'/%3E%3Crect x='128.9' y='177.5' width='3.9' height='140.5' rx='2.0' fill='%23b0c996' fill-opacity='0.92'/%3E%3Crect x='134.2' y='177.5' width='3.9' height='140.5' rx='2.0' fill='%23b0c996' fill-opacity='0.92'/%3E%3Crect x='139.6' y='176.3' width='3.9' height='141.7' rx='2.0' fill='%23b2ca95' fill-opacity='0.92'/%3E%3Crect x='144.9' y='174.1' width='3.9' height='143.9' rx='2.0' fill='%23b6ca92' fill-opacity='0.92'/%3E%3Crect x='150.3' y='173.0' width='3.9' height='145.0' rx='2.0' fill='%23b8ca91' fill-opacity='0.92'/%3E%3Crect x='155.6' y='173.0' width='3.9' height='145.0' rx='2.0' fill='%23b8ca91' fill-opacity='0.92'/%3E%3Crect x='160.9' y='171.9' width='3.9' height='146.1' rx='2.0' fill='%23b9cb90' fill-opacity='0.92'/%3E%3Crect x='166.3' y='171.9' width='3.9' height='146.1' rx='2.0' fill='%23b9cb90' fill-opacity='0.92'/%3E%3Crect x='171.6' y='171.9' width='3.9' height='146.1' rx='2.0' fill='%23b9cb90' fill-opacity='0.92'/%3E%3Crect x='177.0' y='171.9' width='3.9' height='146.1' rx='2.0' fill='%23b9cb90' fill-opacity='0.92'/%3E%3Crect x='182.3' y='168.5' width='3.9' height='149.5' rx='2.0' fill='%23bfcc8c' fill-opacity='0.92'/%3E%3Crect x='187.7' y='167.4' width='3.9' height='150.6' rx='2.0' fill='%23c1cc8a' fill-opacity='0.92'/%3E%3Crect x='193.0' y='165.2' width='3.9' height='152.8' rx='2.0' fill='%23c5cc88' fill-opacity='0.92'/%3E%3Crect x='198.3' y='164.1' width='3.9' height='153.9' rx='2.0' fill='%23c7cd87' fill-opacity='0.92'/%3E%3Crect x='203.7' y='161.8' width='3.9' height='156.2' rx='2.0' fill='%23cacd84' fill-opacity='0.92'/%3E%3Crect x='209.0' y='159.6' width='3.9' height='158.4' rx='2.0' fill='%23cece81' fill-opacity='0.92'/%3E%3Crect x='214.4' y='159.6' width='3.9' height='158.4' rx='2.0' fill='%23cece81' fill-opacity='0.92'/%3E%3Crect x='219.7' y='158.5' width='3.9' height='159.5' rx='2.0' fill='%23d0ce80' fill-opacity='0.92'/%3E%3Crect x='225.0' y='158.5' width='3.9' height='159.5' rx='2.0' fill='%23d0ce80' fill-opacity='0.92'/%3E%3Crect x='230.4' y='157.4' width='3.9' height='160.6' rx='2.0' fill='%23d2ce7f' fill-opacity='0.92'/%3E%3Crect x='235.7' y='156.3' width='3.9' height='161.7' rx='2.0' fill='%23d4cf7e' fill-opacity='0.92'/%3E%3Crect x='241.1' y='156.3' width='3.9' height='161.7' rx='2.0' fill='%23d4cf7e' fill-opacity='0.92'/%3E%3Crect x='246.4' y='156.3' width='3.9' height='161.7' rx='2.0' fill='%23d4cf7e' fill-opacity='0.92'/%3E%3Crect x='251.8' y='156.3' width='3.9' height='161.7' rx='2.0' fill='%23d4cf7e' fill-opacity='0.92'/%3E%3Crect x='257.1' y='156.3' width='3.9' height='161.7' rx='2.0' fill='%23d4cf7e' fill-opacity='0.92'/%3E%3Crect x='262.4' y='155.2' width='3.9' height='162.8' rx='2.0' fill='%23d6cf7c' fill-opacity='0.92'/%3E%3Crect x='267.8' y='155.2' width='3.9' height='162.8' rx='2.0' fill='%23d6cf7c' fill-opacity='0.92'/%3E%3Crect x='273.1' y='155.2' width='3.9' height='162.8' rx='2.0' fill='%23d6cf7c' fill-opacity='0.92'/%3E%3Crect x='278.5' y='155.2' width='3.9' height='162.8' rx='2.0' fill='%23d6cf7c' fill-opacity='0.92'/%3E%3Crect x='283.8' y='154.0' width='3.9' height='164.0' rx='2.0' fill='%23d8cf7b' fill-opacity='0.92'/%3E%3Crect x='289.1' y='152.9' width='3.9' height='165.1' rx='2.0' fill='%23d9d07a' fill-opacity='0.92'/%3E%3Crect x='294.5' y='151.8' width='3.9' height='166.2' rx='2.0' fill='%23dbd078' fill-opacity='0.92'/%3E%3Crect x='299.8' y='151.8' width='3.9' height='166.2' rx='2.0' fill='%23dbd078' fill-opacity='0.92'/%3E%3Crect x='305.2' y='150.7' width='3.9' height='167.3' rx='2.0' fill='%23ddd077' fill-opacity='0.92'/%3E%3Crect x='310.5' y='150.7' width='3.9' height='167.3' rx='2.0' fill='%23ddd077' fill-opacity='0.92'/%3E%3Crect x='315.9' y='148.5' width='3.9' height='169.5' rx='2.0' fill='%23e1d174' fill-opacity='0.92'/%3E%3Crect x='321.2' y='148.5' width='3.9' height='169.5' rx='2.0' fill='%23e1d174' fill-opacity='0.92'/%3E%3Crect x='326.5' y='147.3' width='3.9' height='170.7' rx='2.0' fill='%23e3d173' fill-opacity='0.92'/%3E%3Crect x='331.9' y='144.0' width='3.9' height='174.0' rx='2.0' fill='%23e8d26f' fill-opacity='0.92'/%3E%3Crect x='337.2' y='142.9' width='3.9' height='175.1' rx='2.0' fill='%23ead26e' fill-opacity='0.92'/%3E%3Crect x='342.6' y='142.9' width='3.9' height='175.1' rx='2.0' fill='%23ead26e' fill-opacity='0.92'/%3E%3Crect x='347.9' y='141.8' width='3.9' height='176.2' rx='2.0' fill='%23ecd26d' fill-opacity='0.92'/%3E%3Crect x='353.2' y='141.8' width='3.9' height='176.2' rx='2.0' fill='%23ecd26d' fill-opacity='0.92'/%3E%3Crect x='358.6' y='140.7' width='3.9' height='177.3' rx='2.0' fill='%23eed36b' fill-opacity='0.92'/%3E%3Crect x='363.9' y='140.7' width='3.9' height='177.3' rx='2.0' fill='%23eed36b' fill-opacity='0.92'/%3E%3Crect x='369.3' y='140.7' width='3.9' height='177.3' rx='2.0' fill='%23eed36b' fill-opacity='0.92'/%3E%3Crect x='374.6' y='137.3' width='3.9' height='180.7' rx='2.0' fill='%23f0ce67' fill-opacity='0.92'/%3E%3Crect x='380.0' y='136.2' width='3.9' height='181.8' rx='2.0' fill='%23f0cc65' fill-opacity='0.92'/%3E%3Crect x='385.3' y='136.2' width='3.9' height='181.8' rx='2.0' fill='%23f0cc65' fill-opacity='0.92'/%3E%3Crect x='390.6' y='135.1' width='3.9' height='182.9' rx='2.0' fill='%23f0c964' fill-opacity='0.92'/%3E%3Crect x='396.0' y='135.1' width='3.9' height='182.9' rx='2.0' fill='%23f0c964' fill-opacity='0.92'/%3E%3Crect x='401.3' y='132.8' width='3.9' height='185.2' rx='2.0' fill='%23f0c460' fill-opacity='0.92'/%3E%3Crect x='406.7' y='131.7' width='3.9' height='186.3' rx='2.0' fill='%23f0c25f' fill-opacity='0.92'/%3E%3Crect x='412.0' y='131.7' width='3.9' height='186.3' rx='2.0' fill='%23f0c25f' fill-opacity='0.92'/%3E%3Crect x='417.3' y='130.6' width='3.9' height='187.4' rx='2.0' fill='%23f0c05d' fill-opacity='0.92'/%3E%3Crect x='422.7' y='130.6' width='3.9' height='187.4' rx='2.0' fill='%23f0c05d' fill-opacity='0.92'/%3E%3Crect x='428.0' y='130.6' width='3.9' height='187.4' rx='2.0' fill='%23f0c05d' fill-opacity='0.92'/%3E%3Crect x='433.4' y='130.6' width='3.9' height='187.4' rx='2.0' fill='%23f0c05d' fill-opacity='0.92'/%3E%3Crect x='438.7' y='130.6' width='3.9' height='187.4' rx='2.0' fill='%23f0c05d' fill-opacity='0.92'/%3E%3Crect x='444.1' y='129.5' width='3.9' height='188.5' rx='2.0' fill='%23f0bd5c' fill-opacity='0.92'/%3E%3Crect x='449.4' y='129.5' width='3.9' height='188.5' rx='2.0' fill='%23f0bd5c' fill-opacity='0.92'/%3E%3Crect x='454.7' y='128.4' width='3.9' height='189.6' rx='2.0' fill='%23f0bb5a' fill-opacity='0.92'/%3E%3Crect x='460.1' y='128.4' width='3.9' height='189.6' rx='2.0' fill='%23f0bb5a' fill-opacity='0.92'/%3E%3Crect x='465.4' y='127.3' width='3.9' height='190.7' rx='2.0' fill='%23f0b858' fill-opacity='0.92'/%3E%3Crect x='470.8' y='127.3' width='3.9' height='190.7' rx='2.0' fill='%23f0b858' fill-opacity='0.92'/%3E%3Crect x='476.1' y='126.2' width='3.9' height='191.8' rx='2.0' fill='%23f0b657' fill-opacity='0.92'/%3E%3Crect x='481.4' y='125.0' width='3.9' height='193.0' rx='2.0' fill='%23f0b355' fill-opacity='0.92'/%3E%3Crect x='486.8' y='125.0' width='3.9' height='193.0' rx='2.0' fill='%23f0b355' fill-opacity='0.92'/%3E%3Crect x='492.1' y='125.0' width='3.9' height='193.0' rx='2.0' fill='%23f0b355' fill-opacity='0.92'/%3E%3Crect x='497.5' y='123.9' width='3.9' height='194.1' rx='2.0' fill='%23f0b154' fill-opacity='0.92'/%3E%3Crect x='502.8' y='123.9' width='3.9' height='194.1' rx='2.0' fill='%23f0b154' fill-opacity='0.92'/%3E%3Crect x='508.2' y='122.8' width='3.9' height='195.2' rx='2.0' fill='%23f0ae52' fill-opacity='0.92'/%3E%3Crect x='513.5' y='122.8' width='3.9' height='195.2' rx='2.0' fill='%23f0ae52' fill-opacity='0.92'/%3E%3Crect x='518.8' y='122.8' width='3.9' height='195.2' rx='2.0' fill='%23f0ae52' fill-opacity='0.92'/%3E%3Crect x='524.2' y='122.8' width='3.9' height='195.2' rx='2.0' fill='%23f0ae52' fill-opacity='0.92'/%3E%3Crect x='529.5' y='121.7' width='3.9' height='196.3' rx='2.0' fill='%23f0ac50' fill-opacity='0.92'/%3E%3Crect x='534.9' y='121.7' width='3.9' height='196.3' rx='2.0' fill='%23f0ac50' fill-opacity='0.92'/%3E%3Crect x='540.2' y='121.7' width='3.9' height='196.3' rx='2.0' fill='%23f0ac50' fill-opacity='0.92'/%3E%3Crect x='545.5' y='120.6' width='3.9' height='197.4' rx='2.0' fill='%23f0aa4f' fill-opacity='0.92'/%3E%3Crect x='550.9' y='120.6' width='3.9' height='197.4' rx='2.0' fill='%23f0aa4f' fill-opacity='0.92'/%3E%3Crect x='556.2' y='120.6' width='3.9' height='197.4' rx='2.0' fill='%23f0aa4f' fill-opacity='0.92'/%3E%3Crect x='561.6' y='120.6' width='3.9' height='197.4' rx='2.0' fill='%23f0aa4f' fill-opacity='0.92'/%3E%3Crect x='566.9' y='119.5' width='3.9' height='198.5' rx='2.0' fill='%23f0a74d' fill-opacity='0.92'/%3E%3Crect x='572.3' y='119.5' width='3.9' height='198.5' rx='2.0' fill='%23f0a74d' fill-opacity='0.92'/%3E%3Crect x='577.6' y='118.3' width='3.9' height='199.7' rx='2.0' fill='%23f0a54c' fill-opacity='0.92'/%3E%3Crect x='582.9' y='118.3' width='3.9' height='199.7' rx='2.0' fill='%23f0a54c' fill-opacity='0.92'/%3E%3Crect x='588.3' y='117.2' width='3.9' height='200.8' rx='2.0' fill='%23f0a24a' fill-opacity='0.92'/%3E%3Crect x='593.6' y='117.2' width='3.9' height='200.8' rx='2.0' fill='%23f0a24a' fill-opacity='0.92'/%3E%3Crect x='599.0' y='117.2' width='3.9' height='200.8' rx='2.0' fill='%23f0a24a' fill-opacity='0.92'/%3E%3Crect x='604.3' y='117.2' width='3.9' height='200.8' rx='2.0' fill='%23f0a24a' fill-opacity='0.92'/%3E%3Crect x='609.6' y='117.2' width='3.9' height='200.8' rx='2.0' fill='%23f0a24a' fill-opacity='0.92'/%3E%3Crect x='615.0' y='116.1' width='3.9' height='201.9' rx='2.0' fill='%23f0a048' fill-opacity='0.92'/%3E%3Crect x='620.3' y='115.0' width='3.9' height='203.0' rx='2.0' fill='%23f09d47' fill-opacity='0.92'/%3E%3Crect x='625.7' y='115.0' width='3.9' height='203.0' rx='2.0' fill='%23f09d47' fill-opacity='0.92'/%3E%3Crect x='631.0' y='113.9' width='3.9' height='204.1' rx='2.0' fill='%23f09b45' fill-opacity='0.92'/%3E%3Crect x='636.4' y='112.8' width='3.9' height='205.2' rx='2.0' fill='%23f09944' fill-opacity='0.92'/%3E%3Crect x='641.7' y='112.8' width='3.9' height='205.2' rx='2.0' fill='%23f09944' fill-opacity='0.92'/%3E%3Crect x='647.0' y='111.7' width='3.9' height='206.3' rx='2.0' fill='%23f09642' fill-opacity='0.92'/%3E%3Crect x='652.4' y='111.7' width='3.9' height='206.3' rx='2.0' fill='%23f09642' fill-opacity='0.92'/%3E%3Crect x='657.7' y='110.5' width='3.9' height='207.5' rx='2.0' fill='%23f09440' fill-opacity='0.92'/%3E%3Crect x='663.1' y='109.4' width='3.9' height='208.6' rx='2.0' fill='%23f0913f' fill-opacity='0.92'/%3E%3Crect x='668.4' y='109.4' width='3.9' height='208.6' rx='2.0' fill='%23f0913f' fill-opacity='0.92'/%3E%3Crect x='673.7' y='108.3' width='3.9' height='209.7' rx='2.0' fill='%23f08f3d' fill-opacity='0.92'/%3E%3Crect x='679.1' y='108.3' width='3.9' height='209.7' rx='2.0' fill='%23f08f3d' fill-opacity='0.92'/%3E%3Crect x='684.4' y='106.1' width='3.9' height='211.9' rx='2.0' fill='%23f08a3a' fill-opacity='0.92'/%3E%3Crect x='689.8' y='105.0' width='3.9' height='213.0' rx='2.0' fill='%23ee8539' fill-opacity='0.92'/%3E%3Crect x='695.1' y='103.8' width='3.9' height='214.2' rx='2.0' fill='%23ed8138' fill-opacity='0.92'/%3E%3Crect x='700.5' y='103.8' width='3.9' height='214.2' rx='2.0' fill='%23ed8138' fill-opacity='0.92'/%3E%3Crect x='705.8' y='103.8' width='3.9' height='214.2' rx='2.0' fill='%23ed8138' fill-opacity='0.92'/%3E%3Crect x='711.1' y='102.7' width='3.9' height='215.3' rx='2.0' fill='%23eb7c38' fill-opacity='0.92'/%3E%3Crect x='716.5' y='102.7' width='3.9' height='215.3' rx='2.0' fill='%23eb7c38' fill-opacity='0.92'/%3E%3Crect x='721.8' y='101.6' width='3.9' height='216.4' rx='2.0' fill='%23ea7837' fill-opacity='0.92'/%3E%3Crect x='727.2' y='101.6' width='3.9' height='216.4' rx='2.0' fill='%23ea7837' fill-opacity='0.92'/%3E%3Crect x='732.5' y='101.6' width='3.9' height='216.4' rx='2.0' fill='%23ea7837' fill-opacity='0.92'/%3E%3Crect x='737.8' y='101.6' width='3.9' height='216.4' rx='2.0' fill='%23ea7837' fill-opacity='0.92'/%3E%3Crect x='743.2' y='100.5' width='3.9' height='217.5' rx='2.0' fill='%23e87436' fill-opacity='0.92'/%3E%3Crect x='748.5' y='99.4' width='3.9' height='218.6' rx='2.0' fill='%23e66f35' fill-opacity='0.92'/%3E%3Crect x='753.9' y='98.3' width='3.9' height='219.7' rx='2.0' fill='%23e56b34' fill-opacity='0.92'/%3E%3Crect x='759.2' y='97.2' width='3.9' height='220.8' rx='2.0' fill='%23e36634' fill-opacity='0.92'/%3E%3Crect x='764.6' y='97.2' width='3.9' height='220.8' rx='2.0' fill='%23e36634' fill-opacity='0.92'/%3E%3Crect x='769.9' y='92.7' width='3.9' height='225.3' rx='2.0' fill='%23dd5430' fill-opacity='0.92'/%3E%3Crect x='775.2' y='91.6' width='3.9' height='226.4' rx='2.0' fill='%23db4f30' fill-opacity='0.92'/%3E%3Crect x='780.6' y='91.6' width='3.9' height='226.4' rx='2.0' fill='%23db4f30' fill-opacity='0.92'/%3E%3Crect x='785.9' y='90.5' width='3.9' height='227.5' rx='2.0' fill='%23da4b2f' fill-opacity='0.92'/%3E%3Crect x='791.3' y='90.5' width='3.9' height='227.5' rx='2.0' fill='%23da4b2f' fill-opacity='0.92'/%3E%3Crect x='796.6' y='90.5' width='3.9' height='227.5' rx='2.0' fill='%23da4b2f' fill-opacity='0.92'/%3E%3Crect x='801.9' y='84.9' width='3.9' height='233.1' rx='2.0' fill='%23d2352b' fill-opacity='0.92'/%3E%3Crect x='807.3' y='83.8' width='3.9' height='234.2' rx='2.0' fill='%23d0302a' fill-opacity='0.92'/%3E%3Crect x='812.6' y='82.7' width='3.9' height='235.3' rx='2.0' fill='%23ca2e2a' fill-opacity='0.92'/%3E%3Crect x='818.0' y='81.5' width='3.9' height='236.5' rx='2.0' fill='%23c42c2a' fill-opacity='0.92'/%3E%3Crect x='823.3' y='79.3' width='3.9' height='238.7' rx='2.0' fill='%23b8292b' fill-opacity='0.92'/%3E%3Crect x='828.7' y='79.3' width='3.9' height='238.7' rx='2.0' fill='%23b8292b' fill-opacity='0.92'/%3E%3Crect x='834.0' y='79.3' width='3.9' height='238.7' rx='2.0' fill='%23b8292b' fill-opacity='0.92'/%3E%3Crect x='839.3' y='77.1' width='3.9' height='240.9' rx='2.0' fill='%23ad252b' fill-opacity='0.92'/%3E%3Crect x='844.7' y='71.5' width='3.9' height='246.5' rx='2.0' fill='%238f1c2c' fill-opacity='0.92'/%3E%3Crect x='850.0' y='70.4' width='3.9' height='247.6' rx='2.0' fill='%23891a2c' fill-opacity='0.92'/%3E%3Crect x='855.4' y='69.3' width='3.9' height='248.7' rx='2.0' fill='%2383182d' fill-opacity='0.92'/%3E%3Cline x1='0' x2='860' y1='89.3' y2='89.3' stroke='%23e2741f' stroke-width='1.6' stroke-dasharray='6 4'/%3E%3Ctext x='854' y='84.3' fill='%23e2741f' font-family='monospace' font-size='11' text-anchor='end'%3E30.5 %C2%B0C measured limit%3C/text%3E%3Cline x1='0' x2='860' y1='39.2' y2='39.2' stroke='%23ff4d6a' stroke-width='1.6' stroke-dasharray='6 4'/%3E%3Ctext x='854' y='34.2' fill='%23ff4d6a' font-family='monospace' font-size='11' text-anchor='end'%3E35 %C2%B0C theoretical ceiling%3C/text%3E%3Cline x1='0' x2='860' y1='318' y2='318' stroke='%237fc2b8' stroke-opacity='0.5'/%3E%3C/svg%3E");
  --ramp: linear-gradient(90deg, var(--z1), var(--z2), var(--z3), var(--z4), var(--z5));

  --max-width: 1200px;
}

body { font-size: 1.02rem; line-height: 1.66; }

::selection { background: rgba(208, 69, 31, 0.2); }
:where(a, button, [tabindex], input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

a { color: var(--primary-light); }
a:hover { color: var(--accent); }

.progress__bar { background: var(--ramp); }
.skip-link { background: var(--primary); }

/* --- masthead: the mercury skyline ------------------------------------------------- */

.masthead {
  position: relative;
  color: var(--text-inverse);
  border-bottom: 0;
  padding: 3.3rem var(--gutter) 4.2rem;
  background:
    linear-gradient(90deg, rgba(8, 23, 25, 0.97) 0 36%, rgba(8, 23, 25, 0.7) 56%, rgba(8, 23, 25, 0.1) 84%),
    var(--skyline) right bottom / 860px auto no-repeat,
    radial-gradient(ellipse at 85% 0%, #17393e, transparent 60%),
    linear-gradient(180deg, #0e2428, #081719);
}
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--z1) 0 40%, var(--lim-c) 40% 72%, var(--lim-t) 72% 100%); }
.masthead .overline { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--accent-light); margin-bottom: 1rem; }
.masthead .overline::before { content: "Tw · 30.5 °C · 35 °C · "; color: #fff; }
.masthead h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.5rem, 5.8vw, 4.3rem); line-height: 1.02; letter-spacing: 0; text-transform: none; max-width: 19ch; color: #fff; }
.masthead .subtitle { font-family: var(--sans); font-weight: 500; font-size: 1.22rem; color: #d7e6e2; max-width: 54ch; }
.masthead .strapline { font-family: var(--sans); font-style: normal; font-size: 1.02rem; color: #eaf2ef; border-left: 4px solid var(--lim-c); max-width: 64ch; background: rgba(8, 23, 25, 0.74); }
.masthead .meta-row { border-top: 1px solid rgba(255, 255, 255, 0.16); color: #b9ccc8; font-family: var(--mono); font-size: 0.8rem; position: relative; }
.masthead .meta-row strong { color: var(--accent-light); font-family: var(--mono); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.1em; }

/* --- nav --------------------------------------------------------------------- */

.sticky-nav { background: rgba(241, 244, 242, 0.96); border-bottom: 1px solid var(--border); }
.nav-inner a { color: var(--text-muted); font-family: var(--mono); font-size: 0.78rem; }
.nav-inner a:hover { color: var(--text); }
.nav-inner a.is-active { color: var(--primary); border-bottom-color: var(--accent); }

/* --- headings with a wick thermometer glyph ---------------------------------------- */

section > h2 {
  position: relative;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 2.7rem);
  letter-spacing: 0.005em;
  line-height: 1.06;
  color: var(--primary);
  border-bottom: 1px solid var(--rule);
  padding: 0 0 0.55rem 1.7rem;
}
section > h2::before {
  content: "";
  position: absolute; left: 0.32rem; top: 0.12em;
  width: 0.42rem; height: 0.92em;
  border-radius: 0.21rem 0.21rem 0 0;
  background: linear-gradient(0deg, var(--lim-t) 0 45%, var(--bg-accent) 45%);
  box-shadow: inset 0 0 0 1.5px var(--text);
}
section > h2::after {
  content: "";
  position: absolute; left: 0.14rem; top: calc(0.12em + 0.92em - 0.3rem);
  width: 0.78rem; height: 0.78rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--lim-t) 0 55%, transparent 56%), var(--lim-x);
  box-shadow: inset 0 0 0 1.5px var(--text);
}
.abstract h2, .endmatter h2 { padding-left: 0; border-bottom: 0; font-family: var(--mono); font-size: 0.86rem; }
.abstract h2::before, .endmatter h2::before, .abstract h2::after, .endmatter h2::after { content: none; }
section > .section-dek { font-family: var(--sans); font-style: normal; font-weight: 500; color: var(--text-muted); font-size: 1.16rem; line-height: 1.45; max-width: none; }

.section-rule { border-top: 1px solid var(--border-light); margin: 2.6rem 0 2.8rem; }

/* --- abstract, endmatter ------------------------------------------------------------- */

.abstract { background: var(--bg-card); border: 1px solid var(--border); border-top: 6px solid transparent; border-image: var(--ramp) 1; border-radius: 0; }
.abstract h2 { color: var(--primary); letter-spacing: 0.12em; }
.endmatter .kw { background: var(--bg-accent); border-color: var(--border); font-family: var(--mono); font-size: 0.74rem; }
.endmatter dt { font-family: var(--mono); font-size: 0.72rem; }

/* --- KPI board ------------------------------------------------------------------------- */

.kpi-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 1.6rem 0; }
.kpi { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 1.05rem 1.05rem 0.85rem 1.35rem; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(0deg, var(--k, var(--accent)) 0 var(--f, 70%), var(--bg-accent) var(--f, 70%)); }
.kpi--lim { --k: var(--lim-c); --f: 80%; }
.kpi--ceil { --k: var(--lim-t); --f: 95%; }
.kpi--cool { --k: var(--gw-1); --f: 45%; }
.kpi--warm { --k: var(--gw-3); --f: 65%; }
.kpi--deep { --k: var(--gw-4); --f: 88%; }
.kpi-value { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.55rem); letter-spacing: 0; line-height: 1; color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.kpi-label { font-size: 0.86rem; line-height: 1.42; color: var(--text-secondary); margin-top: 0.45rem; flex: 1; }
.kpi-source { font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted); margin-top: 0.6rem; border-top: 1px solid var(--border-light); padding-top: 0.4rem; margin-bottom: 0.3rem; }

/* --- readout ----------------------------------------------------------------------------- */

.readout { background: var(--bg-dark); border-radius: 4px; padding: 1.15rem 1.4rem 0.45rem; margin: 1.6rem 0; position: relative; overflow: hidden; border-left: 6px solid var(--lim-c); }
.readout::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 6px; background: var(--lim-t); }
.readout-title { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light); margin: 0 0 0.4rem !important; }
.readout p { color: #dce8e5; text-align: justify; hyphens: auto; -webkit-hyphens: auto; position: relative; }
.readout strong { color: #fff; }

/* --- panels ------------------------------------------------------------------------------ */

.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.2rem 0; }
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 1.05rem 1.15rem 0.95rem; min-width: 0; }
.panel--wide { grid-column: 1 / -1; }
.panel--hero { margin: 1.2rem 0; padding: 1.15rem 1.25rem 1.05rem; border-top: 5px solid transparent; border-image: var(--ramp) 1; }
.panel-head { border-bottom: 1px solid var(--border-light); margin-bottom: 0.75rem; padding-bottom: 0.55rem; }
.panel-title { font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; font-size: 1.28rem; line-height: 1.2; color: var(--text); margin: 0 !important; }
.panel-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); margin: 0.25rem 0 0.4rem !important; }
.panel-note { font-size: 0.85rem; line-height: 1.5; color: var(--text-muted); margin: 0.6rem 0 0 !important; text-align: left !important; }
.panel canvas { max-width: 100%; }
.panel .chart-frame { height: 310px; }
.panel .chart-frame--tall { height: 430px; }
.panel .chart-frame--short { height: 240px; }

.stat-tile { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 0.85rem 1rem; border-left: 6px solid var(--k, var(--accent)); min-width: 0; }
.stat-tile--lim { --k: var(--lim-c); }
.stat-tile--ceil { --k: var(--lim-t); }
.stat-tile--cool { --k: var(--gw-1); }
.stat-tile--deep { --k: var(--gw-4); }
.stat-tile-value { font-family: var(--serif); font-weight: 700; letter-spacing: 0; font-size: 1.75rem; line-height: 1.05; color: var(--text); margin: 0 !important; font-variant-numeric: lining-nums tabular-nums; }
.stat-tile-label { font-size: 0.82rem; color: var(--text-muted); margin: 0.2rem 0 0 !important; text-align: left !important; line-height: 1.4; }
.tile-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 1rem 0; }

/* --- controls ------------------------------------------------------------------------------ */

.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 22px; margin-bottom: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--border-light); }
.slider { display: grid; gap: 3px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.slider label, .seg-wrap .seg-label { font-family: var(--sans); font-weight: 600; font-size: 0.9rem; color: var(--text); }
.slider output { font-family: var(--mono); font-weight: 700; font-size: 0.86rem; color: var(--accent); white-space: nowrap; }
.slider .hint { font-size: 0.78rem; line-height: 1.35; color: var(--text-muted); margin: 0 !important; text-align: left !important; }
.slider input[type="range"] { width: 100%; accent-color: var(--accent); margin: 2px 0; }
.seg-wrap { display: grid; gap: 5px; }
.segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: var(--bg-card); width: fit-content; max-width: 100%; }
.segmented button { font: inherit; font-family: var(--mono); font-size: 0.78rem; padding: 0.38rem 0.66rem; border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; }
.segmented button + button { border-left: 1px solid var(--rule); }
.segmented button.is-on { background: var(--primary); color: #fff; }
.calc-note { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); margin: 0.6rem 0 0 !important; line-height: 1.5; }
select.pick { font: inherit; font-family: var(--sans); font-size: 0.9rem; padding: 0.35rem 0.5rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg-card); color: var(--text); max-width: 100%; }

/* --- wet-bulb calculator ------------------------------------------------------------------ */

.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: stretch; }
.tw-readout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 0.9rem 1rem; }
.tw-tube { position: relative; width: 26px; height: 190px; border-radius: 13px 13px 0 0; background: var(--bg-accent); box-shadow: inset 0 0 0 2px var(--text); margin: 0 0 14px 2.1rem; }
.tw-tube i { position: absolute; left: 5px; right: 5px; bottom: 0; height: 40%; border-radius: 8px 8px 0 0; background: var(--lim-t); transition: height 0.25s, background 0.25s; }
.tw-tube::after { content: ""; position: absolute; left: -9px; bottom: -22px; width: 44px; height: 44px; border-radius: 50%; background: var(--tube, var(--lim-t)); box-shadow: inset 0 0 0 2px var(--text); }
.tw-tube b { position: absolute; right: 30px; width: 36px; text-align: right; border-top: 1.5px dashed var(--lim-c); font-family: var(--mono); font-size: 0.64rem; font-weight: 400; color: var(--lim-c); line-height: 1; padding-top: 2px; white-space: nowrap; }
.tw-tube b.t { border-top-color: var(--lim-t); color: var(--lim-t); }
.tw-big { font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--text); margin: 0 !important; }
.tw-class { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; margin: 0.4rem 0 0.4rem !important; padding: 3px 8px; border-radius: 3px; display: inline-block; background: var(--bg-accent); color: var(--text); }
.tw-text { font-size: 0.88rem; line-height: 1.5; color: var(--text-secondary); margin: 0 !important; text-align: left !important; }

/* --- threshold ladder ------------------------------------------------------------------ */

.ladder { display: grid; gap: 6px; margin: 0.4rem 0 0; }
.rung { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 12px; align-items: start; border-left: 6px solid var(--k, var(--rule)); background: var(--bg); border-radius: 0 4px 4px 0; padding: 0.55rem 0.8rem; }
.rung b { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--text); }
.rung p { font-size: 0.86rem; line-height: 1.45; color: var(--text-secondary); margin: 0 !important; text-align: left !important; }
.rung p em { font-style: normal; font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); display: block; margin-top: 2px; }

/* --- atlas --------------------------------------------------------------------------------- */

.atlas-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.atlas-wrap { position: relative; border-radius: 4px; overflow: hidden; background: #e7eeeb; border: 1px solid var(--border); }
.atlas { display: block; width: 100%; height: auto; }
.atlas .atlas-sea { fill: #e7eeeb; }
.atlas .atlas-land path { fill: #d3ddd9; stroke: #fff; stroke-width: 0.45; stroke-linejoin: round; }
.atlas .atlas-dots circle { fill: #d3ddd9; stroke: #9fb0ab; stroke-width: 0.5; }
.atlas .sites circle { stroke: var(--text); stroke-width: 0.6; cursor: pointer; transition: r 0.2s, fill 0.2s; }
.atlas .sites circle.is-hot { stroke-dasharray: 1.6 1.2; }
.atlas .sites circle.is-pick { stroke-width: 2; }
.atlas-corner { position: absolute; left: 10px; bottom: 8px; font-family: var(--mono); font-size: 0.64rem; color: var(--text-muted); background: rgba(255, 255, 255, 0.85); padding: 1px 6px; border-radius: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0.6rem 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.72rem; color: var(--text-secondary); }
.legend i { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 1px solid rgba(20, 34, 36, 0.5); }
.site-card { border: 1px solid var(--border); border-radius: 4px; background: var(--bg); padding: 0.85rem 0.95rem; min-height: 300px; border-top: 6px solid var(--cc, var(--rule)); }
.site-card .sc-kicker { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 0 !important; }
.site-card h3 { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--primary); margin: 0.05rem 0 0.15rem; line-height: 1.1; }
.site-card .sc-class { font-family: var(--mono); font-size: 0.74rem; margin: 0 0 0.55rem !important; color: var(--text-secondary); text-align: left !important; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 0.86rem; margin: 0; }
.kv dt { color: var(--text-secondary); }
.kv dd { margin: 0; font-family: var(--mono); font-size: 0.82rem; color: var(--text); text-align: right; }
.gap-bar { position: relative; height: 16px; margin: 0.8rem 0 0.2rem; border-radius: 3px; background: linear-gradient(90deg, var(--z0), var(--z1) 40%, var(--z2) 60%, var(--z3) 78%, var(--z4) 90%, var(--z5)); }
.gap-bar i { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--text); border-radius: 1px; }
.gap-bar i.now { background: var(--text); }
.gap-bar i.fut { background: var(--accent); }
.gap-lab { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.64rem; color: var(--text-muted); }

/* --- crossing table -------------------------------------------------------------------- */

table.cross { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.cross th, table.cross td { padding: 0.42rem 0.55rem; border-bottom: 1px solid var(--border-light); text-align: left; }
table.cross thead th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid var(--rule); }
table.cross td.n { font-family: var(--mono); text-align: right; white-space: nowrap; }
table.cross td.n b { display: inline-block; min-width: 3.4rem; padding: 1px 6px; border-radius: 3px; font-weight: 700; }
.cross-wrap { overflow-x: auto; max-height: 460px; overflow-y: auto; }

/* --- protection cards -------------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 1.2rem 0; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 0.95rem 1rem; border-top: 5px solid var(--k, var(--primary-light)); }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.15; color: var(--primary); margin: 0 0 0.35rem; }
.card p { font-size: 0.88rem; line-height: 1.5; color: var(--text-secondary); margin: 0 !important; text-align: left !important; }
.card .tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.25rem !important; }
.card--a { --k: var(--gw-1); }
.card--b { --k: var(--gw-2); }
.card--c { --k: var(--gw-3); }
.card--d { --k: var(--gw-4); }

/* --- references, footer --------------------------------------------------------------------- */

.ref-list .ref-org { font-family: var(--mono); color: var(--primary-light); font-size: 0.72rem; }
.report-footer { border-top: 0; position: relative; padding-top: calc(3rem + 6px); }
.report-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ramp); }
.footer-inner h3 { color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.footer-inner a { color: var(--accent-light); }
.cite-box { border-left-color: var(--accent); }

/* --- responsive ------------------------------------------------------------------------------ */

@media (max-width: 1000px) {
  .kpi-board, .tile-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-layout, .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .dash-grid, .cards { grid-template-columns: minmax(0, 1fr); }
  .masthead { padding-top: 2.2rem; background: linear-gradient(180deg, rgba(8, 23, 25, 0.92) 0 58%, rgba(8, 23, 25, 0.45)), var(--skyline) 70% 100% / 620px auto no-repeat, linear-gradient(180deg, #0e2428, #081719); }
  .segmented button { padding: 0.34rem 0.5rem; font-size: 0.72rem; }
  .rung { grid-template-columns: 4rem minmax(0, 1fr); }
  .rung b { font-size: 1.2rem; }
}
@media (max-width: 420px) {
  .kpi-board, .tile-row { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .controls { display: none; }
  .masthead, .readout, .report-footer::before, .atlas-wrap { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
