:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: #edf5ff; background: radial-gradient(circle at 76% 5%, #153852 0, #0d2237 31%, #081523 72%); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .14; background-image: linear-gradient(rgba(68,211,190,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(68,211,190,.2) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, black, transparent 68%); }
.shell { position: relative; width: min(1160px,calc(100% - 40px)); margin: auto; padding: 30px 0 28px; }
.site-header, .site-header nav, .brand { display: flex; align-items: center; }
.site-header { justify-content: space-between; gap: 22px; }
.brand { gap: 13px; color: inherit; text-decoration: none; }
.mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: #061821; background: linear-gradient(145deg,#43d6b8,#25a9e8); box-shadow: 0 12px 28px rgba(18,177,194,.24); font-size: 26px; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 21px; }
.brand small { margin-top: 2px; color: #8faabd; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.site-header nav { gap: 9px; }
.site-header nav a { padding: 10px 13px; color: #c8dce9; border: 1px solid #31536c; border-radius: 9px; background: rgba(11,31,48,.72); font-size: 13px; font-weight: 750; text-decoration: none; }
.site-header nav a:hover { color: white; border-color: #44d3b6; }
.hero { padding: clamp(80px,13vh,140px) 0 44px; }
.eyebrow { margin: 0 0 10px; color: #47d1b7; font-size: 12px; font-weight: 850; letter-spacing: .18em; }
h1 { max-width: 900px; margin: 0; font-size: clamp(42px,6.8vw,78px); line-height: 1.01; letter-spacing: -.05em; }
.lead { max-width: 750px; margin: 22px 0 0; color: #a9bed2; font-size: clamp(17px,2vw,21px); line-height: 1.55; }
.hero-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; max-width: 620px; margin-top: 34px; }
.hero-summary div { padding: 17px 18px; border: 1px solid #294760; border-radius: 13px; background: rgba(10,29,46,.76); }
.hero-summary strong, .hero-summary span { display: block; }
.hero-summary strong { color: #eafffa; font-size: clamp(22px,3vw,31px); letter-spacing: -.03em; }
.hero-summary span { margin-top: 5px; color: #849fb4; font-size: 12px; font-weight: 700; }
.coverage-map { margin-bottom: 26px; padding: clamp(24px,4vw,38px); border: 1px solid #294760; border-radius: 20px; background: rgba(8,24,39,.86); box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.map-copy { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 24px; }
.map-copy > p { max-width: 510px; margin: 0; color: #8da7ba; font-size: 13px; line-height: 1.6; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 15px; padding-top: 15px; border-top: 1px solid #203d53; }
.map-toolbar > span { color: #809caf; font-size: 12px; font-weight: 750; }
.map-frame { position: relative; overflow: hidden; min-height: 600px; border: 1px solid #31536c; border-radius: 16px; background: #071824; }
#density-map { width: 100%; height: 600px; }
.map-key { position: absolute; z-index: 2; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; color: #a9bed0; border: 1px solid rgba(91,135,162,.45); border-radius: 9px; background: rgba(5,22,34,.9); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.map-key i { width: 110px; height: 7px; border-radius: 99px; background: linear-gradient(90deg,#165f87,#13a7bd,#43d8bc,#f2c356,#ff5d5d); }
.map-status { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; padding: 20px; color: #9fb6c8; background: #071824; text-align: center; }
.map-status[hidden] { display: none; }
.map-caption { margin: 12px 2px 0; color: #7895aa; font-size: 11px; }
.metro-popup strong, .metro-popup span { display: block; }
.metro-popup strong { margin-bottom: 8px; color: #09202c; font-size: 14px; }
.metro-popup span { color: #355265; font-size: 12px; line-height: 1.5; }
.metro-popup .popup-types { margin: 10px 0 8px; padding-top: 8px; border-top: 1px solid #d6e1e7; }
.metro-popup .popup-types > b { display: block; margin-bottom: 5px; color: #526b79; font-size: 10px; letter-spacing: .7px; text-transform: uppercase; }
.metro-popup .popup-types span { display: flex; justify-content: space-between; gap: 18px; padding: 2px 0; }
.metro-popup .popup-types em { color: #274555; font-style: normal; }
.metro-popup .popup-types strong { margin: 0; color: #09202c; font-size: 12px; }
.maplibregl-popup-content { padding: 14px 32px 14px 15px; border-radius: 11px; box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.maplibregl-popup-close-button { top: 4px; right: 5px; color: #24465b; font-size: 20px; }
.ranking { padding: clamp(24px,4vw,38px); border: 1px solid #294760; border-radius: 20px; background: rgba(8,24,39,.86); box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.ranking-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
h2 { margin: 0; font-size: clamp(27px,3.4vw,40px); letter-spacing: -.035em; }
.ranking-actions { display: flex; gap: 7px; padding: 5px; border: 1px solid #294760; border-radius: 12px; background: #091b2b; }
.ranking-actions button { min-height: 40px; padding: 0 14px; cursor: pointer; color: #95aec1; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 12px; font-weight: 800; }
.ranking-actions button.active { color: #061b21; background: #4bd4ba; }
.ranking-explanation { max-width: 820px; margin: 16px 0 0; color: #88a3b8; font-size: 13px; line-height: 1.55; }
.loading, .unavailable { margin-top: 24px; padding: 22px; color: #9fb6c8; border: 1px dashed #34536b; border-radius: 13px; text-align: center; }
.metro-list { display: grid; gap: 9px; margin-top: 26px; }
.metro-row { display: grid; grid-template-columns: 46px minmax(210px,1.55fr) minmax(220px,1fr) 130px 130px; align-items: center; gap: 16px; min-height: 78px; padding: 13px 16px; border: 1px solid #26455d; border-radius: 14px; background: rgba(13,36,55,.78); }
.metro-row:hover { border-color: rgba(68,211,182,.58); background: rgba(15,43,62,.92); }
.rank-number { color: #55d8bf; font-size: 20px; font-weight: 900; text-align: center; }
.metro-name strong, .metro-name small, .metro-stat strong, .metro-stat span { display: block; }
.metro-name strong { font-size: 16px; line-height: 1.25; }
.metro-name small { margin-top: 6px; color: #7796ac; font-size: 11px; }
.density-bar { height: 7px; overflow: hidden; border-radius: 999px; background: #152f43; }
.density-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#28aadb,#4bd4ba); }
.metro-stat { text-align: right; }
.metro-stat strong { color: #e4f3fa; font-size: 16px; }
.metro-stat span { margin-top: 4px; color: #7793a8; font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.meaning { display: grid; grid-template-columns: .82fr 1.7fr; gap: clamp(30px,6vw,80px); padding: 86px 0; }
.meaning-grid { display: grid; gap: 12px; }
.meaning article { padding: 20px; border: 1px solid #294760; border-radius: 14px; background: rgba(11,31,48,.72); }
.meaning article strong { color: #e5f3fa; }
.meaning article p { margin: 8px 0 0; color: #8ea8ba; font-size: 13px; line-height: 1.6; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(26px,4vw,42px); border: 1px solid rgba(68,211,182,.38); border-radius: 19px; background: linear-gradient(130deg,rgba(17,66,70,.82),rgba(11,32,49,.92)); }
.cta p:not(.eyebrow) { margin: 10px 0 0; color: #9ab2c3; }
.cta > a { flex: 0 0 auto; padding: 15px 18px; color: #061a21; border-radius: 10px; background: #4bd4ba; font-size: 14px; font-weight: 900; text-decoration: none; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 70px; padding-top: 20px; color: #728ca4; border-top: 1px solid #1e3a52; font-size: 12px; }
@media (max-width: 850px) { .map-copy, .meaning { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; } .ranking-actions { align-self: flex-start; } }
@media (max-width: 620px) { .shell { width: min(100% - 24px,1160px); padding-top: 18px; } .site-header { align-items: flex-start; } .site-header nav { align-items: stretch; flex-direction: column; } .site-header nav a { padding: 8px 10px; text-align: center; } .brand small { display: none; } .hero { padding-top: 70px; } .hero-summary { grid-template-columns: 1fr; } .coverage-map { padding: 18px 14px; } .map-toolbar { align-items: stretch; flex-direction: column; } .map-frame { min-height: 470px; } #density-map { height: 470px; } .map-key { top: 12px; bottom: auto; } .map-key i { width: 70px; } .ranking-actions { width: 100%; } .ranking-actions button { flex: 1; padding: 0 8px; } .cta, footer { align-items: stretch; flex-direction: column; } .cta > a { text-align: center; } }
