/* OkLobbyGuide shared styles — palette coordinated with the Oklahoma state flag.
   Flag reference colours (Okla. Stat. tit. 25 §91 Pantone spec; web hex per flagcolorcodes.com / brandpalettes.com):
   French Blue PMS 285C ≈ #0073CF · amber buckskin shield ≈ #B3995D · gold-brown PMS 174C ≈ #9A3B26
   Dartmouth green PMS 554C ≈ #1B563E · white. Contrast ratios noted are WCAG 2.x. */
:root {
  --ok-blue: #0073CF;        /* flag field. White text 4.82:1 (AA normal) — buttons, accents */
  --ok-blue-ink: #005A9E;    /* links/text on white 7.1:1, on cream 6.7:1; button hover */
  --ok-blue-dark: #003A6B;   /* header/footer. White 11.6:1, tan-light 6.9:1 */
  --ok-blue-deep: #002A4E;   /* bottom bar / overlays */
  --ok-tan: #B3995D;         /* buckskin shield — accent fills, rules, borders. Dark text on it 5.4:1. Never white text on it */
  --ok-tan-light: #D9C79C;   /* tan used as text on dark blue (6.9:1) */
  --ok-tan-ink: #7A6230;     /* tan-family text on cream/white (5.5:1) */
  --ok-buckskin: #EFE8C7;    /* soft section background (dark text 12:1) */
  --ok-cream: #FBF8F0;       /* page background */
  --ok-white: #FFFFFF;
  --ok-text: #1F2933;        /* body text, 13.9:1 on cream */
  --ok-muted: #4A5560;       /* secondary text, 7.2:1 on cream */
  --ok-line: #E2D9C3;        /* hairlines */
  --ok-brown: #9A3B26;       /* flag crosses — featured badges, warnings (6.9:1 on white) */
  --ok-olive: #1B563E;       /* olive branch — success / claimed (8.6:1 on white) */
  --ok-ok-bg: #E7F0EA; --ok-err-bg: #F8E6E1;
  --font-display: Copperplate, "Copperplate Gothic Light", "Copperplate Gothic", "Engravers Gothic", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ok-cream); color: var(--ok-text); font-family: var(--font-ui); line-height: 1.55; }
a { color: var(--ok-blue-ink); }
a:hover { color: var(--ok-blue-dark); }
:focus-visible { outline: 3px solid var(--ok-tan); outline-offset: 2px; }
h1, h2, h3 { color: var(--ok-blue-dark); }
.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }
.muted { color: var(--ok-muted); }

/* Header + nav (shared partial) */
.site-header { background: var(--ok-white); border-bottom: 3px solid var(--ok-tan); position: relative; z-index: 5; }
.site-header .bar { max-width: 1240px; margin: 0 auto; padding: 0.6rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ok-blue-dark); }
.brand img { height: 60px; width: auto; display: block; }
.brand .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.05; }
.brand .wordmark small { display: block; font-size: 0.62rem; letter-spacing: 0.22em; color: var(--ok-tan-ink); font-weight: 600; }
.site-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-nav a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; color: var(--ok-blue-dark); text-decoration: none; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ok-tan); color: var(--ok-blue-ink); }
@media (max-width: 700px) {
  .site-header .bar { padding: 0.5rem 0.8rem; }
  .brand img { height: 46px; }
  .site-nav { gap: 1rem; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .site-nav a { font-size: 0.74rem; white-space: nowrap; }
}

/* Buttons + forms */
button, .btn { display: inline-block; background: var(--ok-blue); color: var(--ok-white); border: 2px solid var(--ok-blue); padding: 0.8rem 1.4rem; border-radius: 4px; font: 600 1rem var(--font-ui); cursor: pointer; text-decoration: none; text-align: center; }
button:hover, .btn:hover { background: var(--ok-blue-ink); border-color: var(--ok-blue-ink); color: var(--ok-white); }
.btn-tan, button.btn-tan { background: var(--ok-tan); border-color: var(--ok-tan); color: var(--ok-text); }
.btn-tan:hover, button.btn-tan:hover { background: var(--ok-tan-light); border-color: var(--ok-tan-light); color: var(--ok-text); }
.btn-dark { background: var(--ok-blue-dark); border-color: var(--ok-blue-dark); }
.btn-dark:hover { background: var(--ok-blue-deep); border-color: var(--ok-blue-deep); }
.btn-outline { background: transparent; border-color: var(--ok-white); color: var(--ok-white); }
.btn-outline:hover { background: rgba(255,255,255,0.14); border-color: var(--ok-white); }
.btn-display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; padding: 0.95rem 1.5rem; }
input, textarea, select { font: inherit; color: var(--ok-text); background: var(--ok-white); border: 1px solid #B9AE93; border-radius: 4px; }
input:focus, textarea:focus, select:focus { border-color: var(--ok-blue); outline: 2px solid color-mix(in srgb,var(--ok-blue) 25%,transparent); }

/* Status boxes */
.ok { padding: 0.8rem; border-radius: 6px; background: var(--ok-ok-bg); color: var(--ok-text); border-left: 4px solid var(--ok-olive); }
.err { padding: 0.8rem; border-radius: 6px; background: var(--ok-err-bg); color: var(--ok-text); border-left: 4px solid var(--ok-brown); }
.box { padding: 0.8rem; border-radius: 6px; background: var(--ok-buckskin); }

/* Footer (shared partial) */
.site-footer { background: var(--ok-blue-dark); color: #E9EEF4; margin-top: 3rem; }
.site-footer .cols { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.site-footer .about { text-align: center; font-family: var(--font-body); }
.site-footer .about strong { color: var(--ok-white); }
.site-footer .mark { display: flex; justify-content: center; }
.site-footer .mark img { width: 150px; height: 150px; object-fit: contain; }
.site-footer .links { list-style: none; margin: 0; padding: 0; font-family: var(--font-body); }
.site-footer .links li { margin: 0.45rem 0; }
.site-footer a { color: var(--ok-tan-light); }
.site-footer a:hover { color: var(--ok-white); }
.site-footer .legal { background: var(--ok-blue-deep); text-align: center; padding: 1rem; font-size: 0.85rem; color: #C9D3DE; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; text-align: center; } }

/* Photo slots: a real photo when public/images/<slot> exists, otherwise a clearly-labelled neutral placeholder */
.photo-slot { position: relative; background-color: var(--ok-blue-dark); background-size: cover; background-position: center; }
.photo-slot.placeholder { background-image: linear-gradient(135deg, var(--ok-blue-dark) 0%, var(--ok-blue) 55%, var(--ok-blue-ink) 100%); }
.slot-label { position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 3; background: rgba(0,0,0,0.55); color: #fff; font: 600 0.72rem/1.3 var(--font-ui); padding: 0.3rem 0.55rem; border-radius: 3px; border: 1px dashed rgba(255,255,255,0.7); letter-spacing: 0.02em; }

/* Lobbyist expenditures (profile "Reported spending" section) */
.exp-summary { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.6rem 0 1rem; }
.exp-stat { background: var(--ok-white); border: 1px solid var(--ok-line); border-top: 3px solid var(--ok-tan); border-radius: 4px; padding: 0.55rem 0.9rem; min-width: 9rem; }
.exp-stat b { display: block; font-size: 1.25rem; color: var(--ok-blue-dark); }
.exp-stat span { font-size: 0.8rem; color: var(--ok-muted); }
.data-table { width: 100%; border-collapse: collapse; background: var(--ok-white); font-size: 0.92rem; }
.data-table th { text-align: left; background: var(--ok-blue-dark); color: var(--ok-white); font-weight: 600; padding: 0.45rem 0.6rem; font-size: 0.82rem; letter-spacing: 0.02em; }
.data-table td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--ok-line); vertical-align: top; }
.data-table tr:nth-child(even) td { background: #FDFBF6; }
.data-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table .neg { color: var(--ok-brown); }
.exp-years tr.sel td { background: var(--ok-buckskin) !important; font-weight: 600; }
.exp-years button.linkish { background: none; border: 0; padding: 0; color: var(--ok-blue-ink); text-decoration: underline; font: inherit; cursor: pointer; }
.exp-years button.linkish:hover { color: var(--ok-blue-dark); background: none; }
.exp-detail { color: var(--ok-muted); font-size: 0.84rem; }
.exp-type { font-size: 0.8rem; color: var(--ok-tan-ink); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.exp-more { margin-top: 0.8rem; padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.exp-source { font-size: 0.82rem; color: var(--ok-muted); border-left: 3px solid var(--ok-tan); padding: 0.4rem 0.7rem; background: var(--ok-buckskin); margin-top: 1rem; }
.table-scroll { overflow-x: auto; }
@media (max-width: 640px) {
  .exp-items thead { display: none; }
  .exp-items tr { display: block; border-bottom: 1px solid var(--ok-line); padding: 0.35rem 0; }
  .exp-items td { display: block; border: 0; padding: 0.1rem 0.6rem; }
  .exp-items td.num { text-align: left; font-weight: 600; }
}

/* Featured listings (paid placement; always labelled) */
.featured-badge { display: inline-block; background: var(--ok-tan); color: var(--ok-text); padding: 0.15rem 0.55rem; border-radius: 4px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.feat-hero { background: var(--ok-blue-dark); color: var(--ok-white); border-bottom: 4px solid var(--ok-tan); }
.feat-hero h1 { color: var(--ok-white); font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; margin: 0.2rem 0 0.6rem; }
.feat-kicker { color: var(--ok-tan-light); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; margin: 0.6rem 0 0; }
.feat-lede { font-family: var(--font-body); font-size: 1.15rem; max-width: 46rem; margin: 0 0 1rem; }
.feat-wrap { max-width: 980px; }
.feat-benefits li, .feat-steps li { margin: 0.45rem 0; }
.feat-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 0.5rem 0 1rem; }
.feat-price { background: var(--ok-white); border: 1px solid var(--ok-line); border-top: 4px solid var(--ok-blue); border-radius: 6px; padding: 1rem 1.1rem; position: relative; }
.feat-price h3 { margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; }
.feat-price .amt { font-size: 2rem; font-weight: 700; color: var(--ok-blue-dark); margin: 0.3rem 0; }
.feat-price .amt span { font-size: 0.95rem; color: var(--ok-muted); font-weight: 500; }
.feat-flag { position: absolute; top: -0.85rem; right: 0.8rem; margin: 0; background: var(--ok-brown); color: var(--ok-white); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.2rem 0.55rem; border-radius: 3px; }
.feat-disclosure { border-left: 4px solid var(--ok-tan); background: var(--ok-white); padding: 0.4rem 1rem; border-radius: 4px; }
.feat-find { margin: 1rem 0; } .feat-find label { font-weight: 600; display: block; margin-bottom: 0.3rem; }
.feat-find div { display: flex; gap: 0.5rem; max-width: 520px; } .feat-find input { flex: 1; padding: 0.7rem; }
.feat-offer { background: var(--ok-buckskin); border: 1px solid var(--ok-tan); border-left: 5px solid var(--ok-tan); border-radius: 6px; padding: 0.9rem 1.1rem; margin: 1rem 0; }
.feat-offer-title { margin: 0 0 0.6rem; color: var(--ok-blue-dark); font-size: 1.05rem; }
.feat-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.4rem; }
.feat-test { background: var(--ok-err-bg); border-left: 4px solid var(--ok-brown); padding: 0.45rem 0.8rem; border-radius: 4px; margin: 0.6rem 0; }
.small { font-size: 0.85rem; }
.pinned { background: var(--ok-buckskin); border: 1px solid var(--ok-tan); border-left: 5px solid var(--ok-tan); border-radius: 6px; padding: 0.8rem 1rem; margin: 0.6rem 0 0.4rem; }
.pinned .pin-note { font-size: 0.78rem; color: var(--ok-tan-ink); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Fifty Domes state guide additions (not on oklobbyguide.com; see config/layout_parity_allowed.json) ---- */
/* iStock licence credit: tiny, absolutely positioned on the hero photo so it does not change OK's layout; links to /credits/. */
.hero .credit { position: absolute; right: 0.6rem; bottom: 0.4rem; z-index: 3; margin: 0; font: 400 0.68rem/1.3 var(--font-ui); color: #fff; opacity: 0.85; text-shadow: 0 1px 3px rgba(0,0,0,0.85); }
.hero .credit a { color: inherit; text-decoration: none; }
.hero .credit a:hover { text-decoration: underline; }
/* State flag band: the flag under OK's blue overlay; the 800px flag on small screens. */
.band[data-flag] { background-position: center 40%; background-size: cover; }
@media (max-width: 700px) { .band[data-flag] { background-image: var(--band-sm) !important; } }
/* Preview test-mode banner and the Featured offer for a claimed profile (OK renders these into #testmode / #mine with JS). */
.feat-test { background: var(--ok-err-bg); border-left: 4px solid var(--ok-brown); padding: 0.45rem 0.8rem; border-radius: 4px; margin: 0.6rem 0; }
.feat-offer { background: var(--ok-buckskin); border: 1px solid var(--ok-tan); border-left: 5px solid var(--ok-tan); border-radius: 6px; padding: 0.9rem 1.1rem; margin: 1rem 0; }
.feat-offer-title { margin: 0 0 0.6rem; color: var(--ok-blue-dark); font-size: 1.05rem; }
.feat-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.4rem; }
.feat-btns form { margin: 0; }
.pinned { background: var(--ok-buckskin); border: 1px solid var(--ok-tan); border-left: 5px solid var(--ok-tan); border-radius: 6px; padding: 0.8rem 1rem; margin: 0.6rem 0 0.4rem; }
.pinned .pin-note { font-size: 0.78rem; color: var(--ok-tan-ink); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.claimed { color: var(--ok-olive); font-size: 0.85rem; white-space: nowrap; } /* space-separated from the Featured badge as on OK; never wraps mid-label */
