/* OKC Foundation Pros. Palette: Oklahoma red dirt on warm limestone. */
:root {
  --ink: #1f2421; --ink-2: #4a514c; --muted: #5a605b;
  --paper: #fbf8f2; --sand: #f3ece0; --line: #e2d8c8;
  --clay: #9c3d1e; --clay-d: #7a2e17; --clay-l: #f6e1d6;
  --sage: #2f5d50; --sage-l: #e3eee8; --amber: #d98a3d;
  --low: #cfe3d6; --mod: #f0c48f; --high: #a9441f; --vhigh: #7a2414; --na: #e7e2da;
  --focus: #1d5fd1;
  --r: 14px; --shadow: 0 1px 2px rgba(31,36,33,.06), 0 8px 28px rgba(31,36,33,.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--paper); padding-bottom: 64px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg { max-width: 100%; }
a { color: var(--clay-d); text-underline-offset: 2px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, .h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin-top: 1.2em; }
h3, .h3 { font-size: 1.2rem; margin-top: 1.2em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }
.muted { color: var(--muted); font-weight: 400; }
.fine { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.center { text-align: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); margin-bottom: .6em; }
.lede { font-size: 1.15rem; color: var(--ink-2); }
.hide-sm { display: none; }
@media (min-width: 600px) { .hide-sm { display: inline; } .show-sm { display: none; } }
.two > *, .hero__in > *, .guide > * { min-width: 0; }
.btn--call { white-space: nowrap; }
@media (max-width: 420px) { .logo { font-size: 1rem; } .logo svg { width: 26px; height: 26px; } }

/* alert + header */
.alert { display: block; background: var(--clay-d); color: #fff7ef; text-decoration: none; font-size: .88rem; padding: 9px 16px; text-align: center; line-height: 1.4; }
.alert .alert__go { text-decoration: underline; white-space: nowrap; }
.alert:hover { color: #fff; background: #6a2712; }
header.site { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; margin: 0; }
.logo svg { width: 30px; height: 30px; color: var(--clay); }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a[aria-current="page"], .nav a:hover { color: var(--clay-d); }
@media (min-width: 900px) { .nav { display: flex; } }
.btn--call { margin-left: auto; }
@media (min-width: 900px) { .btn--call { margin-left: 8px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 10px; border: 2px solid transparent; font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .08s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--clay); color: #fff; box-shadow: 0 2px 0 var(--clay-d); }
.btn--primary:hover { background: var(--clay-d); color: #fff; }
.btn--secondary { background: #fff; color: var(--clay-d); border-color: var(--clay); }
.btn--secondary:hover { background: var(--clay-l); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--call { background: var(--ink); color: #fff; min-height: 42px; padding: 8px 14px; font-size: .95rem; }
.btn--call:hover { background: #000; color: #fff; }
.btn--block { width: 100%; }
.linkish, .linkbtn { color: var(--ink-2); font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; font: inherit; font-size: .9rem; }

/* hero */
.hero { background: linear-gradient(180deg, var(--sand), var(--paper)); padding: 36px 0 44px; border-bottom: 1px solid var(--line); }
.hero__in { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .hero__in { grid-template-columns: 1.1fr .9fr; gap: 48px; } .hero { padding: 64px 0; } }
.hero--sub { padding: 28px 0 36px; }
.hero__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 30px; position: relative; margin: .4em 0; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4'/%3E%3C/svg%3E") center/14px no-repeat; }

/* lead form */
.lead { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; scroll-margin-top: 90px; }
.lead__title { font-family: var(--display); font-weight: 700; font-size: 1.35rem; margin: 0 0 .2em; }
.lead__sub { color: var(--muted); margin: 0 0 1em; font-size: .95rem; }
.lead fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.lead legend, .tool legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 13px; border: 1.5px solid #cfc5b4; border-radius: 9px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--clay); outline: 3px solid rgba(156,61,30,.18); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--stack { flex-direction: column; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; padding: 9px 13px; border: 1.5px solid #d6ccbb; border-radius: 10px; font-size: .92rem; background: #fff; line-height: 1.3; }
.chip input:checked + span { border-color: var(--clay); background: var(--clay-l); color: var(--clay-d); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.lead__zipnote { font-size: .9rem; background: var(--sage-l); color: var(--sage); padding: 9px 12px; border-radius: 8px; }
.lead__error { color: #b3261e; font-weight: 600; margin-top: 10px; }
.lead--compact { padding: 18px; }
.lead--compact .chip span { padding: 7px 10px; font-size: .86rem; }

/* sections */
.section { padding: 44px 16px; }
@media (min-width: 700px) { .section { padding: 64px 24px; } }
.narrow-top { padding-top: 32px; }
.band { background: var(--sand); border-block: 1px solid var(--line); }
.band--data { background: var(--ink); color: #f4efe6; border: 0; }
.band--cta { background: var(--clay-d); color: #fff7ef; border: 0; }
.two { display: grid; gap: 32px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 48px; } .two--map { grid-template-columns: 1.25fr .75fr; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 26px 0; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__n { font-family: var(--display); font-size: 2.2rem; font-weight: 700; margin: 0; line-height: 1.1; color: #f0b48a; }
.stat p:last-child { font-size: .9rem; margin: 4px 0 0; opacity: .9; }
.stats--inline { padding: 8px 0; grid-template-columns: repeat(3, 1fr); }
.stats--inline .stat__n { color: var(--clay-d); font-size: 1.6rem; }
.stats--inline p:last-child { color: var(--ink-2); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 18px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--clay); color: #fff; font-weight: 800; display: grid; place-items: center; }
.cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--clay); box-shadow: var(--shadow); color: inherit; }
.card__t { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: .3em; color: var(--clay-d); }
.cta-final { display: grid; gap: 18px; padding: 44px 16px; align-items: center; }
@media (min-width: 900px) { .cta-final { grid-template-columns: 1fr auto; padding: 56px 24px; } }
.cta-final h2 { margin-top: 0; }
.cta-final__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.band--cta .btn--primary { background: #fff; color: var(--clay-d); box-shadow: none; }

/* inline CTAs */
.cta { display: grid; gap: 14px; align-items: center; margin: 28px 0; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; border-left: 5px solid var(--clay); }
@media (min-width: 700px) { .cta { grid-template-columns: 1fr auto; } .two--map .cta, .two > div .cta { grid-template-columns: 1fr; } }
.cta p { margin: 0; }
.cta__title { font-weight: 800; font-size: 1.08rem; margin-bottom: 4px !important; }
.cta--photo { border-left-color: var(--sage); }
.cta--zip, .cta--checker { border-left-color: var(--amber); }

/* tools */
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin: 18px 0; scroll-margin-top: 90px; }
.tool fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.tool__eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); margin: 0; }
.tool__title { font-family: var(--display); font-weight: 700; font-size: 1.35rem; margin: 2px 0 14px; }
.grid2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.checker__result, .estimator__out, .ziptool__out { margin-top: 14px; }
.result { border-radius: 12px; padding: 18px; }
.result--watch { background: var(--sage-l); }
.result--soon { background: #fdf0de; }
.result--now { background: var(--clay-l); }
.result__level { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin: 0 0 6px; }
.result .btn { margin: 8px 8px 0 0; }
.est__range { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--clay-d); margin: 0; }
.ziptool__row { display: flex; gap: 10px; align-items: end; }
.ziptool__row .field { flex: 1; margin: 0; }
.zipcard { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.zipcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.meter { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--low), var(--mod) 40%, var(--high) 75%, var(--vhigh)); position: relative; margin: 12px 0 4px; }
.meter i { position: absolute; top: -5px; width: 4px; height: 22px; background: var(--ink); border-radius: 2px; transform: translateX(-2px); }
.meter__lab { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 12px 0; font-size: .92rem; }
.kv b { display: block; font-size: 1.05rem; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.pill--low { background: var(--low); color: #234a3c; }
.pill--moderate { background: var(--mod); color: #6b3c0c; }
.pill--high { background: var(--high); color: #fff; }
.pill--veryhigh { background: var(--vhigh); color: #fff; }

/* map + charts */
.map { margin: 0; position: relative; }
.map svg { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.zp { stroke: #fff; stroke-width: .8; cursor: pointer; transition: opacity .15s; }
.zp--low { fill: var(--low); } .zp--moderate { fill: var(--mod); } .zp--high { fill: var(--high); } .zp--veryhigh { fill: var(--vhigh); } .zp--na { fill: var(--na); cursor: default; }
.zp:hover, .zp:focus, .zp.is-on { stroke: var(--ink); stroke-width: 2; outline: none; }
.maplabel { font: 700 11px var(--font); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; pointer-events: none; }
.map figcaption { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .82rem; margin-top: 8px; }
.legend { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.sw--low { background: var(--low); } .sw--moderate { background: var(--mod); } .sw--high { background: var(--high); } .sw--na { background: var(--na); }
.map__card { position: absolute; left: 10px; top: 10px; max-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; box-shadow: var(--shadow); font-size: .88rem; }
.map__card p { margin: 0 0 4px; }
.chart { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.chart__title { font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.chart svg { width: 100%; height: auto; }
.bar { fill: #d9c9b3; } .bar--hi { fill: var(--clay); }
.barlab { font: 10px var(--font); fill: var(--muted); text-anchor: middle; }
.barval { font: 700 11px var(--font); fill: var(--clay-d); text-anchor: middle; }
.chart figcaption { font-size: .8rem; margin-top: 6px; }

/* tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data th, .data td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #efe8dc; white-space: nowrap; }
.data th { background: var(--sand); font-weight: 700; position: sticky; top: 0; cursor: pointer; }
.data tbody tr:hover { background: #fffaf2; }
.findings li { margin: .5em 0; }

/* guides */
.guide { display: grid; gap: 32px; padding-top: 24px; padding-bottom: 56px; }
@media (min-width: 1000px) { .guide { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } .guide__side { position: sticky; top: 84px; align-self: start; } }
.guide__side { display: none; }
@media (min-width: 1000px) { .guide__side { display: block; } }
.side__alt { font-size: .9rem; text-align: center; margin-top: 10px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.meta { font-size: .85rem; color: var(--muted); }
.toc { background: var(--sand); border-radius: var(--r); padding: 14px 18px; margin: 18px 0 8px; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin: 10px 0 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.prose { max-width: 72ch; }
.prose h2 { scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 18px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--sand); }
.narrow { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; list-style: none; padding-right: 28px; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--clay); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.sources { font-size: .88rem; color: var(--ink-2); margin-top: 32px; }
.sources h2 { font-size: 1.2rem; }

/* footer */
.site-foot { background: #191d1b; color: #cfd3cd; margin-top: 0; }
.foot { display: grid; gap: 28px; padding: 44px 16px 24px; }
@media (min-width: 900px) { .foot { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; padding: 56px 24px 28px; } }
.site-foot a { color: #f0d2c2; }
.logo--foot { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.foot__h { font-weight: 800; color: #fff; margin-bottom: 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 5px 0; font-size: .93rem; }
.site-foot .fine, .site-foot .muted { color: #9aa29b; }
.foot__data { padding-bottom: 28px; border-top: 1px solid #2c322f; padding-top: 16px; }

/* sticky mobile bar */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1.4fr; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom); }
.stickybar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: .8rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.stickybar svg { width: 20px; height: 20px; color: var(--clay); }
.stickybar__main { background: var(--clay); color: #fff !important; font-size: .95rem !important; }
@media (min-width: 900px) { .stickybar { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* photos */
.photo { margin: 22px 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--sand); }
.photo figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
.photo figcaption .muted { display: block; font-size: .75rem; }
.two > div > .photo:first-child { margin-top: 0; }
.h1-eyebrow { display: block; font-family: var(--font); }
.related { margin-top: 36px; }
.related .cards { grid-template-columns: 1fr; }
@media (min-width: 700px) { .related .cards { grid-template-columns: repeat(3, 1fr); } }
.related__areas { font-size: .9rem; color: var(--ink-2); margin-top: 16px; }
.foot__h--gap { margin-top: 18px; }
