:root {
  --ink: #111111;
  --muted: #59636d;
  --paper: #fffdf9;
  --panel: #ffffff;
  --blue-panel: #e7f7fe;
  --blue-icon: #e4f4fc;
  --yellow: #ffd94d;
  --track-active: #ff7068;
  --track-inactive: #d7d7d7;
  --display-font:
    "Avenir Next",
    "Trebuchet MS",
    Helvetica,
    Arial,
    sans-serif;
  --body-font:
    Barlow,
    "Avenir Next",
    "Trebuchet MS",
    Helvetica,
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
}

body {
  margin: 0;
  background: var(--paper);
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding:
    clamp(32px, 5vw, 68px)
    0
    clamp(34px, 5vw, 66px);
}

.page-header {
  max-width: 1000px;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.eyebrow,
.section-label {
  margin: 0;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.045em;
  line-height: 1.15;
  text-transform: uppercase;
}

.page-header h1 {
  margin: 10px 0 12px;
  font-family: var(--display-font);
  font-size: clamp(50px, 6.6vw, 96px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.91;
  text-transform: uppercase;
}

.page-introduction {
  max-width: 760px;
  margin: 0;
  font-size: clamp(18px, 1.7vw, 25px);
  font-weight: 750;
  line-height: 1.35;
}

.explainer {
  padding: clamp(18px, 2.4vw, 30px);
  border: 3px solid var(--ink);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: 12px 12px 0 var(--yellow);
}

.explainer-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(330px, 0.65fr);
  gap: clamp(18px, 2.4vw, 28px);
  align-items: stretch;
}

.scene-panel {
  min-height: 660px;
  display: grid;
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, 0.94),
      rgba(226, 246, 254, 0.82) 62%,
      rgba(214, 240, 251, 0.84)
    );
  overflow: hidden;
}

.scene-content {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 20px 24px 26px;
}

.climate-scene {
  width: min(830px, 100%);
  height: auto;
  display: block;
  overflow: visible;

  --heat-scale: 0.88;
  --heat-opacity: 0.88;
  --heat-left: #ffd768;
  --heat-centre: #ffad53;
  --heat-right: #ff735e;
}

.steam-lines {
  fill: none;
  stroke: rgba(255, 255, 255, 0.93);
  stroke-width: 13;
  stroke-linecap: round;
}

.vessel-rim,
.vessel-hook,
.vessel-outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.water-line {
  fill: none;
  stroke: #329ed2;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.water-fill {
  transition:
    fill 300ms ease,
    opacity 300ms ease;
}

.earth-image {
  transition: opacity 420ms ease;
}

.earth-image--happy {
  opacity: 1;
}

.earth-image--sad {
  opacity: 0;
}

.heat-source {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.heat-triangle {
  stroke-width: 2;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center bottom;
  opacity: var(--heat-opacity);
  transition:
    fill 280ms linear,
    stroke 280ms linear,
    opacity 280ms linear,
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.heat-triangle--left {
  fill: var(--heat-left);
  stroke: color-mix(in srgb, var(--heat-left), #b27816 40%);
  transform: scale(var(--heat-scale));
}

.heat-triangle--centre {
  fill: var(--heat-centre);
  stroke: color-mix(in srgb, var(--heat-centre), #b04c24 40%);
  transform: scale(calc(var(--heat-scale) * 1.05));
}

.heat-triangle--right {
  fill: var(--heat-right);
  stroke: color-mix(in srgb, var(--heat-right), #9e3030 42%);
  transform: scale(var(--heat-scale));
}

.scene-instruction {
  max-width: 650px;
  margin: -2px 0 0;
  color: var(--ink);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

.impact-panel {
  display: grid;
  align-content: start;
  padding: clamp(24px, 3vw, 38px);
  border: 2px solid rgba(17, 17, 17, 0.22);
  border-radius: 26px;
  background: #ffffff;
}

.warming-summary {
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(17, 17, 17, 0.18);
}

.warming-value {
  margin: 10px 0 8px;
  font-family: var(--display-font);
  font-size: clamp(52px, 5vw, 78px);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.warming-status {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 700;
  line-height: 1.4;
}

.impact-heading {
  padding: 22px 0 15px;
  border-bottom: 2px solid rgba(17, 17, 17, 0.14);
}

.impact-heading h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 950;
  line-height: 1.05;
}

.impact-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 2px solid rgba(17, 17, 17, 0.12);
}

.impact-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.impact-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-icon);
}

.impact-icon svg {
  width: 44px;
  height: 44px;
  display: block;
}

.impact-item h3 {
  margin: 0 0 5px;
  font-family: var(--display-font);
  font-size: clamp(19px, 1.5vw, 23px);
  font-weight: 950;
  line-height: 1.1;
}

.impact-item p {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
  line-height: 1.45;
}

.control-panel {
  margin-top: clamp(18px, 2.3vw, 28px);
  padding: clamp(22px, 3vw, 32px);
  border: 2px solid rgba(17, 17, 17, 0.22);
  border-radius: 26px;
  background: #ffffff;
}

.control-header h2 {
  margin: 3px 0 0;
  font-family: var(--display-font);
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 950;
  line-height: 1.05;
}

.slider-area {
  position: relative;
  margin-top: 44px;
  padding-bottom: 98px;
}

.slider-value-bubble {
  min-width: 74px;
  position: absolute;
  top: -39px;
  left: 16.6667%;
  z-index: 4;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--blue-icon);
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  pointer-events: none;
  transition: left 160ms ease;
}

.slider-value-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--blue-icon);
}

.warming-slider {
  width: 100%;
  height: 34px;
  display: block;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background:
    linear-gradient(
      to right,
      var(--track-active) 0%,
      var(--track-active) 16.6667%,
      var(--track-inactive) 16.6667%,
      var(--track-inactive) 100%
    );
  background-size: 100% 5px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.warming-slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: transparent;
}

.warming-slider::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -12.5px;
  appearance: none;
  -webkit-appearance: none;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 0 rgba(17, 17, 17, 0.10);
}

.warming-slider::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: transparent;
}

.warming-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #ffffff;
}

.warming-slider:focus-visible {
  outline: 3px solid #77c9f3;
  outline-offset: 6px;
  border-radius: 999px;
}

.slider-scale {
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  height: 92px;
}

.scale-point {
  width: 180px;
  position: absolute;
  top: 0;
  left: var(--position);
  transform: translateX(-50%);
  display: grid;
  gap: 4px;
  text-align: var(--align);
}

.scale-point:first-child {
  transform: translateX(0);
}

.scale-point:last-child {
  transform: translateX(-100%);
}

.scale-tick {
  width: 4px;
  height: 10px;
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--ink);
}

.scale-point:first-child .scale-tick {
  left: 0;
  transform: none;
}

.scale-point:last-child .scale-tick {
  left: 100%;
  transform: translateX(-100%);
}

.scale-point strong {
  font-family: var(--display-font);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 950;
  line-height: 1.1;
}

.scale-point > span:last-child {
  color: #343b42;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 650;
  line-height: 1.3;
}

.page-footer {
  padding-top: 23px;
}

.page-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

@media (max-width: 1050px) {
  .explainer-grid {
    grid-template-columns: 1fr;
  }

  .scene-panel {
    min-height: 590px;
  }

  .impact-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 22px;
  }

  .warming-summary,
  .impact-heading {
    grid-column: 1 / -1;
  }

  .impact-item {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    border-bottom: 0;
  }

  .impact-icon {
    width: 52px;
    height: 52px;
  }

  .impact-icon svg {
    width: 37px;
    height: 37px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1480px);
    padding-top: 26px;
  }

  .page-header h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .explainer {
    padding: 10px;
    border-radius: 24px;
    box-shadow: 7px 7px 0 var(--yellow);
  }

  .scene-panel,
  .impact-panel,
  .control-panel {
    border-radius: 20px;
  }

  .scene-panel {
    min-height: 470px;
  }

  .scene-content {
    padding: 14px 6px 20px;
  }

  .climate-scene {
    width: 108%;
    max-width: none;
  }

  .scene-instruction {
    width: 90%;
    font-size: 14px;
  }

  .impact-panel {
    display: grid;
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .impact-item {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 18px 0;
    border-bottom: 2px solid rgba(17, 17, 17, 0.12);
  }

  .impact-item:last-child {
    border-bottom: 0;
  }

  .control-panel {
    padding: 22px 17px 24px;
  }

  .slider-area {
    margin-top: 48px;
    padding-bottom: 294px;
  }

  .slider-scale {
    top: 50px;
    height: auto;
    display: grid;
    gap: 9px;
  }

  .scale-point {
    width: 100%;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
    text-align: left;
  }

  .scale-point:first-child,
  .scale-point:last-child {
    transform: none;
  }

  .scale-tick {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .earth-image,
  .heat-triangle,
  .slider-value-bubble {
    transition: none;
  }
}

/* === SIMPLE TWO ROW V8 START === */

/*
  Final structure:

  Row 1: warming information and slider
  Row 2: consequences for cities
*/

.explainer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "control"
    "impact";
  gap: 24px;
  padding: clamp(20px, 2.5vw, 32px);
}

.explainer-grid {
  display: contents;
}

/*
  The former Earth/pot illustration is removed from HTML.
  This rule is retained as a fallback.
*/

.scene-panel {
  display: none !important;
}


/* --------------------------------------------------------- */
/* ROW 1 — WARMING CONTROL                                   */
/* --------------------------------------------------------- */

.control-panel {
  grid-area: control;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(28px, 3.5vw, 44px);
  border: 2px solid rgba(17, 17, 17, 0.18);
  border-radius: 26px;
  background: #ffffff;
}

/*
  Current value and explanation sit on one horizontal line
  when enough space is available.
*/

.control-panel .warming-summary {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-areas:
    "label label"
    "value status";
  column-gap: 34px;
  row-gap: 7px;
  align-items: center;
  padding: 0 0 26px;
  margin: 0 0 26px;
  border-bottom: 2px solid rgba(17, 17, 17, 0.13);
}

.control-panel .warming-summary > .section-label {
  grid-area: label;
}

.control-panel .warming-value {
  grid-area: value;
  margin: 0;
  font-size: clamp(54px, 6vw, 88px);
  line-height: 0.9;
  white-space: nowrap;
}

.control-panel .warming-status {
  grid-area: status;
  max-width: 56ch;
  margin: 0;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.4;
}

.control-header {
  margin: 0;
}

.control-header h2 {
  margin: 4px 0 0;
}

.slider-area {
  position: relative;
  width: 100%;
  margin-top: 58px;
  padding-bottom: 0;
}

.slider-value-bubble {
  top: -43px;
}


/*
  The slider occupies the full available width.
*/

.warming-slider {
  width: 100%;
  min-width: 0;
}


/*
  Five equal label columns.

  No absolute positioning is used, so labels cannot collide
  because of their x-coordinate.
*/

.slider-scale {
  position: static;
  width: 100%;
  height: auto;
  margin-top: 17px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 28px);
}

.scale-point,
.scale-point:first-child,
.scale-point:last-child {
  width: auto;
  min-width: 0;
  position: static;
  inset: auto;
  transform: none;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 7px;
  padding: 0 4px;
  text-align: center;
}

.scale-tick {
  display: none;
}

.scale-point strong {
  display: block;
  width: 100%;
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 1;
  white-space: nowrap;
}

.scale-point > span:last-child {
  display: block;
  width: 100%;
  max-width: 150px;
  min-height: 34px;
  margin: 0 auto;
  color: #535d67;
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}


/* --------------------------------------------------------- */
/* ROW 2 — CITY CONSEQUENCES                                 */
/* --------------------------------------------------------- */

.impact-panel {
  grid-area: impact;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0;
  padding: clamp(28px, 3.5vw, 42px);
  border: 2px solid rgba(17, 17, 17, 0.18);
  border-radius: 26px;
  background: #ffffff;
}

.impact-heading {
  grid-column: 1 / -1;
  padding: 0 0 22px;
  border-bottom: 2px solid rgba(17, 17, 17, 0.12);
}

.impact-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.impact-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 28px 32px 0;
  border-bottom: 0;
}

.impact-item:first-of-type {
  padding-left: 0;
}

.impact-item:last-child {
  padding-right: 0;
}

.impact-item + .impact-item {
  border-left: 2px solid rgba(17, 17, 17, 0.10);
}

.impact-icon {
  width: 58px;
  height: 58px;
}

.impact-icon svg {
  width: 40px;
  height: 40px;
}

.impact-item h3 {
  margin-bottom: 7px;
  font-size: clamp(20px, 1.8vw, 27px);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.impact-item p {
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.48;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}


/* --------------------------------------------------------- */
/* RESPONSIVE                                                */
/* --------------------------------------------------------- */

@media (max-width: 820px) {
  .control-panel .warming-summary {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "value"
      "status";
  }

  .slider-scale {
    gap: 6px;
  }

  .scale-point strong {
    font-size: 14px;
  }

  .scale-point > span:last-child {
    max-width: 90px;
    font-size: 11px;
  }

  .impact-panel {
    grid-template-columns: 1fr;
  }

  .impact-item,
  .impact-item:first-of-type,
  .impact-item:last-child {
    padding: 23px 0;
  }

  .impact-item + .impact-item {
    border-left: 0;
    border-top: 2px solid rgba(17, 17, 17, 0.10);
  }
}

@media (max-width: 560px) {
  .explainer {
    padding: 12px;
  }

  .control-panel,
  .impact-panel {
    padding: 24px 18px;
    border-radius: 20px;
  }

  /*
    On very narrow screens, retain the five values but hide
    the secondary descriptions to prevent crowding.
  */

  .slider-scale {
    gap: 2px;
  }

  .scale-point {
    padding: 0;
  }

  .scale-point strong {
    font-size: 11px;
  }

  .scale-point > span:last-child {
    display: none;
  }
}

/* === SIMPLE TWO ROW V8 END === */

/* === EXACT SLIDER LABEL ALIGNMENT V9 START === */

/*
  五个滑杆档位的位置必须严格对应：

  1.0°C =   0%
  1.5°C =  25%
  2.0°C =  50%
  3.0°C =  75%
  4.0°C = 100%

  不再使用五列 grid，因为 grid 列中心不是滑杆端点。
*/

.control-panel .slider-scale {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 84px !important;
  margin-top: 15px !important;
  overflow: visible !important;
}

/*
  中间三个标签以滑杆节点为中心。
*/

.control-panel .scale-point,
.control-panel .scale-point:first-child,
.control-panel .scale-point:last-child {
  position: absolute !important;
  top: 0 !important;
  left: var(--position) !important;
  width: 150px !important;
  min-width: 0 !important;
  transform: translateX(-50%) !important;

  display: grid !important;
  grid-template-rows: auto auto !important;
  justify-items: center !important;
  align-content: start !important;
  gap: 7px !important;

  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
}

/*
  第一个节点锚定滑杆左端，不能向左溢出。
*/

.control-panel .scale-point--first,
.control-panel .scale-point--first:first-child {
  transform: translateX(0) !important;
  justify-items: start !important;
  text-align: left !important;
}

/*
  最后一个节点锚定滑杆右端，不能向右溢出。
*/

.control-panel .scale-point--last,
.control-panel .scale-point--last:last-child {
  transform: translateX(-100%) !important;
  justify-items: end !important;
  text-align: right !important;
}

.control-panel .scale-point .scale-tick {
  display: none !important;
}

.control-panel .scale-point strong {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  font-size: clamp(15px, 1.45vw, 20px) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  white-space: nowrap !important;

  overflow: visible !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.control-panel .scale-point > span:last-child {
  display: block !important;
  width: 130px !important;
  max-width: 130px !important;
  min-height: 32px !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #535d67 !important;
  font-size: clamp(11px, 1vw, 14px) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;

  white-space: normal !important;
  overflow: visible !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.control-panel .scale-point--first > span:last-child {
  margin-right: auto !important;
  text-align: left !important;
}

.control-panel .scale-point--last > span:last-child {
  margin-left: auto !important;
  text-align: right !important;
}


/*
  中等宽度下稍微收窄标签，但仍保持精确锚点。
*/

@media (max-width: 820px) {
  .control-panel .scale-point,
  .control-panel .scale-point:first-child,
  .control-panel .scale-point:last-child {
    width: 112px !important;
  }

  .control-panel .scale-point strong {
    font-size: 14px !important;
  }

  .control-panel .scale-point > span:last-child {
    width: 104px !important;
    max-width: 104px !important;
    font-size: 11px !important;
  }
}


/*
  手机端保留五个温度值，但隐藏第二行解释，
  防止任何重叠或横向溢出。
*/

@media (max-width: 560px) {
  .control-panel .slider-scale {
    height: 28px !important;
    margin-top: 12px !important;
  }

  .control-panel .scale-point,
  .control-panel .scale-point:first-child,
  .control-panel .scale-point:last-child {
    width: 62px !important;
  }

  .control-panel .scale-point strong {
    font-size: 10px !important;
  }

  .control-panel .scale-point > span:last-child {
    display: none !important;
  }
}

/* === EXACT SLIDER LABEL ALIGNMENT V9 END === */

/* === COMPACT WHITE INTERFACE V10 START === */

/* --------------------------------------------------------- */
/* PAGE AND OUTER MODULE                                     */
/* --------------------------------------------------------- */

:root {
  --paper: #ffffff;
}

html,
body,
.page-shell {
  background: #ffffff !important;
}

.explainer {
  gap: 18px !important;
  padding: 18px 20px 20px !important;
  background: #ffffff !important;

  /*
    Remove the previous yellow offset shadow.
  */
  box-shadow: none !important;
}


/* --------------------------------------------------------- */
/* ROW 1 — MORE COMPACT WARMING CONTROL                      */
/* --------------------------------------------------------- */

.control-panel {
  padding:
    24px
    clamp(26px, 3vw, 38px)
    22px !important;
}

/*
  Compress the current-warming header.
*/

.control-panel .warming-summary {
  padding-bottom: 16px !important;
  margin-bottom: 18px !important;
  column-gap: 38px !important;
  row-gap: 5px !important;
}

.control-panel .warming-summary > .section-label {
  font-size: clamp(17px, 1.35vw, 20px) !important;
}

.control-panel .warming-value {
  font-size: clamp(64px, 6vw, 94px) !important;
}

.control-panel .warming-status {
  max-width: 62ch !important;
  font-size: clamp(19px, 1.55vw, 24px) !important;
  line-height: 1.34 !important;
}


/*
  Increase the control heading slightly.
*/

.control-header .section-label {
  font-size: clamp(17px, 1.35vw, 20px) !important;
}

.control-header h2 {
  font-size: clamp(29px, 2.6vw, 38px) !important;
}


/*
  Reduce empty space above and below the slider.
*/

.control-panel .slider-area {
  margin-top: 43px !important;
}

.control-panel .slider-scale {
  height: 62px !important;
  margin-top: 10px !important;
}


/*
  Slightly increase scale typography.
*/

.control-panel .scale-point strong {
  font-size: clamp(17px, 1.5vw, 22px) !important;
}

.control-panel .scale-point > span:last-child {
  width: 145px !important;
  max-width: 145px !important;
  min-height: 30px !important;
  font-size: clamp(13px, 1.05vw, 16px) !important;
  line-height: 1.16 !important;
}


/* --------------------------------------------------------- */
/* SLIDER — LIGHT RED TO DARK RED                            */
/* --------------------------------------------------------- */

/*
  The full track represents increasing warming:
  pale red at 1.0°C and dark red at 4.0°C.
*/

.warming-slider {
  background:
    linear-gradient(
      to right,
      #ffb8b2 0%,
      #ff887e 25%,
      #ef5953 50%,
      #c9363d 75%,
      #7d1722 100%
    ) !important;

  background-size: 100% 6px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.warming-slider::-webkit-slider-runnable-track {
  height: 6px !important;
  background: transparent !important;
}

.warming-slider::-moz-range-track {
  height: 6px !important;
  background: transparent !important;
}


/* --------------------------------------------------------- */
/* ROW 2 — SLIGHTLY LARGER CITY TEXT                         */
/* --------------------------------------------------------- */

.impact-panel {
  padding:
    26px
    clamp(28px, 3.5vw, 44px)
    28px !important;
}

.impact-heading {
  padding-bottom: 18px !important;
}

.impact-heading h2 {
  font-size: clamp(32px, 3vw, 46px) !important;
}

.impact-item {
  padding-top: 23px !important;
}

.impact-item h3 {
  font-size: clamp(22px, 1.85vw, 29px) !important;
}

.impact-item p {
  font-size: clamp(16px, 1.3vw, 20px) !important;
  line-height: 1.42 !important;
}


/* --------------------------------------------------------- */
/* RESPONSIVE                                                */
/* --------------------------------------------------------- */

@media (max-width: 820px) {
  .control-panel {
    padding: 23px 22px 21px !important;
  }

  .control-panel .warming-summary {
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
  }

  .control-panel .slider-area {
    margin-top: 41px !important;
  }

  .control-panel .slider-scale {
    height: 54px !important;
  }

  .control-panel .scale-point strong {
    font-size: 14px !important;
  }

  .control-panel .scale-point > span:last-child {
    width: 105px !important;
    max-width: 105px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 560px) {
  .explainer {
    padding: 10px !important;
  }

  .control-panel {
    padding: 22px 17px 20px !important;
  }

  .control-panel .slider-scale {
    height: 27px !important;
  }

  .control-panel .scale-point strong {
    font-size: 10px !important;
  }

  .control-panel .scale-point > span:last-child {
    display: none !important;
  }
}

/* === COMPACT WHITE INTERFACE V10 END === */

/* === SLIDER CLEARANCE V12 START === */

/*
  Upper control remains borderless.
  Only correct the vertical geometry around the scale labels.
*/

.control-panel {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;

  padding:
    22px
    clamp(22px, 2.8vw, 36px)
    24px !important;
}

.control-panel .warming-summary {
  padding-bottom: 14px !important;
  margin-bottom: 14px !important;
}

/*
  Keep the slider compact without forcing the labels
  outside the control panel.
*/

.control-panel .slider-area {
  margin-top: 38px !important;
  padding-bottom: 0 !important;
}

.control-panel .slider-scale {
  position: relative !important;
  height: 78px !important;
  margin-top: 7px !important;
  overflow: visible !important;
}

.control-panel .scale-point,
.control-panel .scale-point:first-child,
.control-panel .scale-point:last-child {
  top: 0 !important;
}

.control-panel .scale-point strong {
  margin: 0 0 4px !important;
}

.control-panel .scale-point > span:last-child {
  min-height: 34px !important;
  line-height: 1.15 !important;
}

/*
  Maintain a clean separation from the city-impact card.
*/

.explainer {
  gap: 22px !important;
}

.impact-panel {
  margin-top: 0 !important;
}

@media (max-width: 820px) {
  .control-panel {
    padding:
      20px
      18px
      22px !important;
  }

  .control-panel .slider-scale {
    height: 66px !important;
    margin-top: 7px !important;
  }
}

@media (max-width: 560px) {
  .control-panel .slider-scale {
    height: 31px !important;
  }
}

/* === SLIDER CLEARANCE V12 END === */

/* === SLIDER TRACK BUBBLE ALIGN V14 START === */

/*
  拉杆、圆形滑块和数值气泡整体向下移动相同距离。
  下方五组温度刻度保持原位。
*/

.warming-slider {
  transform: translateY(18px) !important;
}

.slider-value-bubble {
  transform: translate(-50%, 18px) !important;
}

/* === SLIDER TRACK BUBBLE ALIGN V14 END === */

/* === CITY IMPACT COLOR BLOCKS V15 START === */

/*
  Remove the framed-panel treatment from the city section.
*/

.impact-panel {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;

  padding:
    18px
    clamp(20px, 2.6vw, 34px)
    24px !important;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/*
  Heading remains separate and clean.
*/

.impact-heading {
  grid-column: 1 / -1 !important;
  padding: 0 0 8px !important;
  margin: 0 !important;

  border: 0 !important;
  background: transparent !important;
}

.impact-heading h2 {
  margin: 0 !important;
}

/*
  Each consequence becomes an independent colour block.
*/

.impact-item,
.impact-item:first-of-type,
.impact-item:last-child {
  min-width: 0 !important;

  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: start !important;

  padding: 28px !important;

  border: 0 !important;
  border-left: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-radius: 24px !important;
}

/* Heat and health */
.impact-item:nth-of-type(1) {
  background: #fff0ec !important;
}

/* Water and food */
.impact-item:nth-of-type(2) {
  background: #eaf7ff !important;
}

/* Coasts and infrastructure */
.impact-item:nth-of-type(3) {
  background: #fff4df !important;
}

/*
  Remove all previous divider lines.
*/

.impact-item + .impact-item {
  border-left: 0 !important;
  border-top: 0 !important;
}

/*
  Icons sit in a soft white circle inside each colour block.
*/

.impact-icon {
  width: 64px !important;
  height: 64px !important;

  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: none !important;
}

.impact-icon svg {
  width: 42px !important;
  height: 42px !important;
}

.impact-item h3 {
  margin: 0 0 9px !important;
  line-height: 1.08 !important;
}

.impact-item p {
  margin: 0 !important;
  line-height: 1.42 !important;
}

/*
  Responsive layout.
*/

@media (max-width: 900px) {
  .impact-panel {
    grid-template-columns: 1fr !important;
  }

  .impact-item,
  .impact-item:first-of-type,
  .impact-item:last-child {
    padding: 24px !important;
  }
}

@media (max-width: 560px) {
  .impact-panel {
    gap: 12px !important;
    padding: 14px 0 18px !important;
  }

  .impact-item,
  .impact-item:first-of-type,
  .impact-item:last-child {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 20px !important;
    border-radius: 18px !important;
  }

  .impact-icon {
    width: 52px !important;
    height: 52px !important;
  }

  .impact-icon svg {
    width: 35px !important;
    height: 35px !important;
  }
}

/* === CITY IMPACT COLOR BLOCKS V15 END === */

/* === AUTO COMPACT IMPACT CARDS V17 START === */

/*
  三张卡片仍在同一网格行中，因此会自动等高。
  不再使用固定 248px 高度。
*/

.impact-panel {
  align-items: stretch !important;
  padding-bottom: 18px !important;
}

.impact-item,
.impact-item:first-of-type,
.impact-item:last-child {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  align-self: stretch !important;
  align-content: start !important;

  padding:
    20px
    24px
    22px !important;
}

.impact-item > div:last-child {
  align-self: start !important;
}

.impact-item h3 {
  margin: 0 0 7px !important;
}

.impact-item p {
  margin: 0 !important;
}

/* === AUTO COMPACT IMPACT CARDS V17 END === */

/* === WARMING STATUS OFFSET V18 START === */

/* 只移动温度右侧的情景说明文字 */
@media (min-width: 821px) {
  .control-panel .warming-status {
    margin-left: clamp(48px, 4vw, 86px) !important;
  }
}

/* 移动端恢复正常，避免横向溢出 */
@media (max-width: 820px) {
  .control-panel .warming-status {
    margin-left: 0 !important;
  }
}

/* === WARMING STATUS OFFSET V18 END === */

/* === CITY IMPACT MICRO VISUALS V19 START === */

/*
  The three colour cards remain compact and equal-height
  through the shared CSS grid row.

  No fixed oversized card height is used.
*/

.impact-panel {
  align-items: stretch !important;
}

.impact-item,
.impact-item:first-of-type,
.impact-item:last-child {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  display: grid !important;
  grid-template-columns: 60px minmax(0, 1fr) !important;
  align-content: start !important;
  align-items: start !important;
  gap: 16px !important;

  padding:
    20px
    22px
    22px !important;
}

.impact-icon {
  width: 56px !important;
  height: 56px !important;
}

.impact-icon svg {
  width: 38px !important;
  height: 38px !important;
}

.impact-item h3 {
  margin:
    1px
    0
    10px !important;

  font-size: clamp(20px, 1.55vw, 26px) !important;
  line-height: 1.08 !important;
}

.impact-item p {
  min-height: 3.9em !important;
  margin:
    13px
    0
    0 !important;

  font-size: clamp(14px, 1.05vw, 18px) !important;
  line-height: 1.38 !important;
}


/* --------------------------------------------------------- */
/* SHARED MICRO-VISUAL CONTAINER                             */
/* --------------------------------------------------------- */

.impact-micro {
  --signal-color: #d84e49;
  --signal-soft: rgba(216, 78, 73, 0.16);

  width: 100%;
  height: 116px;

  display: grid;
  grid-template-rows:
    auto
    25px
    auto
    8px;
  gap: 7px;

  padding: 12px 13px;

  border-radius: 15px;
  background: rgba(255, 255, 255, 0.58);
}

.impact-micro--heat {
  --signal-color: #d6534f;
  --signal-soft: rgba(214, 83, 79, 0.18);
}

.impact-micro--water {
  --signal-color: #287fa8;
  --signal-soft: rgba(40, 127, 168, 0.17);
}

.impact-micro--coast {
  --signal-color: #c77a26;
  --signal-soft: rgba(199, 122, 38, 0.18);
}

.micro-heading {
  min-width: 0;

  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;

  color: #3e4852;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.1;
}

.micro-heading--secondary {
  margin-top: 1px;
}

.micro-heading span {
  min-width: 0;
}

.micro-heading strong {
  flex: 0 0 auto;

  color: var(--signal-color);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-align: right;
}


/* --------------------------------------------------------- */
/* SHARED INTENSITY BAR                                      */
/* --------------------------------------------------------- */

.micro-bar {
  width: 100%;
  height: 8px;

  overflow: hidden;

  border-radius: 999px;
  background: var(--signal-soft);
}

.micro-bar__fill {
  width: 30%;
  height: 100%;
  display: block;

  border-radius: inherit;
  background: var(--signal-color);

  transition:
    width 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 300ms ease;
}


/* --------------------------------------------------------- */
/* HEAT — FREQUENCY DOTS                                     */
/* --------------------------------------------------------- */

.heat-frequency-dots {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  align-items: center;
}

.heat-frequency-dots span {
  width: 100%;
  aspect-ratio: 1;

  max-width: 16px;
  justify-self: center;

  border-radius: 50%;
  background: var(--signal-soft);

  transition:
    background-color 260ms ease,
    transform 260ms ease;
}

.heat-frequency-dots span.is-active {
  background: var(--signal-color);
  transform: scale(1.04);
}


/* --------------------------------------------------------- */
/* WATER — ABSTRACT PRESSURE DROPS                           */
/* --------------------------------------------------------- */

.water-pressure-signals {
  display: grid;
  grid-template-columns: repeat(5, 20px);
  gap: 10px;
  align-items: center;
  justify-content: start;
}

.water-pressure-signals span {
  width: 17px;
  height: 17px;

  display: block;

  border-radius:
    55%
    55%
    58%
    42%;

  background: var(--signal-soft);
  transform: rotate(45deg);

  transition:
    background-color 260ms ease,
    transform 260ms ease;
}

.water-pressure-signals span.is-active {
  background: var(--signal-color);
  transform:
    rotate(45deg)
    scale(1.05);
}


/* --------------------------------------------------------- */
/* COAST — ABSTRACT PRESSURE BLOCKS                          */
/* --------------------------------------------------------- */

.coast-pressure-signals {
  display: grid;
  grid-template-columns: repeat(5, minmax(26px, 1fr));
  gap: 6px;
  align-items: end;
}

.coast-pressure-signals span {
  height: 14px;

  display: block;

  border-radius: 5px;
  background: var(--signal-soft);

  transition:
    background-color 260ms ease,
    height 300ms ease;
}

.coast-pressure-signals span:nth-child(2) {
  height: 16px;
}

.coast-pressure-signals span:nth-child(3) {
  height: 18px;
}

.coast-pressure-signals span:nth-child(4) {
  height: 20px;
}

.coast-pressure-signals span:nth-child(5) {
  height: 22px;
}

.coast-pressure-signals span.is-active {
  background: var(--signal-color);
}


/* --------------------------------------------------------- */
/* RESPONSIVE                                                */
/* --------------------------------------------------------- */

@media (max-width: 1050px) {
  .impact-item,
  .impact-item:first-of-type,
  .impact-item:last-child {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 13px !important;
    padding: 18px !important;
  }

  .impact-icon {
    width: 48px !important;
    height: 48px !important;
  }

  .impact-icon svg {
    width: 32px !important;
    height: 32px !important;
  }

  .impact-micro {
    height: 112px;
  }

  .micro-heading,
  .micro-heading strong {
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .impact-item p {
    min-height: 0 !important;
  }
}

@media (max-width: 560px) {
  .impact-item,
  .impact-item:first-of-type,
  .impact-item:last-child {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 17px !important;
  }

  .impact-micro {
    height: 108px;
    padding: 11px;
  }

  .heat-frequency-dots {
    gap: 3px;
  }

  .water-pressure-signals {
    gap: 7px;
  }
}

/* === CITY IMPACT MICRO VISUALS V19 END === */

/* === IMPACT CARD THREE ROWS V20 START === */

/*
  Card structure:

  Row 1: icon + title
  Row 2: micro visual
  Row 3: explanatory sentence
*/

.impact-panel {
  align-items: stretch !important;
}

.impact-item,
.impact-item:first-of-type,
.impact-item:last-child {
  display: grid !important;

  grid-template-columns:
    64px
    minmax(0, 1fr) !important;

  grid-template-rows:
    auto
    auto
    auto !important;

  column-gap: 18px !important;
  row-gap: 16px !important;

  align-content: start !important;
  align-items: center !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  padding: 24px !important;
}

/*
  Flatten the existing content wrapper so its children
  can become direct grid items.
*/

.impact-item > div:last-child {
  display: contents !important;
}


/* --------------------------------------------------------- */
/* ROW 1 — ICON AND TITLE                                    */
/* --------------------------------------------------------- */

.impact-item .impact-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;

  align-self: center !important;

  width: 60px !important;
  height: 60px !important;

  margin: 0 !important;
}

.impact-item .impact-icon svg {
  width: 40px !important;
  height: 40px !important;
}

.impact-item h3 {
  grid-column: 2 !important;
  grid-row: 1 !important;

  align-self: center !important;

  margin: 0 !important;

  font-size: clamp(
    22px,
    1.75vw,
    30px
  ) !important;

  line-height: 1.06 !important;

  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}


/* --------------------------------------------------------- */
/* ROW 2 — MICRO VISUAL                                      */
/* --------------------------------------------------------- */

.impact-item .impact-micro {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;

  width: 100% !important;
  height: 116px !important;

  margin: 0 !important;

  align-self: start !important;
}


/* --------------------------------------------------------- */
/* ROW 3 — DESCRIPTION                                       */
/* --------------------------------------------------------- */

.impact-item p {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;

  width: 100% !important;
  min-height: 0 !important;

  margin: 0 !important;

  font-size: clamp(
    15px,
    1.15vw,
    19px
  ) !important;

  line-height: 1.42 !important;

  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}


/* --------------------------------------------------------- */
/* REAL WATER-DROP SIGNALS                                   */
/* --------------------------------------------------------- */

.water-pressure-signals {
  display: grid !important;

  grid-template-columns:
    repeat(5, 24px) !important;

  gap: 12px !important;

  align-items: center !important;
  justify-content: start !important;

  height: 28px !important;
}

/*
  Use an SVG mask so every signal is a genuine droplet,
  not a rotated rounded square.
*/

.water-pressure-signals span {
  width: 22px !important;
  height: 28px !important;

  display: block !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: var(--signal-soft) !important;

  transform: none !important;

  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 1C12 1 2.5 13.2 2.5 20.2A9.5 9.5 0 0 0 21.5 20.2C21.5 13.2 12 1 12 1Z' fill='%23000'/%3E%3C/svg%3E") !important;

  -webkit-mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  -webkit-mask-size: contain !important;

  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 1C12 1 2.5 13.2 2.5 20.2A9.5 9.5 0 0 0 21.5 20.2C21.5 13.2 12 1 12 1Z' fill='%23000'/%3E%3C/svg%3E") !important;

  mask-repeat: no-repeat !important;
  mask-position: center !important;
  mask-size: contain !important;

  transition:
    background-color 260ms ease,
    transform 260ms ease,
    opacity 260ms ease !important;
}

.water-pressure-signals span.is-active {
  background: var(--signal-color) !important;

  transform:
    translateY(-1px)
    scale(1.05) !important;
}


/* --------------------------------------------------------- */
/* MICRO PANEL ALIGNMENT                                     */
/* --------------------------------------------------------- */

.impact-micro .micro-heading {
  align-items: center !important;
}

.impact-micro .micro-heading strong {
  white-space: nowrap !important;
}

.impact-micro .micro-bar {
  align-self: end !important;
}


/* --------------------------------------------------------- */
/* RESPONSIVE                                                */
/* --------------------------------------------------------- */

@media (max-width: 1050px) {
  .impact-item,
  .impact-item:first-of-type,
  .impact-item:last-child {
    grid-template-columns:
      54px
      minmax(0, 1fr) !important;

    column-gap: 14px !important;
    row-gap: 14px !important;

    padding: 20px !important;
  }

  .impact-item .impact-icon {
    width: 52px !important;
    height: 52px !important;
  }

  .impact-item .impact-icon svg {
    width: 35px !important;
    height: 35px !important;
  }

  .impact-item h3 {
    font-size: 22px !important;
  }
}

@media (max-width: 560px) {
  .impact-item,
  .impact-item:first-of-type,
  .impact-item:last-child {
    grid-template-columns:
      48px
      minmax(0, 1fr) !important;

    column-gap: 12px !important;
    row-gap: 12px !important;

    padding: 18px !important;
  }

  .impact-item .impact-icon {
    width: 46px !important;
    height: 46px !important;
  }

  .impact-item .impact-icon svg {
    width: 31px !important;
    height: 31px !important;
  }

  .impact-item h3 {
    font-size: 19px !important;
  }

  .impact-item .impact-micro {
    height: 110px !important;
  }

  .water-pressure-signals {
    grid-template-columns:
      repeat(5, 20px) !important;

    gap: 8px !important;
  }

  .water-pressure-signals span {
    width: 18px !important;
    height: 24px !important;
  }
}

/* === IMPACT CARD THREE ROWS V20 END === */

/* === BACKGROUND EMBED CHROME FIX V22 START === */

html,
body {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

.page-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-header,
.page-footer {
  display: none !important;
}

.explainer {
  width: 100% !important;
  margin: 0 !important;
}

/* === BACKGROUND EMBED CHROME FIX V22 END === */
