﻿/* VG Perform - no external fonts or frameworks (keeps the Content-Security-Policy strict) */
:root {
    --navy: #0b1f3a;
    --navy-2: #13305a;
    --ink: #142033;
    --muted: #5d6b80;
    --line: #e2e7ef;
    --bg: #f5f7fb;
    --card: #ffffff;
    --accent: #f5a524;
    --accent-ink: #3a2500;
    --teal: #0e9f8e;
    --good: #138a52;
    --good-bg: #e3f6ec;
    --bad: #c2362b;
    --bad-bg: #fde8e6;
    --warn-bg: #fff4dc;
    --warn: #8a5a00;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(16, 31, 58, .06), 0 4px 16px rgba(16, 31, 58, .06);
    color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1; }
a { color: #1957b8; }
a:hover { color: #0f3f8a; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 28px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Top bar ---------- */
/* A very faint version of the logo's rising chart stretches across the top bar: revenue going up.
   Kept light so the logo and the links stay easy to read. */
.topbar { background: url("/icons/header-graph.svg") left bottom / 100% 100% no-repeat, var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand:hover { color: #fff; }
.brand-logo { display: block; height: 60px; width: auto; margin: 4px 0; }
.hero-logo { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto 18px; }
.auth-logo { display: block; width: 140px; height: auto; margin: 0 auto 12px; }
.brand-mark { background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 4px 8px; font-weight: 800; letter-spacing: .5px; }
.topnav { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding: 8px 0; order: 2; margin-left: auto; }
.topbar-tools { display: flex; align-items: center; gap: 8px; order: 3; }
.nav-toggle {
    display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
    border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.topnav a { color: #d6e2f5; text-decoration: none; font-size: .95rem; }
.topnav a:hover { color: #fff; }
.topnav a.btn-primary { color: var(--accent-ink); }
.nav-user { color: #9fb3d1; font-size: .875rem; border-left: 1px solid rgba(255,255,255,.2); padding-left: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: #c4cddb; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(245, 165, 36, .55); outline-offset: 2px;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffb53d; border-color: #ffb53d; color: var(--accent-ink); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); color: var(--bad); }
.btn-sm { padding: 6px 12px; font-size: .875rem; border-radius: 8px; }
.btn-block { width: 100%; }
.inline-form { display: inline; margin: 0; }

/* ---------- Landing ---------- */
.landing { padding-bottom: 32px; }
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1d4d8f 0%, transparent 60%), var(--navy); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.5px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; font-weight: 700; color: var(--teal); margin-bottom: .4rem; }
.hero .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: #c7d5ea; max-width: 40em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 20px; }
.stat dt { color: #a9bcd8; font-size: .85rem; }
.stat dd { margin: 4px 0 0; font-size: 1.9rem; font-weight: 800; }

.section { padding-top: 64px; }
.section-title { text-align: center; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; }
.section-sub { text-align: center; color: var(--muted); max-width: 46em; margin: -16px auto 28px; }
.feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: #fff4dc; color: #b86e00; align-items: center; justify-content: center; margin-bottom: 12px; }
.feature-icon svg { width: 24px; height: 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.hero-side { min-width: 0; }
.partner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: var(--radius); padding: 36px; }
.partner-copy p { color: #c7d5ea; }
.partner-copy a { color: var(--accent); }
.partner-form { color: var(--ink); margin: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.form-note { margin: 12px 0 0; }
.compare-table { background: var(--card); border-radius: var(--radius); }
.compare-table th[scope=row] { font-weight: 700; }
.compare-table td { color: var(--muted); }
.compare-table .us { background: #fff8ea; color: var(--ink); font-weight: 600; border-left: 3px solid var(--accent); }
.check-form .field-grid { margin-bottom: 4px; }
.match-list { margin: 0; padding-left: 20px; }
.match-list li { margin-bottom: 6px; }
.compare { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.rank-meter { width: 100%; height: 18px; margin: 6px 0 8px; }
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.compare-grid div { background: #f5f7fb; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; }
.compare-grid b { font-size: 1.25rem; }
.gap-callout { margin-top: 22px; background: #fff4dc; border: 1px solid #f3dca6; border-radius: var(--radius); padding: 20px; }
.gap-callout p { margin-bottom: 8px; }
.hero-check { margin-top: 28px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 18px; max-width: 34em; }
.hero-check label { display: block; font-weight: 700; margin-bottom: 8px; }
.hero-check-row { display: flex; gap: 8px; }
.hero-check-row input { flex: 1; min-width: 0; }
.hero-check p { color: #a9bcd8; font-size: .85rem; margin: 8px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.portal-card {
    display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.portal-card:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--ink); box-shadow: 0 10px 30px rgba(16,31,58,.12); }
.portal-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.portal-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: #eef3fb; color: var(--navy-2); align-items: center; justify-content: center; margin-bottom: 14px; flex: none; }
.portal-svg { width: 26px; height: 26px; }
.portal-cta { font-weight: 700; color: #1957b8; }
.install-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: var(--radius); padding: 32px; }
.install-band p { color: #c7d5ea; margin: 0; max-width: 52em; }

/* ---------- Auth ---------- */
.auth-page { display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; }
.auth-wrap { width: 100%; max-width: 440px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.auth-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.auth-head .portal-icon { margin: 0; }
.auth-head h1 { font-size: 1.5rem; margin: 0; }
.auth-head .eyebrow { margin: 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; }
input, select, textarea {
    font: inherit; color: inherit; width: 100%; padding: 10px 12px; border: 1px solid #cdd5e1; border-radius: 10px; background: #fff;
}
textarea { resize: vertical; }
.field-error { color: var(--bad); font-size: .85rem; }
.field-error:empty { display: none; }
.input-validation-error { border-color: var(--bad); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choice { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 500; cursor: pointer; }
.choice input { width: auto; margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: #fff8ea; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.filters input, .filters select { width: auto; flex: 1 1 160px; padding: 8px 10px; }
.filters input[type=search] { flex: 2 1 220px; }
[hidden] { display: none !important; }

/* ---------- Alerts & badges ---------- */
.alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; border: 1px solid transparent; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: var(--bad-bg); color: #7d1f17; border-color: #f6c3bd; }
.alert-success { background: var(--good-bg); color: #0d5a36; border-color: #b7e4cb; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #f3dca6; }
.validation-summary-valid { display: none; }
.temp-password code { display: inline-block; font-size: 1.25rem; background: #fff; border: 1px dashed var(--warn); border-radius: 8px; padding: 6px 12px; margin: 4px 0 8px; user-select: all; }
.temp-password p { margin: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eef2f8; color: #34445c; white-space: nowrap; }
.badge-good { background: var(--good-bg); color: var(--good); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: #e6efff; color: #1d4fa8; }

/* ---------- Locations search ---------- */
.search-form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.search-form legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.check-group { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.check-group legend { width: 100%; }
.check { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: .92rem; font-weight: 600; }
.check input { width: auto; margin: 0; accent-color: var(--brand, #0b1f3a); }
.check:has(input:checked) { border-color: var(--accent); background: #fff8ea; }
.search-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.search-fields label { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Update notice ---------- */
.update-banner { background: var(--good-bg); border-bottom: 1px solid #b7e4cb; color: #0d5a36; }
.update-banner-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font-size: .92rem; }
.update-banner-actions { display: flex; align-items: center; gap: 12px; }
.update-banner a { color: #0d5a36; font-weight: 700; }
.release ul { margin: 6px 0 0; padding-left: 20px; }
.release li { margin: 4px 0; }
#location-results { transition: opacity .15s; }
#location-results.is-loading { opacity: .55; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.trend-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 4px 0 14px; }
.trend-stat { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.trend-stat b { display: block; font-size: 1.2rem; }
.trend-stat span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.change-list { list-style: none; margin: 0; padding: 0; }
.change-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.change-list li:last-child { border-bottom: 0; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }

/* ---------- Dashboard ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin-bottom: .2rem; }
.page-head p { margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.kpi-label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.kpi-value { font-size: 1.55rem; font-weight: 800; margin-top: 2px; }
.kpi-value small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.kpi-sub { color: var(--muted); font-size: .8rem; }
/* Columns of two stacked boxes (dashboard). Each pair stays together when the screen narrows. */
.kpis.kpi-columns { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 8px; }
.kpi-stack { display: flex; flex-direction: column; gap: 14px; }
.kpi-stack .kpi { flex: 1; }
.kpi-note { margin: 0 0 22px; }
.up { color: var(--good); }
.down { color: var(--bad); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.card-accent { border-left: 4px solid var(--accent); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head .filters { margin: 0; }
.narrow { max-width: 560px; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.empty { padding: 28px; text-align: center; color: var(--muted); background: #fafbfd; border: 1px dashed var(--line); border-radius: 10px; }
.empty-state { text-align: center; padding: 64px 16px; }

.tabs { display: inline-flex; background: #e9eef6; border-radius: 10px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.tab { padding: 7px 14px; border-radius: 8px; text-decoration: none; color: #34445c; font-weight: 600; font-size: .9rem; }
.tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.data th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:hover { background: #fafcff; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-actions { white-space: nowrap; }
.row-actions .inline-form + .inline-form { margin-left: 6px; }
/* Earnings grid: Year | Jan..Dec | Total */
.earnings .filters select { min-width: 260px; }
table.earnings-grid { font-size: .88rem; min-width: 980px; }
table.earnings-grid th, table.earnings-grid td { padding: 9px 10px; }
table.earnings-grid tbody th { font-size: .95rem; color: var(--ink); text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--line); }
table.earnings-grid tbody tr:nth-child(even) { background: #f8fafd; }
table.earnings-grid tr.current th { color: var(--accent); }
table.earnings-grid tr > :first-child { position: sticky; left: 0; background: var(--card); z-index: 1; box-shadow: 1px 0 0 var(--line); }
table.earnings-grid tbody tr:nth-child(even) > :first-child { background: #f8fafd; }
table.earnings-grid .total { font-weight: 800; background: #eef4ff; border-left: 2px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; padding-top: 16px; }

.lead-list, .contact-list, .timeline { list-style: none; margin: 0; padding: 0; }
.lead-list li, .contact-list li, .timeline li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.lead-list li:last-child, .contact-list li:last-child, .timeline li:last-child { border-bottom: 0; }
.timeline p { margin: 6px 0 0; white-space: pre-line; }

/* ---------- Chart ---------- */
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #e8edf4; stroke-width: 1; }
.chart .axis { fill: #7a879a; font-size: 11px; }
.chart .bar { fill: #2f6fd0; }
.chart .bar:hover { fill: #1d4f9e; }
.chart .peer-line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.chart .peer-dot { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.key-bar { background: #2f6fd0; }
.key-line { background: var(--accent); height: 3px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 18px 0; font-size: .875rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
/* Phones and tablets: the links fold into a menu opened by the menu button (theme.js). */
@media (max-width: 1200px) {
    .topbar { background-position: left top; background-size: 100% 60px; }   /* graph stays bar-height when the menu opens */
    .topbar-inner { min-height: 60px; gap: 10px; }
    .brand-logo { height: 50px; }
    .topbar-tools { order: 2; margin-left: auto; }
    .nav-toggle { display: inline-flex; }
    .topnav { order: 3; width: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 14px; }
    .js .topnav { display: none; }
    .js .topbar.nav-open .topnav { display: flex; }
    .topnav a { padding: 12px 4px; font-size: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
    .topnav a.btn, .topnav .inline-form .btn { margin-top: 10px; padding: 12px; width: 100%; border: 1px solid rgba(255,255,255,.35); }
    .topnav a.btn-primary { border-color: var(--accent); }
    .topnav .inline-form { display: block; }
    .topnav .nav-user, .topbar .topnav .nav-user { display: block; border-left: 0; padding: 12px 4px 4px; border-top: 1px solid rgba(255,255,255,.1); }
    .topbar.nav-open { max-height: 100vh; overflow-y: auto; }
}
@media (max-width: 960px) {
    .portal-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
    .partner { grid-template-columns: 1fr; padding: 24px; }
    .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
    .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .feature-grid, .feature-grid-4, .steps, .portal-grid, .compare-grid { grid-template-columns: 1fr; }
    .hero-check-row { flex-direction: column; }
    .nav-user { display: none; }
    .card { padding: 16px; }
    .kpis, .kpis.kpi-columns { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi-stack { gap: 10px; }
    .kpi { padding: 12px 14px; }
    .kpi-value { font-size: 1.25rem; }
    .auth-card { padding: 22px; }
    .page { padding-top: 20px; }
}
@media (display-mode: standalone) {
    .topbar { padding-top: env(safe-area-inset-top); }
}

/* ---------- Light / dark switch (button in the top bar; js/theme.js sets data-theme on <html>) ---------- */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer;
}
.theme-toggle:hover { border-color: #fff; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme=dark] .theme-toggle .icon-sun { display: block; }
[data-theme=dark] .theme-toggle .icon-moon { display: none; }

[data-theme=dark] {
    --navy: #07152a;
    --navy-2: #0f2748;
    --ink: #e6ecf5;
    --muted: #9aa8bd;
    --line: #2a3a52;
    --bg: #0d1726;
    --card: #142236;
    --accent-ink: #2a1a00;
    --good-bg: #0f3324;
    --bad-bg: #3d1714;
    --warn-bg: #3a2c0c;
    --warn: #f3c66b;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
    color-scheme: dark;
}
[data-theme=dark] a { color: #7fb0ff; }
[data-theme=dark] a:hover { color: #a9c9ff; }
[data-theme=dark] .topnav a { color: #d6e2f5; }
[data-theme=dark] .topnav a.btn-primary, [data-theme=dark] a.btn-primary { color: var(--accent-ink); }
[data-theme=dark] .btn { background: #1b2c44; border-color: var(--line); color: var(--ink); }
[data-theme=dark] .btn:hover { border-color: #46597a; color: var(--ink); }
[data-theme=dark] .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
[data-theme=dark] .btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
[data-theme=dark] input, [data-theme=dark] select, [data-theme=dark] textarea { background: #0f1b2c; border-color: #33465f; color: var(--ink); }
[data-theme=dark] .portal-icon { background: #1c2f4a; color: #a9c9ff; }
[data-theme=dark] .feature-icon { background: #3a2c0c; color: #f5b54a; }
[data-theme=dark] .alert-error { color: #ffb4ab; border-color: #6b2620; }
[data-theme=dark] .alert-success { color: #9be3bd; border-color: #1f5a3d; }
[data-theme=dark] .alert-warn { border-color: #5c4614; }
[data-theme=dark] .badge { background: #22334c; color: #c8d4e6; }
[data-theme=dark] .badge-info { background: #1a2f55; color: #a9c9ff; }
[data-theme=dark] .check, [data-theme=dark] .tab.active { background: #1b2c44; }
[data-theme="dark"] .choice:has(input:checked), [data-theme="dark"] .check:has(input:checked) { background: #3a2c0c; }
[data-theme=dark] .tabs { background: #0f1b2c; }
[data-theme=dark] .tab { color: #c8d4e6; }
[data-theme=dark] .empty { background: #101d30; }
[data-theme=dark] table.data tbody tr:hover { background: #1a2a40; }
[data-theme="dark"] table.earnings-grid tbody tr:nth-child(even),
[data-theme="dark"] table.earnings-grid tbody tr:nth-child(even) > :first-child { background: #17273d; }
[data-theme=dark] table.earnings-grid .total { background: #1a2f55; }
[data-theme=dark] .compare-table .us { background: #2b230f; }
[data-theme=dark] .compare-grid div { background: #0f1b2c; }
[data-theme=dark] .gap-callout { background: #2b230f; border-color: #5c4614; }
[data-theme=dark] .chart .grid { stroke: #2a3a52; }
[data-theme=dark] .chart .axis { fill: #9aa8bd; }
[data-theme=dark] .chart .bar, [data-theme=dark] .key-bar { fill: #4d8ef0; background: #4d8ef0; }
[data-theme=dark] .chart .peer-dot { fill: var(--card); }
[data-theme=dark] .temp-password code { background: #0f1b2c; }
[data-theme=dark] .update-banner, [data-theme=dark] .update-banner a { color: #9be3bd; border-color: #1f5a3d; }
[data-theme=dark] .footer { background: #0a1322; }

/* ---------- Light mode: light top bar and home page header (dark mode keeps the navy look) ---------- */
[data-theme=light] .topbar {
    background: url("/icons/header-graph.svg") left bottom / 100% 100% no-repeat, #ffffff;
    color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(16,31,58,.06);
}
[data-theme=light] .topnav a { color: #34445c; }
[data-theme=light] .topnav a:hover { color: var(--navy); }
[data-theme=light] .topnav a.btn-primary { color: var(--accent-ink); }
[data-theme=light] .topbar .btn-ghost-light { border-color: #c4cddb; color: var(--ink); }
[data-theme=light] .topbar .btn-ghost-light:hover { border-color: var(--navy); color: var(--navy); }
[data-theme=light] .nav-user { color: var(--muted); border-left-color: var(--line); }
[data-theme=light] .theme-toggle, [data-theme=light] .nav-toggle { border-color: #c4cddb; color: var(--navy); }
[data-theme=light] .theme-toggle:hover, [data-theme=light] .nav-toggle:hover { border-color: var(--navy); }

[data-theme=light] .hero {
    background: radial-gradient(1200px 500px at 85% -10%, #dbe8fb 0%, transparent 60%), linear-gradient(180deg, #f3f7fd 0%, #e8f0fb 100%);
    color: var(--ink); border-bottom: 1px solid var(--line);
}
[data-theme=light] .hero .eyebrow { color: #b86e00; }
[data-theme=light] .hero .lead { color: #46556b; }
[data-theme=light] .hero .btn-ghost-light { border-color: #c4cddb; color: var(--ink); background: #fff; }
[data-theme=light] .hero .btn-ghost-light:hover { border-color: var(--navy); }
[data-theme=light] .stat { background: #ffffff; border-color: var(--line); box-shadow: var(--shadow); }
[data-theme=light] .stat dt { color: var(--muted); }
[data-theme=light] .stat dd { color: var(--navy); }
[data-theme=light] .hero-check { background: #ffffff; border-color: var(--line); box-shadow: var(--shadow); }
[data-theme=light] .hero-check p { color: var(--muted); }

@media (max-width: 1200px) {
    [data-theme=light] .topbar { background-position: left top; background-size: 100% 60px; }
    [data-theme=light] .topnav a, [data-theme=light] .topbar .topnav .nav-user { border-top-color: var(--line); }
    [data-theme=light] .topnav a.btn { border: 1px solid #c4cddb; }
    [data-theme=light] .topnav a.btn-primary { border-color: var(--accent); }
}
/* Light mode: the "Want a closer look" band and other navy panels turn light too, so the whole site switches. */
[data-theme=light] .partner, [data-theme=light] .install-band {
    background: linear-gradient(120deg, #eef4fc 0%, #e3edfb 100%); color: var(--ink); border: 1px solid var(--line);
}
[data-theme=light] .partner-copy p, [data-theme=light] .install-band p { color: #46556b; }
[data-theme=light] .partner-copy a { color: #1957b8; }
[data-theme=light] .checks li::before { color: #b86e00; }
/* Dark mode: numbered steps stand out on dark cards. */
[data-theme=dark] .step-num { background: var(--accent); color: var(--accent-ink); }
/* ---------- Navigation links: easy to spot, highlighted for the page / section you're on ---------- */
.topnav { gap: 4px 6px; }
.topnav a:not(.btn) {
    padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 1rem; color: #e6eefb;
    transition: background .15s, color .15s, box-shadow .15s;
}
.topnav a:not(.btn):hover { background: rgba(255,255,255,.12); color: #fff; }
.topnav a:not(.btn).active { background: rgba(245,165,36,.18); color: #ffc15c; box-shadow: inset 0 -2px 0 var(--accent); }
.topnav .btn { font-size: .95rem; padding: 8px 14px; }
.topnav .btn.active { box-shadow: 0 0 0 3px rgba(245,165,36,.45); }
[data-theme="light"] .topnav a:not(.btn) { color: #1f2d44; }
[data-theme="light"] .topnav a:not(.btn):hover { background: #eef3fb; color: var(--navy); }
[data-theme="light"] .topnav a:not(.btn).active { background: #fff4dc; color: #8a5a00; box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 1200px) {
    .topnav a:not(.btn) { padding: 12px 10px; border-radius: 0; }
    .topnav a:not(.btn).active { box-shadow: inset 3px 0 0 var(--accent); }
    [data-theme="light"] .topnav a:not(.btn).active { box-shadow: inset 3px 0 0 var(--accent); }
}
/* ---------- State picker (top bar) and state-shaped logos ---------- */
.hero-logo { width: auto; max-width: min(380px, 100%); max-height: 300px; height: auto; }
.auth-logo { width: auto; max-width: 200px; max-height: 120px; height: auto; }
.brand-logo { width: auto; max-width: 140px; object-fit: contain; }
.state-picker { display: flex; align-items: center; gap: 6px; margin: 0; }
.state-picker select {
    width: auto; padding: 7px 10px; font-size: .95rem; font-weight: 600; border-radius: 8px; cursor: pointer;
    background-color: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35);
}
.state-picker select:hover { border-color: #fff; }
.state-picker option { color: #142033; background: #fff; }
[data-theme=light] .state-picker select { background-color: #fff; color: var(--ink); border-color: #c4cddb; }
[data-theme=light] .state-picker select:hover { border-color: var(--navy); }
@media (max-width: 1200px) {
    .brand-logo { max-width: 100px; }
    .state-picker select { padding: 6px 8px; font-size: .9rem; }
}
/* ---------- Fixed logo box: every state logo fits the same space, so the menu never shifts ---------- */
.topbar .brand { flex: none; width: 128px; height: 60px; margin: 4px 0; display: flex; align-items: center; justify-content: center; }
.topbar .brand-logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: 0; object-fit: contain; }
.topbar .state-picker select { width: 140px; }
@media (max-width: 1200px) {
    .topbar .brand { width: 96px; height: 50px; }
    .topbar .state-picker select { width: 122px; }
}
/* ---------- v17: clean navigation bar + "Free revenue check" growth button ---------- */
.topbar, [data-theme=dark] .topbar { background: var(--navy); }
[data-theme=light] .topbar { background: #ffffff; }
@media (max-width: 1200px) { .topbar, [data-theme=light] .topbar { background-image: none; } }

/* Green pill with three rising bars: says "grow your earnings" and leads to the free revenue check. */
.topnav a.grow-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 700;
    background: rgba(61,220,104,.14); border: 1px solid rgba(61,220,104,.55); color: #bbf7d0;
}
.topnav a.grow-btn:hover { background: rgba(61,220,104,.24); border-color: #4ade80; color: #ffffff; }
.topnav a.grow-btn.active { box-shadow: 0 0 0 3px rgba(61,220,104,.35); }
.grow-icon { width: 16px; height: 16px; fill: #4ade80; flex: none; }
.grow-icon rect { transform-box: fill-box; transform-origin: bottom; }
.grow-btn:hover .grow-icon rect { animation: vgp-grow .6s ease-out both; }
.grow-btn:hover .grow-icon rect:nth-child(2) { animation-delay: .08s; }
.grow-btn:hover .grow-icon rect:nth-child(3) { animation-delay: .16s; }
@keyframes vgp-grow { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .grow-btn:hover .grow-icon rect { animation: none; } }
[data-theme=light] .topnav a.grow-btn { background: #e3f6ec; border-color: #7fd3a4; color: #0d5a36; }
[data-theme=light] .topnav a.grow-btn:hover { background: #cdeedb; border-color: #138a52; color: #0a4a2c; }
[data-theme=light] .grow-icon { fill: #138a52; }
@media (max-width: 1200px) {
    .topnav a.grow-btn { justify-content: center; margin-top: 10px; padding: 12px; width: 100%; border-radius: 10px; }
    [data-theme=light] .topnav a.grow-btn { border: 1px solid #7fd3a4; }
}
/* ---------- DK Gaming logo: black lettering in light mode, white lettering in dark mode ---------- */
.logo-for-dark { display: none !important; }
[data-theme=dark] .logo-for-dark { display: block !important; }
[data-theme=dark] .logo-for-light { display: none !important; }
.hero-logo.logo-for-light, .hero-logo.logo-for-dark { margin-left: auto; margin-right: auto; }
.auth-logo.logo-for-light, .auth-logo.logo-for-dark { margin-left: auto; margin-right: auto; }
/* ---------- Illinois gaming numbers page (laid out like the old dkgamingllc.com gaming page) ---------- */
.gaming-summary { font-variant: small-caps; margin: 8px 0 28px; }
.gs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 1.05rem; margin: 0 0 8px; }
.gs-month { width: auto; font-variant: small-caps; font-weight: 800; font-size: 1.05rem; padding: 4px 8px; }
.gs-dash { color: var(--muted); }
.gs-small { color: var(--muted); }
.gs-list { margin: 0; padding-left: 22px; font-size: 1.05rem; line-height: 1.7; }
.gs-list b, .gs-head b { color: var(--ink); font-variant: normal; font-weight: 800; }
.gaming-eval { margin: 0 0 30px; }
.gaming-eval h2 { font-size: 1.3rem; color: var(--good); text-decoration: underline; margin-bottom: 12px; }
.gaming-eval-form { display: flex; gap: 0; max-width: 620px; }
.gaming-eval-form input { flex: 1; min-width: 0; border-radius: 10px 0 0 10px; }
.eval-btn { border-radius: 0 10px 10px 0; background: #7ed321; border-color: #7ed321; color: #fff; text-transform: uppercase; font-size: .85rem; letter-spacing: .5px; padding: 10px 26px; }
.eval-btn:hover { background: #6cbf15; border-color: #6cbf15; color: #fff; }
/* Row above the list: sign-in bubble (left, takes the free width) + "Illinois  25 Per Page" (right, over Earned). */
.gl-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 6px 0 10px; }
.gl-bar > .unlock-bar, .gl-bar > .unlocked-note { flex: 1 1 520px; min-width: 0; margin: 0; }
.gl-top { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; }
.gl-state { font-variant: small-caps; color: var(--muted); }
.gl-per { width: auto; }
table.gaming-list { width: 100%; border-collapse: collapse; font-variant: small-caps; }
table.gaming-list th { text-align: left; vertical-align: bottom; padding: 6px 8px 10px; font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .3px; }
table.gaming-list th input, table.gaming-list th select { margin-top: 6px; font-variant: normal; }
.gl-label { margin-left: 2px; }
table.gaming-list td { padding: 8px; vertical-align: top; border-top: 1px solid #c0392b33; border-left: 1px solid var(--line); }
table.gaming-list td:first-child { border-left: 0; }
table.gaming-list tbody tr:nth-child(even) { background: rgba(127,127,127,.09); }
.gl-dba { font-weight: 700; color: var(--ink); text-decoration: none; }
a.gl-dba:hover { color: #1957b8; text-decoration: underline; }
.gl-legal, .gl-city { padding-left: 14px; color: var(--muted); }
.gl-month { color: var(--muted); }
.gl-amount { font-weight: 800; font-variant: normal; color: var(--good); }
.sort-btn { background: none; border: 0; padding: 0 2px; font: inherit; font-size: .95rem; color: var(--good); cursor: pointer; }
.sort-btn.sorted { color: var(--accent); }
#g-rows { transition: opacity .15s; }
#g-rows.is-loading { opacity: .5; }
.pager .btn:disabled { opacity: .45; cursor: default; }
/* Phones: the column headers become a stack of search boxes, and each location a small card. */
@media (max-width: 760px) {
    table.gaming-list, table.gaming-list thead, table.gaming-list tbody, table.gaming-list tr,
    table.gaming-list th, table.gaming-list td { display: block; width: 100%; }
    table.gaming-list thead tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 8px; }
    table.gaming-list th { padding: 4px 0; }
    table.gaming-list tbody tr { border-top: 1px solid var(--line); padding: 10px 0; }
    table.gaming-list td { border: 0; padding: 1px 0; }
    table.gaming-list td.gl-type { color: var(--muted); }
    table.gaming-list td.gl-earned { display: flex; gap: 8px; align-items: baseline; }
    .gaming-eval-form { flex-direction: column; gap: 8px; }
    .gaming-eval-form input, .eval-btn { border-radius: 10px; }
}/* Prominent "Gaming numbers" link in the navigation */
.topnav a.nav-gaming { color: #ffc15c; font-weight: 800; }
.topnav a.nav-gaming::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: 7px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
[data-theme=light] .topnav a.nav-gaming { color: #8a5a00; }
/* Navigation spacing: keep every link on one line on desktop (the menu button takes over at 1200px and below). */
@media (min-width: 1201px) {
    .topnav { gap: 2px 2px; }
    .topnav a:not(.btn) { padding: 8px 9px; font-size: .95rem; }
    .topnav a.grow-btn { padding: 8px 13px; margin-left: 4px; }
}
/* ---------- Earnings grid that opens under a location (like the old page) ---------- */
button.gl-dba { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; font-variant: small-caps; }
button.gl-dba:hover, .gl-open button.gl-dba { color: #1957b8; text-decoration: underline; }
table.gaming-list tr.gl-open > td { background: rgba(126,211,33,.10); }
tr.gh-row > td { padding: 0 0 14px; border-left: 0; }
.gh-box { background: #d9f7cf; border: 1px solid #b6e3a6; border-radius: 8px; padding: 10px 12px; color: #14301b; font-variant: normal; }
.gh-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: .9rem; }
.gh-lic { font-weight: 700; }
.gh-check { font-size: .85rem; color: #1957b8; }
.gh-op { text-align: right; }
.gh-opnum { font-weight: 700; }
.gh-opname { font-style: italic; font-weight: 700; }
table.gh-grid { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .9rem; }
table.gh-grid th { text-align: left; font-variant: small-caps; font-weight: 800; padding: 4px 6px; border-bottom: 2px solid #8fcf7a; color: #14301b; }
table.gh-grid th.num, table.gh-grid td.num { text-align: right; }
table.gh-grid tbody th { border-bottom: 1px solid #b6e3a6; }
table.gh-grid td { padding: 4px 6px; border-bottom: 1px solid #b6e3a6; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.gh-grid td.gh-total { font-weight: 800; }
[data-theme=dark] .gh-box { background: #12301d; border-color: #1f5a3d; color: #d6f5dc; }
[data-theme=dark] table.gh-grid th { color: #bbf7d0; border-bottom-color: #2f7a4f; }
[data-theme=dark] table.gh-grid td, [data-theme=dark] table.gh-grid tbody th { border-bottom-color: #1f5a3d; }
[data-theme=dark] .gh-check { color: #7fb0ff; }
[data-theme=dark] button.gl-dba:hover, [data-theme=dark] .gl-open button.gl-dba { color: #7fb0ff; }
@media (max-width: 760px) {
    tr.gh-row > td { padding: 4px 0 12px; }
    .gh-op { text-align: left; }
}/* The grid sits inside the location list: undo the list's own table styles for it. */
table.gaming-list table.gh-grid { display: table; width: 100%; }
table.gaming-list table.gh-grid thead { display: table-header-group; }
table.gaming-list table.gh-grid tbody { display: table-row-group; }
table.gaming-list table.gh-grid tr { display: table-row; padding: 0; border: 0; background: transparent; }
table.gaming-list table.gh-grid th, table.gaming-list table.gh-grid td { display: table-cell; width: auto; border-top: 0; border-left: 0; padding: 4px 6px; }
table.gaming-list tbody tr.gh-row { background: transparent; }
@media (max-width: 760px) {
    table.gaming-list tbody tr.gh-row { border-top: 0; padding: 0 0 12px; }
    table.gaming-list table.gh-grid { min-width: 860px; }
}
/* ---------- Gaming numbers: email sign-in to see the amounts ---------- */
.unlock-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; background: #fff4dc; border: 1px solid #f3dca6; border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 12px; }
.unlock-bar .alert { grid-column: 1 / -1; margin: 0; }
.unlock-text { color: #5c3d00; }
.unlock-form { display: flex; gap: 8px; }
.unlock-form input { width: 240px; }
.unlock-alt { grid-column: 1 / -1; margin: 0; color: #5c3d00; }
.xxx { font-weight: 800; letter-spacing: 1px; color: var(--muted); text-decoration: none; font-variant: normal; }
a.xxx:hover { color: #b86e00; text-decoration: underline; }
.unlocked-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--good); margin: 4px 0 10px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #1957b8; text-decoration: underline; cursor: pointer; }
[data-theme=dark] .unlock-bar { background: #2b230f; border-color: #5c4614; }
[data-theme=dark] .unlock-text, [data-theme=dark] .unlock-alt { color: #f3d9a4; }
[data-theme=dark] .link-btn { color: #7fb0ff; }
/* Narrower Earned column, so the address column has room for its search box */
table.gaming-list th.gl-earned-col { width: 118px; }
table.gaming-list th.gl-earned-col input { width: 100px; }
.gl-addr-search { margin-top: 6px; }
@media (max-width: 760px) {
    .unlock-bar { grid-template-columns: 1fr; }
    .unlock-form { flex-direction: column; }
    .unlock-form input { width: 100%; }
    table.gaming-list th.gl-earned-col, table.gaming-list th.gl-earned-col input { width: 100%; }
}
/* ---------- Before signing in: red "click here" arrow and "Sign in to see #'s" ---------- */
.gl-arrow {
    display: inline-flex; align-items: center; gap: 5px; margin: 0 8px 4px 0; padding: 3px 10px 3px 6px;
    background: #d62828; color: #fff; border: 0; border-radius: 999px; font: inherit; font-size: .78rem; font-weight: 800;
    font-variant: normal; text-transform: uppercase; letter-spacing: .4px; cursor: pointer; vertical-align: middle;
    box-shadow: 0 0 0 0 rgba(214,40,40,.6); animation: vgp-pulse 1.8s ease-out infinite;
}
.gl-arrow:hover { background: #b51f1f; }
.gl-arrow-icon { display: inline-block; font-size: 1rem; animation: vgp-nudge 1s ease-in-out infinite; }
@keyframes vgp-pulse { 0% { box-shadow: 0 0 0 0 rgba(214,40,40,.55); } 70% { box-shadow: 0 0 0 9px rgba(214,40,40,0); } 100% { box-shadow: 0 0 0 0 rgba(214,40,40,0); } }
@keyframes vgp-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .gl-arrow, .gl-arrow-icon { animation: none; } }
.gh-signin { display: inline-block; background: #d62828; color: #fff !important; font-weight: 800; padding: 6px 14px; border-radius: 8px; text-decoration: none; }
.gh-signin:hover { background: #b51f1f; }
.xxx { white-space: nowrap; letter-spacing: 0; }
table.gh-grid td .xxx { font-size: .85rem; }/* Keep the list's columns fixed so a wide earnings grid scrolls inside its own box instead of widening the page. */
@media (min-width: 761px) {
    table.gaming-list { table-layout: fixed; }
    table.gaming-list .gh-box { overflow: hidden; }
}
table.gh-grid td .xxx { font-size: .78rem; }
/* Signed in with a confirmed email: "Locations" link (full numbers) */
.topnav a.nav-unlocked::before { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.35); }/* Long email addresses in the navigation are shortened with "..." (the full address shows on hover). */
@media (min-width: 1201px) {
    .topnav .nav-user { display: inline-block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; padding-left: 10px; }
}
/* ---------- Sign-in form inside an opened grid (before signing in) ---------- */
.gh-signin-box {
    position: relative; overflow: hidden; margin: 0 0 12px; padding: 18px 16px 14px; border-radius: 10px;
    background: #fff; border: 2px solid #d62828; text-align: center; isolation: isolate;
}
.gh-signin-box::before {   /* "Enter email to see numbers" written large and faint behind the form */
    content: attr(data-watermark); position: absolute; inset: 0; z-index: -1; display: flex; align-items: center; justify-content: center;
    font-size: clamp(1.4rem, 4vw, 2.6rem); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; line-height: 1.1;
    color: rgba(214,40,40,.10); transform: rotate(-4deg); white-space: nowrap; pointer-events: none;
}
.gh-signin-title { margin: 0 0 10px; font-weight: 900; font-size: 1.15rem; color: #d62828; }
.gh-signin-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.gh-signin-form input[type=email] { width: 280px; max-width: 100%; background: rgba(255,255,255,.85); }
.gh-signin-note { margin: 8px 0 0; font-size: .82rem; color: #5d6b80; }
[data-theme=dark] .gh-signin-box { background: #142236; }
[data-theme=dark] .gh-signin-box::before { color: rgba(255,120,120,.12); }
[data-theme=dark] .gh-signin-form input[type=email] { background: rgba(15,27,44,.9); }
[data-theme=dark] .gh-signin-note { color: #9aa8bd; }
@media (max-width: 760px) {
    .gh-signin-form { flex-direction: column; }
    .gh-signin-form input[type=email] { width: 100%; }
}
/* ---------- v27: five search columns (label, then sort arrow + search box), like the old page ---------- */
table.gaming-list thead tr.gl-labels th {
    font-variant: small-caps; color: #1e5b2e; font-size: .9rem; font-weight: 800; letter-spacing: .3px;
    padding: 6px 8px 4px; vertical-align: bottom; border: 0;
}
table.gaming-list thead tr.gl-searches td { padding: 2px 8px 12px; border: 0; background: transparent; vertical-align: top; }
.gl-search { display: flex; align-items: center; gap: 6px; }
.gl-search input, .gl-search select { flex: 1; min-width: 0; margin: 0; font-variant: normal; }
.gl-search .sort-btn { flex: none; color: #1e5b2e; font-size: 1rem; }
.gl-search .sort-btn.sorted { color: var(--accent); }
.sort-btn.is-off { opacity: .3; cursor: default; }
.gl-search input:disabled { background: #f1f3f7; cursor: not-allowed; }
table.gaming-list td.gl-addr, table.gaming-list td.gl-city { color: var(--ink); }
[data-theme=dark] table.gaming-list thead tr.gl-labels th { color: #8fd4a0; }
[data-theme=dark] .gl-search .sort-btn { color: #8fd4a0; }
[data-theme=dark] .gl-search input:disabled { background: #0d1726; }
@media (min-width: 761px) {
    table.gaming-list > thead > tr.gl-labels > th:nth-child(1) { width: 30%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(2) { width: 20%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(3) { width: 17%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(4) { width: 15%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(5) { width: auto; }
}
@media (max-width: 760px) {
    table.gaming-list thead tr.gl-labels { display: none; }
    table.gaming-list thead tr.gl-searches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 8px; }
    table.gaming-list thead tr.gl-searches td { padding: 0; }
    table.gaming-list td.gl-addr, table.gaming-list td.gl-city { display: inline; width: auto; color: var(--muted); }
    table.gaming-list td.gl-addr:not(:empty)::after { content: ","; }   /* v53: comma ends the street line, never starts the city line */
}
/* ---------- Back to top arrow (includes/footer.php, js/site.js) ---------- */
.to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 50;
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: var(--accent-ink);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    text-decoration: none; transition: transform .15s, background .15s;
}
.to-top:hover, .to-top:focus-visible { background: #ffb53d; color: var(--accent-ink); transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 2px; }
[data-theme=dark] .to-top, [data-theme=dark] .to-top:hover { color: var(--accent-ink); }
@media print { .to-top { display: none !important; } }

/* ---------- Continue with Google / Microsoft / Facebook (includes/social-buttons.php) ---------- */
.social-buttons { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    background: #fff; color: #1f1f1f; border: 1px solid #c9d1dd; font-weight: 600; text-decoration: none; }
.social-btn:hover, .social-btn:focus-visible { background: #f3f6fa; color: #1f1f1f; border-color: #9aa8bd; }
.social-btn svg { flex: 0 0 auto; }
[data-theme=dark] .social-btn { background: #fff; color: #1f1f1f; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 4px 0 12px; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
/* Inside the yellow "Sign in to see #'s" bubble on the gaming page: the buttons sit in a row. */
.unlock-social { grid-column: 1 / -1; }
.unlock-social .social-buttons { flex-direction: row; flex-wrap: wrap; margin: 0; }
.unlock-social .social-btn { width: auto; flex: 1 1 200px; }

/* ---------- "An Illinois licensed terminal operator" under the DK Gaming logo (home page, sign-in) ---------- */
.logo-tagline { text-align: center; margin: -8px 0 18px; font-weight: 700; letter-spacing: .3px; color: #c7d5ea; }
[data-theme=light] .logo-tagline { color: var(--navy); }
.auth-card .logo-tagline, [data-theme=light] .auth-card .logo-tagline { color: var(--muted); margin: -4px 0 14px; font-size: .95rem; }
/* "Need help getting a gaming license? Click here for help" box in the home page hero */
.stat-help dd { font-size: 1.15rem; }
.stat-help dd a { color: var(--accent); }
[data-theme=light] .stat-help dd a { color: #1957b8; }

/* ---------- Signed in: "See every month" button under each location name (js/gaming.js) ---------- */
button.gl-dba.gl-dba-link { color: #1957b8; text-decoration: underline; text-underline-offset: 3px; }
[data-theme=dark] button.gl-dba.gl-dba-link { color: #7fb0ff; }
.gl-stats-btn { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 5px 12px; white-space: nowrap;
    border: 0; border-radius: 999px; background: var(--good); color: #fff; font: inherit; font-size: .88rem; font-weight: 700;
    cursor: pointer; box-shadow: 0 2px 6px rgba(19, 138, 82, .35); transition: background .15s, transform .15s; }
.gl-stats-btn:hover, .gl-stats-btn:focus-visible { background: #0f6f42; transform: translateY(-1px); }
.gl-stats-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gl-open .gl-stats-btn { background: #0b5e37; }
.gl-stats-icon { font-size: 1rem; line-height: 1; }

/* Signed in on IL gaming numbers: Previous / page count / Next at the top right (instead of Illinois / Per Page). */
.gl-pager-top { margin-left: auto; padding: 0; justify-content: flex-end; gap: 12px; }

/* ---------- Admin dashboard, locations, CRM (admin/*.php) ---------- */
.admin-tabs { align-self: flex-end; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
a.kpi-link { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.kpi-link:hover, a.kpi-link:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.admin-filters { align-items: center; }
.admin-filters .btn { flex: 0 0 auto; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.check-inline input { width: auto; margin: 0; }
.admin-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-two-col { grid-template-columns: 1.15fr 1fr; }
.crm-list { list-style: none; margin: 0; padding: 0; }
.crm-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.crm-list li:last-child { border-bottom: 0; }
.crm-note { margin: 4px 0 2px; white-space: normal; }
.crm-stage { margin-bottom: 14px; }
.crm-stage select { flex: 0 1 220px; }
.crm-note-form { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 8px; }
.crm-note-form textarea { width: 100%; }
.crm-add-contact { margin-top: 12px; }
.crm-add-contact summary { cursor: pointer; font-weight: 700; color: #1957b8; margin-bottom: 10px; }
.lead-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.lead-form select, .lead-form input { width: auto; padding: 6px 8px; }
.lead-form input { width: 110px; }
@media (max-width: 960px) { .admin-two-col { grid-template-columns: 1fr; } }

/* v50: portal buttons on the admin dashboard */
.admin-portals { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }

/* ---------- v51: on / off switches (Admin > Permissions, Accounts) ---------- */
.toggle-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .85rem; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.toggle-track { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #c5cedb; transition: background .15s; flex: 0 0 auto; }
.toggle-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.toggle input:checked + .toggle-track { background: #16a34a; }
.toggle input:checked + .toggle-track .toggle-knob { transform: translateX(20px); }
.toggle input:focus-visible + .toggle-track { outline: 3px solid var(--accent); outline-offset: 2px; }
.toggle input:disabled + .toggle-track { opacity: .5; cursor: not-allowed; }
.toggle-state { min-width: 2em; color: var(--muted); }
.toggle input:checked ~ .toggle-state { color: #15803d; }
.perm-table td, .perm-table th { vertical-align: middle; }
.perm-col { text-align: center; white-space: nowrap; }
.perm-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.perm-row:last-of-type { border-bottom: 0; }
.btn-link { background: none; border: 0; padding: 0 0 0 6px; color: #1957b8; text-decoration: underline; cursor: pointer; font: inherit; }
.tab-badge { display: inline-block; min-width: 1.4em; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .75rem; text-align: center; }
details > summary.details-head { cursor: pointer; list-style: none; }
details > summary.details-head h2 { display: inline; }
details > summary.details-head::before { content: "+ "; font-weight: 700; color: #1957b8; }
details[open] > summary.details-head::before { content: "âˆ’ "; }

/* ---------- v51: location owner sign-up (claim.php, Admin > Owner sign-ups) ---------- */
.claim-wrap { max-width: 760px; margin: 0 auto; }
.claim-loc { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 16px; background: #f6f8fc; }
.claim-search { display: flex; gap: 8px; margin: 12px 0; }
.claim-search input { flex: 1 1 auto; }
.claim-results { list-style: none; margin: 0 0 12px; padding: 0; }
.claim-results li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.claim-proof-head { margin-top: 8px; font-size: 1.1rem; }
.claim-views { margin-bottom: 14px; }
.claim-howto { margin: 0; padding-left: 1.2em; }
.claim-howto li { margin: 4px 0; }
.claim-compare th { width: 110px; }
.claim-code-box { display: grid; gap: 6px; }
.claim-code { font-size: 2rem; font-weight: 800; letter-spacing: .15em; font-family: ui-monospace, Consolas, monospace; }
.claim-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.claim-actions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.claim-decide input[name=note] { flex: 1 1 260px; width: auto; }
@media (max-width: 600px) { .claim-results li, .perm-row { flex-direction: column; align-items: flex-start; } }
[data-theme=dark] .claim-loc { background: #101d30; }
[data-theme=dark] .toggle-track { background: #3a4a63; }
[data-theme=dark] .btn-link, [data-theme=dark] details > summary.details-head::before { color: #8fb8ff; }

/* ---------- v52: location owners (Admin > Location) ---------- */
.owner-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.owner-acct { flex: 0 0 auto; }
.owner-edit { margin-top: 6px; }
.owner-edit summary { cursor: pointer; color: #1957b8; display: inline-block; }
.owner-edit form { margin-top: 10px; }
.owner-remove { margin-top: 6px; }
.owner-hidden { opacity: .6; }
[data-theme=dark] .owner-edit summary { color: #8fb8ff; }
@media (max-width: 600px) { .owner-row { flex-direction: column; } }

/* ---------- v55: dashboards for each kind of sign-in (dash/*.php, includes/dash.php) ---------- */
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dash-tile {
    display: flex; flex-direction: column; gap: 4px; min-height: 104px; padding: 14px 16px; text-decoration: none; color: var(--ink);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    transition: border-color .15s, transform .15s;
}
a.dash-tile:hover, a.dash-tile:focus-visible { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.dash-tile b { font-size: 1rem; }
.dash-tile small { color: var(--muted); font-size: .86rem; }
.dash-tile.is-pro { border-style: dashed; }
.pro-tag { display: inline-block; vertical-align: middle; padding: 1px 7px; border-radius: 999px; background: #7c3aed; color: #fff;
    font-size: .66rem; font-weight: 800; letter-spacing: .5px; line-height: 1.5; }
.pro-tag-lg { font-size: .78rem; padding: 3px 12px; margin-bottom: 10px; text-transform: uppercase; }
.pro-price { font-size: 2rem; font-weight: 900; margin: 10px 0 2px; }
.pro-price small { font-size: 1rem; font-weight: 600; }
.dash-note { margin-top: 10px; }
.viewas-bar { background: #fff4dc; border-bottom: 1px solid #f3dca6; color: #5c3d00; font-size: .92rem; }
.viewas-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
.viewas-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.topnav a.nav-viewas { color: #ffc15c; }
.viewas-card label { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.viewas-card .btn { margin-top: auto; align-self: flex-start; }
.viewas-card { gap: 6px; min-height: 150px; }
.viewas-card.is-picked { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,165,36,.35); }
[data-theme=dark] .pro-tag { background: #8b5cf6; }
[data-theme=dark] .viewas-bar { background: #2b230f; border-color: #5c4614; color: #f3d9a4; }
[data-theme=light] .topnav a.nav-viewas { color: #8a5a00; }
@media (max-width: 640px) {
    .dash-tiles { grid-template-columns: 1fr; }
    .dash-tile { min-height: 0; }
    .viewas-actions { width: 100%; }
    .viewas-actions .btn, .viewas-actions .inline-form { flex: 1 1 auto; }
    .viewas-actions .inline-form .btn { width: 100%; }
}

/* ---------- v56: dashboard menu: main items in the top bar, sub-items in dropdowns ---------- */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-caret, .nav-user-btn {
    display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
    color: #e6eefb; font: inherit; font-weight: 600; border-radius: 8px;
}
.nav-caret { padding: 8px 6px; margin-left: -8px; }
.nav-caret svg, .nav-user-btn svg { width: 14px; height: 14px; transition: transform .15s; flex: none; }
.nav-item.open > .nav-caret svg, .nav-item.open > .nav-user-btn svg { transform: rotate(180deg); }
.nav-caret:hover, .nav-user-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-user-btn { gap: 6px; padding: 8px 10px; font-size: .95rem; }
.nav-user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subnav {
    display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 230px; padding: 6px; flex-direction: column; gap: 2px;
    background: var(--navy-2); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.subnav-right { left: auto; right: 0; }
.nav-item.open > .subnav { display: flex; }
@media (hover: hover) and (min-width: 1201px) {
    .nav-item:hover > .subnav, .nav-item:focus-within > .subnav { display: flex; }
}
.topnav .subnav a:not(.btn) { padding: 9px 12px; font-size: .95rem; white-space: nowrap; border-radius: 8px; }
.subnav-note { padding: 6px 12px 8px; font-size: .8rem; color: #9fb3d1; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 4px; overflow-wrap: anywhere; }
.subnav-form { margin: 0; }
.subnav-btn { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px;
    font: inherit; font-weight: 600; font-size: .95rem; color: #e6eefb; cursor: pointer; }
.subnav-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.topnav .nav-item.is-current > a:not(.btn) { background: rgba(245,165,36,.18); color: #ffc15c; box-shadow: inset 0 -2px 0 var(--accent); }
[data-theme=light] .nav-caret, [data-theme=light] .nav-user-btn, [data-theme=light] .subnav-btn { color: #1f2d44; }
[data-theme=light] .nav-caret:hover, [data-theme=light] .nav-user-btn:hover, [data-theme=light] .subnav-btn:hover { background: #eef3fb; color: var(--navy); }
[data-theme=light] .subnav { background: #fff; border-color: var(--line); box-shadow: 0 14px 34px rgba(16,31,58,.16); }
[data-theme=light] .subnav-note { color: var(--muted); border-bottom-color: var(--line); }
[data-theme="light"] .topnav .nav-item.is-current > a:not(.btn) { background: #fff4dc; color: #8a5a00; }
/* Phones and tablets: everything is in the â˜° menu; each dropdown opens with its arrow, under its main item. */
@media (max-width: 1200px) {
    .nav-item { display: flex; flex-wrap: wrap; width: 100%; border-top: 1px solid rgba(255,255,255,.1); }
    .nav-item > a:not(.btn) { flex: 1 1 auto; border-top: 0; }
    .nav-caret { margin: 0; padding: 0 16px; border-radius: 0; border-left: 1px solid rgba(255,255,255,.1); }
    .nav-caret svg { width: 18px; height: 18px; }
    .nav-user-btn { flex: 1 1 auto; justify-content: space-between; padding: 12px 10px; border-radius: 0; font-size: 1rem; }
    .nav-user-name { max-width: none; }
    .subnav, .subnav-right { position: static; width: 100%; min-width: 0; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 6px; background: rgba(255,255,255,.05); }
    .topnav .subnav a:not(.btn) { padding: 11px 10px 11px 28px; border-top: 0; white-space: normal; }
    .subnav-note { padding: 8px 10px 8px 28px; }
    .subnav-btn { padding: 11px 10px 11px 28px; border-radius: 0; font-size: 1rem; }
    .topnav .nav-item.is-current > a:not(.btn) { box-shadow: inset 3px 0 0 var(--accent); }
    [data-theme=light] .nav-item { border-top-color: var(--line); }
    [data-theme=light] .nav-caret { border-left-color: var(--line); }
    [data-theme=light] .subnav, [data-theme=light] .subnav-right { background: #f5f8fc; box-shadow: none; }
    [data-theme="light"] .topnav .nav-item.is-current > a:not(.btn) { box-shadow: inset 3px 0 0 var(--accent); }
}

/* ---------- v58: one location's pages under Admin (admin/loc/*.php, includes/locpages.php) ---------- */
.nav-loc-pin { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; }
@media (min-width: 1201px) {
    .subnav-cols { display: none; grid-template-columns: 1fr 1fr; min-width: 420px; }
    .nav-item.open > .subnav-cols { display: grid; }
}
@media (hover: hover) and (min-width: 1201px) {
    .nav-item:hover > .subnav-cols, .nav-item:focus-within > .subnav-cols { display: grid; }
}
.topnav .subnav a.active { background: rgba(245,165,36,.18); color: #ffc15c; }
[data-theme=light] .topnav .subnav a.active { background: #fff4dc; color: #8a5a00; }
.loc-head { margin-bottom: 18px; }
.loc-head h1 { margin-bottom: .2rem; }
.loc-head-name { color: var(--muted); font-weight: 600; font-size: .7em; }
.loc-head p { margin: 0; }
.loc-progress { width: 100%; height: 10px; margin: 4px 0 14px; accent-color: var(--good); }
.timeline-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.timeline-step { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; border-left: 4px solid var(--bad); }
.timeline-step.is-done { border-left-color: var(--good); }
.tl-strip { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.tl-strip li { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); }
.tl-strip li.is-done { background: var(--good-bg); color: var(--good); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { font-size: .75rem; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-day { min-height: 72px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 2px; font-size: .78rem; overflow: hidden; }
.cal-day.is-empty { border: 0; }
.cal-day.is-quiet { opacity: .55; }
.cal-num { font-weight: 800; font-size: .85rem; }
.cal-g { color: var(--good); font-weight: 700; }
.cal-b { color: #1957b8; }
.note-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.note-reply { margin: 6px 0 0 14px; padding-left: 10px; border-left: 2px solid var(--line); }
.note-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.note-reply-form summary { cursor: pointer; color: #1957b8; }
.note-reply-form form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; min-width: 240px; }
.crm-list li.is-picked { background: #fff8ea; border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.link-list { margin: 0; padding-left: 18px; }
.link-list li { margin: 5px 0; }
.doc-list li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.doc-upload { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 10px; }
.igb-links { margin-bottom: 16px; }
.total-row td { border-top: 2px solid var(--line); }
.deposit-table input { width: 110px; text-align: right; padding: 6px 8px; }
[data-theme=dark] .cal-b, [data-theme=dark] .note-reply-form summary { color: #7fb0ff; }
[data-theme=dark] .crm-list li.is-picked { background: #2b230f; }
@media (max-width: 640px) {
    .cal { gap: 2px; }
    .cal-day { min-height: 54px; padding: 3px; font-size: .68rem; }
    .deposit-table input { width: 80px; }
}

/* ---------- v59: Admin > Locations live search; divider in the right-hand menu ---------- */
.loc-search-ticks { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 12px; }
.loc-search-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.loc-search-grid input, .loc-search-grid select { padding: 8px 10px; }
.loc-search-buttons { display: flex; gap: 8px; align-items: center; }
#loc-results { transition: opacity .15s; }
#loc-results.is-loading { opacity: .55; }
.subnav-sep { display: block; height: 1px; margin: 4px 6px; background: rgba(255,255,255,.14); }
[data-theme=light] .subnav-sep { background: var(--line); }
@media (max-width: 960px) { .loc-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .loc-search-grid { grid-template-columns: 1fr; } }

/* ---------- v66: Admin > Locations: sort arrows, "All locations" list in the old site's look ---------- */
.th-sort { color: inherit; text-decoration: none; white-space: nowrap; }
.th-sort:hover { color: var(--ink); }
.th-arrow { color: var(--good); font-size: .85em; }
.th-sort.is-on .th-arrow { color: var(--accent); }
table.loc-list { font-variant: small-caps; }
table.loc-list td { vertical-align: top; }
table.loc-list .loc-list-name { font-weight: 700; color: var(--ink); text-decoration: none; }
table.loc-list .loc-list-name:hover { color: #1957b8; text-decoration: underline; }
.loc-list-sub { padding-left: 14px; color: var(--muted); }
.loc-list-op { font-style: italic; font-size: .85rem; color: var(--muted); }
tr[data-href] { cursor: pointer; }
/* v68: search box = two lines: tick boxes (+ per page and Clear on the right), then the searches */
.loc-search-ticks { align-items: center; }
.loc-search-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.loc-search-right select { width: auto; padding: 7px 10px; }
.loc-search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.loc-search-row input, .loc-search-row select { flex: 1 1 130px; width: auto; min-width: 0; padding: 8px 10px; }
.loc-search-row .grow-2 { flex: 2 1 220px; }
@media (max-width: 640px) {
    .loc-search-right { margin-left: 0; width: 100%; }
    .loc-search-right select { flex: 1 1 auto; }
    /* v69: two per line (name search full width), so the results start sooner */
    .loc-search-row { gap: 8px; }
    .loc-search-row input, .loc-search-row select { flex: 1 1 calc(50% - 4px); padding: 8px; font-size: 16px; }
    .loc-search-row .grow-2 { flex: 1 1 100%; }
    .loc-search-ticks { gap: 6px; }
    .loc-search-ticks .check { padding: 6px 10px; font-size: .85rem; }
    .loc-search .card, .card.loc-search { padding: 12px; }
}
.kpi-value.small-value { font-size: 1.15rem; }
[data-theme=dark] table.loc-list .loc-list-name:hover { color: #7fb0ff; }

/* ---------- v69: phones ---------- */
@media (max-width: 640px) {
    /* Sortable lists: the column headers stay, as a row of sort buttons above the cards. */
    table.data.is-stacked.sortable thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; margin: 0 0 10px; }
    table.data.is-stacked.sortable thead tr { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; background: none; }
    table.data.is-stacked.sortable thead th { display: block; padding: 0; border: 0; text-transform: none; letter-spacing: 0; font-variant: normal; }
    table.data.is-stacked.sortable thead th:empty { display: none; }
    table.data.is-stacked.sortable .th-sort { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid var(--line);
        border-radius: 999px; background: var(--card); font-size: .8rem; font-weight: 700; color: var(--ink); }
    table.data.is-stacked.sortable .th-sort.is-on { border-color: var(--accent); background: #fff8ea; }
    [data-theme=dark] table.data.is-stacked.sortable .th-sort.is-on { background: #2b230f; }
    /* "All locations" cards: name on top, the rest underneath without the indents. */
    table.loc-list.is-stacked .loc-list-sub { padding-left: 0; }
    table.loc-list.is-stacked td.num { text-align: left; }
    /* Page heads: the list tabs and buttons go full width under the title. */
    .page-head .tabs { width: 100%; }
    .page-head .tabs .tab { flex: 1 1 auto; text-align: center; }
    .loc-head h1 { font-size: 1.45rem; }
    .loc-head-name { display: block; font-size: .8em; margin-top: 2px; }
    /* Location pages */
    .kpi-value.small-value { font-size: 1rem; }
    .timeline-grid { grid-template-columns: 1fr 1fr; }
    .tl-strip { grid-template-columns: 1fr 1fr; }
    .igb-links .btn { flex: 1 1 45%; }
    .note-top { flex-direction: column; gap: 6px; }
    .viewas-inner { font-size: .85rem; }
}
@media (max-width: 380px) {
    .timeline-grid, .tl-strip { grid-template-columns: 1fr; }
}

/* ---------- v69: Get the app (app.php) ---------- */
.app-page { max-width: 860px; margin: 0 auto; }
.app-hero { display: flex; gap: 22px; align-items: flex-start; }
.app-hero-icon { flex: none; width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.app-status { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 6px; }
.app-status .alert { margin: 0; }
.app-install-btn { font-size: 1.05rem; padding: 12px 22px; }
.app-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.app-steps ol { margin: 0; padding-left: 20px; }
.app-steps li { margin: 6px 0; }
.app-steps .is-yours { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,165,36,.25); }
.app-glyph { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font-size: .85em; }
@media (max-width: 640px) {
    .app-hero { flex-direction: column; align-items: center; text-align: center; }
    .app-status { align-items: stretch; }
    .app-install-btn { width: 100%; }
}

/* ---------- v70: "Get the app" button in the top bar ---------- */
.app-get-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .92rem; text-decoration: none; white-space: nowrap;
    box-shadow: 0 0 0 0 rgba(245,165,36,.55); animation: app-get-pulse 2.6s ease-out 3;
}
.app-get-btn:hover, .app-get-btn:focus-visible { background: #ffb53d; color: var(--accent-ink); }
.app-get-btn svg { width: 18px; height: 18px; flex: none; }
[data-theme=dark] .app-get-btn, [data-theme=light] .app-get-btn { color: var(--accent-ink); }
@keyframes app-get-pulse { 0% { box-shadow: 0 0 0 0 rgba(245,165,36,.55); } 70% { box-shadow: 0 0 0 10px rgba(245,165,36,0); } 100% { box-shadow: 0 0 0 0 rgba(245,165,36,0); } }
@media (prefers-reduced-motion: reduce) { .app-get-btn { animation: none; } }
@media (display-mode: standalone) { .app-get-btn { display: none; } }   /* already in the app */
.app-get-btn[hidden] { display: none; }
@media (max-width: 640px) {
    .app-get-btn { width: 38px; padding: 0; justify-content: center; }   /* phones: just the icon */
    .app-get-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    /* Keep logo, state, app, theme and menu on ONE line on phones */
    .topbar-inner { gap: 6px; }
    .topbar .brand { width: 84px; height: 46px; }
    .topbar .state-picker select { width: 98px; padding: 6px 6px; font-size: 16px; }
    .topbar-tools { gap: 6px; flex: none; }
    .app-get-btn, .theme-toggle { width: 34px; height: 34px; }
    .nav-toggle { width: 38px; height: 38px; }
}
@media (max-width: 640px) {
    /* the menu drops below the bar when opened; logo, state and buttons stay on the first line */
    .topbar-inner { row-gap: 0; }
    .topbar-inner > .brand, .topbar-inner > .state-picker, .topbar-inner > .topbar-tools { flex-shrink: 0; }
}
@media (max-width: 350px) {
    .topbar .state-picker select { width: 82px; }
    .theme-toggle { display: none; }   /* very narrow phones: light / dark follows the phone's own setting */
}

/* ---------- v70: install popup (includes/footer.php) ---------- */
.install-sheet { position: fixed; inset: 0; z-index: 100; background: rgba(5,12,24,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.install-sheet[hidden] { display: none; }
.install-card { position: relative; width: 100%; max-width: 440px; background: var(--card); color: var(--ink); border-radius: 18px; padding: 22px 22px 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.install-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.install-close:hover { background: var(--bg); }
.install-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-right: 30px; }
.install-head img { border-radius: 13px; flex: none; }
.install-head h2 { margin: 0; font-size: 1.2rem; }
.install-steps { margin: 0 0 10px; padding-left: 22px; }
.install-steps li { margin: 10px 0; }
div.install-steps { padding-left: 0; }
.install-steps[hidden] { display: none; }
.install-share { width: 22px; height: 22px; vertical-align: -5px; color: #1a73e8; }
.install-foot { margin: 6px 0 0; }
@media (max-width: 640px) {
    /* phones: a sheet at the bottom of the screen, near the browser's buttons */
    .install-sheet { align-items: flex-end; padding: 0; }
    .install-card { max-width: none; border-radius: 18px 18px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* ---------- v53: mobile ready ---------- */
/* Grid and flex boxes may shrink below their content (a wide table or a long email no longer widens the page). */
.two-col > *, .admin-two-col > *, .kpis > *, .kpi-stack > *, .field-grid > *, .search-fields > *, .trend-stats > *,
.owner-row > :first-child, .claim-results li > :first-child, .perm-row > :first-child { min-width: 0; }
.card, .claim-loc, .alert { overflow-wrap: break-word; }
.earnings .filters select { min-width: min(260px, 100%); }

@media (max-width: 760px) {
    /* 16px text in form fields: iPhones zoom the whole page in when you tap a smaller one. */
    input, select, textarea { font-size: 16px; }
    /* The month-by-month grid under a location scrolls sideways inside its own box. */
    .gh-box { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 640px) {
    /* Bigger tap targets */
    .btn-sm { padding: 9px 14px; }
    .tab { padding: 9px 14px; }
    .tabs { width: 100%; }
    .admin-tabs { align-self: stretch; }
    .page-head { align-items: stretch; }
    .head-actions .btn, .admin-portals .btn { flex: 1 1 auto; }
    .filters .btn, .admin-filters .btn { flex: 1 1 auto; }
    .claim-search { flex-direction: column; }
    .pager { gap: 10px; flex-wrap: wrap; }
    .to-top { right: 12px; bottom: 12px; }

    /* List tables become one card per row (js/site.js labels each cell with its column name). */
    .table-wrap:has(> table.is-stacked) { overflow: visible; margin: 0; }
    table.data.is-stacked { display: block; min-width: 0; font-size: .95rem; }
    table.data.is-stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    table.data.is-stacked tbody, table.data.is-stacked tr { display: block; }
    table.data.is-stacked tr { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; background: var(--card); }
    table.data.is-stacked tbody tr:hover { background: var(--card); }
    table.data.is-stacked td, table.data.is-stacked tbody th {
        display: block; border: 0; padding: 4px 0; text-align: left; white-space: normal; overflow-wrap: anywhere;
    }
    table.data.is-stacked td:empty { display: none; }
    /* Column name on the left 40% (grows to two lines when it's long), the value on the right. */
    table.data.is-stacked td[data-label] { padding-left: 40%; }
    table.data.is-stacked td[data-label]::before {
        content: attr(data-label); display: inline-block; vertical-align: top; box-sizing: border-box;
        width: 66.667%; margin-left: -66.667%; padding: .2em 10px 0 0;
        font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; line-height: 1.5;
        color: var(--muted); overflow-wrap: break-word; white-space: normal;
    }
    /* The first cell is the card's title: full width, no label. */
    table.data.is-stacked tr > :first-child { padding: 0 0 6px; font-size: 1rem; }
    table.data.is-stacked tr > td:first-child[data-label] { padding-left: 0; }
    table.data.is-stacked tr > td:first-child[data-label]::before { display: none; }
    table.data.is-stacked tbody th { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 700; }
    /* Buttons (cells without a column name) sit full width at the bottom of the card. */
    table.data.is-stacked td:not([data-label]):not(:first-child) { padding-top: 8px; }
    table.data.is-stacked .row-actions { white-space: normal; }
    table.data.is-stacked td.us { border-left: 0; border-radius: 6px; padding-right: 6px; }
}

/* v72: website requests - received date / time / day, and the Delete button */
.lead-when { white-space: nowrap; line-height: 1.45; }
.lead-delete { margin: 8px 0 0; }


/* v73: home page, other states: gaming law status + Notify me */
.law-card { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: start; }
.law-copy h2 { margin: 4px 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.law-link { font-weight: 700; overflow-wrap: anywhere; }
.law-notify { border-left: 1px solid var(--line); padding-left: 28px; }
.law-notify h3 { margin: 0 0 6px; }
.law-form { display: flex; gap: 8px; margin: 10px 0 6px; }
.law-form input[type=email] { flex: 1 1 auto; min-width: 0; }
@media (max-width: 760px) {
    .law-card { grid-template-columns: 1fr; gap: 18px; }
    .law-notify { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}
@media (max-width: 420px) {
    .law-form { flex-direction: column; }
}
.law-form .btn { white-space: nowrap; flex: 0 0 auto; }

/* ---------- v74: state picker with small logos (includes/header.php) ---------- */
.state-picker { position: relative; display: block; }
.state-picker > summary {
    list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 140px;
    padding: 4px 10px 4px 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08);
    color: #fff; font-weight: 600; font-size: .95rem; white-space: nowrap; user-select: none;
}
.state-picker > summary::-webkit-details-marker { display: none; }
.state-picker > summary:hover { border-color: #fff; }
.state-pick-logo { display: block; height: 30px; width: auto; max-width: 44px; object-fit: contain; flex: none; }
.state-pick-name { flex: 1 1 auto; }
.state-pick-chev { width: 14px; height: 14px; flex: none; transition: transform .15s; }
.state-picker[open] .state-pick-chev { transform: rotate(180deg); }
.state-pick-list {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 230px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
    background: var(--navy-2); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.state-pick-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: #e6eefb; text-decoration: none; font-weight: 600; }
.state-pick-list a:hover { background: rgba(255,255,255,.12); color: #fff; }
.state-pick-list a.active { background: rgba(245,165,36,.18); color: #ffc15c; }
.state-pick-thumb { width: 46px; height: 38px; display: flex; align-items: center; justify-content: center; flex: none; }
.state-pick-thumb img { display: block; max-width: 46px; max-height: 38px; width: auto; height: auto; }
[data-theme=light] .state-picker > summary { background: #fff; color: var(--ink); border-color: #c4cddb; }
[data-theme=light] .state-picker > summary:hover { border-color: var(--navy); }
[data-theme=light] .state-pick-list { background: #fff; border-color: var(--line); box-shadow: 0 14px 34px rgba(16,31,58,.16); }
[data-theme=light] .state-pick-list a { color: #1f2d44; }
[data-theme=light] .state-pick-list a:hover { background: #eef3fb; color: var(--navy); }
[data-theme=light] .state-pick-list a.active { background: #fff4dc; color: #8a5a00; }
@media (max-width: 1200px) { .state-picker > summary { min-width: 0; font-size: .9rem; } }
@media (max-width: 640px) {
    /* phones: just the state's logo and the arrow (the list shows the names) */
    .state-picker > summary { padding: 3px 6px; gap: 4px; }
    .state-pick-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .state-pick-logo { height: 28px; max-width: 40px; }
    .state-pick-list { left: -40px; }
}

/* ---------- v74: home page, other states: law (left) + message board (right) ---------- */
.state-top { padding-top: 28px; }
.state-top-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.state-top .law-card { display: block; }
.law-title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 4px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.state-top .law-notify { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.law-notify .h3 { font-size: 1.1rem; margin: 0 0 6px; }
.board-logo { display: flex; justify-content: center; margin: 0 0 12px; }
.board-logo-img { display: block; width: auto; height: auto; max-height: 110px; max-width: 240px; object-fit: contain; }
.board-title { font-size: 1.35rem; margin: 0 0 4px; }
.board-sub { margin: 0 0 6px; }
.board-form { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.board-form textarea { width: 100%; resize: vertical; min-height: 60px; }
.board-who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.board-who input { width: 100%; min-width: 0; }
.board-form .btn { align-self: flex-start; }
.board-as { margin: 0; }
.board-list { border-top: 1px solid var(--line); }
.board-post { padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.board-meta { margin: 0 0 4px; font-size: .9rem; }
.board-meta .badge { font-size: .7rem; vertical-align: 1px; }
.board-body { margin: 0; overflow-wrap: anywhere; }
.board-replies { margin: 10px 0 0 6px; padding-left: 14px; border-left: 3px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.board-reply { scroll-margin-top: 90px; }
.board-reply .board-body { font-size: .95rem; }
.board-reply-box { margin-top: 8px; }
.board-reply-box > summary { cursor: pointer; display: inline-block; font-weight: 600; font-size: .9rem; color: #1957b8; }
.board-reply-box > summary:hover { text-decoration: underline; }
.board-reply-box .board-form { margin: 8px 0 4px 6px; }
.board-pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; }
.board-rules { margin: 12px 0 0; }
[data-theme=dark] .board-reply-box > summary { color: #8fb8ff; }
@media (max-width: 900px) {
    .state-top-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .board-who { grid-template-columns: 1fr; }
    .state-top { padding-top: 16px; }
}
.board-admin-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- v75: message board: New question popup, categories; small state logo; Illinois averages ---------- */
.law-eyebrow { display: flex; align-items: center; gap: 10px; }
.law-state-logo { display: block; height: 40px; width: auto; max-width: 56px; object-fit: contain; flex: none; }
.state-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.il-avg-card .h3 { font-size: 1.1rem; margin: 0 0 4px; }
.il-avg-card > p { margin: 0 0 10px; }
.il-avg-table { font-size: .9rem; }
.il-avg-table th, .il-avg-table td { padding: 7px 8px; }
.il-avg-card .il-avg-note { margin: 10px 0 0; }
.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.board-new-btn { flex: none; font-weight: 700; }
.board-new-btn span { font-size: 1.15em; line-height: 1; margin-left: 2px; }
.board-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.board-cats a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; text-decoration: none; color: inherit; }
.board-cats a:hover { border-color: #9fb0c8; }
.board-cats a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme=dark] .board-cats a { border-color: #2c3f5c; }
[data-theme=dark] .board-cats a.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.board-cat-tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    background: #fff4dc; color: #8a5a00; vertical-align: 1px; }
[data-theme=dark] .board-cat-tag { background: #3a2c10; color: #ffc15c; }
.board-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px;
    background: var(--card); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.board-dialog::backdrop { background: rgba(5,12,24,.6); }
.board-dialog .board-new-form { margin: 0; padding: 18px 20px 20px; gap: 12px; }
.board-dialog-head { display: flex; align-items: center; justify-content: space-between; }
.board-dialog-head .h3 { margin: 0; font-size: 1.2rem; }
.board-dialog-x { background: none; border: 0; font-size: 1.7rem; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.board-dialog .field { margin: 0; }
.board-dialog .field label { display: block; font-weight: 600; margin-bottom: 4px; }
.board-dialog select, .board-dialog textarea, .board-dialog input { width: 100%; }
.board-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.board-dialog-actions .btn { align-self: auto; }
.board-dialog:not([open]) { display: none; }
.state-left > .card, .state-right > .card { margin: 0; }
@media (max-width: 900px) {
    /* phones / tablets: law box, then the message board, then the Illinois averages */
    .state-left { display: contents; }
    .state-left > .law-card { order: 1; }
    .state-right { order: 2; }
    .state-left > .il-avg-card { order: 3; }
}

/* ---------- v76: "What can you earn?" bubble (right of Get notified) and its popup ---------- */
.law-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start;
    border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.state-top .law-row .law-notify { border-top: 0; padding-top: 0; margin-top: 0; }
.law-row .law-form { flex-direction: column; }
.law-row .law-form .btn { align-self: stretch; }
.earn-bubble { background: #fff4dc; border: 1px solid #f3d38f; border-radius: 16px; padding: 14px 16px; }
.earn-bubble .h3 { font-size: 1.1rem; margin: 0 0 6px; }
.earn-bubble p { margin: 0 0 10px; }
.earn-btn { font-weight: 700; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.earn-btn:hover { filter: brightness(1.05); color: var(--accent-ink); }
[data-theme=dark] .earn-bubble { background: #2d2412; border-color: #5c4718; }
.earn-dialog { width: min(600px, calc(100vw - 32px)); }
.earn-dialog-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.earn-dialog-body p { margin: 0; }
.earn-sub { font-size: 1rem; margin: 0; }
.earn-disclaimer { padding: 10px 12px; border-radius: 10px; background: #fff4dc; color: #5c3d00; font-size: .9rem; }
[data-theme=dark] .earn-disclaimer { background: #3a2c10; color: #ffd98a; }
@media (max-width: 1100px) and (min-width: 901px) { .law-row { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .law-row { grid-template-columns: 1fr; } }
.law-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.earn-btn { white-space: nowrap; padding: 6px 10px; }
.earn-bubble { padding: 14px 12px; }
@media (max-width: 1100px) and (min-width: 901px) { .law-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .law-row { grid-template-columns: 1fr; } }

/* v77: the state button shows just the name (no logo), so the top menu stays on one row on medium screens */
.state-picker > summary { min-width: 0; padding: 6px 10px; gap: 6px; }
@media (max-width: 640px) {
    .state-pick-name { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .state-picker > summary { padding: 6px 8px; font-size: .9rem; max-width: 120px; }
    .state-pick-name { overflow: hidden; text-overflow: ellipsis; }
}

/* v78: Get notified and What can you earn? as two matching boxes side by side (same width and height), note across the bottom */
.law-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.state-top .law-row .law-notify, .law-row .earn-bubble {
    display: flex; flex-direction: column; border-radius: 16px; padding: 14px 14px 16px; margin: 0; min-width: 0;
}
.state-top .law-row .law-notify { background: #eef4ff; border: 1px solid #c9dafa; }
[data-theme=dark] .state-top .law-row .law-notify { background: #16284a; border-color: #2a4677; }
.law-row .law-notify .h3, .law-row .earn-bubble .h3 { font-size: 1.1rem; margin: 0 0 6px; }
.law-row .law-notify p, .law-row .earn-bubble p { margin: 0 0 10px; }
.law-row .law-form { margin: auto 0 0; }
.law-row .earn-btn { margin-top: auto; align-self: flex-start; }
.law-row .alert { margin: 0; }
.law-row-note { margin: 10px 0 0; text-align: center; }
@media (max-width: 1100px) and (min-width: 901px) { .law-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 420px) { .law-row { grid-template-columns: 1fr; } }

/* ---------- v79: free revenue check, other states: two even columns ---------- */
.check-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 20px; }
.check-col { min-width: 0; }
.check-col .gaming-eval { margin-bottom: 18px; }
.check-col .gaming-eval-form { max-width: none; }
.check-col .check-form, .check-col .check-avg { margin: 0; }
.field-grid.field-grid-1 { grid-template-columns: 1fr; }
.check-avg .h3 { font-size: 1.15rem; margin: 0 0 4px; }
.check-avg > p { margin: 0 0 10px; }
.check-avg .earn-disclaimer { margin: 12px 0 0; }
@media (max-width: 860px) { .check-cols { grid-template-columns: 1fr; } }

/* ---------- v82: address links and the Google Maps popup ---------- */
a.map-link { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; }
a.map-link::before { content: "\1F4CD"; font-size: .8em; margin-right: 3px; text-decoration: none; display: inline-block; }
a.map-link:hover { color: #1957b8; text-decoration-style: solid; }
[data-theme=dark] a.map-link:hover { color: #8fb8ff; }
.map-dialog { width: min(760px, calc(100vw - 24px)); }
.map-dialog-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.map-title { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; padding-right: 8px; }
.map-frame-box { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 65vh; border-radius: 12px; overflow: hidden; background: #e8edf4; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* v83: map popup: street view, directions */
.map-note { margin: -4px 0 0; }
.map-actions { flex-wrap: wrap; justify-content: flex-start; }
.map-dir-btn { font-weight: 700; }
@media (max-width: 520px) { .map-actions .btn { flex: 1 1 auto; text-align: center; } .map-frame-box { aspect-ratio: 1 / 1; } }

/* v84: Illinois home page banner: the condensed "How does your location compare?" table (in place of the logo + 4 stat boxes) */
.hero-compare { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: 0 18px 45px rgba(0, 0, 0, .3); }
.hero .hero-compare-title { font-size: 1.3rem; line-height: 1.2; margin: 0 0 4px; color: var(--ink); letter-spacing: 0; }
.hero-compare-sub { font-size: .82rem; line-height: 1.4; color: var(--muted); margin: 0 0 10px; }
.hero-compare-sub strong { color: var(--ink); }
.hero-compare-table { width: 100%; font-size: .9rem; border-collapse: collapse; }
table.data.hero-compare-table th, table.data.hero-compare-table td { padding: 5px 10px; vertical-align: middle; }
table.data.hero-compare-table thead th { font-size: .68rem; padding-top: 4px; padding-bottom: 6px; }
table.data.hero-compare-table tbody th { font-size: .76rem; letter-spacing: .3px; border-bottom: 1px solid var(--line); }
table.data.hero-compare-table td.us { font-weight: 700; white-space: nowrap; }
.hero-compare-note { font-size: .72rem; line-height: 1.4; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 420px) { .hero-compare { padding: 14px 12px 12px; } table.data.hero-compare-table th, table.data.hero-compare-table td { padding: 5px 7px; } table.data.hero-compare-table th { white-space: normal; } }

.state-picker { display: none !important; }
