/* Plugging Index. Design language shared with hubstake.io (paper background, ink and steel type, 1px rules,
   4-8px radii, almost no elevation). Colour: petroleum teal is the accent and marks high confidence, a muted blue-grey
   marks moderate confidence, and the state map uses a warm sequential scale. See reports/design_notes.md. */
@font-face { font-family: "Inter"; src: url("/a/fonts/inter.c940764593.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/a/fonts/inter-tight.83d548cd73.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/a/fonts/ibm-plex-mono-400.08949f728d.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/a/fonts/ibm-plex-mono-500.01d2854474.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* paper, ink and steel: same values as Hubstake */
  --bg: #F7F7F4; --surface: #FFFFFF; --surface-2: #F1F1ED; --surface-3: #E7E7E2; --line: #E7E7E2; --line-soft: #EFEFEA;
  --graphite: #111820; --graphite-2: #1B242E; --ink: #111820; --ink-2: #3B4650; --ink-3: #5C6872;
  /* petroleum teal: links, buttons, chart marks, grade badges */
  --accent: #0E6B6B; --accent-600: #0B5A5A; --accent-700: #084747; --accent-soft: #7DB8B4; --accent-wash: #E4F1F0;
  --accent-line: #B5D8D5; --accent-ring: rgba(14, 107, 107, .30); --on-accent: #FFFFFF; --accent-on-dark: #8FD3CE;
  --warn: #8A4F00; --warn-wash: #FBF1DF; --warn-line: #E3BE7A; --neg: #A8331F; --ok: #1F6B4A;
  /* muted blue-grey: moderate confidence (badges, chart marks); amber: third stat card */
  --mod: #4F6D82; --mod-700: #34505F; --mod-wash: #E9EFF3; --mod-line: #B9C9D4; --amber: #A8630A;
  --map-none: #F4F4F0; --map-thin: #DDDDD6;
  --radius: 8px; --radius-sm: 5px; --radius-xs: 3px; --maxw: 1180px; --gut: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(17, 24, 32, .05);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-700); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* header */
header.site { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.12rem/1 var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo svg { width: 26px; height: 26px; flex: none; }
.logo:hover { color: var(--ink); }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-left: auto; font-size: .875rem; }
nav.main a { color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; font-weight: 500; }
nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
nav.main a.btn { color: var(--on-accent); padding: .5rem .9rem; border: 0; font-weight: 600; white-space: nowrap; }
.preview-banner { background: var(--warn-wash); color: var(--warn); font-size: .8rem; padding: 6px 0; border-bottom: 1px solid var(--warn-line); }

/* type */
main { padding: 0 0 4rem; }
main > .wrap { padding-top: 2.4rem; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.85rem, 1.35rem + 1.7vw, 2.6rem); letter-spacing: -.024em; font-weight: 720; margin-bottom: .6rem; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); letter-spacing: -.02em; font-weight: 700; margin: 3rem 0 .8rem; }
h3 { font-size: 1.06rem; font-weight: 650; margin: 1.6rem 0 .4rem; }
main h4 { font: 650 .95rem/1.3 var(--sans); color: var(--ink); margin: 1.3rem 0 .35rem; }
[id] { scroll-margin-top: 84px; }
.toc { font-size: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .9rem; max-width: none; }
p { margin: 0 0 .8rem; max-width: 72ch; overflow-wrap: break-word; }
main p a, main li a { overflow-wrap: anywhere; }
ul { max-width: 76ch; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 66ch; }
.meta { font-size: .82rem; color: var(--ink-3); }
.eyebrow { font-size: .74rem; font-weight: 670; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .5rem; }
.eyebrow::before { content: ""; display: inline-block; width: 14px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 8px; }

/* cards, grids, stats */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.35rem; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.grid.k3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.k2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.stat .label { font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.stat .value { font: 500 1.75rem/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); margin: 6px 0 4px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.stat .sub { font-size: .82rem; color: var(--ink-3); }

/* confidence: plain name with a small A/B badge. A (high) solid accent, B (moderate) muted blue-grey, insufficient neutral */
.conf { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; white-space: nowrap; color: var(--accent-700); }
.conf.B { color: var(--mod-700); }
abbr.def { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.grade { display: inline-block; min-width: 24px; text-align: center; font: 700 .72rem/20px var(--sans); letter-spacing: .04em; border-radius: var(--radius-xs); padding: 0 6px; vertical-align: 1px; border: 1px solid transparent; }
.grade.A { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.grade.B { background: var(--mod-wash); color: var(--mod-700); border-color: var(--mod-line); }
.insufficient { display: inline-block; font: 600 .72rem/20px var(--sans); color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--surface-3); border-radius: var(--radius-xs); padding: 0 7px; white-space: nowrap; }

/* tables */
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .875rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; white-space: nowrap; background: var(--surface-2); border-bottom: 1px solid var(--line); }
td.num, th.num { text-align: right; white-space: nowrap; }
td.num { font-family: var(--mono); font-size: .84rem; color: var(--ink); }
tbody tr:hover { background: var(--accent-wash); }
td a { font-weight: 550; }

.note { background: var(--warn-wash); color: var(--warn); border: 1px solid var(--warn-line); border-left-width: 3px; border-radius: var(--radius-sm); padding: 10px 14px; font-size: .875rem; margin: 14px 0; max-width: 78ch; }
.note a { color: inherit; }

/* charts */
figure { margin: 16px 0; }
figure .chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px 8px; position: relative; overflow-x: auto; }
figcaption { font-size: .8rem; color: var(--ink-3); margin-top: 6px; max-width: 80ch; }
svg.chart-svg { display: block; width: 100%; min-width: 560px; height: auto; font: 12px var(--sans); }
svg .axis { stroke: var(--surface-3); stroke-width: 1; }
svg .gridline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
svg text { fill: var(--ink-3); }
svg text.lbl { fill: var(--ink-2); }
svg text.val { fill: var(--ink); font-weight: 600; font-family: var(--mono); }
svg .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
svg .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
svg .dot.b { fill: var(--mod); }
svg .bar { fill: var(--accent); }
svg .range { fill: var(--accent-line); }
svg .iqr { fill: var(--accent); }
svg .range.gB { fill: var(--mod-line); }
svg .iqr.gB { fill: var(--mod); }
svg .median { stroke: var(--ink); stroke-width: 2; }
svg .hit { fill: transparent; cursor: default; }
svg .bridge { fill: none; stroke: #8A949C; stroke-width: 1.5; stroke-dasharray: 4 4; }
svg .hit-line { fill: none; stroke: transparent; stroke-width: 26; pointer-events: stroke; cursor: default; }
.tip { position: absolute; pointer-events: none; background: var(--graphite); color: #fff; font-size: .75rem; line-height: 1.4; padding: 6px 8px; border-radius: var(--radius-xs); white-space: pre-line; z-index: 5; max-width: 240px; display: none; }

/* forms and buttons */
form .row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 12px; }
label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
label .opt { font-weight: 400; color: var(--ink-3); }
input, select, textarea { width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--surface-3); border-radius: var(--radius-sm); padding: .6rem .7rem; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { min-height: 96px; resize: vertical; }
button, .btn { display: inline-flex; align-items: center; gap: .45rem; font: 600 .92rem/1.2 var(--sans); background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: .68rem 1.1rem; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { background: var(--accent-600); border-color: var(--accent-600); color: var(--on-accent); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--surface-3); }
.btn.secondary:hover { background: var(--surface-2); color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.result { margin-top: 18px; }
.result .range { font: 500 1.9rem/1.2 var(--mono); color: var(--ink); letter-spacing: -.02em; }
.result dl { display: grid; grid-template-columns: max-content 1fr; gap: 5px 18px; font-size: .875rem; margin: 12px 0 0; }
.result dt { color: var(--ink-3); }
.result dd { margin: 0; color: var(--ink); }
.formmsg { margin-top: 12px; font-size: .875rem; font-weight: 550; }
.formmsg.ok { color: var(--ok); }
.formmsg.err { color: var(--neg); }

/* home: hero with the estimator inline (light, on a wash of the accent) */
.hero { background: linear-gradient(180deg, var(--accent-wash) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding: clamp(2rem, 4.5vw, 3.6rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); max-width: 22ch; margin-bottom: .7rem; }
.hero .lede { font-size: 1.12rem; max-width: 52ch; margin-bottom: 1.4rem; }
.est { border-top: 3px solid var(--accent); }
.est .row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.est-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.res.gA { border-top: 3px solid var(--accent); }
.res.gB { border-top: 3px solid var(--mod); }

/* home: three stat cards, one colour each */
.statcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.statcard { display: block; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.15rem; box-shadow: var(--shadow); text-decoration: none; color: var(--ink-2); }
.statcard:hover { border-color: var(--accent-line); border-top-color: var(--accent); color: var(--ink-2); }
.statcard.c2, .statcard.c2:hover { border-top-color: var(--mod); }
.statcard.c3, .statcard.c3:hover { border-top-color: var(--amber); }
.statcard span { display: block; }
.statcard .k { font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.statcard .v { font: 500 clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem)/1.15 var(--mono); letter-spacing: -.03em; color: var(--ink); margin: 4px 0 2px; }
.statcard .s { font-size: .95rem; }

/* home: bands and sections */
.band-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 3.2rem; padding-bottom: 3.2rem; }
.section.tight { padding-top: 1.8rem; padding-bottom: 2.2rem; }
.section > h2:first-child, .section > .eyebrow + h2 { margin-top: 0; }
.covband { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin-bottom: 1rem; }
.covband figure { margin: 0; }

/* state map: sequential colour by median cost; states without a published estimate stay neutral */
.usmap svg { display: block; width: 100%; height: auto; }
.usmap path { stroke: #FFFFFF; stroke-width: .8; }
.usmap .m-cost { stroke: #5C3A1E; stroke-width: .6; }
.usmap a:hover path, .usmap a:focus path { stroke: var(--ink); stroke-width: 1.6; }
.usmap .m-thin { fill: var(--map-thin); } .usmap .m-none { fill: var(--map-none); stroke: var(--surface-3); }
.scale { display: flex; align-items: center; gap: 10px; margin-top: 12px; font: 500 .8rem var(--mono); color: var(--ink); }
.scale i { flex: 1; height: 12px; border-radius: 3px; border: 1px solid rgba(17, 24, 32, .12); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 8px 0 0; font-size: .82rem; color: var(--ink-2); max-width: none; }
.legend li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; border: 1px solid rgba(17, 24, 32, .12); }

/* home: trust strip and sign-up band */
.trust { background: var(--accent-wash); border-top: 1px solid var(--accent-line); border-bottom: 1px solid var(--accent-line); padding: 1.5rem 0; }
.trust ul { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; }
.trust li { margin: 0; padding-left: 28px; position: relative; font-size: .95rem; color: var(--ink-2); }
.trust li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.trust li::after { content: ""; position: absolute; left: 6px; top: calc(.2em + 4px); width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.trust strong { color: var(--ink); }
.signup-band { background: var(--accent-700); color: #C4E3E0; padding: 2.6rem 0; }
.signup-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.signup-band h2 { color: #fff; margin: 0 0 .4rem; }
.signup-band p { margin: 0; }
.signup-band label { color: #fff; }
.signup-band button { background: #fff; color: var(--accent-700); border-color: #fff; }
.signup-band button:hover { background: var(--accent-wash); color: var(--accent-700); border-color: var(--accent-wash); }
.signup-band .formmsg.ok { color: #fff; } .signup-band .formmsg.err { color: #FFD9CF; }
.signup .row { margin-bottom: 12px; }
.formmsg .btn.dl { margin-top: 10px; }

/* report section on the Cost Index page */
.reportbox { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.5rem 1.6rem; margin: 2rem 0 0; box-shadow: var(--shadow); }
.reportbox h2 { margin: 0 0 .8rem; font-size: 1.3rem; }
.reportbox h3 { margin-top: 0; }
.reportbox ul { font-size: .92rem; }
.reportbox .card { box-shadow: none; background: var(--surface-2); }
.reportbox .signup .row { grid-template-columns: 1fr; }

.props { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.prop { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
a.prop { color: var(--ink-2); display: block; }
a.prop:hover { border-color: var(--accent-line); color: var(--ink-2); }
.prop h3 { margin: 0 0 .4rem; }
.prop p { margin: 0; font-size: .92rem; }
.prop .who { font: 500 .74rem var(--mono); color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }

/* paid tier: Pro prompt, pricing, account, portfolio */
.protag { display: inline-block; font: 700 .68rem/20px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--amber); border-radius: var(--radius-xs); padding: 0 8px; vertical-align: 2px; }
.prolock { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 2rem 0 0; box-shadow: var(--shadow); }
.prohead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prohead h2 { margin: 0; font-size: 1.25rem; }
.lockgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 28px; margin: .6rem 0 1rem; }
.lockcol h3 { margin: .8rem 0 .3rem; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-family: var(--sans); font-weight: 650; }
.lockcol ul { list-style: none; padding: 0; margin: 0; }
.lockcol li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); margin: 0; font-size: .9rem; }
.lockcol li.more { color: var(--ink-3); border-bottom: 0; }
.mask { font-family: var(--mono); color: var(--ink-3); background: var(--surface-2); border-radius: 3px; padding: 0 6px; user-select: none; filter: blur(1.5px); }
.proask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: .4rem 0 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 1.4rem 0 2rem; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.featured { border-top-color: var(--accent); border-color: var(--accent-line); }
.plan:nth-child(3) { border-top-color: var(--mod); }
.plan:nth-child(4) { border-top-color: var(--amber); }
.plan h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.plan .protag { position: absolute; top: 14px; right: 14px; background: var(--accent); }
.plan .price { font: 500 1.9rem/1.1 var(--mono); color: var(--ink); letter-spacing: -.03em; margin: .2rem 0 .8rem; }
.plan .price span { font: 400 .85rem var(--sans); color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.plan ul { padding-left: 1.1rem; font-size: .9rem; flex: 1; }
.plan p:last-of-type { margin: .6rem 0 0; }
.plan button.btn { width: 100%; justify-content: center; }
.acct h2 { margin: 0 0 .8rem; font-size: 1.15rem; }
.acct .row { grid-template-columns: 1fr; }
[hidden] { display: none !important; }
.bigfig { font: 500 2.2rem/1.15 var(--mono); color: var(--ink); letter-spacing: -.03em; }
.pf-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 12px 0; }
.pf-sum .card { padding: 1rem 1.1rem; }
.estlock { border-left: 4px solid var(--amber); }

/* photography: bright daytime hero. The text sits on the left over a plain light ground; the photo fills the right 72%, mirrored so the
   pumpjack stands on the right, and fades into the light ground along its left edge (a mask, so no overlay covers the subject). */
.hero.photo { position: relative; isolation: isolate; background: linear-gradient(90deg, #FFFFFF 0%, #F4F7F9 32%, #E6EDF1 100%); border-bottom: 1px solid var(--line); padding: clamp(1.8rem, 4vw, 3.2rem) 0 clamp(1.6rem, 3vw, 2.4rem); --hero-x: 50%; --hero-y: 50%; --hero-x-m: 50%; --hero-y-m: 55%; min-height: clamp(420px, 34vw, 600px); }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media picture { position: absolute; top: 0; right: 0; bottom: 0; width: 72%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
.hero-media picture, .hero-media img { display: block; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-x) var(--hero-y); }
.hero.photo h1 { color: var(--ink); }
.hero.photo .lede { color: var(--ink); }
.hero.photo .eyebrow { color: var(--ink-2); }
.hero.photo .est { max-width: 920px; border-top: 3px solid var(--accent); }
.hero.photo .result > .meta { color: var(--ink-2); }
/* estimator: one compact row (four fields and the button), small labels above each field */
.est { padding: .7rem 1rem .8rem; }
.est-row { display: grid; grid-template-columns: 1.15fr 1.15fr 1.15fr .8fr auto; gap: 10px 12px; align-items: end; }
.est label { font-size: .74rem; margin-bottom: 3px; }
.est select, .est input { height: 42px; padding: .3rem .65rem; font-size: .92rem; }
.est .est-btn button { height: 42px; padding: 0 1.25rem; white-space: nowrap; justify-content: center; }
#e-county-note { margin-top: 6px; font-size: .78rem; }
#e-county-note:empty { display: none; }
main.flush { padding-bottom: 0; }
main.endgap { padding-bottom: 32px; }   /* pages that used to end with the notice: about 32 px (24 px on a phone) above the footer */
main.endgap > .wrap > :last-child { margin-bottom: 0; }   /* a page that ends with a full-width band meets the footer directly */
.photocards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.photocard { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--graphite-2); color: #fff; text-decoration: none; }
.photocard:hover { border-color: var(--accent-line); color: #fff; }
.photocard picture, .photocard img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.photocard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 9, 11, .94) 0%, rgba(8, 9, 11, .82) 42%, rgba(8, 9, 11, 0) 84%); }
.pc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 3px; padding: 16px 18px; }
.pc-body .who { font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-on-dark); }
.pc-body strong { font: 650 1.08rem/1.2 var(--display); }
.pc-body .line { font-size: .86rem; line-height: 1.4; color: #E3E8EC; }
.beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1.4rem; }
.beforeafter figure { margin: 0; }
.beforeafter img, .guide-photo { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.beforeafter figcaption { font-size: .84rem; color: var(--ink-2); margin-top: 6px; }
.guide-hero { margin: 0 0 1.2rem; }

.contribute { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 2rem 0 0; box-shadow: var(--shadow); }
.contribute h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.contribute p:last-child { margin-bottom: 0; }
.note.coverage { background: var(--accent-wash); color: var(--ink-2); border-color: var(--accent-line); border-left-color: var(--accent); }
.coverage-card { border-left: 4px solid var(--amber); margin-bottom: 12px; }
ul.plain-list { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; }

/* About: methodology sections, each collapsed with a one-line summary */
details.msec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: .55rem 0; box-shadow: var(--shadow); }
details.msec > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: .7rem 2.4rem .7rem 1rem; cursor: pointer; list-style: none; position: relative; }
details.msec > summary::-webkit-details-marker { display: none; }
details.msec > summary::after { content: "+"; position: absolute; right: 1rem; top: .55rem; font: 500 1.2rem/1.2 var(--mono); color: var(--accent); }
details.msec[open] > summary::after { content: "−"; }
details.msec[open] > summary { border-bottom: 1px solid var(--line); }
details.msec .mt { font: 650 1rem var(--display); color: var(--ink); }
details.msec .ms { font-size: .88rem; color: var(--ink-2); }
details.msec .mbody { padding: .8rem 1rem 1rem; }
details.msec .mbody > :first-child { margin-top: 0; }
details.msec .mbody > :last-child { margin-bottom: 0; }

/* footer */
footer.site { background: var(--graphite); color: #9AA5AE; padding: 40px 0 36px; font-size: .86rem; margin-top: 0; }
footer.site a { color: #D5DBE0; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-brand { font: 700 1.05rem var(--display); color: #fff; letter-spacing: -.02em; }
.foot-grid h4 { margin: 0 0 .6rem; font: 650 .72rem var(--sans); letter-spacing: .09em; text-transform: uppercase; color: #C9D1D8; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 0 0 .35rem; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 26px; padding-top: 16px; font-size: .8rem; max-width: none; }
ul.plain { list-style: none; padding: 0; margin: 0; columns: 3 180px; }
ul.plain li { padding: 3px 0; break-inside: avoid; }

@media (max-width: 900px) {
  .covband, .signup-band .wrap, .reportbox { grid-template-columns: minmax(0, 1fr); }
  .photocards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* phone and tablet: the photo becomes a full-width banner above the text, centred on the pumpjack; the text sits on plain light ground */
  .hero.photo { background: var(--bg); padding-top: 0; min-height: 0; }
  .hero-media { position: relative; z-index: 0; height: clamp(210px, 36vw, 330px); margin-bottom: 1.1rem; }
  .hero-media picture { position: static; width: 100%; height: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-media img { object-position: var(--hero-x-m) var(--hero-y-m); }
  .est-row { grid-template-columns: 1fr 1fr; }
  .est .est-btn { grid-column: 1 / -1; }
  .est .est-btn button { width: 100%; }
  .props { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  header.site { position: static; }
  nav.main { margin-left: 0; gap: 2px 16px; }
  .props, .statcards, .trust ul, .plans, .photocards, .beforeafter, .est-row { grid-template-columns: 1fr; }
  main.endgap { padding-bottom: 24px; }
  .reportbox { padding: 1.1rem; }
  [id] { scroll-margin-top: 12px; }
  th, td { padding: 8px 9px; }
  .result .range { font-size: 1.45rem; }
  .stat .value { font-size: 1.45rem; }
}
@media print {
  header.site nav, footer.site .foot-grid, .preview-banner, .noprint { display: none !important; }
  body { background: #fff; font-size: 10.5pt; }
  header.site { position: static; border-bottom: 1px solid #000; }
  footer.site { background: #fff; color: #333; padding: 12px 0; } .foot-legal { border: 0; margin: 0; padding: 0; }
  main > .wrap { padding-top: 1rem; } h2 { break-after: avoid; margin-top: 1.6rem; }
  figure, table, .card { break-inside: avoid; } svg.chart-svg { min-width: 0; }
  a { color: #000; text-decoration: none; }
}

ul.cols { columns: 2 280px; column-gap: 32px; padding-left: 1.2rem; }
ul.cols li { break-inside: avoid; margin: .25rem 0; }
