* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
#map { height: 100vh; width: 100vw; }
.dark-street-tiles { filter: grayscale(1) invert(1) brightness(.8) contrast(.9); }
.map-sidebar { position: fixed; top: 12px; left: 12px; z-index: 1000; width: 168px; max-width: calc(100vw - 24px); color: #e5edf5; background: rgba(15,23,32,.96); border: 1px solid #3b4a5b; border-radius: 10px; box-shadow: 0 3px 18px #0004; font-size: 13px; line-height: 1.6; }
.map-sidebar[open] { width: 280px; }
.map-sidebar summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.map-sidebar summary::-webkit-details-marker { display: none; }
.sidebar-chevron { font-size: 24px; line-height: 1; }
.map-sidebar:not([open]) .sidebar-chevron { transform: rotate(180deg); }
.sidebar-content { max-height: calc(100dvh - 92px); overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; }
.sidebar-content h1 { font-size: 23px; }
.sidebar-subtitle { color: #adbdcf; margin-bottom: 12px; }
.sidebar-content section { border-top: 1px solid #344457; margin-top: 16px; padding-top: 14px; }
.sidebar-content h2 { font-size: 14px; margin-bottom: 10px; }
.sidebar-content p { margin-top: 8px; }
.sidebar-content select { width: 100%; min-height: 40px; border: 1px solid #526174; border-radius: 5px; padding: 6px; background: #263545; color: #fff; margin-top: 5px; }
.zoom-controls { display: flex; gap: 6px; margin-top: 10px; }
.zoom-controls button { min-width: 44px; min-height: 40px; border: 1px solid #526174; border-radius: 5px; background: #263545; color: #fff; cursor: pointer; font: inherit; }
#reset-view { flex: 1; }
.zoom-controls button:disabled { opacity: .4; cursor: default; }
.grid-choice { display: flex; align-items: center; gap: 8px; min-height: 42px; cursor: pointer; }
.grid-choice input { width: 17px; height: 17px; }
.opacity-label { display: flex; justify-content: space-between; align-items: center; }
#grid-opacity { display: block; width: 100%; height: 32px; accent-color: #7ee5be; cursor: pointer; }
#grid-opacity:disabled { opacity: .4; cursor: default; }
#grid-opacity-value { color: #adbdcf; font-variant-numeric: tabular-nums; }
.map-sidebar :focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
#stats { padding: 9px 10px; background: #253746; border-radius: 6px; }
#stats[data-state="error"] { background: #7f1d1d; }
.legend-item { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.legend-hex { width: 16px; height: 14px; display: inline-block; clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%); background: #ff4444; }
.station-key { background: #4ade80; }
.project-link { display: inline-block; color: #93c5fd; margin: 6px 0; }
.project-link:focus-visible, .about-page a:focus-visible { outline: 3px solid #fbbf24; outline-offset: 4px; }
.about-page { height: auto; min-height: 100%; background: #101923; color: #e5edf5; line-height: 1.75; }
.about-page a { color: #93c5fd; text-underline-offset: 3px; }
.page-nav, .article, .page-footer { width: min(100% - 40px, 820px); margin: auto; }
.page-nav { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid #344457; }
.brand { font-weight: 700; text-decoration: none; }
.article { padding: 48px 0; }
.eyebrow { color: #7ee5be; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.article h1 { font-size: clamp(32px, 6vw, 50px); line-height: 1.15; margin: 12px 0 20px; }
.article h2 { font-size: 25px; line-height: 1.3; margin: 36px 0 14px; }
.article h3 { font-size: 19px; margin-bottom: 8px; }
.article p { margin-bottom: 16px; }
.intro { font-size: 20px; color: #c9d9e9; }
.status-note { padding: 20px; border-left: 3px solid #7ee5be; background: #192938; margin: 28px 0; }
.status-note p:last-child { margin-bottom: 0; }
.steps { padding-left: 24px; }
.steps li { padding-left: 6px; margin-bottom: 14px; }
.contribution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.contribution { background: #192938; border: 1px solid #344457; border-radius: 10px; padding: 20px; }
.contribution p { margin: 0; }
.page-footer { padding: 24px 0 36px; border-top: 1px solid #344457; color: #b6c6d6; }
@media (max-width: 600px) {
    .contribution-grid { grid-template-columns: 1fr; }
    .article { padding-top: 30px; }
}
