/* datacenternear.com — Sun Grid 2026-11-09 */
:root {
  --canvas: #FFF6E4;
  --sand: #F3E4C4;
  --paper: #FFFDF7;
  --ink: #163028;
  --muted: #4A6358;
  --amber: #B85600;
  --amber-hover: #9A4A00;
  --amber-active: #7A3A00;
  --lime: #C8FF3A;
  --amber-bright: #E8930A;
  --copper: #C45C28;
  --water: #0F5E5E;
  --water-wash: #D8F0EE;
  --elec-wash: #EAF6C4;
  --unknown: #E6D3A8;
  --caution: #F8E3B0;
  --error: #7A2E2E;
  --error-wash: #F8D4D0;
  --planned-chip: #F3C56B;
  --link: #0F5E5E;
  --link-hover: #0A4545;
  --kicker: #3D6B2E;
  --shadow-card: 0 16px 40px rgba(22, 48, 40, .10);
  --shadow-btn: 0 8px 24px rgba(184, 86, 0, .22);
  --radius-card: 20px;
  --radius-search: 24px;
  --radius-ctrl: 12px;
  --max: 1180px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--canvas); color: var(--ink); }
body {
  font-family: Figtree, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 26px;
  font-weight: 400;
  min-height: 100%;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--canvas); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
@media (min-width: 900px) {
  .wrap { width: min(var(--max), calc(100% - 100px)); }
}

/* Fonts */
@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/sora-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/sora-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2");
}

h1, h2, h3, .wordmark, .table-wrap th, .status-word {
  font-family: Sora, Figtree, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: 28px; line-height: 34px; margin: 0 0 8px; max-width: 22ch; }
h2 { font-size: 24px; line-height: 30px; margin: 0 0 12px; max-width: 22ch; }
h3 { font-size: 20px; line-height: 26px; margin: 0 0 8px; font-weight: 600; }
@media (min-width: 800px) {
  h1 { font-size: clamp(2.5rem, 4vw, 3.25rem); line-height: 1.1; }
  h2 { font-size: 32px; line-height: 38px; }
}
p { max-width: 70ch; }
.prose p, .prose li { max-width: 70ch; }
.kicker {
  font-family: Sora, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kicker);
  margin: 0 0 8px;
}
.muted { color: var(--muted); }
.lead { margin: 0 0 16px; max-width: 70ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--sand);
  height: 56px;
}
@media (min-width: 900px) { .site-header { height: 64px; } }
.site-header .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 28px; height: 28px; flex: 0 0 28px; }
.wordmark { font-size: 18px; line-height: 1.2; font-weight: 700; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  background: transparent; border: 1px solid var(--sand); border-radius: var(--radius-ctrl);
  color: var(--ink); font: 600 16px/22px Figtree, sans-serif; cursor: pointer;
}
.nav { display: none; }
.nav.open { display: flex; flex-direction: column; gap: 4px;
  position: absolute; left: 0; right: 0; top: 56px;
  background: var(--paper); border-bottom: 1px solid var(--sand);
  padding: 12px 16px 20px; box-shadow: var(--shadow-card);
}
.nav a {
  display: flex; align-items: center; min-height: 44px;
  padding: 8px 12px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 16px;
}
.nav a[aria-current="page"] {
  background: transparent;
  box-shadow: inset 0 -2px 0 #C6FF3D;
  text-shadow: 0 0 12px rgba(198, 255, 61, .45);
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav, .nav.open {
    display: flex; flex-direction: row; align-items: center; gap: 4px;
    position: static; padding: 0; border: 0; box-shadow: none; background: transparent;
  }
  .nav a { padding: 8px 10px; border-radius: 10px; }
}

/* Hero / search / map */
.hero { padding: 8px 0 32px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%;
  background-image: linear-gradient(rgba(196,92,40,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,92,40,.10) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.12; pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 16px; }
@media (min-width: 900px) {
  .hero { padding: 24px 0 32px; }
  .hero-grid {
    grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
    gap: 36px; align-items: start;
  }
}
.search-card {
  background: var(--paper); border-radius: var(--radius-search);
  padding: 24px 24px 16px; box-shadow: var(--shadow-card); position: relative; z-index: 2;
}
.search-card #search-form > p {
  margin: 8px 0 0;
}
.search-card #search-error[hidden] {
  display: none !important;
  margin: 0;
  padding: 0;
}
.search-card #search-error:not([hidden]) {
  margin-top: 8px;
}
@media (min-width: 900px) {
  .search-card { margin-right: -24px; }
}
.search-card label { display: block; font-weight: 600; margin-bottom: 8px; }
.search-row { display: grid; gap: 8px; }
@media (min-width: 900px) {
  .search-row { grid-template-columns: 1fr auto; align-items: stretch; }
  .search-row .btn { width: auto; min-width: 120px; }
}
.search-row input[type="search"], .search-row input[type="text"] {
  width: 100%; min-height: 48px; font-size: 16px; line-height: 22px;
  font-family: Figtree, sans-serif; color: var(--ink); background: var(--canvas);
  border: 1px solid var(--unknown); border-radius: var(--radius-ctrl); padding: 12px 14px;
}
.search-row input:focus-visible {
  outline: 3px solid #C6FF3D;
  outline-offset: 2px;
  border-color: #C6FF3D;
  box-shadow: 0 0 0 2px var(--ink), 0 0 16px rgba(198, 255, 61, .55);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 120px; padding: 12px 20px;
  background: var(--amber); color: #fff; border: 0; border-radius: var(--radius-ctrl);
  font: 600 16px/22px Figtree, sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-btn);
}
.btn:hover { background: var(--amber-hover); color: #fff; }
.btn:active { background: var(--amber-active); }
.btn-full { width: 100%; }
.linkish {
  background: none; border: 0; padding: 8px 0; color: var(--link);
  font: 600 16px/22px Figtree, sans-serif; text-decoration: underline;
  cursor: pointer; min-height: 44px;
}
.map-stage {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--sand);
  background-image: linear-gradient(rgba(255,246,228,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,246,228,.35) 1px, transparent 1px);
  background-size: 32px 32px;
  height: 220px;
}
@media (min-width: 900px) {
  .map-stage { height: auto; aspect-ratio: 680 / 440; border-radius: 20px; }
  .map-stage.map-large { aspect-ratio: auto; min-height: 620px; }
}
.map-stage.map-place { min-height: 220px; }
@media (min-width: 900px) {
  .map-stage.map-place { min-height: 360px; aspect-ratio: 16 / 9; }
}
.map-canvas,
.map-canvas.maplibregl-map {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
@media (min-width: 900px) {
  .map-canvas,
  .map-canvas.maplibregl-map {
    top: 0; left: 0; right: 0;
    bottom: 32px !important;
    height: auto !important;
  }
  .map-skeleton { bottom: 32px; }
}
.map-skeleton {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 600; pointer-events: none;
}
.map-stage.is-ready .map-skeleton { display: none; }
.map-legend {
  position: absolute; z-index: 2; left: 12px; bottom: 28px;
  background: var(--paper); border-radius: 16px; padding: 12px 14px;
  box-shadow: var(--shadow-card); font-size: 14px; line-height: 20px;
}
.map-legend summary {
  font-family: Sora, sans-serif; font-weight: 600; font-size: 14px; line-height: 18px;
  cursor: pointer; list-style: none;
}
.map-legend summary::-webkit-details-marker { display: none; }
.map-legend ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.map-legend li { display: flex; align-items: center; gap: 8px; }
@media (max-width: 899px) {
  .map-legend { padding: 0; border-radius: 999px; bottom: 28px; }
  .map-legend summary {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 36px; min-width: 44px; padding: 6px 14px; border-radius: 999px;
  }
  .map-legend:not([open]) ul { display: none; }
  .map-legend[open] {
    padding: 12px 14px; border-radius: 16px;
  }
}
@media (min-width: 900px) {
  .map-legend {
    left: 8px;
    right: auto;
    bottom: 6px;
    max-width: calc(100% - 270px);
    padding: 3px 8px;
    border-radius: 8px;
    box-shadow: none;
    background: transparent;
    font-size: 12px;
    line-height: 16px;
    display: flex;
    align-items: center;
  }
  .map-legend summary {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
    pointer-events: none; cursor: default;
  }
  .map-legend ul {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    margin: 0;
  }
  .map-legend li { gap: 6px; white-space: nowrap; }
  .map-legend .legend-detail { display: none; }
  .map-legend .pin { width: 12px; height: 12px; flex-basis: 12px; }
  .map-legend .pin-unknown { width: 10px; height: 10px; flex-basis: 10px; }
  .map-legend::details-content {
    display: block;
    content-visibility: visible;
    height: auto;
    overflow: visible;
  }
  .map-attrib { bottom: 8px; right: 8px; }
}
.map-attrib {
  position: absolute; z-index: 2; right: 8px; bottom: 6px;
  margin: 0;
  background: rgba(255,253,247,.92); padding: 2px 6px; border-radius: 4px;
  font-size: 11px; line-height: 16px; color: var(--ink);
}
.map-attrib a { color: var(--ink); }
.pin {
  width: 16px; height: 16px; border-radius: 50%; flex: 0 0 16px;
  border: 2px solid var(--ink); box-shadow: 0 0 6px rgba(200, 255, 58, .9);
  background: var(--lime);
}
.pin-building {
  background: repeating-linear-gradient(135deg, var(--lime), var(--lime) 3px, var(--ink) 3px, var(--ink) 4px);
}
.pin-planned {
  background: transparent; border: 2px dashed #E8930A;
  box-shadow: none;
}
.pin-unknown { background: var(--unknown); width: 14px; height: 14px; flex-basis: 14px; box-shadow: none; }

.notice {
  background: var(--sand); color: var(--ink); border-radius: 16px;
  padding: 12px 16px; margin: 16px 0 0; font-size: 16px; line-height: 24px;
  max-width: none;
}
.notice-strip {
  width: 100%;
  margin: 24px 0 16px;
  padding: 12px 20px;
  border-radius: 14px;
}
.results-peek {
  background: var(--paper); border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow-card); min-height: 132px;
}
.results-peek h2 { font-size: 20px; line-height: 26px; max-width: none; }
.results-list { list-style: none; margin: 8px 0 0; padding: 0; }
.results-list button {
  width: 100%; text-align: left; background: transparent; border: 0;
  border-bottom: 1px solid var(--unknown); padding: 12px 4px;
  min-height: 48px; font: 400 16px/22px Figtree, sans-serif; color: var(--ink); cursor: pointer;
}
.results-list button:hover, .results-list button[aria-current="true"] { background: var(--canvas); }

/* Cards / takeaways / tables */
.section { padding: clamp(56px, 8vw, 88px) 0; }
.section-tight { padding: 32px 0; }
.takeaways {
  background: var(--paper); border-radius: var(--radius-card);
  border-left: 6px solid var(--lime); padding: 24px 24px 24px 28px;
  box-shadow: var(--shadow-card); margin: 24px 0;
}
.takeaways h2 { margin-bottom: 12px; }
.takeaways ul { margin: 0; padding-left: 1.15em; }
.takeaways li { margin: 0 0 8px; }
.bento {
  display: grid; gap: 16px; align-items: start; margin: 24px 0;
  min-width: 0; width: 100%;
}
.bento > *, .home-bento > * { min-width: 0; max-width: 100%; }
.nearby-wrap { max-width: 100%; }
.nearby-wrap .table-wrap { max-width: 100%; }
@media (min-width: 800px) {
  .bento.impact { grid-template-columns: 1fr 1fr; }
}
.card {
  background: var(--paper); border-radius: var(--radius-card); padding: 24px;
  box-shadow: var(--shadow-card);
}
.card.elec { background: var(--elec-wash); }
.card.water { background: var(--water-wash); }
.card .icon-label { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0 0 8px; }
.source-role { color: var(--muted); font-size: 16px; margin: 12px 0 0; }
.meetings {
  background: var(--paper); border-radius: var(--radius-card);
  padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start;
  box-shadow: var(--shadow-card); margin: 24px 0;
}
.meetings .node {
  width: 12px; height: 12px; margin-top: 7px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 6px rgba(200,255,58,.35); flex: 0 0 12px;
}
.questions ol { list-style: none; margin: 0; padding: 0; counter-reset: q; display: grid; gap: 16px; }
.questions li { display: flex; gap: 12px; align-items: flex-start; }
.questions li::before {
  counter-increment: q; content: counter(q);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  font: 700 14px/28px Sora, sans-serif; text-align: center; flex: 0 0 28px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 4px 12px; border-radius: 999px;
  font: 600 14px/20px Figtree, sans-serif; border: 1px solid transparent;
}
.chip.operating { background: var(--lime); color: var(--ink); }
.chip.planned { background: var(--planned-chip); color: var(--ink); }
.chip.building {
  color: var(--ink);
  background: repeating-linear-gradient(135deg, var(--lime), var(--lime) 4px, #eef6b0 4px, #eef6b0 7px);
}
.chip.unknown { background: var(--unknown); color: var(--ink); }
.filter-row button.chip {
  cursor: pointer; background: var(--paper); border: 1px solid var(--unknown); color: var(--ink);
}
.filter-row button.chip[aria-pressed="true"] { border-color: var(--ink); }
.filter-row button.chip[aria-pressed="true"].is-operating { background: var(--lime); }
.filter-row button.chip[aria-pressed="true"].is-planned { background: var(--planned-chip); }
.filter-row button.chip[aria-pressed="true"].is-building { background: var(--elec-wash); }
.filter-row button.chip[aria-pressed="true"].is-unknown { background: var(--unknown); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 24px; }
.table-wrap[data-scroll] { max-height: 28rem; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; }
th {
  background: var(--sand); color: var(--ink); font-family: Sora, sans-serif; font-weight: 600;
  font-size: 16px; line-height: 24px; position: sticky; top: 0;
}
td { font-size: 16px; line-height: 24px; min-height: 48px; border-bottom: 1px solid var(--unknown); }
tbody tr:nth-child(odd) { background: var(--paper); }
tbody tr:nth-child(even) { background: var(--canvas); }
caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
@media (max-width: 600px) {
  table.stack { display: block; }
  table.stack thead { position: absolute; left: -9999px; }
  table.stack tr { display: block; border-bottom: 8px solid var(--canvas); padding: 8px 0; }
  table.stack td { display: block; border: 0; padding: 8px 12px; }
  table.stack td::before { content: attr(data-label); display: block; font-weight: 600; font-family: Sora, sans-serif; margin-bottom: 2px; }
}

.reviewed { color: var(--muted); margin: 0 0 16px; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 40px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.caution { background: var(--caution); color: var(--ink); border-radius: 16px; padding: 12px 16px; }
.error { background: var(--error-wash); color: var(--error); border-radius: 12px; padding: 12px 16px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--canvas); padding: 48px 0 32px; margin-top: 48px; }
.site-footer a { color: var(--canvas); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer h2 { color: var(--canvas); font-size: 18px; line-height: 24px; max-width: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer li a { display: inline-flex; min-height: 32px; align-items: center; }
.legal { margin-top: 32px; color: var(--sand); font-size: 15px; line-height: 24px; max-width: 80ch; }

/* Popup (MapLibre) */
.maplibregl-popup-content {
  background: var(--paper) !important; color: var(--ink) !important;
  border-radius: 16px !important; padding: 14px 16px !important;
  box-shadow: var(--shadow-card) !important; font-family: Figtree, sans-serif !important;
}
.maplibregl-popup-close-button { font-size: 20px; padding: 4px 8px; }
.popup h3 { margin: 0 0 6px; font-size: 18px; line-height: 24px; max-width: none; }
.popup p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.lead-desktop { display: none; }
.lead-mobile { display: block; }
@media (min-width: 900px) {
  .lead-desktop { display: block; }
  .lead-mobile { display: none; }
}

.below-hero { padding-bottom: 24px; }
@media (min-width: 900px) {
  .results-peek { display: none; }
  .home-bento {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 16px;
    align-items: start;
    margin-top: 8px;
  }
  .home-bento .nearby-wrap { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  .home-bento .card.elec, .home-bento .card.water { margin: 0; }
}
.nearby-wrap { margin: 0; }
.nearby-wrap h2 { max-width: none; font-size: 20px; line-height: 26px; margin-bottom: 12px; }
.nearby-wrap .table-wrap { margin: 0; }

.place-hero {
  position: relative;
  padding: 20px 0 16px;
  background:
    radial-gradient(ellipse 70% 90% at 88% 10%, rgba(198,255,61,.32), transparent 58%),
    radial-gradient(ellipse 60% 80% at 8% 0%, rgba(232,147,10,.20), transparent 52%),
    var(--canvas);
  overflow: hidden;
}
.place-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(196,92,40,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,92,40,.10) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.12; pointer-events: none;
}
.place-hero .wrap { position: relative; }
.place-hero h1 { max-width: 20ch; }
.stat-chips {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
  margin: 16px 0 0; padding: 0;
}
.stat-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border-radius: 999px;
  padding: 8px 14px; min-height: 36px;
  box-shadow: var(--shadow-card); font-weight: 600; font-size: 15px;
}
.stat-chips .dot {
  width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px;
}
.stat-chips .dot.lime { background: #C6FF3D; box-shadow: 0 0 8px rgba(198,255,61,.9); }
.stat-chips .dot.amber { background: #E8930A; box-shadow: 0 0 8px rgba(232,147,10,.55); }

.place-page .takeaways { margin-top: 16px; }
@media (max-width: 899px) {
  .place-hero { padding: 12px 0 8px; }
  .place-hero h1 { font-size: 26px; line-height: 32px; margin-bottom: 8px; }
  .stat-chips { margin-top: 10px; gap: 6px; }
  .stat-chips li { font-size: 14px; padding: 6px 12px; }
  .place-page .takeaways {
    padding: 14px 14px 14px 16px; margin: 12px 0 12px;
  }
  .place-page .takeaways h2 { font-size: 18px; line-height: 22px; margin-bottom: 8px; }
  .place-page .takeaways li { font-size: 16px; line-height: 22px; margin: 0 0 4px; }
  .place-page .map-stage { margin-bottom: 16px; }
}

.nearby-wrap caption {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.meetings { background: #F4F8D8; }

.nearby-wrap:not(.has-distance) .col-distance { display: none; }
