:root {
  /* Dark-teal palette: one hue family plus warm-cool neutrals. */
  --midnight: #0b2027;
  --deep: #0f3b40;
  --forest: #1b7a72;
  --charcoal: #16282b;
  --stone: #eef2f1;
  --offwhite: #fff;
  --paper: var(--offwhite);
  --paper-2: var(--stone);
  --surface: #fff;
  --ink: var(--charcoal);
  --muted: #45514f;
  --line: #d7e0de;
  --accent: var(--forest);
  --accent-ink: #0f5a54;
  --accent-2: #7fd1c6;
  --accent-soft: #e3f0ee;
  --on-accent: #fff;
  --wrap: 1180px;
  --radius: 14px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;

  /* Fluid type scale: every step interpolates smoothly between 360px and ~1400px. */
  --text-xs: clamp(0.72rem, 0.69rem + 0.14vw, 0.80rem);
  --text-sm: clamp(0.82rem, 0.78rem + 0.18vw, 0.92rem);
  --text-base: clamp(0.95rem, 0.91rem + 0.22vw, 1.05rem);
  --text-lg: clamp(1.05rem, 0.99rem + 0.32vw, 1.22rem);
  --text-xl: clamp(1.18rem, 1.08rem + 0.5vw, 1.45rem);
  --size-h3: clamp(1.15rem, 1.04rem + 0.55vw, 1.4rem);
  --size-h2: clamp(1.6rem, 1.28rem + 1.5vw, 2.35rem);
  --size-h1: clamp(2.2rem, 1.7rem + 2.55vw, 3.4rem);
  --size-hero: clamp(3rem, 2rem + 5vw, 6rem);

  --section-pad: clamp(56px, 8vw, 104px);
  --grid-line: rgb(27 122 114 / 5%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--text-base)/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; cursor: pointer; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { line-height: 1.16; letter-spacing: -.04em; color: var(--ink); }
h1 { font-size: var(--size-h1); font-weight: 640; }
h2 { font-size: var(--size-h2); font-weight: 600; }
h3 { font-size: var(--size-h3); font-weight: 600; letter-spacing: -.02em; }
p { color: var(--muted); }
img { max-width: 100%; }
.wrap { width: min(var(--wrap), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: var(--surface); z-index: 20; }
.skip-link:focus { top: 10px; }

/* Header + navigation */
.site-header { border-top: 4px solid var(--accent); border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 25px; }
.brand { display: inline-flex; gap: 11px; align-items: center; flex-shrink: 0; }
.brand>span { font-size: clamp(1.02rem, 0.92rem + 0.42vw, 1.22rem); font-weight: 680; line-height: 1.15; letter-spacing: -.03em; white-space: nowrap; }
.brand img { display: block; }
.desktop-nav { display: flex; gap: 28px; align-self: stretch; align-items: stretch; }
.desktop-nav a { display: flex; align-items: center; position: relative; font-size: var(--text-sm); font-weight: 550; color: var(--muted); white-space: nowrap; }
.desktop-nav a:hover,.desktop-nav a[aria-current] { color: var(--accent); }
.desktop-nav a[aria-current]::after { content: ''; position: absolute; bottom: 0; height: 3px; background: var(--accent); left: 0; right: 0; }
.mobile-nav { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 58px; align-items: center; padding-block: clamp(64px, 9vw, 104px); }
.eyebrow { color: var(--accent-ink); font-size: 10px; letter-spacing: .15em; font-weight: 750; margin-bottom: 22px; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-right: 8px; flex-shrink: 0; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: var(--text-lg); line-height: 1.8; margin-top: 24px; max-width: 620px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }
.btn { padding: 12px 20px; border: 1px solid var(--line); border-radius: 6px; display: inline-flex; align-items: center; gap: 22px; font-size: var(--text-sm); font-weight: 650; transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.primary { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.primary:hover { background: var(--accent-ink); }
.secondary { background: var(--surface); }
.secondary:hover { background: var(--accent-soft); }

/* Standard section shell: every section is <section class="section [grid-surface|section-green]"><div class="wrap">… */
.section { padding-block: var(--section-pad); }
.section > .wrap > .eyebrow { margin-bottom: 14px; }
.section-head { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 36px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head > div { max-width: 640px; }
.section-head > p { max-width: 350px; font-size: var(--text-sm); }
.section-lead { max-width: 720px; font-size: var(--text-lg); margin-top: 20px; }
.section > .wrap > .actions { margin-top: 36px; }

/* Cards */
.product-grid,.project-grid,.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 26px; background: var(--surface); transition: border-color .2s, transform .2s, box-shadow .2s; }
a.product-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 30px -20px rgb(15 59 64 / 45%); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.number { font: 12px var(--font-mono); color: var(--muted); }
.tag { color: var(--accent-ink); background: var(--accent-soft); padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; }
.product-icon { margin: 24px 0 16px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 30px; line-height: 1; border-radius: 8px; }
.product-card h3 { font-size: var(--text-xl); }
.product-card p { font-size: var(--text-sm); margin-block: 14px 24px; }
.text-link { display: inline-flex; gap: 15px; align-items: center; font-size: var(--text-sm); font-weight: 650; color: var(--accent-ink); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-card .text-link { margin-top: auto; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; }

/* Two-up callout */
.project-callout { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.project-callout p:not(.eyebrow) { margin-top: 14px; font-size: var(--text-sm); }
.project-callout .btn { flex-shrink: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-top,.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-block: 32px; }
.footer-top p { font-size: var(--text-sm); }
.footer-bottom { border-top: 1px solid var(--line); font-size: var(--text-xs); color: var(--muted); padding-block: 22px; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--accent); text-decoration: underline; }

/* Page intro (standard section header for interior pages) */
.page-intro { padding-block: clamp(52px, 7vw, 80px) clamp(32px, 4vw, 46px); }
.page-intro h1 { max-width: 880px; }
.page-intro .lead { max-width: 720px; }
.compact { padding-top: 10px; }

/* Interior page hero: full-bleed photo, dark teal wash, big type. */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background-color: var(--midnight);
  padding-block: clamp(96px, 17vw, 240px);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: 74% 50%;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #061c20f2 0%, #082a2ee0 44%, #0b2f33a6 100%),
    linear-gradient(0deg, #072226c2 0%, #0722261a 55%, transparent 78%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: var(--size-hero); line-height: 1.04; max-width: 20ch; text-shadow: 0 1px 12px rgb(4 16 18 / 45%); }
.page-hero .lead { color: #fff; max-width: 56ch; text-shadow: 0 1px 10px rgb(4 16 18 / 55%); }
.page-hero .actions .btn.secondary { background: transparent; border-color: rgb(255 255 255 / 55%); color: #fff; }
.page-hero .actions .btn.secondary:hover { background: rgb(255 255 255 / 12%); }
.page-hero + .items .item:first-child { border-top-color: transparent; }

.page-hero--data     { --hero-img: url("../assets/gallery/taxonomy.png"); }
.page-hero--source   { --hero-img: url("../assets/gallery/opd-istanbul.png"); }
.page-hero--projects { --hero-img: url("../assets/gallery/height.png"); }
.page-hero--about    { --hero-img: url("../assets/gallery/occupancy-nonres.png"); }
.page-hero--eco      { --hero-img: url("../assets/gallery/occupancy-per-day.png"); }
.page-hero--notfound { --hero-img: url("../assets/gallery/bangkok-flood.png"); }

@media (max-width: 760px) {
  .page-hero { padding-block: clamp(80px, 22vw, 150px); }
  .page-hero h1 { max-width: 100%; }
}

/* Feature grid */
.feature-grid { margin-top: 32px; }
.feature-grid article { padding: 26px 22px; border-top: 2px solid var(--accent); background: var(--paper-2); border-radius: 0 0 8px 8px; }
.feature-grid h3 { margin-block: 22px 14px; }
.feature-grid p { font-size: var(--text-sm); }

/* Two-column band (about + product detail pages) */
.mission-band { padding-block: var(--section-pad); border-block: 1px solid var(--line); background: var(--paper-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split p { font-size: var(--text-base); }
.split p + p { margin-top: 16px; }
.split .actions { margin-top: 22px; }
.split .text-link { margin-top: 22px; }
.split .actions .text-link { margin-top: 0; }

/* Projects collection */
.collection-note { display: flex; align-items: baseline; gap: 5px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); }
.collection-note p { font-size: var(--text-sm); }
.collection-note strong { color: var(--ink); }
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-block: 28px 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 5px; padding: 7px 14px; font-size: 12px; }
.filters button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
#project-count { font-size: var(--text-xs); color: var(--muted); }
.project-grid { align-items: start; row-gap: 24px; }
.project-card { border: 1px solid var(--line); padding: 26px; border-radius: 12px; background: var(--surface); }
.proposed { color: var(--muted); font-size: 11px; text-align: right; line-height: 1.35; }
.project-card h2 { font-size: var(--text-xl); margin-block: 26px 14px; }
.project-card p { font-size: var(--text-sm); }
.project-details { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 15px; }
.project-details summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--accent-ink); font-size: 12px; font-weight: 600; list-style: none; }
.project-details summary::-webkit-details-marker { display: none; }
.project-details[open] summary span { transform: rotate(45deg); }
.project-details ul { padding-left: 18px; color: var(--muted); font-size: var(--text-sm); }
.project-details li { margin-top: 10px; }
.source-ref { font-size: 11px !important; margin: 18px 0 12px; }

/* Roadmap */
.roadmap { list-style: none; padding: 0; margin: 34px 0 0; max-width: 940px; }
.roadmap li { display: grid; grid-template-columns: 85px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.roadmap-version { font: 14px var(--font-mono); color: var(--accent-ink); padding-top: 5px; }
.section-green .roadmap li { border-top-color: rgb(255 255 255 / 22%); }
.section-green .roadmap-version { color: var(--accent-2); }
.roadmap h3 { font-size: var(--text-xl); }
.roadmap p { margin-top: 10px; font-size: var(--text-sm); }

/* Partners */
.partner-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; }
.partner-list li { padding: 18px 20px; border-top: 2px solid var(--accent); background: var(--paper-2); border-radius: 0 0 8px 8px; font-weight: 600; }
.section-green .partner-list li { background: rgb(255 255 255 / 6%); border-top-color: var(--accent-2); color: #fff; }

/* Stats band (home) */
.stats .stat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 4vw, 48px); }
.stats .stat-grid li { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--accent); padding-top: 16px; }
.stats .stat-num { font: 650 clamp(1.9rem, 4.4vw, 3.4rem)/1 var(--font-sans); letter-spacing: -.04em; color: var(--accent-ink); }
.stats .stat-label { font-size: var(--text-sm); color: var(--muted); }
.section-green .stats .stat-grid li { border-top-color: rgb(255 255 255 / 16%); }
.section-green .stats .stat-num { color: var(--accent-2); }
.section-green .stats .stat-label { color: #cfe3df; }
@media (max-width: 720px) { .stats .stat-grid { grid-template-columns: 1fr 1fr; } }

/* Full-width item sections (Open Data / Open Source / Projects): one band per item,
   alternating light and dark-teal, figure and text swapping sides. */
.items { display: block; }
.item {
  padding-block: clamp(46px, 7vw, 92px);
  border-top: 1px solid var(--line);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}
.item > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.item-media { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 11; background: var(--paper-2); }
.item-media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; display: block; }
.item-media.badge { display: grid; place-items: center; border: 0; background: linear-gradient(140deg, var(--deep), var(--accent)); color: #fff; }
.item-media.badge span { font: 700 clamp(3rem, 10vw, 6rem)/1 var(--font-mono); letter-spacing: -.05em; opacity: .9; }
.item-index { display: block; font: 700 clamp(2.4rem, 6vw, 4rem)/1 var(--font-mono); color: var(--accent); letter-spacing: -.05em; margin-bottom: 16px; }
.item-body .tag { display: inline-block; margin-bottom: 16px; }
.item-body h2 { margin-bottom: 16px; }
.item-body p { font-size: var(--text-lg); max-width: 48ch; }
.item.flip .item-media { order: 2; }
.item.alt { --grid-line: rgb(255 255 255 / 5%); background-color: var(--deep); color: #fff; border-top-color: transparent; }
.item.alt .item-body h2 { color: #fff; }
.item.alt .item-index { color: var(--accent-2); }
.item.alt .item-body p { color: #d3e4e1; }
.item.alt .item-body .tag { background: rgb(255 255 255 / 9%); color: #dcefeb; }
.item.alt .item-media { border-color: rgb(255 255 255 / 20%); }
.item.alt .item-media.badge { background: linear-gradient(140deg, #06231f, #12564e); }
@media (max-width: 820px) {
  .item > .wrap { grid-template-columns: 1fr; gap: 26px; }
  .item.flip .item-media { order: 0; }
  .item-media { aspect-ratio: 16 / 10; }
  .item-body p { font-size: var(--text-base); }
}

/* Section rhythm: quiet grid; alternating light and dark-teal panels. */
.grid-surface, .page-intro {
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-section { background-color: var(--paper); }
.section-green {
  --grid-line: rgb(255 255 255 / 5%);
  color: #fff;
  background-color: var(--deep);
  border-color: transparent;
}
.section-green .eyebrow { color: var(--accent-2); }
.section-green p { color: #d3e4e1; }
.section-green h1,.section-green h2,.section-green h3 { color: #fff; }
.section-green .text-link { color: #fff; }
.section-green .secondary { color: var(--deep); }
.section-green :focus-visible { outline-color: #fff; }
.section-green .product-card {
  background: rgb(255 255 255 / 4%);
  border-color: rgb(255 255 255 / 24%);
  border-radius: 10px;
  padding: 28px;
  color: #fff;
}
.section-green a.product-card:hover { background: rgb(255 255 255 / 9%); border-color: var(--accent-2); }
.section-green .product-card p { color: #d3e4e1; }
.section-green .product-card .number { color: var(--accent-2); }
.section-green .product-card .tag { color: #dcefeb; background: rgb(255 255 255 / 9%); }
.section-green .product-icon { background: rgb(255 255 255 / 9%); color: var(--accent-2); }
.section-green .product-card .text-link { border-color: rgb(255 255 255 / 20%); }
.section-green .feature-grid article { background: rgb(255 255 255 / 5%); border-top-color: var(--accent-2); }
.section-green .feature-grid .number { color: var(--accent-2); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; row-gap: 40px; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-open { display: block; }
.gallery-image { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; transition: border-color .25s, box-shadow .25s; }
.gallery-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.gallery-open:hover .gallery-image { border-color: var(--accent); box-shadow: 0 12px 25px -20px rgb(15 59 64 / 50%); }
.gallery-open:hover img { transform: scale(1.035); }
.gallery-expand { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; background: var(--deep); color: #fff; border-radius: 3px; }
.gallery-item figcaption { padding-top: 20px; }
.gallery-item .eyebrow { display: block; margin-bottom: 12px; font-size: 9px; }
.gallery-item h3 { font-size: var(--text-lg); line-height: 1.3; }
.gallery-item p { margin-top: 10px; font-size: var(--text-sm); }
.gallery-source { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--text-xs); }
.gallery-dialog { width: min(1120px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.gallery-dialog::backdrop { background: rgb(6 22 24 / 85%); backdrop-filter: blur(5px); }
body:has(.gallery-dialog[open]) { overflow: hidden; }
.gallery-dialog-top, .gallery-dialog-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gallery-dialog-top { margin-bottom: 20px; }
.gallery-dialog-top .eyebrow { margin: 0; }
.gallery-close, .gallery-controls button { background: var(--paper-2); border: 1px solid var(--line); padding: 8px 14px; border-radius: 4px; font-size: var(--text-sm); }
.gallery-close:hover, .gallery-controls button:hover { background: var(--accent-soft); }
.gallery-full { display: block; width: 100%; height: min(62dvh, 700px); object-fit: contain; }
.gallery-dialog-bottom { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.gallery-dialog-bottom h2 { font-size: var(--text-xl); letter-spacing: -.02em; }
.gallery-dialog-bottom p { font-size: var(--text-sm); margin-top: 8px; }
.gallery-controls { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
#gallery-position { font: 11px var(--font-mono); }

/* Ecosystem + examples */
.method-note { border-left: 3px solid var(--accent); background: var(--paper-2); padding: 24px 28px; margin-top: 32px; }
.method-note h3 { font-size: var(--text-lg); }
.method-note p { max-width: 900px; margin-top: 12px; font-size: var(--text-sm); }
.case-status { display: inline-block; margin-top: 24px; padding: 5px 10px; background: var(--accent-soft); color: var(--deep); font-size: 12px; border-radius: 4px; }
.case-link { margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--line); display: flex; }
.ecosystem-tools, .example-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.ecosystem-tools article { padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ecosystem-tools .eyebrow { margin-bottom: 16px; }
.ecosystem-tools p:not(.eyebrow), .example-links p { margin-top: 18px; font-size: var(--text-sm); }
.ecosystem-tools .tool-note { font-size: var(--text-xs) !important; padding-top: 16px; border-top: 1px solid var(--line); }
.section-green .ecosystem-tools article { background: rgb(255 255 255 / 5%); border-color: rgb(255 255 255 / 20%); color: #fff; }
.section-green .ecosystem-tools .tool-note { border-top-color: rgb(255 255 255 / 20%); }
.example-links > a { padding: 26px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 10px; background: rgb(255 255 255 / 4%); }
.example-links > a:hover { background: rgb(255 255 255 / 9%); }
.example-links > a > span:first-child { display: block; margin-bottom: 18px; font-size: 11px; color: var(--accent-2); }
.example-links .text-link { margin-top: 24px; }
.home-case-links { display: flex; flex-wrap: wrap; gap: 16px 32px; padding-top: 28px; margin-top: 25px; border-top: 1px solid rgb(255 255 255 / 25%); font-size: var(--text-sm); }
.home-case-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Products: source coverage map */
.category-products { margin-top: 32px; }
.coverage-panel { margin-top: 30px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.coverage-toolbar { display: flex; align-items: end; gap: 18px; padding: 22px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.coverage-toolbar label { display: grid; gap: 7px; flex: 1; min-width: 0; font-size: 11px; font-weight: 650; color: var(--muted); }
.coverage-toolbar select { width: 100%; min-width: 0; padding: 10px 30px 10px 12px; border: 1px solid #a9bdb9; border-radius: 4px; background: #fff; color: var(--ink); font: var(--text-sm) var(--font-sans); }
.coverage-toolbar .text-link { font-size: 11px; padding-bottom: 10px; }
.coverage-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; }
.coverage-canvas { min-width: 0; align-self: start; padding: 30px 15px 20px; background: linear-gradient(rgb(27 122 114 / 4%) 1px, transparent 1px), linear-gradient(90deg,rgb(27 122 114 / 4%) 1px,transparent 1px), #f6faf9; background-size: 32px 32px; }
.coverage-map { display: block; width: 100%; height: auto; min-height: 230px; }
.coverage-country { stroke: #fff; stroke-width: .55; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .2s; }
.coverage-country.status-green { fill: var(--forest); }
.coverage-country.status-yellow { fill: #9aa8a6; }
.coverage-country.status-red { fill: url(#coverage-missing); }
.coverage-country.status-unknown { fill: #e6ebea; }
.coverage-country:hover, .coverage-country.is-selected { stroke: #10262a; stroke-width: 1.8; }
.coverage-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 16px 8px 0; }
.coverage-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.coverage-legend i { width: 11px; height: 11px; display: inline-block; border: 1px solid #8b9997; }
.legend-direct { background: var(--forest); }
.legend-fallback { background: #9aa8a6; }
.legend-missing { background: repeating-linear-gradient(135deg,#e2e6e5 0 3px,#6c7776 3px 4px); }
.legend-unknown { background: #e6ebea; }
.coverage-detail { padding: 25px 22px; border-left: 1px solid var(--line); max-height: 550px; overflow-y: auto; }
.coverage-detail .eyebrow { margin-bottom: 14px; }
.coverage-detail h3 { font-size: var(--text-xl); }
.coverage-detail > p:not(.eyebrow) { font-size: 12px; margin-top: 14px; }
#coverage-dimensions { margin: 18px 0 0; }
.coverage-dimension { padding: 12px 0; border-top: 1px solid var(--line); }
.coverage-dimension.is-active { border-top-color: var(--accent); }
.coverage-dimension dt { font-size: 12px; font-weight: 650; }
.coverage-dimension dd { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.coverage-dimension dd > span { display: block; }
.source-status { font-weight: 650; margin-bottom: 4px; }
.source-status.status-green { color: var(--deep); }
.source-status.status-red { text-decoration: underline dotted; }
.coverage-summary { font-size: 11px; padding: 14px 22px; margin: 0; border-top: 1px solid var(--line); }
#coverage-error { font-size: var(--text-sm); margin-top: 16px; }

@media (max-width: 1000px) {
  .hero { gap: 30px; }
  .wrap { width: calc(100% - 48px); }
  .product-card { padding: 22px; }
}
@media (max-width: 900px) {
  .coverage-layout { grid-template-columns: 1fr; }
  .coverage-detail { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  #coverage-dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 74px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { font-size: var(--text-sm); list-style: none; display: flex; gap: 12px; align-items: center; padding: 10px 0 10px 10px; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 14px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 20px rgb(11 32 39 / 8%); }
  .mobile-nav nav a { display: block; padding: 12px; border-radius: 5px; }
  .mobile-nav a[aria-current] { color: var(--accent); background: var(--accent-soft); }
  .hero { grid-template-columns: 1fr; padding-block: 50px; gap: 40px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 20px; max-width: 100%; }
  .product-grid,.project-grid,.feature-grid,.split { grid-template-columns: 1fr; }
  .split { gap: 24px; }
  .mission-band { padding-block: 44px; }
  .project-callout { align-items: start; flex-direction: column; }
  .footer-top,.footer-bottom { align-items: start; flex-direction: column; gap: 18px; }
  .partner-list { grid-template-columns: 1fr; }
  .ecosystem-tools, .example-links { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: 36px; }
  .roadmap li { grid-template-columns: 55px 1fr; gap: 15px; }
  .method-note { padding: 20px; }
  .gallery-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 16px; }
  .gallery-dialog-bottom { flex-direction: column; align-items: start; gap: 18px; }
  .gallery-full { height: 45dvh; }
  .collection-toolbar { align-items: start; flex-direction: column; gap: 15px; }
}
@media (max-width: 600px) {
  .coverage-toolbar { flex-direction: column; align-items: stretch; padding: 16px; }
  .coverage-toolbar .text-link { padding: 0; }
  .coverage-map { min-height: 140px; }
  .coverage-canvas { padding: 18px 6px; }
  #coverage-dimensions { grid-template-columns: 1fr; }
  .coverage-legend { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: introduction .6s ease-out both; }
  @keyframes introduction { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
}
