/* LoneStarGrid. Layout: utility-grade lookup site; sticky one-row header, single content column (max 1180px), dense tables, facts in grids. */
:root{
  --bg:#F3F5F4; --surface:#FFFFFF; --surface-2:#E8EEEC; --line:#D3DBD8; --fg:#15201C; --muted:#586862;
  --accent:#0E6B6E; --accent-ink:#FFFFFF; --accent-soft:#D7ECEB; --star:#B4372D;
  --good:#2C7A4C; --bad:#B3372D; --warn:#9C6300; --info:#2A60A6;
  --bess:#6250d6; --solar:#eda100; --wind:#2a78d6; --gas:#eb6834; --other:#1baf7a;
  --map-sea:#DCE6EA; --map-land:#FFFFFF; --map-out:#EEF1EE; --map-mex:#E7E9E3; --map-county:#D3DBD7; --map-border:#9AA7A2; --map-tx:#2E3C37; --map-label:#7D8B86; --map-dot:#2a78d6;
  --ramp-1:#cde2fb; --ramp-2:#86b6ef; --ramp-3:#5598e7; --ramp-4:#2a78d6; --ramp-5:#184f95;
  --f-display:"Barlow Condensed","Arial Narrow",system-ui,sans-serif;
  --f-body:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,Consolas,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0F1513; --surface:#161E1B; --surface-2:#1E2925; --line:#2C3934; --fg:#E3ECE8; --muted:#94A49E;
  --accent:#4FB7B3; --accent-ink:#06201F; --accent-soft:#16383A; --star:#F07B6F;
  --good:#5DC488; --bad:#F07B6F; --warn:#E3A83B; --info:#7BA9EA;
  --bess:#9085e9; --solar:#c98500; --wind:#3987e5; --gas:#d95926; --other:#199e70;
  --map-sea:#0B1214; --map-land:#1C2623; --map-out:#141B19; --map-mex:#121816; --map-county:#2F3D38; --map-border:#566661; --map-tx:#CBD8D3; --map-label:#71827C; --map-dot:#3987e5;
  --ramp-1:#184f95; --ramp-2:#1c5cab; --ramp-3:#2a78d6; --ramp-4:#6da7ec; --ramp-5:#b7d3f6; color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#0F1513; --surface:#161E1B; --surface-2:#1E2925; --line:#2C3934; --fg:#E3ECE8; --muted:#94A49E;
  --accent:#4FB7B3; --accent-ink:#06201F; --accent-soft:#16383A; --star:#F07B6F;
  --good:#5DC488; --bad:#F07B6F; --warn:#E3A83B; --info:#7BA9EA;
  --bess:#9085e9; --solar:#c98500; --wind:#3987e5; --gas:#d95926; --other:#199e70;
  --map-sea:#0B1214; --map-land:#1C2623; --map-out:#141B19; --map-mex:#121816; --map-county:#2F3D38; --map-border:#566661; --map-tx:#CBD8D3; --map-label:#71827C; --map-dot:#3987e5;
  --ramp-1:#184f95; --ramp-2:#1c5cab; --ramp-3:#2a78d6; --ramp-4:#6da7ec; --ramp-5:#b7d3f6; color-scheme:dark;
}
/* cross-fade between pages instead of a blank flash (Chrome, Edge, Safari 18+) */
@view-transition{navigation:auto}
::view-transition-group(root){animation-duration:.15s}
@media (prefers-reduced-motion:reduce){::view-transition-group(root){animation:none}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--f-body);font-size:15px;line-height:1.55}
a{color:var(--accent)}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
img{max-width:100%}
[hidden]{display:none!important}
.wrap{max-width:1180px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.num,.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
h1,h2,h3{font-family:var(--f-display);font-weight:600;letter-spacing:.01em;text-wrap:balance;margin:0;line-height:1.1}
h1{font-size:clamp(1.9rem,4vw,2.5rem)} h2{font-size:1.55rem} h3{font-size:1.15rem}
.eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);font-weight:600}
.eyebrow a{color:inherit}
.muted{color:var(--muted)}
.lede{font-size:1.05rem;max-width:68ch;margin:0}
.prose{max-width:68ch}
.prose p,.prose li{margin:0 0 .7em}

/* header */
.top{position:sticky;top:0;z-index:40;background:var(--surface);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;gap:12px;align-items:center;padding-block:8px}
@media (max-width:760px){
  /* on phones the two-row header would take a fifth of the screen, so it scrolls away */
  .top{position:static}
  .top .wrap{flex-wrap:wrap;row-gap:6px}.top .search{flex:1 1 100%;order:3}
  /* comfortable touch targets */
  .nav a,.chip,.btn,.seg button,footer nav a,select,input[type=search]{min-height:44px;display:inline-flex;align-items:center}
  .chip{padding:6px 14px}
  footer nav{gap:0 18px}
  .zoom button{width:44px;height:44px}
}
.brand{display:flex;align-items:center;gap:7px;text-decoration:none;color:var(--fg);flex:none;white-space:nowrap}
.brand svg{width:20px;height:20px;fill:var(--star);flex:none}
.brand b{font-family:var(--f-display);font-size:1.5rem;font-weight:700;letter-spacing:.01em}
.brand b span{color:var(--accent)}
.nav{display:flex;gap:2px;overflow-x:auto;flex:1 1 auto;min-width:0;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.nav a{padding:6px 10px;border-radius:6px;white-space:nowrap;color:var(--muted);font-weight:500;text-decoration:none}
.nav a:hover{background:var(--surface-2);color:var(--fg)}
.nav a[aria-current="page"]{background:var(--accent-soft);color:var(--fg)}
.search{position:relative;flex:0 1 240px;min-width:140px}
.search input{width:100%;padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--bg)}
.sugg{position:absolute;top:100%;left:0;right:0;margin-top:4px;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.14);max-height:360px;overflow:auto;z-index:41}
.sugg a{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;text-decoration:none;color:var(--fg)}
.sugg a:hover,.sugg a:focus{background:var(--surface-2)}
.sugg small{color:var(--muted);font-family:var(--f-mono)}
.fresh{background:var(--surface-2);border-bottom:1px solid var(--line);font-size:.78rem;color:var(--muted)}
.fresh .wrap{display:flex;gap:4px 18px;flex-wrap:wrap;padding-block:6px}
.fresh b{color:var(--fg);font-weight:500}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--good);margin-right:6px;vertical-align:middle}

main .wrap{padding-block:26px 64px;display:flex;flex-direction:column;gap:22px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:18px;min-width:0}
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.spread{justify-content:space-between;align-items:flex-start}
.grid2{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:22px}
.grid-half{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
@media (max-width:860px){.grid2,.grid-half{grid-template-columns:minmax(0,1fr)}}
.stack{display:flex;flex-direction:column;gap:16px;min-width:0}
/* stat tiles: always four equal columns (two on phones); label, value, note */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden}
@media (max-width:700px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.kpi{background:var(--surface);padding:12px 16px;display:flex;flex-direction:column;gap:4px;min-width:0}
.kpi .l{font-size:.7rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:600}
.kpi .v{font-family:var(--f-display);font-size:1.8rem;font-weight:600;line-height:1}
.kpi .s{font-size:.78rem;color:var(--muted)}

.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:var(--surface);padding:4px 10px;border-radius:999px;cursor:pointer;font-size:.8rem}
.chip[aria-pressed="true"]{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.pill{display:inline-flex;align-items:center;font-size:.72rem;font-weight:600;padding:1px 8px;border-radius:999px;border:1px solid currentColor;white-space:nowrap}
.fuel{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.fuel i{width:9px;height:9px;border-radius:2px;display:inline-block}
.f-BESS{background:var(--bess)} .f-Solar{background:var(--solar)} .f-Wind{background:var(--wind)} .f-Gas{background:var(--gas)} .f-Other{background:var(--other)}
.t-new{color:var(--good)} .t-withdrawn{color:var(--bad)} .t-cod{color:var(--warn)} .t-stage{color:var(--info)} .t-mw{color:var(--muted)}
.unconf{font-size:.7rem;font-weight:600;color:var(--bad);margin-top:3px}
.est{font-size:.68rem;padding:0 6px;border-radius:4px;background:var(--surface-2);color:var(--muted);font-weight:600;letter-spacing:.03em}
select,input[type=text],input[type=email],input[type=search]{padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.btn{display:inline-block;border:1px solid var(--line);background:var(--surface);padding:6px 12px;border-radius:6px;cursor:pointer;font-weight:500;text-decoration:none;color:var(--fg)}
.btn:hover{background:var(--surface-2)}
.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}

/* feed */
.feed{display:flex;flex-direction:column}
.ev{display:grid;grid-template-columns:118px minmax(0,1fr) auto;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);align-items:start}
.ev:last-child{border-bottom:0}
.ev .typ,.ev .what{min-width:0}
.ev .date{font-size:.74rem;margin-top:4px}
.ev .delta{font-family:var(--f-mono);font-size:.82rem;white-space:nowrap}
.ev .why{color:var(--muted);font-size:.86rem;margin-top:2px}
@media (max-width:600px){.ev{grid-template-columns:minmax(0,1fr) auto}.ev .typ{grid-column:1/-1;display:flex;gap:8px;align-items:center}.ev .date{margin:0}}

.grp{scroll-margin-top:70px}
.grp+.grp{margin-top:14px;padding-top:12px;border-top:2px solid var(--line)}
.grp-h{display:flex;gap:4px 12px;align-items:baseline;flex-wrap:wrap}
.grp-h h3{margin-right:auto}
.grp-note{font-size:.75rem}
details.more summary{cursor:pointer;color:var(--accent);font-weight:500;padding:8px 0;list-style-position:inside}

/* tables */
.tbl-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
table{border-collapse:collapse;width:100%;font-size:.85rem}
th,td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
th{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);background:var(--surface-2)}
th[data-sort]{cursor:pointer;user-select:none}
td.wrap-cell{white-space:normal;min-width:180px}
td.note-cell{white-space:normal;min-width:110px}
/* keep the first column visible while a wide table scrolls sideways */
.tbl-wrap th:first-child,.tbl-wrap td:first-child{position:sticky;left:0;z-index:1;background:var(--surface);box-shadow:1px 0 0 var(--line)}
.tbl-wrap th:first-child{background:var(--surface-2)}
tbody tr:hover td:first-child{background:var(--surface-2)}
.sort-mobile{display:none}
/* phones: tables marked .cards become one card per row, no sideways scrolling */
@media (max-width:700px){
  .tbl-wrap:has(table.cards){overflow:visible;border:0;background:none}
  table.cards thead{display:none}
  table.cards,table.cards tbody{display:block}
  table.cards tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:12px 14px;margin-bottom:10px;background:var(--surface);border:1px solid var(--line);border-radius:10px}
  .tbl-wrap table.cards td{display:block;border:0;padding:0;white-space:normal;text-align:left;position:static;box-shadow:none;background:none;min-width:0}
  table.cards tbody tr:hover td:first-child{background:none}
  table.cards td::before{content:attr(data-label);display:block;font-family:var(--f-body);font-size:.66rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:1px}
  table.cards td.card-title{grid-column:1/-1;order:-1;font-weight:600;font-size:1rem}
  table.cards td.card-title::before,table.cards td:not([data-label])::before{content:none}
  table.cards td.card-wide{grid-column:1/-1}
  table.cards tr.wd{opacity:.75}
  .sort-mobile{display:flex}
}
.swipe-hint{font-size:.76rem;color:var(--muted);margin:-14px 0 0;text-align:right}
.tbl-wrap + .swipe-hint{margin-top:6px}
.r{text-align:right}
tbody tr:hover{background:var(--surface-2)}
tr.wd td{color:var(--muted)}

/* project */
.track{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
.track div{height:8px;border-radius:2px;background:var(--surface-2)}
.track div.on{background:var(--accent)}
.track-l{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;font-size:.68rem;color:var(--muted);margin-top:4px}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px 22px;margin:12px 0 0}
.facts dt{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.facts dd{margin:2px 0 0;font-weight:500;overflow-wrap:anywhere}
.tl{list-style:none;margin:12px 0 0;padding:0;border-left:2px solid var(--line);display:flex;flex-direction:column;gap:14px}
.tl li{position:relative;padding-left:16px}
.tl li::before{content:"";position:absolute;left:-6px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--surface);border:2px solid currentColor}
.tl .d{font-family:var(--f-mono);font-size:.78rem;color:var(--muted)}
.tl .t{color:var(--fg)}
.bar{display:flex;height:14px;border-radius:3px;overflow:hidden;background:var(--surface-2);gap:2px}
.bar span{display:block;height:100%}
.legend{display:flex;gap:6px 14px;flex-wrap:wrap;font-size:.8rem;color:var(--muted)}
.faq dt{font-weight:600;margin-top:12px}
.faq dd{margin:4px 0 0;color:var(--muted)}
.toplist{margin:10px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.toplist li{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px}
.toplist li .muted{grid-column:1;font-size:.75rem}
.toplist li .num{grid-column:2;grid-row:1}
.spark{display:block;width:100%;height:auto;max-width:560px}
.spark text{fill:var(--muted);font-family:var(--f-mono);font-size:10px}

/* signup & sponsor */
.follow{background:var(--accent-soft);border:1px solid var(--accent);border-radius:10px;padding:18px;display:flex;flex-direction:column;gap:10px}
.follow p{margin:0;font-size:.9rem}
.about-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.about-grid .panel h2{font-size:1.25rem;margin-bottom:8px}
.about-grid .panel p,.about-grid .panel ul{margin:0 0 .6em}
.steps{counter-reset:s;list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.steps li{counter-increment:s;display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px}
.steps li::before{content:counter(s);font-family:var(--f-display);font-weight:700;font-size:1.1rem;color:var(--accent);background:var(--accent-soft);border-radius:50%;width:28px;height:28px;display:grid;place-items:center}
.notice{border-left:3px solid var(--warn);background:var(--surface);padding:10px 14px;border-radius:0 8px 8px 0;font-size:.88rem}

/* map */
.map-tools{display:flex;gap:10px 16px;flex-wrap:wrap;align-items:center}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.seg button{border:0;background:var(--surface);padding:6px 14px;cursor:pointer;font-weight:500}
.seg button+button{border-left:1px solid var(--line)}
.seg button[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.map-wrap{position:relative;border-radius:8px;overflow:hidden;border:1px solid var(--line)}
#qlmap{display:block;width:100%;height:auto;touch-action:none;cursor:grab;user-select:none}
#qlmap:active{cursor:grabbing}
#qlmap path,#qlmap circle,#qlmap line{vector-effect:non-scaling-stroke}
.m-sea{fill:var(--map-sea)}
.m-mex{fill:var(--map-mex);stroke:var(--map-border);stroke-width:.8}
.m-state{fill:var(--map-out);stroke:var(--map-border);stroke-width:.9}
.m-county{stroke:var(--map-county);stroke-width:.6}
.m-county.hot{cursor:pointer}
.m-county.hot:hover,.m-county.hl{stroke:var(--map-tx);stroke-width:1.6}
.m-tx{fill:none;stroke:var(--map-tx);stroke-width:1.6;pointer-events:none}
#qlmap .lab{fill:var(--map-label);font-family:var(--f-display);font-weight:600;letter-spacing:.2em;pointer-events:none}
#qlmap .lab-texas{fill:var(--map-county);letter-spacing:.5em}
#qlmap .city{fill:var(--map-tx);stroke:var(--map-land);stroke-width:1}
#qlmap .city-t{fill:var(--fg);font-family:var(--f-body);font-weight:500;paint-order:stroke;stroke:var(--map-land);stroke-width:3px;stroke-linejoin:round;pointer-events:none}
.map-dot{fill-opacity:.5;stroke:var(--map-land);stroke-width:1;cursor:pointer}
.map-dot:hover,.map-dot.hl{fill-opacity:.95;stroke:var(--map-tx);stroke-width:1.6}
.zoom{position:absolute;top:10px;right:10px;display:flex;flex-direction:column;gap:4px}
.zoom button{width:32px;height:32px;border:1px solid var(--line);background:var(--surface);border-radius:6px;cursor:pointer;font-size:1.1rem;line-height:1}
#maptip{position:absolute;z-index:3;min-width:200px;max-width:280px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:8px 10px;box-shadow:0 6px 20px rgba(0,0,0,.16);font-size:.8rem;pointer-events:none;display:flex;flex-direction:column;gap:2px}
.tip-row{display:flex;justify-content:space-between;gap:14px}
.tip-row.tot{border-top:1px solid var(--line);margin-top:4px;padding-top:4px;font-weight:600}
.key-row{display:flex;align-items:center;gap:8px;font-size:.82rem}
.key-col{display:flex;flex-direction:column;gap:5px}
.sw{width:18px;height:12px;border-radius:2px;flex:none}
.key-dot{fill-opacity:.5;stroke:var(--fg);stroke-width:.8}
.key-t{fill:var(--muted);font-family:var(--f-mono);font-size:10px}

footer{border-top:1px solid var(--line);font-size:.8rem;color:var(--muted);background:var(--surface)}
footer .wrap{padding-block:22px;display:flex;flex-direction:column;gap:8px}
footer nav{display:flex;gap:4px 16px;flex-wrap:wrap}
footer a{color:var(--muted)}
.toast{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);background:var(--fg);color:var(--bg);padding:8px 14px;border-radius:8px;font-size:.85rem;z-index:60}
