
/* findpoweroutage.com: every page leads with the live answer (count + map), then detail, history, resources and links.
   Fonts load from Google Fonts with system fallbacks; colors are tokens with a dark theme. */
:root {
  --paper: #f5f7f8; --card: #ffffff; --ink: #15212b; --muted: #5b6b78; --rule: #dde3e8;
  --accent: #0b5f8a; --power: #e39b12; --ok: #217a4b; --warn: #b26a00; --crit: #b3261e;
  --note: #6b4fbb; --note-bg: #f1edfb; --map-land: #e9eef1; --map-none: #f0f2f4;
  --heat0: var(--map-none);
  --heat1: #fbe7c2; --heat2: #f4c46a; --heat3: #e39b12; --heat4: #b3261e; --heat5: #d9e4df;
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f161c; --card: #16212a; --ink: #e6edf2; --muted: #93a4b1; --rule: #26343f;
    --accent: #6cc0ea; --power: #f2b23a; --ok: #5fc48d; --warn: #f0a640; --crit: #ff7a6e;
    --note: #b9a6ff; --note-bg: #231d3a; --map-land: #1d2a34; --map-none: #25333e;
    --heat1: #4a3a1c; --heat2: #8a6420; --heat3: #f2b23a; --heat4: #ff7a6e; --heat5: #34463f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f161c; --card: #16212a; --ink: #e6edf2; --muted: #93a4b1; --rule: #26343f;
  --accent: #6cc0ea; --power: #f2b23a; --ok: #5fc48d; --warn: #f0a640; --crit: #ff7a6e;
  --note: #b9a6ff; --note-bg: #231d3a; --map-land: #1d2a34; --map-none: #25333e;
  --heat1: #4a3a1c; --heat2: #8a6420; --heat3: #f2b23a; --heat4: #ff7a6e; --heat5: #34463f; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, [role="tab"]:focus-visible { outline: 3px solid var(--power); outline-offset: 2px; }
.wrap { max-width: 1100px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--muted); font-weight: 600; }
.sub { color: var(--muted); }
.vh { position: absolute; left: -9999px; }


.site-head { background: var(--card); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 12px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo b { color: var(--power); font-weight: 700; }
.country { display: inline-flex; margin-right: auto; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.country a { font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: .04em; color: var(--muted); text-decoration: none; padding: 4px 11px; }
.country a + a { border-left: 1px solid var(--rule); }
.country a:hover { color: var(--ink); }
.country a[aria-current="page"] { color: var(--paper); background: var(--ink); }
.theme-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.theme-btn:hover { color: var(--ink); }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
.foot-countries a { white-space: nowrap; }
.intl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; border-left: 3px solid var(--power); }
.intl p { margin: 0; }
.intl .btn { text-decoration: none; }
.search { display: flex; gap: 8px; flex: 1 1 260px; max-width: 420px; }
.search input, .inline-form input { min-width: 0; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; }
.search input { flex: 1; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { width: 9ch; }
.btn { font: inherit; font-weight: 700; padding: 9px 14px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--card); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:disabled { opacity: .6; cursor: progress; }
.contact-form { display: grid; gap: 14px; max-width: 640px; margin-top: 16px; }
.contact-form .field { display: grid; gap: 6px; min-width: 0; }
.contact-form .field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-form label { font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--power); outline-offset: 2px; }
.contact-form .form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.contact-form .form-foot .msg { margin: 0; }
.contact-form .msg.ok { color: var(--ok); }
.contact-form .msg.err { color: var(--crit); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

main { padding-block: 20px 48px; }
.page { display: grid; gap: 28px; }
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.title-row { display: grid; gap: 6px; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 20px; min-width: 0; }
.answer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; }
@media (max-width: 760px) { .answer { grid-template-columns: 1fr; } }
.live { display: grid; gap: 16px; align-content: start; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 4px 10px; border-radius: 999px; font-size: .9rem; width: fit-content; }
.status.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.status.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.status.crit { color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, transparent); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.big { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 9vw, 4.4rem); line-height: 1; }
.big small { display: block; font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--muted); margin-top: 6px; }
.yesno { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.05; }
.yesno-line { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 3.6vw, 1.6rem); line-height: 1.2; margin: 0; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; color: var(--muted); }
.util-list { border-top: 1px solid var(--rule); }
.util { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.util .name { font-weight: 700; }
.util .val { text-align: right; }
.util .detail { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
.util .share { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
.util .share.warn { color: var(--warn); }
.util .share.crit { color: var(--crit); font-weight: 700; }
.util .share.none { display: none; }
.mapbox { display: grid; gap: 10px; align-content: start; }
.mapbox svg { width: 100%; height: auto; display: block; background: var(--paper); border-radius: 8px; }
.map-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); }
.legend { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.stack { display: grid; gap: 12px; align-content: start; }
.counts { display: flex; gap: 20px; flex-wrap: wrap; }
.counts div { display: grid; }
.counts b { font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.counts span { color: var(--muted); font-size: .88rem; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--rule); }
td { padding: 9px 10px; border-bottom: 1px solid var(--rule); }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
.section-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-block: 12px 16px; }
.stat { border-left: 3px solid var(--power); padding: 4px 0 4px 12px; }
.stat b { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .88rem; }
.insight { max-width: 68ch; }
.resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.resources ul { padding-left: 1.2em; margin: 8px 0 0; display: grid; gap: 6px; }
.timeline { list-style: none; padding: 0 !important; }
.timeline li { display: grid; grid-template-columns: 6.5ch 1fr; gap: 10px; }
.timeline b { font-family: var(--display); font-variant-numeric: tabular-nums; }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.links ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.links li span { color: var(--muted); font-size: .85rem; }
.slot { border: 1px dashed var(--rule); border-radius: 8px; display: grid; place-items: center; color: var(--muted); font-size: .85rem; text-align: center; padding: 8px; }
.slot.leader { min-height: 100px; }
.slot.rect { min-height: 250px; }
.alert-box { border: 1px solid var(--warn); border-left-width: 6px; background: color-mix(in srgb, var(--warn) 8%, var(--card)); border-radius: 10px; padding: 16px 20px; display: grid; gap: 8px; }
.alert-box blockquote { margin: 0; padding-left: 12px; border-left: 2px solid var(--rule); font-size: .92rem; white-space: pre-line; }
.steps { display: grid; gap: 8px; padding-left: 1.2em; margin: 8px 0 0; }
.site-foot { border-top: 1px solid var(--rule); background: var(--card); font-size: .9rem; color: var(--muted); margin-top: 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding-block: 32px 24px; }
.site-foot h2 { font: 600 .78rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 0 0 10px; }
.site-foot p { margin: 0 0 8px; line-height: 1.5; }
.site-foot ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--accent); text-decoration: underline; }
.site-foot .logo { font-size: 1.15rem; margin-bottom: 10px; display: inline-block; color: var(--ink); }
.site-foot .more { font-weight: 600; display: block; margin-top: 4px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 14px 22px; border-top: 1px solid var(--rule); font-size: .82rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse 2s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .45; } } }

.masked { font-size: .85em; color: var(--muted); }
.stale { color: var(--warn); font-size: .85rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 20; }
.prose { max-width: 68ch; display: grid; gap: 10px; }
.mapbox svg [data-heat] { transition: fill .3s; }
.mapbox svg .pin text { font: 700 15px var(--display); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.mapbox svg .map-empty { font: 600 14px var(--body); fill: var(--muted); }

/* Info bubbles (src/site/info.tsx) */
.info { position: relative; display: inline-block; vertical-align: middle; margin-left: 4px; text-transform: none; letter-spacing: normal; font-weight: 400; }
.info summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; color: var(--muted); font: italic 700 11px/1 Georgia, serif; user-select: none; }
.info summary::-webkit-details-marker { display: none; }
.info summary:hover, .info[open] summary { color: var(--accent); }
.info summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.info-body { position: absolute; z-index: 20; top: calc(100% + 6px); left: -8px; width: min(17rem, calc(100vw - 32px)); padding: 10px 12px; border-radius: 8px; background: var(--card); color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 6px 24px rgb(0 0 0 / .18); font: 400 .88rem/1.45 var(--body); text-align: left; white-space: normal; }

/* untracked utilities: the long list stays folded */
.more-rows { margin-top: 10px; }
.more-rows > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }

/* ---------- home page: search-first hero, ruled bands instead of stacked cards ---------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-block: 28px 8px; }
@media (max-width: 860px) { .home-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; } }
.hero-ask { display: grid; gap: 14px; }
.hero-ask h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -.01em; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.dateline { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.dateline b { color: var(--ink); font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crit); box-shadow: 0 0 0 3px color-mix(in srgb, var(--crit) 22%, transparent); }
.hero-search { display: flex; gap: 0; max-width: 520px; margin-top: 4px; }
.hero-search input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: 14px 16px; border: 2px solid var(--ink); border-right: 0; border-radius: 8px 0 0 8px; background: var(--card); color: var(--ink); }
.hero-search input:focus-visible { outline: none; border-color: var(--accent); }
.hero-search .btn { border-radius: 0 8px 8px 0; padding: 0 22px; font-size: 1.05rem; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hero-search .btn:hover { background: var(--accent); border-color: var(--accent); }
.hero-hint { font-size: .92rem; color: var(--muted); }
.hero-now { border-top: 2px solid var(--ink); }
.now-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.now-row:hover .now-place, .now-row:hover .go { color: var(--accent); }
.now-place { font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; align-self: center; }
.now-fig { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; text-align: right; }
.now-meta { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }
.now-meta .go { color: var(--accent); font-weight: 700; white-space: nowrap; }
.now-meta .go::after { content: " \2192"; }

.band { border-top: 1px solid var(--rule); padding-top: 22px; display: grid; gap: 16px; }
.band h2 { font-size: 1.45rem; }
.band-head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; }
.band.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.band.two > div { display: grid; gap: 10px; align-content: start; }
.minor { font-family: var(--display); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.fine { font-size: .86rem; color: var(--muted); }
.map-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .map-split { grid-template-columns: 1fr; gap: 24px; } }
.map-wrap svg { width: 100%; height: auto; display: block; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; display: grid; grid-template-columns: 2ch 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.rank li::before { content: counter(r); color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.rank li > a { color: var(--ink); text-decoration: none; font-weight: 700; }
.rank li > a:hover { color: var(--accent); text-decoration: underline; }
.rank small { color: var(--muted); font-size: .85rem; margin-left: 6px; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; border-left: 1px solid var(--rule); }
.figures > div { padding: 4px 18px 6px; border-right: 1px solid var(--rule); display: grid; gap: 4px; align-content: start; }
.figures dt { font-size: .88rem; color: var(--muted); }
.figures dd { margin: 0; }
.figures dd.num { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.05; }
.dir-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 760px) { .dir-grid { grid-template-columns: 1fr; gap: 24px; } }
.cols { list-style: none; margin: 0; padding: 0; columns: 4 160px; column-gap: 24px; }
.cols li { break-inside: avoid; padding: 3px 0; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.directory a { text-decoration: none; }
.directory a:hover { text-decoration: underline; }
.more-list summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 6px 0; }
.more-list .cols { margin-top: 10px; font-size: .92rem; }

/* ---------- editorial pass: every page reads as ruled sections, not stacked cards ---------- */
.page { gap: 34px; }
.title-row { gap: 10px; padding-top: 8px; }
.title-row h1 { font-size: clamp(2.2rem, 5.5vw, 3.2rem); letter-spacing: -.01em; }
.title-row .sub { font-size: 1.08rem; max-width: 64ch; }
.panel { background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 20px 0 0; }
.answer { gap: 40px; }
.answer > .panel, .live.panel { border-top: 2px solid var(--ink); }
.eyebrow { font-size: .8rem; letter-spacing: .07em; }
.mapbox svg { background: none; border-radius: 0; }
.status { padding: 0; background: none !important; border-radius: 0; font-size: .95rem; }
.big { font-size: clamp(3.2rem, 9vw, 4.8rem); }
.section-head h2, .panel > h2:not(.eyebrow), .stack > h2:not(.eyebrow) { font-size: 1.45rem; }
.duo { gap: 40px; }
.util { padding: 11px 0; }
th { text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: .85rem; font-weight: 700; color: var(--muted); }
tbody tr:hover td { background: color-mix(in srgb, var(--rule) 35%, transparent); }
.stats { gap: 0; border-left: 1px solid var(--rule); margin-block: 14px 18px; }
.stat { border-left: 0; border-right: 1px solid var(--rule); padding: 2px 18px 6px; }
.stat b { font-size: 2rem; }
.links { border-top: 1px solid var(--rule); gap: 28px 40px; }
.links h3 { font-family: var(--display); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.links ul { gap: 4px; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }
.resources { gap: 32px; }
.resources > .panel { border-top: 2px solid var(--ink); }
.resources h3 { margin-bottom: 4px; }
.info summary { width: 14px; height: 14px; font-size: 10px; border-width: 1px; opacity: .75; }
.note { border-left: 3px solid var(--warn); padding: 4px 0 4px 14px; color: var(--ink); max-width: 72ch; }
.slot { border-radius: 0; }

/* search suggestions */
.search, .hero-search { position: relative; }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 10px 28px rgb(0 0 0 / .14); max-height: 380px; overflow-y: auto; padding: 4px 0; text-align: left; }
.suggest-msg { margin: 0; padding: 8px 14px; color: var(--muted); font-size: .9rem; border-bottom: 1px solid var(--rule); }
.suggest [role="option"] { display: flex; align-items: baseline; gap: 10px; padding: 9px 14px; color: var(--ink); text-decoration: none; }
.suggest [role="option"]:hover, .suggest [role="option"][aria-selected="true"] { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.suggest .s-label { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .s-sub { color: var(--muted); font-size: .88rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .s-tag { font-size: .78rem; color: var(--warn); white-space: nowrap; }

/* maps: county borders and town landmarks */
.map-wrap svg path.county, .mapbox svg path.county { stroke: var(--paper); stroke-width: 1; stroke-linejoin: round; }
.map-wrap svg a:hover path.county { stroke: var(--ink); stroke-width: 1.5; }
.landmarks { pointer-events: none; }
.landmarks circle { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; }
.landmarks text { font: 600 12.5px var(--body); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3.5px; stroke-linejoin: round; }

/* NWS warnings box (WeatherAlerts): hidden until client/app.ts finds an active alert. */
.wx { border-left: 4px solid var(--warn); background: var(--card); padding: 12px 16px; margin: 16px 0; border-radius: 0 8px 8px 0; }
.wx[hidden] { display: none; }
.wx ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.wx li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding-left: 12px; border-left: 3px solid var(--rule); }
.wx li.wx-warning { border-left-color: var(--crit); }
.wx li.wx-watch { border-left-color: var(--warn); }
.wx li.wx-advisory { border-left-color: var(--power); }
.wx li b { font-family: var(--display); font-size: 1.08rem; }
.wx p.sub { font-size: .9rem; }

/* =====================================================================
   Data Center Atlas additions (base above is the findpoweroutage system)
   ===================================================================== */
body { margin: 0; }
:root { --op: var(--accent); --pipe: var(--power); --land: var(--note); --colo: var(--ok); --bldg: var(--muted); }
.logo svg rect.led { fill: var(--power); }
.topnav { display: inline-flex; flex-wrap: wrap; margin-right: auto; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.topnav a { font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .02em; color: var(--muted); text-decoration: none; padding: 5px 12px; }
.topnav a + a { border-left: 1px solid var(--rule); }
.topnav a:hover { color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--paper); background: var(--ink); }
@media (max-width: 700px) { .topnav { order: 5; width: 100%; } .topnav a { flex: 1; text-align: center; padding: 6px 4px; font-size: .88rem; } }

/* static SVG maps */
.mapbox svg path.cty { fill: var(--map-none); stroke: var(--paper); stroke-width: .8; stroke-linejoin: round; }
.mapbox svg path.cty.on { fill: var(--map-land); stroke: var(--ink); stroke-width: 1.6; }
.mapbox svg path.state { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.mapbox svg path.us { fill: var(--map-land); stroke: var(--paper); stroke-width: .8; }
.mapbox svg a path.cty:hover { stroke: var(--ink); stroke-width: 1.6; }
.mapbox svg path.pc { stroke: var(--card); stroke-width: .5; }
.mapbox svg path.pc.dim { opacity: .22; }
.mapbox svg .pc.op { fill: var(--op); } .mapbox svg .pc.pipeline { fill: var(--pipe); } .mapbox svg .pc.land { fill: var(--land); }
.mapbox svg circle.colo { fill: var(--colo); fill-opacity: .8; stroke: var(--card); stroke-width: 1.2; }
.mapbox svg circle.bl { fill: var(--bldg); fill-opacity: .7; }
.mapbox svg circle.dim { opacity: .2; }
.mapbox svg circle.focus { fill: none; stroke: var(--crit); stroke-width: 3; }
.mapbox svg circle.gpu { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.mapbox svg text.price { font: 700 15px var(--display); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.legend i.c { border-radius: 50%; }
.map-cta { font-weight: 700; text-decoration: none; }
.map-cta::after { content: " \2192"; }

/* interactive (MapLibre) map */
.imap-wrap { display: grid; gap: 10px; }
.imap { position: relative; height: min(66vh, 580px); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--map-none); }
.imap .map-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.imap-ctl { position: absolute; top: 10px; left: 10px; z-index: 3; display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--card); }
.imap-ctl button { font: 600 .88rem var(--display); letter-spacing: .03em; border: 0; background: none; color: var(--muted); padding: 5px 11px; cursor: pointer; }
.imap-ctl button + button { border-left: 1px solid var(--rule); }
.imap-ctl button.on { background: var(--ink); color: var(--paper); }
.maplibregl-popup-content { background: var(--card); color: var(--ink); border-radius: 8px; padding: 12px 14px; box-shadow: 0 6px 24px rgb(0 0 0 / .2); font: 400 .9rem/1.45 var(--body); max-width: 300px; }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--card); } .maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--card); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--card); } .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--card); }
.maplibregl-popup-close-button { color: var(--muted); font-size: 18px; padding: 0 6px; }
.pop b.t { display: block; font: 700 1.05rem/1.2 var(--display); margin: 0 14px 6px 0; }
.pop .k { color: var(--muted); }
.pop .go { display: inline-block; margin-top: 6px; font-weight: 700; }

/* confidence + status */
.badge { display: inline-block; font: 700 .74rem/1 var(--body); padding: 3px 7px; border-radius: 4px; white-space: nowrap; vertical-align: 1px; }
.b-official { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.b-self { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.b-match { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.b-inferred { color: var(--note); background: var(--note-bg); }
.st { white-space: nowrap; } .st::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.st-operational::before { background: var(--op); } .st-pipeline::before { background: var(--pipe); } .st-land::before { background: var(--land); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em; }
.owner { font-size: .9rem; }
.big .unit { font-size: .45em; margin-left: 4px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px; font-size: .9rem; }

/* FAQ: same ruled look */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 12px 28px 12px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font: 700 1.3rem var(--display); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { display: inline; }
.faq details p { padding-bottom: 14px; max-width: 72ch; }
.src { font-size: .86rem; color: var(--muted); }
.mapbox svg path.ar { fill: var(--map-land); stroke: var(--muted); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 4 3; stroke-linejoin: round; }
.mapbox svg path.ar.on { fill: var(--card); stroke: var(--ink); stroke-opacity: 1; stroke-width: 2; stroke-dasharray: none; }
.mapbox svg path.pc.dim { opacity: .14; }
.mapbox svg circle.bl.hl { fill: var(--accent); fill-opacity: .9; stroke: var(--card); stroke-width: 1; }
.mapbox svg circle.bl.dim { opacity: .12; }
.now-fig .unit { font-size: .5em; margin-left: 2px; }

/* zoomable static maps */
.zoomable { position: relative; }
.zoomable svg { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.zoomable svg.zoomed { touch-action: none; cursor: grab; }
.zoomable svg.zoomed:active { cursor: grabbing; }
.mapbox svg path { vector-effect: non-scaling-stroke; }
.zoom-ui { position: absolute; top: 8px; right: 8px; display: grid; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--card); box-shadow: 0 1px 4px rgb(0 0 0 / .08); }
.zoom-ui button { width: 32px; height: 30px; border: 0; background: none; color: var(--ink); font: 700 18px/1 var(--display); cursor: pointer; }
.zoom-ui button + button { border-top: 1px solid var(--rule); }
.zoom-ui button:hover { background: color-mix(in srgb, var(--rule) 45%, transparent); }
.zoom-hint { position: absolute; inset: auto 0 10px; margin: auto; width: max-content; padding: 5px 10px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 86%, transparent); color: var(--paper); font: 600 .85rem var(--body); opacity: 0; pointer-events: none; transition: opacity .2s; }
.zoom-hint.on { opacity: 1; }

/* logo: a map pin made of a server rack, with blinking status lights */
.logo .mark { flex: none; overflow: visible; }
.logo .led { fill: var(--power); }
.logo .l2 { fill: var(--ok); }
.logo > span i { font-style: normal; font-weight: 600; color: var(--muted); font-size: .8em; }
@media (prefers-reduced-motion: no-preference) {
  .logo .led { animation: blink 2.6s steps(1) infinite; }
  .logo .l2 { animation-delay: .9s; } .logo .l3 { animation-delay: 1.7s; }
  .logo:hover .mark { animation: hop .5s ease; transform-origin: 50% 100%; }
  @keyframes blink { 0%, 62% { opacity: 1; } 64%, 70% { opacity: .2; } 72% { opacity: 1; } 86% { opacity: .3; } 88% { opacity: 1; } }
  @keyframes hop { 30% { transform: translateY(-3px) scaleY(1.04); } 60% { transform: translateY(0) scaleY(.96); } }
}

/* map dots: bigger, outlined, readable in both themes */
:root { --bldg: #5d7183; --dot-ring: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bldg: #c2d2de; --dot-ring: #0f161c; } }
:root[data-theme="dark"] { --bldg: #c2d2de; --dot-ring: #0f161c; }
.mapbox svg circle { vector-effect: non-scaling-stroke; }
.mapbox svg circle.colo { fill: var(--colo); fill-opacity: .92; stroke: var(--dot-ring); stroke-width: 1.5; }
.mapbox svg circle.bl { fill: var(--bldg); fill-opacity: .95; stroke: var(--dot-ring); stroke-width: 1; }
.mapbox svg circle.bl.hl { fill: var(--accent); }
.mapbox svg circle.dim { opacity: .18; }
.mapbox svg circle.hot { stroke: var(--ink); stroke-width: 3; fill-opacity: 1; opacity: 1; }
.mapbox svg.has-hot { cursor: pointer; }
.dot-tip { position: absolute; z-index: 5; max-width: 240px; padding: 7px 10px; border-radius: 7px; background: var(--card); color: var(--ink); border: 1px solid var(--rule);
  box-shadow: 0 6px 20px rgb(0 0 0 / .2); font: 600 .88rem/1.35 var(--body); pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); white-space: normal; }
.dot-tip[hidden] { display: none; }
.dot-tip small { display: block; font-weight: 400; color: var(--muted); }
.dot-tip a { pointer-events: auto; font-weight: 700; }

/* interactive US explorer */
.explore { display: grid; grid-template-columns: minmax(0, 1fr) 320px; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--card); }
.ex-map { position: relative; height: min(64vh, 560px); min-height: 380px; background: var(--map-none); }
.explore.full .ex-map { height: calc(100vh - 230px); min-height: 480px; }
.ex-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; }
.ex-fallback svg { width: 100%; height: 100%; }
.ex-fallback .ex-load { position: absolute; bottom: 16px; }
.ex-panel { display: flex; flex-direction: column; min-height: 0; max-height: min(64vh, 560px); border-left: 1px solid var(--rule); }
.explore.full .ex-panel { max-height: calc(100vh - 230px); }
.ex-controls { padding: 12px; border-bottom: 1px solid var(--rule); display: grid; gap: 10px; }
.ex-controls input[type=text], .ex-controls input:not([type]) { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; }
.ex-toggles { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .9rem; }
.ex-toggles label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ex-toggles i.c { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ex-reset { margin-left: auto; border: 0; background: none; color: var(--accent); font: 700 .88rem var(--body); cursor: pointer; padding: 0; }
.ex-count { margin: 0; padding: 9px 12px; font-size: .92rem; color: var(--muted); border-bottom: 1px solid var(--rule); }
.ex-count b { color: var(--ink); font-family: var(--display); font-size: 1.15rem; }
.ex-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.ex-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--rule); }
.ex-list li > a { font-weight: 700; color: var(--ink); text-decoration: none; } .ex-list li > a:hover { color: var(--accent); }
.ex-list .num { color: var(--muted); font-variant-numeric: tabular-nums; }
.ex-item { min-width: 0; display: grid; } .ex-item a { font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-item a:hover { color: var(--accent); text-decoration: underline; }
.ex-item small { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-list button { flex: none; width: 30px; height: 30px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--accent); cursor: pointer; font-size: 15px; }
.ex-list .ex-hint { color: var(--muted); font-size: .88rem; display: block; }
@media (max-width: 820px) {
  .explore { grid-template-columns: 1fr; }
  .ex-map, .explore.full .ex-map { height: 58vh; min-height: 320px; }
  .ex-panel, .explore.full .ex-panel { border-left: 0; border-top: 1px solid var(--rule); max-height: 420px; }
}

/* construction status + power */
.mapbox svg circle.bl.uc { fill: var(--power); }
.mapbox svg circle.bl.big { fill-opacity: .8; }
.ss-operational::before { background: var(--ok); }
.ss-under_construction::before { background: var(--power); }
.ss-planned::before { background: transparent; box-shadow: inset 0 0 0 2px var(--power); }
.trend { width: 100%; height: auto; } .trend .ax { font: 600 11px var(--body); fill: var(--muted); }
:root { --owned: #2a9d8f; }
.mapbox svg .pc.owned { fill: var(--owned); }
.st-owned::before { background: var(--owned); }
