/* Colours follow the ISB Bharti Institute of Public Policy site */
@font-face { font-family: "Inter"; src: url(fonts/inter-latin.woff2) format("woff2"); font-weight: 200 900; font-display: swap }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-ext.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0100-02BA,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0 }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-latin.woff2) format("woff2"); font-weight: 200 900; font-display: swap }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-latin-ext.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0100-02BA,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0 }
:root {
  color-scheme: light;
  --ink: #1d252a; --ink2: #525f68; --line: #d9e1e7; --edge: #a9b7c1;
  --page: #f4f8fa; --card: #fff; --brand: #192890; --brand2: #192890; --mint: #80edd9; --tint: #e9edf1;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-padding-top: 156px; overflow-anchor: none }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 var(--font) }
h1, h2, h3 { line-height: 1.22; margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -.01em }
h1 { font-size: clamp(28px, 3.2vw, 42px); color: var(--brand); font-family: var(--serif) }
.sec > h2 { color: var(--brand); font-family: var(--serif) }
a { color: var(--brand2) }
button, select { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--brand2); outline-offset: 2px }
.skip { position: absolute; left: -999px }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99 }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20 }
.top > div { max-width: 1320px; margin: auto; padding: 0 24px; display: flex; align-items: center; min-height: 76px }
.brand { color: var(--brand); text-decoration: none; display: flex; align-items: center; gap: 20px; white-space: nowrap; font: 600 19px var(--serif) }
.brand img { height: 40px; width: auto; display: block }
.brand span { border-left: 1px solid var(--line); padding: 6px 0 6px 20px }
.top nav { display: flex; gap: 4px; margin-left: auto; align-self: stretch; overflow-x: auto }
.top nav a, .top nav span { display: flex; align-items: center; gap: 6px; padding: 0 14px; color: var(--brand); text-decoration: none; white-space: nowrap; border: 0 solid transparent; border-width: 4px 0; font-size: 15px; font-weight: 600 }
.top nav a:hover { background: var(--page) }
.top nav a[aria-current] { border-bottom-color: var(--mint) }
.top nav span { color: #66737c; cursor: default; font-weight: 400 }
.top nav small { font-size: 12px }
.top :focus-visible { outline-offset: -3px }
main { max-width: 1320px; margin: auto; padding: 32px 24px 72px }
.lede { max-width: 68ch; color: var(--ink2); margin: 8px 0 0 }

/* controls */
.seg { display: inline-flex; border: 1px solid var(--edge); border-radius: 0; overflow: hidden; background: #fff }
.seg button { border: 0; background: none; padding: 0 16px; min-height: 40px; cursor: pointer; border-right: 1px solid var(--line); font-size: 15px }
.seg button:last-child { border: 0 }
.seg button:hover { background: var(--tint) }
.seg button[aria-pressed=true] { background: var(--brand); color: #fff }
.seg :focus-visible { outline-offset: -3px; outline-color: var(--mint) }
.ask { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 16px; align-items: center }
.ask button { border: 1px solid var(--edge); background: #fff; border-radius: 0; min-height: 38px; padding: 4px 15px; font-size: 14.5px; cursor: pointer; text-align: left }
.ask button { color: var(--brand); border-color: var(--brand); font-weight: 500 }
.ask button:hover { background: var(--tint) }
.ask > span { color: var(--ink2); font-size: 14.5px; margin-right: 4px }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 0 }
.controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line) }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0 }
.f.full { grid-column: 1 / -1 }
.f > label, .f > .lab { font-size: 13.5px; font-weight: 600 }
.f select { width: 100%; min-height: 42px; border: 1px solid var(--edge); border-radius: 0; background: #fff; padding: 0 10px; text-overflow: ellipsis }
.f input[type=range] { width: 100%; accent-color: var(--brand2); height: 42px; margin: 0 }
.checks { display: flex; flex-wrap: wrap; gap: 2px 24px }
.checks label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; min-height: 32px; font-size: 15px }
.checks input { width: 17px; height: 17px; accent-color: var(--brand2); margin: 0; flex: none }
.checks i { width: 16px; height: 4px; border-radius: 2px }
.checks label:has(:disabled) { color: #7b888c; cursor: not-allowed }
.sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) }
.stage { padding: 24px }
.stage .fig { border: 0; padding: 0; margin: 0 }

/* figures */
.fig { margin: 0 0 24px; background: var(--card); border: 1px solid var(--line); border-radius: 0; padding: 24px }
.fig h2, .fig h3 { font-size: 20px }
.sub { color: var(--ink2); margin: 6px 0 0; font-size: 14.5px; max-width: 120ch }
.legend { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; font-size: 14px }
.legend span { display: inline-flex; align-items: center; gap: 8px }
.legend i { width: 16px; height: 4px; border-radius: 2px }
.plots { display: grid; gap: 24px; margin-top: 16px; grid-template-columns: minmax(0, 1fr) }
.plots.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.plots.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.plotwrap { min-width: 0 }
.plot svg { display: block }
.cap { font-weight: 600; font-size: 14px }
.unit { font-size: 12.5px; color: var(--ink2); margin-bottom: 2px }
.hit:focus { outline: none }
.hit:focus-visible { outline: 2px solid var(--brand2) }
.barrow.on path, .pt.on circle:last-child { filter: brightness(.86) }
.figfoot { display: flex; gap: 14px 32px; align-items: flex-start; justify-content: space-between; margin-top: 14px }
.src { font-size: 12.5px; color: var(--ink2); margin: 0; max-width: 130ch; line-height: 1.45 }
.acts { display: flex; gap: 6px; flex: none }
.acts button { border: 1px solid var(--edge); border-radius: 0; background: #fff; font-size: 13.5px; min-height: 32px; padding: 0 11px; cursor: pointer }
.acts button:hover, .acts [aria-expanded=true] { background: var(--tint) }
.tables { margin-top: 16px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) }
.tw { overflow: auto; max-height: 420px; border: 1px solid var(--line); border-radius: 0 }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums }
caption { text-align: left; font-weight: 600; padding: 10px 12px }
th, td { padding: 6px 12px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap }
th:first-child { text-align: left }
thead th { position: sticky; top: 0; background: #e9edf1; font-weight: 600 }
tbody th { font-weight: 400 }
.tip { position: fixed; display: none; z-index: 50; pointer-events: none; background: #fff; border: 1px solid #c9d2d2; border-radius: 0; box-shadow: 0 6px 20px #16262b26; padding: 9px 12px; font-size: 13.5px; max-width: 320px }
.tip-t { color: var(--ink2); margin-bottom: 3px }
.tip-r { display: flex; align-items: center; gap: 8px }
.tip-r i { width: 12px; height: 3px; border-radius: 2px; flex: none }
.tip-r span { color: var(--ink2) }
.tip-r b { font-weight: 600; white-space: nowrap }

/* report */
.bar { position: sticky; top: 77px; z-index: 10; background: var(--page); border-bottom: 1px solid var(--line); margin: 20px 0 24px; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center }
.bar .what { font-size: 14.5px; color: var(--ink2) }
.report { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start }
.toc { position: sticky; top: 166px; font-size: 14.5px }
.toc nav a { display: block; padding: 6px 0 6px 12px; color: var(--ink2); text-decoration: none; border-left: 2px solid var(--line); line-height: 1.35 }
.toc nav a:hover { color: var(--ink) }
.toc nav a.on { color: var(--brand); border-color: var(--brand); font-weight: 600 }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 0; margin-bottom: 24px }
.stat { padding: 20px 22px; border-left: 1px solid var(--line) }
.stat:first-child { border-left: 0 }
.stat .l { font-size: 14px; color: var(--ink2); line-height: 1.35 }
.stat .v { font-size: 23px; font-weight: 600; color: var(--brand); line-height: 1.2; margin: 6px 0 4px }
.stat .v.two { font-size: 17px; display: grid; gap: 3px }
.stat .v small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink2) }
.stat .v i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle }
.stat .d { font-size: 13px; color: var(--ink2); line-height: 1.4 }
.sec > h2 { font-size: 28px; margin: 44px 0 6px }
.sec > .sub { margin-bottom: 18px }
.prose { background: var(--card); border: 1px solid var(--line); border-radius: 0; padding: 24px 28px; margin-top: 14px }
.prose > * { max-width: 75ch }
.prose h3 { font-size: 17px; margin: 22px 0 4px }
.prose h3:first-child { margin-top: 0 }
.prose p { margin: 0 }
.prose ul { margin: 6px 0 0; padding-left: 20px }
.prose li { margin: 6px 0; overflow-wrap: anywhere }
.grp { font-size: 18px; margin: 28px 0 12px }

@media (max-width: 1000px) {
  .report { grid-template-columns: minmax(0, 1fr) }
  .toc { display: none }
  .stats, .controls { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .stat:nth-child(3) { border-left: 0 }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line) }
}
@media (max-width: 760px) {
  .plots.c2, .plots.c3 { grid-template-columns: minmax(0, 1fr) }
  .top > div { flex-wrap: wrap; padding: 10px 16px 0 }
  .brand { gap: 12px; font-size: 13px; white-space: normal; line-height: 1.15; height: 30px }
  .brand img { height: 30px }
  .brand span { padding: 0 0 0 12px }
  .top nav { margin: 0 -16px; width: calc(100% + 32px); flex: none; justify-content: space-between; gap: 0 }
  .top nav a, .top nav span { min-height: 42px; padding: 0 10px; font-size: 14px; gap: 4px }
  main { padding: 22px 16px 56px }
  .fig, .stage { padding: 18px 16px }
  .controls { padding: 16px; gap: 14px; grid-template-columns: minmax(0, 1fr) }
  .figfoot { flex-direction: column }
  .stat { padding: 14px 16px }
  .stat .v { font-size: 20px }
  .stat .v.two { font-size: 15px }
  .bar { top: 82px }
  .bar .what { display: none }
  .seg button { padding: 0 11px; font-size: 14px }
  .prose { padding: 18px 16px }
  html { scroll-padding-top: 168px }
}
@media print {
  .top nav, .seg, .toc, .acts { display: none }
  .top, .bar { position: static }
  .report { display: block }
  body { background: #fff }
  .fig, .stats { break-inside: avoid }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact }
}


/* climate */
.part { font-family: var(--serif); color: var(--brand); font-size: 32px; margin: 56px 0 6px; padding-top: 20px; border-top: 2px solid var(--brand) }
.part:first-child { margin-top: 28px }
.part + .sec > h2 { margin-top: 18px }
.sec div > .sub { margin-bottom: 16px }
.f.row { flex-direction: row; align-items: center; gap: 12px }
.f.row select { width: 260px; min-height: 40px }
.f.pick { max-width: 380px; margin: 12px 0 }
.toc b { display: block; margin: 16px 0 4px; font-size: 13px }
.toc b:first-child { margin-top: 0 }
.topics { margin-top: 20px }

/* vulnerability and water */
.tw.plain { margin-top: 16px; max-height: none }
.tw.plain td, .tw.plain th { padding: 9px 14px }
tr.strong > * { font-weight: 600; background: var(--page) }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 16px; margin: 12px 0 }
.pair + .sub { margin-bottom: 16px }
.topics { flex-wrap: wrap }
@media (max-width: 760px) {
  .pair { grid-template-columns: minmax(0, 1fr) }
  .f.row { width: 100% }
  .f.row select { width: auto; flex: 1; min-width: 0 }
  .topics { display: flex }
  .topics button { flex: 1; padding: 0 8px }
}

/* landing */
.home h1 { font-size: clamp(34px, 4.4vw, 54px) }
.hero { padding: 28px 0 8px; max-width: 820px }
.hero .lede { font-size: 18px; max-width: 70ch; margin-top: 14px }
.by { color: var(--ink2); font-size: 14.5px; margin: 14px 0 0 }
.h { font-family: var(--serif); color: var(--brand); font-size: 26px; margin: 48px 0 16px }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--brand); padding: 22px 24px; color: var(--ink); text-decoration: none }
.card:hover { border-color: var(--edge); border-top-color: var(--brand2); box-shadow: 0 2px 10px rgba(25, 40, 144, .08) }
.card:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px }
.card h3 { font-size: 22px; color: var(--brand); font-family: var(--serif) }
.card p { color: var(--ink2); font-size: 15px; margin: 8px 0 0 }
.num { margin: 18px 0 4px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 98px }
.num b { display: block; font-size: 21px; color: var(--brand); line-height: 1.25 }
.num span { display: block; font-size: 13.5px; color: var(--ink2); margin-top: 4px; line-height: 1.4 }
.card ul { margin: 10px 0 18px; padding-left: 18px; font-size: 14.5px; color: var(--ink) }
.card li { margin: 4px 0 }
.go { margin-top: auto; font-weight: 600; color: var(--brand) }
.go::after { content: " →" }
.dos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line) }
.dos > div { background: var(--card); padding: 20px 22px }
.dos h3 { font-size: 16.5px }
.dos p { margin: 6px 0 0; color: var(--ink2); font-size: 14.5px }
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 }
.terms dt { font-weight: 600 }
.terms dd { margin: 4px 0 0; color: var(--ink2); font-size: 14.5px }
.srcs { color: var(--ink2); font-size: 13.5px; margin: 24px 0 0; max-width: 110ch }
.cta { margin-top: 48px; background: var(--brand); color: #fff; padding: 30px 32px; display: flex; gap: 20px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap }
.cta h2 { font-family: var(--serif); font-size: 26px }
.cta p { margin: 6px 0 0; color: #dfe4ff }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; background: var(--mint); color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap }
.btn::after { content: " →"; white-space: pre }
.btn:hover { background: #fff }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px }
@media (max-width: 1000px) {
  .cards { grid-template-columns: minmax(0, 1fr) }
  .num { min-height: 0 }
  .dos, .terms { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 760px) {
  .hero .lede { font-size: 16.5px }
  .h { margin-top: 36px }
  .dos, .terms { grid-template-columns: minmax(0, 1fr) }
  .cta { padding: 24px 20px }
  .btn { width: 100% ; justify-content: center }
}
