/* Study page: floods, droughts and design rainfall. Clean editorial layout with grey figure panels. */
/* en dash only, from DejaVu Sans (Bitstream Vera licence): Satoshi's en dash is nearly as wide as an em dash */
@font-face { font-family: 'Range Dash'; src: url(fonts/range-dash.woff) format('woff'); unicode-range: U+2013; font-weight: 100 599; font-display: swap; }
@font-face { font-family: 'Range Dash'; src: url(fonts/range-dash-bold.woff) format('woff'); unicode-range: U+2013; font-weight: 600 900; font-display: swap; }
:root {
    --ink: #111; --ink-2: #444; --ink-3: #6b6b6b; --rule: #e6e6e3; --rule-2: #d9d9d5; --panel: #f5f5f4; --bg: #fff;
    --A: #1f56b0; --B: #9a5f12; --C: #5b4b8a; --accent: #1f56b0; --focus: #1f56b0; --ui: #1f5fae; --ui-soft: #eaf1fb; --line: #b9cde8;
    --display: 'Zodiak', Georgia, 'Times New Roman', serif; --font: 'Range Dash', 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wide: 1180px; --main: 720px; --bar-h: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: #c9d9f3; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 3000; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 1100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--rule); }
.site-inner { max-width: var(--wide); margin: 0 auto; padding: 0 32px; height: var(--bar-h); display: flex; align-items: center; gap: 24px; }
.site-id { font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.toc { margin-left: auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc a { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 6px; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.toc a:hover { color: var(--ink); background: var(--panel); }
.toc a[aria-current="true"] { color: var(--accent); background: #eef4fd; }
.toc a .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.toc a.toc-ex { color: var(--accent); font-weight: 500; }
.progress { height: 2px; background: transparent; }
.progress span { display: block; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- layout ---------- */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 32px; }
.main { max-width: var(--main); margin: 0 auto; }
section { scroll-margin-top: calc(var(--bar-h) + 16px); }
p { margin: 0 0 1em; }
.main p, .main li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
h2, h3 { text-wrap: balance; }

/* title */
.title { text-align: center; padding: 64px 0 32px; }
.title .k { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.title h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.01em; margin: 14px auto; max-width: 17ch; }
.title p { color: var(--ink-2); font-size: 19px; max-width: 46ch; margin: 0 auto; }

/* panels and plates */
.panel { background: var(--panel); border-radius: 8px; padding: 24px 26px 22px; }
figure.plate { margin: 36px 0 0; }
figure.plate figcaption { max-width: var(--main); margin: 14px auto 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; text-align: justify; hyphens: manual; }
figure.plate figcaption b { color: var(--ink); font-weight: 700; }
figure.plate figcaption .src { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); text-align: left; }
.plate .fig-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.plate-tools { margin-left: 8px; white-space: nowrap; }
.plate-tools button { font: inherit; font-size: 13px; color: var(--ink-3); background: none; border: 0; padding: 0 2px; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; cursor: pointer; }
.plate-tools button:hover { color: var(--ink); }
.hero-map { height: 460px; border-radius: 8px; overflow: hidden; }
.hero-cap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); margin-top: 12px; }
.hero-cap .ramp { display: flex; align-items: center; gap: 0; }
.hero-cap .ramp i { width: 26px; height: 8px; display: block; }

/* research question, index, objectives */
.q { padding: 56px 0 8px; }
.label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.q h2 { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.3; margin: 10px 0 16px; }
.index { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 24px 0 0; }
.index a { display: block; padding: 22px 20px 22px 0; text-decoration: none; transition: background .2s ease; }
.index a + a { padding-left: 20px; border-left: 1px solid var(--rule); }
.index a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.index .t { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.index h3 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; margin: 6px 0; }
.index p { font-size: 14.5px; color: var(--ink-2); margin: 0; text-align: left; }
.objectives { counter-reset: o; list-style: none; padding: 0; margin: 20px 0 0; }
.objectives li { counter-increment: o; position: relative; padding-left: 30px; margin: 0 0 8px; text-align: left; }
.objectives li::before { content: counter(o); position: absolute; left: 0; top: 1px; font-size: 13px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; background: var(--panel); text-align: center; line-height: 20px; }
.answer { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin: 26px 0 0; }
.answer div { padding: 16px 18px 4px 0; }
.answer div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.answer b { display: block; font-size: 22px; font-weight: 700; line-height: 1.25; }
.answer > div > span { display: block; font-size: 14.5px; color: var(--ink-2); text-align: left; margin-top: 4px; }

/* sections and part openers */
.sec { padding: 64px 0 0; }
.sec h2 { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.2; margin: 8px 0 14px; letter-spacing: 0; }
.sec h2 .n { font-family: var(--font); font-weight: 700; font-size: .6em; margin-right: 10px; vertical-align: .14em; }
.sec h3 { font-size: 18px; font-weight: 700; margin: 32px 0 8px; }
.sec h3 .n { font-weight: 700; margin-right: 8px; color: var(--ink-3); }
.part-tag { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.rq { font-family: var(--display); font-style: italic; font-size: 18px; line-height: 1.5; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 14px; margin: 18px 0 0; text-align: left !important; }
.find { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); margin: 22px 0 0; }
.find div { padding: 16px 18px 6px 0; }
.find div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.find b { display: block; font-size: 25px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.find > div > span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; text-align: left; }
.partA { --accent: var(--A); } .partB { --accent: var(--B); } .partC { --accent: var(--C); }
.partA .part-tag, .partA .find b { color: var(--A); }
.partB .part-tag, .partB .find b { color: var(--B); }
.partC .part-tag, .partC .find b { color: var(--C); }

/* text helpers */
.small { font-size: 14.5px; color: var(--ink-2); }
.cite { white-space: nowrap; }
.note-box { background: var(--panel); border-radius: 8px; padding: 16px 20px; font-size: 15px; color: var(--ink-2); margin: 24px 0 0; }
.note-box b { color: var(--ink); }
.callout { border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; margin: 20px 0; color: var(--ink-2); }

/* tables */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
caption { caption-side: top; text-align: left; font-size: 14.5px; color: var(--ink-2); padding: 0 0 10px; }
caption b { color: var(--ink); }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--rule); text-align: right; vertical-align: top; }
th { font-weight: 500; color: var(--ink-3); font-size: 13px; border-bottom-color: var(--ink); }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
td.l, th.l { text-align: left; }
td .sub { display: block; font-size: 12.5px; color: var(--ink-3); }
.tablefig { margin: 28px 0 0; }

/* segmented controls */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 6px; color: var(--ink-2); cursor: pointer; transition: background .18s ease, color .18s ease; }
.seg button:hover:not(:disabled) { color: var(--ui); background: var(--ui-soft); }
.seg button[aria-pressed="true"] { background: var(--ui); color: #fff; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 6px 13px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s ease, transform .15s ease; }
.button:hover { border-color: var(--ink-3); }
.button.primary { background: var(--ui); color: #fff; border-color: var(--ui); }
.year-ctl { display: inline-flex; align-items: center; gap: 8px; }
.year-ctl input[type="range"] { width: min(300px, 46vw); accent-color: var(--ink); }
.year-ctl output { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3em; }
.play { width: 32px; height: 30px; padding: 0; justify-content: center; }

/* charts */
.chart { width: 100%; }
.chart-svg { overflow: visible; font-family: var(--font); }
.chart-svg .grid { stroke: #e2e2de; stroke-width: 1; }
.chart-svg .ax0 { stroke: #444; stroke-width: 1.1; }
.chart-svg .ref { stroke: #444; stroke-width: 1.1; stroke-dasharray: 4 3; }
.chart-svg .tick { font-size: 12px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart-svg .unit { font-size: 11.5px; }
.chart-svg .lab { font-size: 13px; fill: var(--ink); }
.chart-svg .sub { font-size: 12px; fill: var(--ink-3); }
.chart-svg .axlab { font-size: 13px; fill: var(--ink-2); }
.chart-svg .note { font-size: 12px; fill: var(--ink-2); }
.chart-svg .halo { paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.keylist { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--ink-2); }
.keylist li { display: flex; align-items: center; gap: 7px; margin: 0; }
.keylist i { width: 12px; height: 10px; border-radius: 2px; display: block; }
.keylist i.line { height: 3px; border-radius: 2px; width: 16px; }
.keylist i.dash { height: 0; border-top: 2px dashed currentColor; background: none !important; width: 16px; }
.keylist i.dot { width: 9px; height: 9px; border-radius: 50%; }

/* maps */
.map { position: relative; border: 1px solid #e4e4e0; border-radius: 8px; overflow: hidden; background: #ececea; }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: start; }
.map.h560 { height: 560px; } .map.h720 { height: 720px; } .map.h480 { height: 480px; }
.legend { font-size: 12.5px; line-height: 1.5; }
.lg-t { font-weight: 700; font-size: 13px; } .lg-s { color: var(--ink-3); margin-bottom: 6px; }
.lg-c { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.lg-c li { display: flex; align-items: center; gap: 7px; margin: 0; font-variant-numeric: tabular-nums; }
.lg-c i { width: 14px; height: 10px; display: block; border-radius: 2px; border: 1px solid rgba(0, 0, 0, .07); flex: none; }
.north-arrow { background: rgba(255, 255, 255, .92); border-radius: 4px; padding: 3px 4px 1px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.north-arrow text { fill: #111; font-family: var(--font); }
.grat { font-size: 10.5px; color: #55554f; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff; pointer-events: none; }
.grat.lat { transform: translate(2px, -14px); } .grat.lon { transform: translate(3px, -18px); }
.leaflet-control-scale-line { background: rgba(255, 255, 255, .85); font-family: var(--font); }
.leaflet-container { font-family: var(--font); }
.map-label { background: rgba(255, 255, 255, .94); border: 0; box-shadow: none; font-size: 12px; padding: 1px 6px; }
.map-label::before { display: none; }
.map-label.area { font-weight: 700; }
.leaflet-image-layer.px { image-rendering: pixelated; }
.img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.img-pair img, .plate .one { width: auto; max-width: 100%; max-height: 620px; margin: 0 auto; mix-blend-mode: multiply; }

/* conclusion, explorer card, data, note, reactions, references, footer */
.downloads { list-style: none; padding: 0; margin: 0 0 18px; }
.downloads li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.downloads li:first-child { border-top: 1px solid var(--rule); }
.downloads span { color: var(--ink-3); font-size: 14px; text-align: right; }
.citation { padding: 14px 18px; background: var(--panel); border-radius: 8px; font-size: 15px; margin: 0 0 16px; }
.citation p { margin: 0 0 10px; overflow-wrap: anywhere; text-align: left !important; }
.note { border-top: 1px solid var(--rule); margin-top: 72px; padding-top: 28px; }
.note p { color: var(--ink-2); }
.note .sign { font-family: var(--display); font-size: 20px; color: var(--ink); }
.reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.react[aria-pressed="true"] { background: #eef4fd; border-color: var(--accent); color: var(--accent); }
.react.is-other { opacity: .5; }
.react.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.07); } }
.rc:empty { display: none; }
.rc { font-size: 12.5px; color: var(--ink-3); }
#react-status { font-size: 14px; color: var(--accent); margin-left: 8px; }
.refs { padding-left: 0; list-style: none; font-size: 14.5px; }
.refs li { padding-left: 1.5em; text-indent: -1.5em; margin: 0 0 9px; text-align: left !important; }
footer { margin-top: 90px; border-top: 1px solid var(--rule); padding: 30px 0 60px; font-size: 13.5px; color: var(--ink-3); }
footer .sig { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.to-top { position: fixed; right: 22px; bottom: 22px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule-2); background: #fff; display: grid; place-items: center; cursor: pointer; z-index: 900; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.snack { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 14px; z-index: 3000; }
.load-error { color: #9a3412; padding: 16px 0; }

/* chart tooltip */
.ctip { position: absolute; z-index: 5; pointer-events: none; background: #fff; border: 1px solid var(--rule-2); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ctip b { color: var(--ink); display: block; margin-bottom: 1px; }
.ctip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.leaflet-tooltip { font-family: var(--font); font-size: 12.5px; border-radius: 6px; border-color: var(--rule-2); box-shadow: 0 3px 10px rgba(0, 0, 0, .08); }
.map-label.town { font-weight: 400; color: var(--ink-2); background: transparent; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; padding: 0 2px; }
.gauge-dot { background: #fff; border: 2.5px solid var(--B); border-radius: 50%; }
tr.grp td { border-top: 1px solid var(--ink-3); }

/* framework diagram */
.diagram text { font-family: var(--font); }
.fw { display: grid; gap: 10px; }
.fw-row { display: grid; grid-template-columns: 150px repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.fw-head div { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 0 4px; }
.fw-part { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.fw-badge { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.fw-cell { position: relative; background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); border: 1px solid transparent; }
.fw-cell + .fw-cell::before { content: ''; position: absolute; left: -10px; top: 50%; width: 10px; height: 1px; background: var(--rule-2); }
.fw-check { border-color: var(--accent); color: var(--ink); }
.fw-foot { text-align: center; font-family: var(--display); font-style: italic; font-size: 17px; margin-top: 8px; color: var(--ink); }
@media (max-width: 860px) {
    .fw-row { grid-template-columns: 1fr 1fr; }
    .fw-head { display: none; }
    .fw-part { grid-column: 1 / -1; }
    .fw-cell + .fw-cell::before { display: none; }
}

/* ---------- motion (none when the reader prefers reduced motion) ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }
.js-reveal [data-reveal] .draw { stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); transition: stroke-dashoffset 1.6s cubic-bezier(.3, .6, .2, 1) .15s; }
.js-reveal [data-reveal].in .draw { stroke-dashoffset: 0; }
.js-reveal [data-reveal] .grow { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.js-reveal [data-reveal] .grow.v { transform-origin: 50% 100%; transform: scaleY(0); }
.js-reveal [data-reveal] .grow.vn { transform-origin: 50% 0; transform: scaleY(0); }
.js-reveal [data-reveal].in .grow { transform: none; }
.js-reveal [data-reveal] .fade { opacity: 0; transition: opacity .6s ease; }
.js-reveal [data-reveal].in .fade { opacity: 1; }
path.cell { transition: fill .45s ease, stroke .2s ease, fill-opacity .45s ease; }
@media (prefers-reduced-motion: reduce) {
    .js-reveal [data-reveal], .js-reveal [data-reveal] .draw, .js-reveal [data-reveal] .grow, .js-reveal [data-reveal] .fade { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; transition: none !important; }
    path.cell, .react.pop { transition: none; animation: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 960px) {
    .toc a:not(.toc-ex):not(.keep) { display: none; }
    .site-header .toc { display: none; }  /* the phone row below carries every link, Explorer included */
}
/* section links on phones and tablets: one scrollable row under the header, as on the other study sites */
.toc-phone { display: none; }
@media (max-width: 960px) {
    .toc-phone { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 12px 6px;
                 -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 36px; }
    .toc-phone::-webkit-scrollbar { display: none; }
    .toc-phone a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; color: var(--ink-3, #6b6a64); text-decoration: none; white-space: nowrap; border-radius: 6px; }
    .toc-phone a:hover { color: var(--ink, #141412); }
    .toc-phone a.toc-ex { color: var(--accent); font-weight: 500; }
}
@media (max-width: 860px) {
    .site-inner, .wrap { padding: 0 16px; }
    .panel { padding: 18px 16px; border-radius: 20px; }
    .index, .answer, .find { grid-template-columns: 1fr; }
    .index a, .index a + a, .answer div, .answer div + div, .find div, .find div + div { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--rule); }
    .map-wrap { grid-template-columns: 1fr; }
    .map.h560, .map.h720 { height: 460px; }
    .hero-map { height: 320px; }
    .img-pair { grid-template-columns: 1fr; }
            .main p, .main li { text-align: left; }
    .sec h2 { font-size: 27px; }
}
@media print {
    .site-header, .to-top, .seg, .fig-bar, .plate-tools, .reactions { display: none !important; }
    .panel { background: none; padding: 0; }
}

/* small multiples: the same map for several years or return periods */
.multi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mcell { min-width: 0; }
.mtitle { font-size: 14px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.map.h240 { height: 240px; }
.multi + .keylist { margin-top: 14px; }
@media (max-width: 860px) { .multi { grid-template-columns: 1fr; } .map.h240 { height: 220px; } }

/* plain-language summary and glossary */
.in-short { margin: 36px 0 0; }
.in-short h2 { font-family: var(--display); font-size: 22px; margin: 0 0 8px; }
.in-short p { font-size: 16px; line-height: 1.6; text-align: left; color: var(--ink); }
.glossary { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.glossary dt, .glossary dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.glossary dt { font-weight: 700; padding-right: 16px; }
.glossary dd { color: var(--ink-2); }
@media (max-width: 860px) { .glossary { grid-template-columns: 1fr; } .glossary dt { border-bottom: 0; padding-bottom: 0; } .glossary dd { padding-top: 3px; } }

/* explorer card: preview on the left, text on the right (matches the Ogun study page) */
.cta { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; align-items: center; text-decoration: none; background: var(--panel); border-radius: 16px; padding: 22px; margin: 64px 0 0; color: var(--ink); }
.cta-img { display: block; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid #e4e4e0; }
.cta img { display: block; width: 100%; height: auto; }
.cta .txt { display: flex; flex-direction: column; gap: 12px; padding-right: 12px; }
.cta .k { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ui); font-weight: 500; }
.cta .h { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.15; }
.cta .b { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.cta .go { align-self: flex-start; margin-top: 6px; background: var(--ui); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 500; font-size: 15px; }
.cta:hover .go { background: #174c8c; }
.cta:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; gap: 20px; padding: 16px; } .cta .h { font-size: 26px; } }

/* consistency with the portfolio: left-aligned text */
.main p, .main li, figure.plate figcaption { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
/* header lines up with the other four project sites */
@media (min-width: 561px) { .site-header .site-inner { max-width: 1220px; padding: 0 20px; } }
/* downloads: long file names wrap, and on phones the description sits under the file name */
.downloads a { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 560px) { .downloads li { grid-template-columns: minmax(0, 1fr); gap: 2px; } .downloads span { text-align: left; } }

/* touch: sliders and checkboxes at least 24 px for a finger */
@media (pointer: coarse), (max-width: 760px) { input[type="range"] { min-height: 32px; } input[type="checkbox"] { width: 24px; height: 24px; } }

/* Leaflet's plus-lighter blend leaves light seams between map tiles at fractional zoom on a light basemap */
.leaflet-container img.leaflet-tile { mix-blend-mode: normal; }

/* the line under the reaction buttons, as on the other study sites */
.react-note { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); }
