@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --navy: #071a2b;
  --navy-2: #0d2a40;
  --ink: #12202a;
  --muted: #687680;
  --paper: #f5f1e8;
  --white: #fffdf8;
  --line: #dcded7;
  --orange: #ee8757;
  --orange-dark: #bd573d;
  --mint: #7ec5ad;
  --blue: #88cbe3;
  --shadow: 0 22px 70px rgba(7, 26, 43, .12);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; }
button, input, select { font: inherit; }
code { font-family: var(--mono); font-size: .83em; background: #e8e6de; padding: .12em .4em; border-radius: 4px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { color: var(--orange-dark); font: 500 .75rem/.9 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.serif { font-family: var(--serif); }

/* Landing page */
.home-hero { min-height: 780px; position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.home-hero::before { content: ''; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(136,203,227,.24) 1px, transparent 1px), linear-gradient(90deg, rgba(136,203,227,.24) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(120deg, black, transparent 72%); }
.home-hero::after { content: ''; position: absolute; width: 720px; height: 720px; right: -220px; bottom: -290px; border: 1px solid rgba(126,197,173,.32); border-radius: 50%; box-shadow: 0 0 0 54px rgba(126,197,173,.07), 0 0 0 108px rgba(126,197,173,.045), 0 0 0 162px rgba(126,197,173,.03); }
.home-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.home-mark { font: 1.25rem var(--serif); text-decoration: none; letter-spacing: -.02em; }
.home-mark i { color: var(--blue); font-style: normal; }
.home-nav a:last-child { color: var(--blue); text-decoration: none; font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.home-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 7vw; align-items: end; padding: 12vh 0 90px; }
.home-title { margin: 0; max-width: 800px; font: clamp(4.9rem, 12vw, 10.8rem)/.8 var(--serif); letter-spacing: -.07em; }
.home-title span { color: var(--blue); }
.home-deck { max-width: 720px; margin: 40px 0 0; color: #cbd8df; font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.45; }
.home-deck strong { color: var(--white); font-weight: 600; }
.home-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 2px; background: var(--orange); color: var(--navy); font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { background: #ff9b6b; transform: translateY(-2px); }
.button.ghost { border-color: rgba(255,255,255,.32); background: transparent; color: var(--white); }
.button.ghost:hover { background: rgba(255,255,255,.08); }
.home-index { justify-self: end; align-self: center; max-width: 290px; padding: 25px 0 25px 28px; border-left: 1px solid rgba(136,203,227,.54); }
.home-index small { display: block; color: var(--blue); font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.home-index strong { display: block; margin: 18px 0 6px; color: var(--white); font: clamp(3.2rem, 6vw, 5.3rem)/.9 var(--serif); letter-spacing: -.06em; }
.home-index span { color: #a9bac3; font-size: .92rem; }
.home-rule { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid rgba(255,255,255,.16); padding: 22px 0 32px; }
.home-rule div { padding-right: 22px; border-right: 1px solid rgba(255,255,255,.16); }
.home-rule div + div { padding-left: 22px; }
.home-rule div:last-child { border: 0; }
.home-rule b { display: block; color: var(--white); font: 1.5rem var(--serif); }
.home-rule span { color: #9fb2bd; font-size: .82rem; }
.home-section { padding: 116px 0; }
.product-lead { display: grid; grid-template-columns: .7fr 1.3fr; gap: 10vw; align-items: start; }
.section-title { margin: 12px 0 0; font: clamp(2.7rem, 5vw, 5.1rem)/.9 var(--serif); letter-spacing: -.055em; }
.product-copy { max-width: 720px; font-size: 1.12rem; line-height: 1.65; }
.product-copy p { margin: 0 0 20px; }
.product-copy strong { font-weight: 700; }
.fact-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-line div { padding: 21px 16px 22px 0; }
.fact-line div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.fact-line b { display: block; font: clamp(1.8rem, 3vw, 2.7rem)/1 var(--serif); letter-spacing: -.045em; }
.fact-line span { display: block; margin-top: 6px; color: var(--muted); font-size: .78rem; }
.about-section { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 10vw; }
.about-lead { margin: 14px 0 0; font: clamp(1.8rem, 3vw, 2.8rem)/1.13 var(--serif); letter-spacing: -.035em; }
.about-copy { max-width: 700px; font-size: 1.02rem; }
.about-copy p { margin: 0 0 22px; }
.about-note { margin-top: 32px; padding: 23px 26px; border-left: 3px solid var(--orange); background: var(--paper); color: #51616b; }
.about-note b { color: var(--ink); }
.about-note a, .about-copy a { color: var(--orange-dark); }
.home-footer { display: flex; justify-content: space-between; gap: 16px; padding: 34px 0 55px; color: var(--muted); font-size: .88rem; }
.home-footer a { color: var(--orange-dark); text-decoration: none; }

/* Data page */
.data-body { background: #eef1ed; }
.data-top { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.data-top::after { content: '90'; position: absolute; right: 4vw; bottom: -36px; color: rgba(136,203,227,.08); font: 18rem/.8 var(--serif); letter-spacing: -.1em; pointer-events: none; }
.data-nav { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 23px 0; }
.data-nav a { text-decoration: none; }
.data-logo { font: 1.25rem var(--serif); }
.data-logo i { color: var(--blue); font-style: normal; }
.data-nav .back { color: #a9bfca; font: .73rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.data-hero { position: relative; z-index: 1; padding: 74px 0 65px; }
.data-hero h1 { max-width: 900px; margin: 12px 0 22px; font: clamp(4rem, 10vw, 8.9rem)/.83 var(--serif); letter-spacing: -.07em; }
.data-hero h1 i { color: var(--blue); font-style: normal; }
.data-lede { max-width: 790px; color: #c8d6dd; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; }
.data-lede a { color: var(--white); }
.data-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 44px; border-top: 1px solid rgba(255,255,255,.2); }
.data-stats div { min-width: 160px; padding: 18px 28px 0 0; }
.data-stats div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.2); }
.data-stats b { display: block; font: clamp(1.8rem, 3vw, 2.8rem)/1 var(--serif); }
.data-stats span { color: #a9bac3; font-size: .78rem; }
.data-main { padding: 32px 0 0; }
.modebar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 18px; }
.tabs { display: flex; gap: 6px; }
.tabs button { padding: 10px 16px; border: 1px solid #cbd3d0; border-radius: 2px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; }
.tabs button.on { border-color: var(--navy); background: var(--navy); color: var(--white); }
.mode-note { color: var(--muted); font-size: .85rem; text-align: right; }
.map-frame { position: relative; overflow: hidden; border: 1px solid #cad2cf; border-radius: 3px; background: #dce5e2; box-shadow: var(--shadow); }
#map { height: min(75vh, 810px); min-height: 590px; }
.leaflet-container { font: 13px/1.4 var(--sans); background: #dce5e2; }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 8px 20px rgba(7,26,43,.14) !important; }
.leaflet-control-zoom a { color: var(--navy) !important; }
.map-panel { position: absolute; z-index: 1000; top: 18px; right: 18px; width: min(360px, calc(100% - 36px)); padding: 19px; border: 1px solid rgba(7,26,43,.13); border-radius: 3px; background: rgba(255,253,248,.95); box-shadow: 0 14px 34px rgba(7,26,43,.16); backdrop-filter: blur(10px); }
.panel-label { color: var(--orange-dark); font: 500 .68rem var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.map-panel select, .search { width: 100%; margin-top: 9px; padding: 10px 11px; border: 1px solid #cbd3d0; border-radius: 2px; background: var(--white); color: var(--ink); }
.selection-summary { margin: 13px 0 10px; color: #40515a; font-size: .9rem; line-height: 1.5; }
.selection-summary strong { color: var(--ink); }
.filelist { max-height: 182px; overflow: auto; margin: 0; padding: 12px; border: 1px solid #d7ddd7; background: #eef1ed; color: #44535c; font: .72rem/1.5 var(--mono); white-space: pre-wrap; }
.panel-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 9px; }
.panel-actions button { padding: 8px 5px; border: 1px solid #cbd3d0; border-radius: 2px; background: var(--white); color: var(--ink); cursor: pointer; font-size: .78rem; }
.panel-actions .primary { border-color: var(--orange); background: var(--orange); color: var(--navy); font-weight: 700; }
.panel-tip { margin-top: 12px; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.grid-toggle { position: absolute; z-index: 1000; left: 17px; bottom: 17px; padding: 9px 12px; border: 1px solid rgba(7,26,43,.12); border-radius: 2px; background: rgba(255,253,248,.92); box-shadow: 0 8px 20px rgba(7,26,43,.1); color: #40515a; font-size: .78rem; }
.grid-toggle input { accent-color: var(--orange-dark); vertical-align: -1px; }
.map-legend { position: absolute; z-index: 1000; left: 17px; top: 17px; max-width: 250px; padding: 12px 14px; border-left: 3px solid var(--orange); background: rgba(255,253,248,.9); color: #52616a; font-size: .76rem; line-height: 1.45; }
.map-legend b { display: block; margin-bottom: 4px; color: var(--ink); }
.bbox-label { padding: 4px 7px !important; border: 1px solid rgba(189,87,61,.42) !important; border-radius: 2px !important; background: rgba(255,253,248,.94) !important; box-shadow: 0 3px 12px rgba(7,26,43,.12); color: var(--orange-dark); font: .67rem var(--mono); white-space: nowrap; }
.tile-raised { filter: drop-shadow(0 4px 3px rgba(238,135,87,.55)); animation: tilePulse 2.4s ease-in-out infinite; }
@keyframes tilePulse { 0%, 100% { opacity: .86; } 50% { opacity: 1; } }
.data-section { padding: 82px 0 0; }
.data-section h2, .alignment h2 { margin: 0 0 8px; font: clamp(2.4rem, 5vw, 4.4rem)/.95 var(--serif); letter-spacing: -.05em; }
.section-intro { max-width: 820px; margin: 0 0 19px; color: var(--muted); }
.table-shell { overflow: hidden; border: 1px solid #cbd3d0; border-radius: 3px; background: var(--white); box-shadow: 0 8px 28px rgba(7,26,43,.06); }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px; border-bottom: 1px solid #d7ddd7; }
.table-toolbar .search { width: min(330px, 100%); margin: 0; }
.table-status { color: var(--muted); font-size: .78rem; }
.table-scroll { max-height: 560px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 13px; border-bottom: 1px solid #e4e7e1; text-align: right; white-space: nowrap; }
th:first-child, td:first-child, th.left, td.left { text-align: left; }
th { position: sticky; top: 0; z-index: 1; background: #f1f2ed; color: var(--muted); font: 500 .68rem var(--mono); letter-spacing: .09em; text-transform: uppercase; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #f6eee5; }
tbody tr.hl { background: #fce6d7; box-shadow: inset 3px 0 var(--orange); }
.table-more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid #d7ddd7; }
.table-more button { padding: 9px 16px; border: 1px solid #cbd3d0; border-radius: 2px; background: transparent; color: var(--ink); cursor: pointer; }
.region-color { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; }
.alignment { margin-top: 96px; padding: 58px 0 62px; background: var(--navy); color: var(--white); }
.alignment h2 { color: var(--white); }
.alignment .eyebrow { color: var(--mint); }
.alignment-copy { max-width: 850px; color: #c4d3da; font-size: 1.05rem; }
.alignment-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 8vw; align-items: center; margin-top: 30px; }
.ruler-diagram { display: grid; grid-template-columns: 1fr 1fr 1fr; min-height: 190px; border: 1px solid rgba(136,203,227,.5); background: linear-gradient(90deg, rgba(126,197,173,.12) 0 33.33%, transparent 33.33% 66.66%, rgba(126,197,173,.12) 66.66%); }
.ruler-diagram div { position: relative; display: flex; align-items: center; justify-content: center; border-right: 1px solid rgba(136,203,227,.45); color: var(--blue); }
.ruler-diagram div:last-child { border: 0; }
.ruler-diagram b { font: clamp(1.6rem, 3vw, 2.8rem) var(--serif); }
.ruler-diagram span { position: absolute; bottom: 13px; color: #a4bdc8; font: .64rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.alignment-aside { color: #bfd0d7; font-size: .92rem; }
.alignment-aside strong { display: block; color: var(--white); font: 1.6rem var(--serif); }
.inventory { padding-bottom: 88px; }
.inventory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 28px; background: #cbd3d0; border: 1px solid #cbd3d0; }
.inventory-grid article { min-height: 190px; padding: 24px; background: var(--white); }
.inventory-grid h3 { margin: 0 0 9px; font: 1.5rem var(--serif); }
.inventory-grid p { margin: 0; color: var(--muted); font-size: .88rem; }
.data-footer { padding: 25px 0 46px; border-top: 1px solid #cbd3d0; color: var(--muted); font-size: .82rem; }
.data-footer a { color: var(--orange-dark); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--white); }

@media (max-width: 820px) {
  .home-hero-inner, .product-lead, .about-grid, .alignment-grid { grid-template-columns: 1fr; }
  .home-hero-inner { padding-top: 9vh; }
  .home-index { justify-self: start; margin-top: 28px; }
  .product-lead, .about-grid { gap: 36px; }
  .inventory-grid { grid-template-columns: 1fr; }
  .modebar { align-items: start; flex-direction: column; }
  .mode-note { text-align: left; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 30px, 1180px); }
  .home-hero { min-height: auto; }
  .home-title { font-size: clamp(4.6rem, 23vw, 7rem); }
  .home-rule { grid-template-columns: 1fr; gap: 15px; }
  .home-rule div, .home-rule div + div { padding: 0; border: 0; }
  .home-rule b { font-size: 1.25rem; }
  .home-section { padding: 76px 0; }
  .fact-line { grid-template-columns: 1fr 1fr; }
  .fact-line div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .fact-line div:nth-child(4) { border-top: 1px solid var(--line); }
  #map { min-height: 640px; height: 78vh; }
  .map-panel { position: absolute; top: 12px; right: 12px; width: calc(100% - 24px); }
  .map-legend { top: auto; bottom: 17px; left: 12px; max-width: calc(100% - 24px); }
  .grid-toggle { left: 12px; bottom: 93px; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .table-toolbar .search { width: 100%; }
  .table-scroll { max-height: 500px; }
  .alignment { margin-top: 68px; }
}
