/* Drilling by state (/drilling) layout, from the design handoff. Loaded only on that page; the hero photo is site/assets/drilling-rig.webp
   (tracked, served from /assets/). The shared header, logo, price strip and the plan cards (the site's default card look and hover) keep the site-wide styles. */
main .wrap{max-width:1360px;padding-inline:clamp(18px,4vw,64px)}.lead-cta .btn.big{background:#f2bf64;color:#10171d;border-color:#f2bf64}.dr-intro{margin:28px 0 42px;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(288px,1fr);gap:18px}
.dr-hero,.leaders,.dr-table{border:1px solid #304253;border-radius:6px;overflow:hidden}
.dr-hero{padding:clamp(26px,3vw,48px);background:linear-gradient(92deg,#09131cf7 1%,#0b1820cd 45%,#0b172038),url('drilling-rig.webp') center 52%/cover}.crumb,.leaders small{font:13px/1.5 ui-monospace,monospace;color:#f2cf92}.crumb a{color:inherit;text-decoration:none}.dr-hero h1{font:normal clamp(48px,5.1vw,80px)/.99 Georgia,serif;letter-spacing:-.045em;margin:19px 0 12px}.dr-hero p{max-width:420px;color:#e0e7e9;margin:0}.hero-stats{display:flex;gap:30px;margin-top:25px}.hero-stats>div+div{border-left:1px solid #637076;padding-left:24px}.hero-stats b{display:block;font:normal 32px/1.2 Georgia,serif;color:#f2bf64}.hero-stats span{font-size:14px;color:#dee5ea}.leaders{background:#101d28;padding:clamp(20px,2.2vw,32px);display:flex;flex-direction:column;justify-content:center}.leaders h2,.directory h2,.plans-box .sec,.lead-cta h2{font:normal clamp(27px,2.5vw,38px)/1.15 Georgia,serif;letter-spacing:-.03em;margin:0}.leaders p,.dir-head p{margin:6px 0 18px;color:var(--soft);font-size:15px}.bar-row{display:grid;grid-template-columns:95px minmax(20px,1fr) 34px;align-items:center;gap:10px;padding:7px 0;color:var(--text);text-decoration:none;font-size:15px}.bar-row:hover span{text-decoration:underline}.bar-row i{display:block;height:6px;background:#223342;border-radius:3px}.bar-row b{display:block;height:100%;background:#6787a1;border-radius:3px}.bar-row:first-of-type b{background:#f2bf64}.bar-row strong{text-align:right}.leaders small{display:block;margin-top:20px;color:var(--mute)}.dir-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.controls{display:flex;gap:8px}.controls input,.controls select{color-scheme:dark;background:#13212c;border:1px solid #425566;border-radius:4px;padding:10px 12px;font-size:14px;min-width:0}.controls input{width:160px}.dr-table{background:#101b25}.dr-table thead th{background:#1a2935;color:#c8d4dd;font-size:14px}.dr-table th,.dr-table td{padding:13px 16px}.dr-table td{border-color:#283947}.dr-table tbody tr:nth-child(even){background:#13212c}.dr-table td:first-child a{color:#e7eff5;text-decoration:none}.dr-table td:first-child a:hover{color:#f2bf64;text-decoration:underline}.dr-table td:nth-child(2) b{color:#f2cf88}.dr-table td:last-child{max-width:335px}.dr-table .meta{color:#adbdca;font-size:13px}.source-note{font-size:13px;color:var(--soft);margin:12px 0 32px}.source-note summary{cursor:pointer;color:#a9ceef}.source-note p{margin:6px 0}.source-note a{color:#b4d8ff}.lead-cta{margin:32px 0 48px}#dr-empty{padding:16px}#dr-reset{background:none;border:0;color:#aad0f5;text-decoration:underline;cursor:pointer}
@media(max-width:900px){.dir-head{align-items:flex-start;flex-direction:column;gap:0}.controls{margin:0 0 14px}.dr-intro{grid-template-columns:1.25fr 1fr}.dr-table td,.dr-table th{padding:12px}}
@media(max-width:680px){.dr-intro{grid-template-columns:1fr;margin:18px 0 28px;gap:12px}.dr-hero h1{font-size:52px}.leaders{padding:20px}.controls{width:100%}.controls>*{flex:1;width:0}.dr-table table,.dr-table tbody{display:block}.dr-table thead{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}.dr-table tbody tr{display:grid;grid-template-columns:1fr 1fr .8fr;gap:8px;padding:15px 14px;border-bottom:1px solid #2a3a47}.dr-table td,.dr-table td.r{display:block;text-align:left;border:0;padding:0}.dr-table td:first-child,.dr-table td:last-child{grid-column:1/-1}.dr-table td:first-child a{font-size:18px}.dr-table td:nth-child(2):before,.dr-table td:nth-child(3):before,.dr-table td:nth-child(4):before{display:block;color:#a7b7c4;font-size:12px}.dr-table td:nth-child(2):before{content:'Permits · 30 days'}.dr-table td:nth-child(3):before{content:'Permits · 365 days'}.dr-table td:nth-child(4):before{content:'Counties'}.dr-table td:last-child{max-width:none}.hero-stats{gap:16px}}

.directory-tables{display:grid;gap:16px;align-items:stretch}
.directory-tables [hidden]{display:none}
@media(min-width:1100px){
 .directory-tables.split{grid-template-columns:repeat(2,minmax(0,1fr))}
 .split .dr-table table{height:100%;width:100%}
 .split .dr-table td,.split .dr-table th{padding:10px 8px}
 .split .dr-table thead th{font-size:13px;line-height:1.35}
 .split .dr-table td:first-child{white-space:nowrap;font-size:15px}
 .split .dr-table td:last-child{width:31%;line-height:1.4}
 .split .dr-table .meta{font-size:13px}
}

/* the plan band runs edge to edge */
main{overflow-x:clip}

/* a late-publishing state's latest record date, under its reporting source */
.dr-table .dr-through{display:block;margin-top:3px;font-size:12px;line-height:1.35;color:var(--mute)}

/* ---------- Drilling state pages (/drilling/:state), from the design handoff (Texas example) ---------- */
.ds-hero{margin-top:26px;padding:clamp(24px,3.2vw,48px);border:1px solid var(--line2);border-radius:6px;background:linear-gradient(90deg,#0a141ef7,#0b1820dc 38%,#0b172038),var(--ds-hero,url('drilling-rig.webp')) center 51%/cover}
.ds-hero .crumbs,.ds-hero small{color:#eed19b;font:13px/1.5 ui-monospace,monospace}.ds-hero .crumbs a{color:inherit}.ds-hero h1{font:normal clamp(44px,5.5vw,84px)/1 Georgia,serif;letter-spacing:-.045em;margin:24px 0 12px}.ds-hero p{color:#e0e7ec;font-size:18px;max-width:510px;margin:0 0 18px}
.ds-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:16px 0 20px;border:1px solid #314352;border-radius:5px;overflow:hidden;background:#101e29}.ds-stats .card{padding:17px 22px;background:transparent;border:0;border-right:1px solid #314352}.ds-stats .card:last-child{border:0}.ds-stats .card b{font:normal 34px Georgia,serif;color:#f2c77d}.ds-stats span,.ds-stats small{display:block}.ds-analysis,.county-pair.split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ds-analysis>.card{padding:24px;border-radius:5px;align-self:stretch}.ds-analysis h2,.ds-directory h2{font:normal 32px/1.1 Georgia,serif;letter-spacing:-.035em;margin:0}.ds-analysis p.meta{margin:6px 0 16px}
/* Each week shares the same count, plotting area and date tracks. */
.plot {
  display: grid;
  grid-template-columns: repeat(var(--weeks, 4), minmax(0, 1fr));
  position: relative;
  isolation: isolate;
  margin-top: 20px;
}
.plot::before {
  content: "";
  position: absolute;
  inset: 28px 0 28px;
  z-index: -1;
  background: repeating-linear-gradient(to top, var(--line2) 0 1px, transparent 1px 30px);
  border-bottom: 1px solid #506174;
}
.plot > div {
  display: grid;
  grid-template-rows: 28px 120px 28px;
  justify-items: center;
  align-items: end;
}
.plot strong, .plot span {
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plot strong { align-self: start; }
.plot i {
  width: min(48%, 58px);
  border-radius: 2px 2px 0 0;
  background: #607792;
}
.plot > div:last-child i { background: #f2bf64; }
.plot span { color: #bfccd6; }
.ds-chart details{margin-top:15px;border-top:1px solid var(--line2);padding-top:10px}.ds-chart summary,.ds-source summary{color:#b9d7f2;cursor:pointer}.ds-chart table{width:100%;border-collapse:collapse;font-size:14px}.ds-chart td,.ds-chart th{padding:7px 0;border-bottom:1px solid var(--line);text-align:left}.ds-chart td:last-child,.ds-chart th:last-child{text-align:right}.ds-chart tbody tr:first-child{color:#f2bf64}.ds-operators .oplist{margin:0}.ds-operators .oplist li{border-color:var(--line);padding:6px 0}.ds-operators .oplist b{font-size:15px}.ds-operators .oplist span{font-size:13px}.ds-operators a,.ds-search{color:#aacef3}
.ds-directory{margin-top:35px}.ds-panel{border:1px solid var(--line2);border-radius:5px;overflow:hidden}.ds-panel :is(td,th){padding:11px 12px;text-align:right}.ds-panel :is(td,th):first-child{text-align:left}.ds-panel th{background:#192836}.ds-panel tbody tr:nth-child(odd){background:#101d28}.ds-panel td a{color:#e9eef3;text-decoration:none;font-weight:600}.ds-panel td a:hover{text-decoration:underline}.ds-panel td b{color:#f2cf8a}.ds-panel td.meta{font-size:13px}.ds-search{display:inline-block;margin:14px 0}.ds-source{margin:18px 0 38px;color:var(--soft);font-size:10px}.ds-source p{font-size:inherit}
@media(max-width:780px){.ds-analysis{grid-template-columns:1fr}.ds-stats{grid-template-columns:1fr 1fr}.ds-stats .card{padding:14px;border-bottom:1px solid var(--line)}.ds-stats .card:nth-child(even){border-right:0}.ds-stats .card b{font-size:28px}.ds-panel td,.ds-panel th{padding:9px 5px;font-size:14px}.ds-panel td.meta{font-size:12px}.ds-hero small{font-size:12px}.ds-directory h2{font-size:29px}}

@media (min-width: 781px) {
  .ds-analysis:has(.ds-chart details[open]) > .ds-operators {
    position: sticky;
    top: var(--operators-sticky-top, 96px);
    align-self: start;
    box-sizing: border-box;
    min-height: var(--collapsed-chart-height);
  }
}

/* a week the state hasn't published yet: an outline, never a 0 bar */
.plot > .unpub i,.plot > .unpub:last-child i{background:transparent;border:1px dashed #4a5f73;border-bottom:0}
.plot > .unpub strong{color:var(--mute)}
.ds-hero small{display:block;max-width:760px}
.ds-unavailable{margin:18px 0}
.ds-chart .wk-none{margin-top:18px;color:var(--soft)}
@media(max-width:520px){.plot strong,.plot span{font-size:12px}}
