/* Colorado Lobby Guide shared styles - copied from OkLobbyGuide; palette adapted from the Colorado state flag
   the same way OK adapts its flag: the flag's blue for header/footer/headings, a lighter tint of it for buttons, the gold disc
   for rules/accents (never as text on white), the red "C" for badges/warnings/focus. Flag reference colours: blue #002868,
   red #BF0A30, gold #FFD700, white (C.R.S. 24-80-904 describes the flag without hex values).
   Contrast ratios are WCAG 2.x, computed. */
:root {
  --st-blue: #1F4FA0;        /* tint of flag blue. White text 7.8:1 - buttons, accents */
  --st-blue-ink: #16428C;    /* links/text on white 9.6:1, on paper 9.2:1; button hover */
  --st-blue-dark: #002868;   /* FLAG BLUE - header/footer/headings. White 14.0:1, gold 10.0:1 */
  --st-blue-deep: #001A45;   /* bottom bar / overlays. Gold 12.1:1 */
  --st-gold: #FFD700;        /* FLAG GOLD - rules, borders, accent fills. Dark text on it 10.5:1. Never white text on it, never gold text on white */
  --st-gold-light: #FFD700;  /* gold as text on dark blue (10.0:1) */
  --st-gold-ink: #7A5C00;    /* gold-family text on white 6.3:1 / paper 6.0:1 */
  --st-gold-soft: #FFF4CC;   /* soft section background (dark text 13.4:1) */
  --st-paper: #FAFAF7;       /* page background */
  --st-white: #FFFFFF;
  --st-text: #1F2933;        /* body text, 14.1:1 on paper */
  --st-muted: #4A5560;       /* secondary text, 7.3:1 on paper */
  --st-line: #DDE3EC;        /* hairlines */
  --st-red: #BF0A30;         /* FLAG RED - featured badges, warnings, focus ring (6.4:1 on white; white on it 6.4:1). Not on flag blue (2.2:1) */
  --st-green: #1B563E;       /* success / claimed (8.6:1 on white) - not a flag colour, kept from OK for semantics */
  --st-ok-bg: #E7F0EA; --st-err-bg: #FBE4E8;
  --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(--st-paper); color: var(--st-text); font-family: var(--font-ui); line-height: 1.55; }
a { color: var(--st-blue-ink); }
a:hover { color: var(--st-blue-dark); }
:focus-visible { outline: 3px solid var(--st-red); outline-offset: 2px; }
h1, h2, h3 { color: var(--st-blue-dark); }
.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }
.muted { color: var(--st-muted); }

/* Header + nav (shared partial) */
.site-header { background: var(--st-white); border-bottom: 3px solid var(--st-gold); 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(--st-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(--st-gold-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(--st-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(--st-gold); color: var(--st-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(--st-blue); color: var(--st-white); border: 2px solid var(--st-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(--st-blue-ink); border-color: var(--st-blue-ink); color: var(--st-white); }
.btn-tan, button.btn-tan { background: var(--st-gold); border-color: var(--st-gold); color: var(--st-text); }
.btn-tan:hover, button.btn-tan:hover { background: var(--st-gold-light); border-color: var(--st-gold-light); color: var(--st-text); }
.btn-dark { background: var(--st-blue-dark); border-color: var(--st-blue-dark); }
.btn-dark:hover { background: var(--st-blue-deep); border-color: var(--st-blue-deep); }
.btn-outline { background: transparent; border-color: var(--st-white); color: var(--st-white); }
.btn-outline:hover { background: rgba(255,255,255,0.14); border-color: var(--st-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(--st-text); background: var(--st-white); border: 1px solid #AEB6C4; border-radius: 4px; }
input:focus, textarea:focus, select:focus { border-color: var(--st-blue); outline: 2px solid rgba(31,79,160,0.28); }

/* Status boxes */
.ok { padding: 0.8rem; border-radius: 6px; background: var(--st-ok-bg); color: var(--st-text); border-left: 4px solid var(--st-green); }
.err { padding: 0.8rem; border-radius: 6px; background: var(--st-err-bg); color: var(--st-text); border-left: 4px solid var(--st-red); }
.box { padding: 0.8rem; border-radius: 6px; background: var(--st-gold-soft); }

/* Footer (shared partial) */
.site-footer { background: var(--st-blue-dark); color: #E9EEF6; 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(--st-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(--st-gold-light); }
.site-footer a:hover { color: var(--st-white); }
.site-footer .legal { background: var(--st-blue-deep); text-align: center; padding: 1rem; font-size: 0.85rem; color: #C9D3E3; }
@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(--st-blue-dark); background-size: cover; background-position: center; }
.photo-slot.placeholder { background-image: linear-gradient(135deg, #001A45 0%, #0073CF 55%, #1F4FA0 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(--st-white); border: 1px solid var(--st-line); border-top: 3px solid var(--st-gold); border-radius: 4px; padding: 0.55rem 0.9rem; min-width: 9rem; }
.exp-stat b { display: block; font-size: 1.25rem; color: var(--st-blue-dark); }
.exp-stat span { font-size: 0.8rem; color: var(--st-muted); }
.data-table { width: 100%; border-collapse: collapse; background: var(--st-white); font-size: 0.92rem; }
.data-table th { text-align: left; background: var(--st-blue-dark); color: var(--st-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(--st-line); vertical-align: top; }
.data-table tr:nth-child(even) td { background: #F6F8FB; }
.data-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table .neg { color: var(--st-red); }
.exp-years tr.sel td { background: var(--st-gold-soft) !important; font-weight: 600; }
.exp-years button.linkish { background: none; border: 0; padding: 0; color: var(--st-blue-ink); text-decoration: underline; font: inherit; cursor: pointer; }
.exp-years button.linkish:hover { color: var(--st-blue-dark); background: none; }
.exp-detail { color: var(--st-muted); font-size: 0.84rem; }
.exp-type { font-size: 0.8rem; color: var(--st-gold-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(--st-muted); border-left: 3px solid var(--st-gold); padding: 0.4rem 0.7rem; background: var(--st-gold-soft); 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(--st-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(--st-gold); color: var(--st-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(--st-blue-dark); color: var(--st-white); border-bottom: 4px solid var(--st-gold); }
.feat-hero h1 { color: var(--st-white); font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; margin: 0.2rem 0 0.6rem; }
.feat-kicker { color: var(--st-gold-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(--st-white); border: 1px solid var(--st-line); border-top: 4px solid var(--st-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(--st-blue-dark); margin: 0.3rem 0; }
.feat-price .amt span { font-size: 0.95rem; color: var(--st-muted); font-weight: 500; }
.feat-price.founding { border-top-color: var(--st-gold); background: var(--st-gold-soft); }
.feat-flag { position: absolute; top: -0.85rem; right: 0.8rem; margin: 0; background: var(--st-red); color: var(--st-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(--st-gold); background: var(--st-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(--st-gold-soft); border: 1px solid var(--st-gold); border-left: 5px solid var(--st-gold); border-radius: 6px; padding: 0.9rem 1.1rem; margin: 1rem 0; }
.feat-offer-title { margin: 0 0 0.6rem; color: var(--st-blue-dark); font-size: 1.05rem; }
.feat-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.4rem; }
.feat-test { background: var(--st-err-bg); border-left: 4px solid var(--st-red); padding: 0.45rem 0.8rem; border-radius: 4px; margin: 0.6rem 0; }
.small { font-size: 0.85rem; }
.pinned { background: var(--st-gold-soft); border: 1px solid var(--st-gold); border-left: 5px solid var(--st-gold); border-radius: 6px; padding: 0.8rem 1rem; margin: 0.6rem 0 0.4rem; }
.pinned .pin-note { font-size: 0.78rem; color: var(--st-gold-ink); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
/* Small phones (320px): flex search inputs may shrink, display buttons tighten so nothing scrolls sideways. */
.searchbar input, .feat-find input, .hero form input { min-width: 0; }
@media (max-width: 360px) { .btn-display { letter-spacing: 0.06em; padding: 0.85rem 0.9rem; } .ctas { flex-wrap: wrap; } }
.hero > .inner { min-width: 0; max-width: min(960px, 100%); } .hero h1 { overflow-wrap: break-word; }
