/* Basin Watch page layout (from the design handoff). Loaded only on /basin-watch; the shared header, logo and price
   strip keep the site-wide styles so navigation looks the same on every page. */
:root{--gold:#f2bf64}main .wrap{max-width:1360px;padding-inline:clamp(18px,4vw,64px)}main{color-scheme:dark;color:var(--text);padding:0 0 44px}main>.wrap{padding-top:26px}.mast{position:relative;isolation:isolate;background:var(--bg2) url('../img/permian-pumpjacks-mesa-hero.webp') center 54%/cover no-repeat;color:white;border-radius:4px;overflow:hidden}.mast:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0b131bfa 3%,#0b131be3 27%,#0b131b86 58%,#0b131b0d);z-index:-1}.mast-copy{padding:clamp(26px,4vw,56px);max-width:690px}.trail,.mast small,main .eyebrow{font-family:ui-monospace,monospace;font-size:13px;letter-spacing:.075em}.trail{color:#f6ce8c}.trail span{margin:0 7px;color:#f2bf648c}.mast h1{font:normal clamp(56px,6.4vw,98px)/1 Georgia,serif;letter-spacing:-.055em;margin:21px 0 14px}.mast p{font-size:clamp(17px,1.4vw,21px);max-width:455px;line-height:1.45;color:#f5f1e9}.mast small{color:#e7d6ba;display:block;margin-top:24px}.choose{display:flex;align-items:center;gap:18px;padding:22px 0;margin-bottom:26px;border-bottom:1px solid var(--line2)}.choose label{font-weight:650}.choose .btabs{display:flex;gap:4px;margin:0}.choose .pill{display:none;color:var(--soft);background:transparent;border:0;font:600 14px/1.4 system-ui;padding:8px 13px}.choose .pill:nth-child(-n+4){display:block}.choose .pill[aria-pressed=true]{background:var(--blueBg);color:white;box-shadow:inset 0 -2px var(--blue2);border-radius:3px}.choose .bw-sel{display:block;margin:0 0 0 auto;width:min(100%,240px);padding:9px 12px;font-size:15px;color:var(--text);border:1px solid var(--line2);border-radius:3px}.analysis-grid{display:grid;grid-template-columns:1fr 1.06fr;gap:22px;align-items:stretch}.analysis-grid .card{margin:0;border:1px solid var(--line);border-radius:4px;min-width:0}.overview{display:block}.overview .pic{display:none}.overview .txt,.tchart{padding:clamp(20px,2.2vw,34px)}.overview .txt h2,.tc-head h3,.sec-head h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.035em}.overview .txt h2{font-size:clamp(34px,3vw,48px);margin:6px 0}.overview .txt .eyebrow{color:var(--gold)}.overview .sub{font-size:15px;color:var(--soft)}.overview .txt p{color:var(--soft);font-size:16px}.overview .cov span{background:var(--card2);color:var(--soft);border-color:var(--line2)}.metrics{display:flex;gap:42px;border-block:1px solid var(--line);padding:14px 0;margin:16px 0}.metrics strong{display:block;font:normal 40px/1.15 Georgia,serif}.metrics span{font-size:14px;color:var(--soft)}.tc-head h3{font-size:29px}.tc-head{align-items:flex-start}.tc-stats{width:100%;margin:10px 0}.tc-plot{height:150px}.tc-bar{background:#536e86;width:56%;max-width:65px;border-radius:1px}.tc-col.now .tc-bar{background:var(--gold)}.tc-tip{color:var(--text)}main .btn{color:#cfe2ff;border:1px solid var(--blue2);background:transparent;border-radius:3px}main .btn:hover{background:var(--blueBg);color:#fff}.sec-head{margin-top:44px}.sec-head .sec svg{display:none}.tbl th{background:var(--card2);color:var(--soft)}.tbl .clink{color:#bddaff}.tbl td svg:not(.spark){display:none}.tbl tr:hover td{background:var(--card2)}main .fine,main .meta{color:var(--mute)}main .card{box-shadow:none}.sec small{color:var(--soft)}main a{color:#bddaff}.overview .period{margin:9px 0}.pb-head .sec,.lead-cta h2{font-family:Georgia,serif}main .tc-table summary{color:#bddaff}.card:has(>.tbl){overflow:auto}.lead-cta .eyebrow{color:var(--gold)}
@media(max-width:900px){.analysis-grid{grid-template-columns:1fr 1fr}.choose .btabs{display:none}.choose .bw-sel{width:240px}}
@media(max-width:720px){.analysis-grid{grid-template-columns:1fr}.mast-copy{padding:27px 22px}.mast:before{background:linear-gradient(90deg,#0b131bf2,#0b131b9c)}.mast h1{font-size:56px}.mast small{font-size:12px}.choose{gap:10px;margin-bottom:16px;padding:16px 0}.choose .bw-sel{width:52%;min-width:0}.tbl{min-width:570px}.sec-head{margin-top:30px}.mast p{max-width:310px}.analysis-grid .overview .txt{padding:22px}.metrics{gap:34px}}

/* Weekly breakdown below the basin chart */
.weekly-ledger{margin-top:22px;background:#101c27;border:1px solid #34495b;border-radius:5px;overflow:hidden}
main .weekly-ledger summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:10px 16px;color:#e5edf4;font-size:16px;font-weight:650;list-style:none}
.weekly-ledger summary::-webkit-details-marker{display:none}
.weekly-ledger summary::after{content:"";width:8px;height:8px;border:solid #f2bf64;border-width:0 2px 2px 0;transform:rotate(45deg);margin-right:4px}
.weekly-ledger[open] summary::after{transform:rotate(225deg)}
.weekly-ledger summary:hover{background:#192936}
.weekly-ledger summary:focus-visible{outline-offset:-3px}
.weekly-ledger table{table-layout:fixed;width:100%;margin:0;color:var(--text);font-size:15px}
.weekly-ledger td,.weekly-ledger th{padding:12px 14px;border-top:1px solid #2b3b49;vertical-align:middle}
.weekly-ledger thead th{font-size:13px;font-weight:550;background:#162330;color:#bac8d3}
.weekly-ledger th:first-child{width:42%}
.weekly-ledger tbody th{font-weight:500}
.weekly-ledger td,.weekly-ledger thead th:not(:first-child){text-align:right}
.weekly-ledger td:nth-child(2){font-weight:700}
.weekly-ledger small{display:block;font-size:12px;font-weight:450}
.weekly-ledger .latest-week{background:#22282b}
.weekly-ledger .latest-week th{box-shadow:inset 3px 0 #f2bf64}
.weekly-ledger .latest-week small,.weekly-ledger .latest-week td:nth-child(2){color:#f2bf64}
@media(max-width:520px){.weekly-ledger td,.weekly-ledger th{padding:10px 8px}.weekly-ledger table{font-size:14px}}

/* Regional photography sits beneath a navy scrim to preserve type contrast. */
#b-over{position:relative;isolation:isolate;overflow:hidden;background:#101b25}
#b-over .pic{display:block;position:absolute;inset:0;min-height:0;z-index:-1;pointer-events:none;border:0}
#b-over .pic img{width:100%;height:100%;object-fit:cover;object-position:65% center;filter:saturate(.65)}
#b-over .pic::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,rgba(11,19,27,.94),rgba(11,19,27,.83) 56%,rgba(11,19,27,.65))}
#b-over .metrics{border-color:rgba(219,230,239,.2)}
#b-over .cov span,#b-over .btn{background:#111e2bea}
#b-over .btn:hover{background:#203650}


/* The two-column chart row bounds the overview's sticky travel. */
@media (min-width:721px){
  .analysis-grid > #b-over{align-self:start;position:sticky;top:16px}
}

.coverage-note{margin:12px 0;color:var(--soft);font-size:10px;line-height:1.5}
.coverage-note p{margin:0;font-size:inherit;line-height:inherit}
.coverage-note summary{width:fit-content;padding:4px 0;color:#b9d8ff;cursor:pointer}
.coverage-note #b-src{width:100%;max-width:none;margin:4px 0 0}

.county-panel{border:1px solid #304454;border-radius:6px;overflow:hidden}
.county-table{min-width:0}
.county-table thead th{color:#c2cdd7;background:#182633;padding:13px 16px;font-size:14px}
.county-table tbody tr{cursor:auto}
.county-table .county-row>:is(th,td){padding:14px 16px;vertical-align:middle;border-bottom:1px solid #253644}
.county-table tbody th{background:transparent}
.county-table .county-row:nth-child(even){background:#111e29}
.county-table .county-row:hover>:is(th,td){background:#192936}
.county-table .clink{display:inline-block;font-size:16px;font-weight:650;color:#e9eff4;text-decoration:none}
.county-table .clink:hover{color:var(--gold);text-decoration:underline}
.county-table .state-code{display:inline-block;margin-left:5px;font:500 12px/1.5 ui-monospace,monospace;color:#b4c7d5;border:1px solid #415462;padding:0 4px;border-radius:3px}
.county-table .meta{font-size:13px;line-height:1.45}
.county-table .activity-cell b{font-size:16px!important;font-variant-numeric:tabular-nums}
.county-table .spark{width:auto;max-width:88px;height:24px;margin:0}
.county-table .change-cell .trend{font-size:15px;font-weight:650}
.county-table .county-follow{font-size:14px;padding:5px 12px;min-height:36px;white-space:nowrap}
.county-table .county-follow[aria-pressed=true]{color:var(--gold);border-color:#8c734a;background:#242a2d}
.county-table .mobile-label{display:none}
@media(max-width:720px){
 .county-panel{overflow:visible}
 .county-table thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .county-table,.county-table tbody{display:block}
 .county-table .county-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 14px;padding:16px;border-bottom:1px solid #304454}
 .county-table .county-row>:is(td,th){padding:0;border:0;background:transparent}
 .county-table .county-row th{grid-column:1;grid-row:1;align-self:center}
 .county-table .county-row .r{grid-column:2;grid-row:1}
 .county-table .activity-cell{grid-row:2;grid-column:1}
 .county-table .history-cell{grid-row:3;grid-column:1/-1}
 .county-table .change-cell{grid-row:2;grid-column:2}
 .county-table .mobile-label{display:block;font-size:12px;color:var(--mute);margin-bottom:3px}
 .county-table .history-cell .mobile-label{display:inline-block;margin:0 12px 0 0}
 .county-table .history-cell .spark{display:inline-block;vertical-align:middle}
 .county-table tbody tr:not(.county-row),.county-table tbody td[colspan]{display:block}
}

.county-tables{display:grid;gap:16px;align-items:start}
.county-tables .county-panel[hidden]{display:none}
@media(min-width:1100px){
 .county-tables.is-split{grid-template-columns:repeat(2,minmax(0,1fr))}
 .is-split .county-panel{min-width:0}
 .is-split .county-table{table-layout:auto}
 .is-split .county-table thead th,.is-split .county-table .county-row>:is(th,td){padding:12px 8px}
 .is-split .county-table th:first-child{width:23%}
 .is-split .county-table thead th:nth-child(2){width:23%}
 .is-split .county-table thead th:nth-child(3){width:16%}
 .is-split .county-table thead th:nth-child(4){width:17%}
 .is-split .county-table .spark{max-width:100%}
 .is-split .county-table .county-follow{font-size:13px;padding:5px 6px}
 .is-split .county-table .clink{font-size:15px}
}

.county-table .clink{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:6px;white-space:nowrap}
.county-table .county-name{white-space:nowrap}
.county-table .state-code{margin-left:0;flex:none}
@media(max-width:720px){
 .county-table .county-row th{grid-column:1/-1;padding-right:88px}
 .county-table .county-row .r{justify-self:end;align-self:center}
}

@media(max-width:420px){
 .county-table .county-row th{padding-right:0}
 .county-table .county-row .r{grid-column:2;grid-row:3}
 .county-table .county-row .history-cell{grid-column:1}
}
@media(min-width:1100px){
 .county-tables.is-split{align-items:stretch}
 .county-tables.is-split .county-table{height:100%}
 .county-tables.is-split .county-table thead,.county-tables.is-split .county-table tbody tr:not(:last-child){height:1px}
 .county-tables.is-split .county-table tbody tr:last-child td{vertical-align:middle}
}

#b-over{display:grid;grid-template-columns:minmax(0,1fr)}
#b-over .basin-description{grid-area:1/1;min-width:0}
#b-over .basin-description[aria-hidden=true]{visibility:hidden;pointer-events:none}

/* "Permit access by plan": a full-width band so the plans stand out (the cards stay at content width) */
main{overflow-x:clip}
