/* v143 (both sites): the website review fixes - footer links and notices, the "page not found" page, the privacy / terms pages */

/* footer: privacy / terms / contact, the 21+ and 1-800-GAMBLER notice, a bigger "Get the app" link */
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.footer-legal a, .footer-app { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 4px; }
.footer-contact { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.footer-rg { flex-basis: 100%; font-size: .8rem; }
.footer-rg a { white-space: nowrap; }

/* page not found */
.nf-page { max-width: 640px; margin: 40px auto 60px; text-align: center; }
.nf-page h1 { margin-bottom: 8px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* privacy policy / terms of use */
.legal-page { max-width: 780px; margin: 10px auto 40px; line-height: 1.6; }
.legal-page h1 { margin-bottom: 2px; }
.legal-page h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.legal-page ul { padding-left: 22px; }
.legal-page li { margin: 6px 0; }

/* the gaming numbers page heading for visitors */
.gl-public-head h1 { margin-bottom: 6px; }
.gl-min-locked { font-variant: normal; letter-spacing: 0; }

/* vgperform v178: the public pages (not signed in) look the same from page to page. Home, the state pages and the
   Revenue check use site.css; Locations, News and Sign in use app.css - these rules make the top bar (and the page
   spacing) the same under both, so nothing moves as you go from top link to top link. */
html:has(.topbar.vg-pub) { overflow-y: scroll; }   /* the scroll bar's room is always kept, so short pages don't shift */
.topbar.vg-pub .wrap.topbar-inner { max-width: 1180px; }
body:has(.topbar.vg-pub) main.wrap.page { padding-top: 28px; }

/* v179: a third look - Gray. The moon button goes Light -> Gray -> Dark -> Light (js/theme.js).
   Gray is the light look, dimmed and softened all over (data-theme="light" + class tone-gray on <html>). */
html.tone-gray { filter: brightness(.86) saturate(.92); background: #fff; }
html.tone-gray .theme-toggle .icon-moon { fill: currentColor; fill-opacity: .4; }   /* half-filled moon: you're on Gray */

/* v180: every page, signed in or not, keeps the scroll bar's room - so the top bar and menu never slide sideways
   between a short page (no scroll bar) and a long one. */
html { overflow-y: scroll; }

/* v182: the vgperform.com public top bar, laid out like dkgaming.us:
   on computers - the logo, Home / Why us, IL gaming numbers, Free revenue check, News, Contact, Sign in on the left;
   a gap; then Dark mode (Light / Gray / Dark), Share and Install App on the right.
   Phones and tablets (1320 px wide and less, on every public page alike) get the menu button. */
@media (min-width: 1321px) {
    .topbar.vg-pub .topnav { order: 3; flex: 1 1 auto; margin-left: 8px; flex-wrap: nowrap; }
    .topbar.vg-pub .topbar-tools { order: 4; margin-left: 0; }
    .topbar.vg-pub .topnav > a.btn-ghost-light, .topbar.vg-pub .topnav > .inline-form { order: 1; }
    .topbar.vg-pub .topnav > .nav-theme { order: 2; margin-left: auto; }
    .topbar.vg-pub .topnav > .nav-share-wrap { order: 3; }
}
/* the same menu button from 1201 to 1320 px on the pages that use site.css (Home, the state pages, Revenue check),
   as on the pages that use app.css (IL gaming numbers, News, Sign in) */
@media (min-width: 1201px) and (max-width: 1320px) {
    html:has(.topbar.vg-pub) .topbar { background-position: left top; background-size: 100% 60px; }
    html:has(.topbar.vg-pub) .topbar-inner { min-height: 60px; gap: 10px; }
    html:has(.topbar.vg-pub) .brand-logo { height: 50px; }
    html:has(.topbar.vg-pub) .topbar-tools { order: 2; margin-left: auto; }
    html:has(.topbar.vg-pub) .nav-toggle { display: inline-flex; }
    html:has(.topbar.vg-pub) .topnav { order: 3; width: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 14px; }
    html.js:has(.topbar.vg-pub) .topnav { display: none; }
    html.js:has(.topbar.vg-pub) .topbar.nav-open .topnav { display: flex; }
    html:has(.topbar.vg-pub) .topnav a { padding: 12px 4px; font-size: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
    html:has(.topbar.vg-pub) .topnav a.btn, html:has(.topbar.vg-pub) .topnav .inline-form .btn { margin-top: 10px; padding: 12px; width: 100%; border: 1px solid rgba(255,255,255,.35); }
    html:has(.topbar.vg-pub) .topnav .inline-form { display: block; }
    html:has(.topbar.vg-pub) .topbar.nav-open { max-height: 100vh; overflow-y: auto; }
    [data-theme="light"]:has(.topbar.vg-pub) .topbar { background-position: left top; background-size: 100% 60px; }
    [data-theme="light"]:has(.topbar.vg-pub) .topnav a { border-top-color: var(--line); }
    [data-theme="light"]:has(.topbar.vg-pub) .topnav a.btn { border: 1px solid #c4cddb; }
    html:has(.topbar.vg-pub) .topnav a:not(.btn) { padding: 12px 10px; border-radius: 0; }
    html:has(.topbar.vg-pub) .topnav a:not(.btn).active { box-shadow: inset 3px 0 0 var(--accent); }
    html:has(.topbar.vg-pub) .brand-logo { max-width: 100px; }
    html:has(.topbar.vg-pub) .topbar .brand { width: 96px; height: 50px; }
    html:has(.topbar.vg-pub) .topbar, [data-theme="light"]:has(.topbar.vg-pub) .topbar { background-image: none; }
    html:has(.topbar.vg-pub) .topnav a.grow-btn { justify-content: center; margin-top: 10px; padding: 12px; width: 100%; border-radius: 10px; }
    [data-theme="light"]:has(.topbar.vg-pub) .topnav a.grow-btn { border: 1px solid #7fd3a4; }
    html:has(.topbar.vg-pub) .nav-item { display: flex; flex-wrap: wrap; width: 100%; border-top: 1px solid rgba(255,255,255,.1); }
    html:has(.topbar.vg-pub) .nav-item > a:not(.btn) { flex: 1 1 auto; border-top: 0; }
    html:has(.topbar.vg-pub) .nav-caret { margin: 0; padding: 0 16px; border-radius: 0; border-left: 1px solid rgba(255,255,255,.1); }
    html:has(.topbar.vg-pub) .nav-caret svg { width: 18px; height: 18px; }
    html:has(.topbar.vg-pub) .subnav, html:has(.topbar.vg-pub) .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); }
    html:has(.topbar.vg-pub) .topnav .subnav a:not(.btn) { padding: 11px 10px 11px 28px; border-top: 0; white-space: normal; }
    [data-theme="light"]:has(.topbar.vg-pub) .nav-item { border-top-color: var(--line); }
    [data-theme="light"]:has(.topbar.vg-pub) .nav-caret { border-left-color: var(--line); }
    [data-theme="light"]:has(.topbar.vg-pub) .subnav, [data-theme="light"]:has(.topbar.vg-pub) .subnav-right { background: #f5f8fc; box-shadow: none; }
    html:has(.topbar.vg-pub) .state-picker > summary { min-width: 0; font-size: .9rem; }
}
/* Dark mode and Share: round buttons, the same as dkgaming.us */
.topbar.vg-pub .nav-theme { display: inline-flex; align-items: center; }
.topbar.vg-pub .nav-theme .theme-toggle { display: inline-flex; width: 36px; height: 36px; }
.topbar.vg-pub .nav-share-wrap { position: relative; display: inline-flex; }
.topbar.vg-pub .nav-share { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; margin: 0; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; }
[data-theme=light] .topbar.vg-pub .nav-share { border-color: #c4cddb; color: var(--navy); }
.topbar.vg-pub .nav-share svg { width: 18px; height: 18px; }
.topbar.vg-pub .nav-share:hover, .topbar.vg-pub .nav-share:focus-visible, .topbar.vg-pub .nav-share[aria-expanded=true] { border-color: #1e9e4a; color: #1e9e4a; }
.topbar.vg-pub .nav-share-label { display: none; }
.topbar.vg-pub .share-box { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 210px; padding: 8px; display: flex; flex-direction: column; gap: 2px;
    background: var(--card, #fff); color: var(--ink, #1f2933); border: 1px solid var(--line, #dde3ea); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); text-align: left; }
.topbar.vg-pub .share-box[hidden] { display: none; }
.topbar.vg-pub .share-box-title { margin: 2px 8px 6px; font-weight: 700; font-size: .9rem; }
.topbar.vg-pub .share-opt { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: .95rem; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.topbar.vg-pub .share-opt:hover, .topbar.vg-pub .share-opt:focus-visible { background: rgba(30,158,74,.1); color: inherit; }
.topbar.vg-pub .share-box-done { margin: 4px 8px 2px; font-size: .85rem; font-weight: 700; color: #1e9e4a; }
/* Install App: the phone icon with Install / App beside it (no orange bubble), the same as dkgaming.us */
.topbar.vg-pub .app-get-btn, [data-theme] .topbar.vg-pub .app-get-btn { display: inline-flex; align-items: center; gap: 5px; height: 38px; width: auto; padding: 0 4px;
    border-radius: 6px; background: none; box-shadow: none; animation: none; color: #f5a524; text-decoration: none; white-space: nowrap; }
[data-theme=light] .topbar.vg-pub .app-get-btn { color: #b87400; }
.topbar.vg-pub .app-get-btn:hover, .topbar.vg-pub .app-get-btn:focus-visible { background: none; color: #ffc15c; }
[data-theme=light] .topbar.vg-pub .app-get-btn:hover, [data-theme=light] .topbar.vg-pub .app-get-btn:focus-visible { color: #8a5a00; }
.topbar.vg-pub .app-get-btn svg { width: 32px; height: 32px; stroke-width: 1.6; flex: none; }
.topbar.vg-pub .app-get-btn .app-get-text { display: inline-flex; flex-direction: column; align-items: flex-start; position: static; width: auto; height: auto; overflow: visible; clip: auto;
    line-height: 1.05; font-size: .86rem; font-weight: 700; }
@media (max-width: 1320px) {   /* folded menu: Share as a bubble with its label, like Sign in */
    .topbar.vg-pub .nav-share-wrap { display: flex; flex-direction: column; align-items: flex-start; }
    .topbar.vg-pub .nav-share { width: auto; height: auto; gap: 6px; padding: 8px 14px; margin-top: 10px; border-radius: 8px; font-size: .95rem; font-family: inherit; font-weight: 600; }
    .topbar.vg-pub .nav-share svg { width: 17px; height: 17px; }
    .topbar.vg-pub .nav-share-label { display: inline; }
    .topbar.vg-pub .share-box { position: static; box-shadow: none; margin: 6px 0 8px; width: 100%; }
    .topbar.vg-pub .nav-theme { margin-top: 10px; }
}
@media (max-width: 640px) { .topbar.vg-pub .app-get-btn svg { width: 30px; height: 30px; } .topbar.vg-pub .app-get-btn { padding: 0 2px; } }
@media (display-mode: standalone) { .topbar.vg-pub .app-get-btn { display: none; } }
html.app-is-installed .topbar.vg-pub .app-get-btn, .topbar.vg-pub .app-get-btn[hidden] { display: none !important; }

/* v183: Settings > Staff Admin > Email sign-in link */
.sl-find { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.sl-find .field { flex: 1 1 280px; margin: 0; }
.sl-send { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sl-send input[type="text"] { flex: 1 1 220px; min-width: 0; }

/* v185: Staff permissions - search box, smaller wrapping headings, fits the page (no side scroll bar), name + type on 2 lines */
.sa-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.sa-search input[type="search"] { flex: 0 1 360px; min-width: 0; }
.sa-scroll { overflow-x: auto; }
table.sa-grid.sa-fit { table-layout: fixed; width: 100%; }
table.sa-grid.sa-fit col.sa-col-who { width: 170px; }
table.sa-grid.sa-fit thead th { font-size: .75rem; line-height: 1.2; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual;
    text-transform: none; letter-spacing: 0;
    writing-mode: horizontal-tb; transform: none; height: auto; text-align: center; vertical-align: bottom; padding: 6px 4px; }
table.sa-grid.sa-fit thead th.sa-who-h { text-align: left; vertical-align: bottom; }
table.sa-grid.sa-fit thead th.sa-grid-group { font-size: .78rem; font-weight: 700; }
table.sa-grid.sa-fit td { padding: 6px 4px; vertical-align: middle; }
table.sa-grid.sa-fit td.sa-grid-cell { text-align: center; }
table.sa-grid.sa-fit td.sa-grid-cell .toggle { justify-content: center; margin: 0; }
table.sa-grid.sa-fit td.sa-grid-cell .toggle-state { display: none; }
table.sa-grid.sa-fit td.sa-who { white-space: nowrap; }
.sa-who .sa-name, .sa-who .sa-role { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-who .sa-name { font-weight: 700; }
.sa-who .sa-role { font-size: .8rem; opacity: .7; }
@media (max-width: 760px) { table.sa-grid.sa-fit { min-width: 720px; } }

/* v187: location page heading - "Email sign-in link" to the owner, on the right of the second line */
.dl-meta-row { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.dl-meta-row > .dl-meta { flex: 1 1 auto; min-width: 0; }
.loc-signlink { margin-left: auto; position: relative; }
.loc-signlink .inline-form { display: inline; margin: 0; }
.loc-signlink-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #cfdbe8; border-radius: 999px;
    background: #fff; color: #1e4fa3; font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.3; cursor: pointer; list-style: none; white-space: nowrap; }
.loc-signlink-btn::-webkit-details-marker { display: none; }
.loc-signlink-btn:hover, .loc-signlink-btn:focus-visible { background: #eef4fc; border-color: #9fb9dc; }
.loc-signlink-none { display: inline-flex; align-items: center; gap: 6px; }
.loc-signlink-many > ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 260px; margin: 0; padding: 6px; list-style: none;
    background: #fff; border: 1px solid #d6e0eb; border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 35, 70, .14); }
.loc-signlink-many > ul li .loc-signlink-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; border: 0; border-radius: 8px; padding: 7px 10px; text-align: left; }
.loc-signlink-many > ul li .loc-signlink-btn small { font-weight: 400; color: #5b6b80; }
html[data-theme="dark"] .loc-signlink-btn, html[data-theme="dark"] .loc-signlink-many > ul { background: #1b2433; border-color: #33425a; color: #9cc3ff; }
html[data-theme="dark"] .loc-signlink-btn:hover { background: #243149; }
html[data-theme="dark"] .loc-signlink-many > ul li .loc-signlink-btn small { color: #9aa8bb; }

/* v188: Location info - the GO / YIELD sign by City explains itself in a pop-up on hover (or tap / keyboard focus) */
.muni-sign { position: relative; cursor: help; }
.muni-sign::after { position: absolute; right: -6px; bottom: calc(100% + 10px); z-index: 40; width: 300px; padding: 10px 12px;
    background: #1f2937; color: #fff; border-radius: 10px; box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
    font: 400 .82rem/1.4 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; text-align: left; white-space: pre-line;
    opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.muni-sign.is-go::after { content: "GO \2013  video gaming is allowed here\A\A" attr(aria-label) ".\A\AThis city is on the Illinois Gaming Board's municipality list as allowing video gaming terminals."; }
.muni-sign.is-yield::after { content: "YIELD \2013  check before going further\A\A" attr(aria-label) ".\A\AMake sure City holds just the city's name, not part of the street address. The sign updates as you type."; }
.muni-sign:hover::after, .muni-sign:focus::after, .muni-sign:focus-visible::after { opacity: 1; visibility: visible; transform: none; }
.muni-sign:focus { outline: none; }
.muni-sign:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; border-radius: 4px; }

/* v189: location heading - "+ Invite owner" / "Invite owner" (a small form: email, name, phone, they are the...) */
.loc-signlink { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.loc-signlink details { position: relative; }
.loc-signlink details > summary { list-style: none; }
.loc-signlink details > summary::-webkit-details-marker { display: none; }
.loc-invite-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 340px; max-width: calc(100vw - 32px);
    display: grid; gap: 8px; padding: 14px; background: #fff; border: 1px solid #d6e0eb; border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 35, 70, .16); text-align: left; }
.loc-invite-form .loc-invite-h { margin: 0; font-weight: 700; }
.loc-invite-form label { display: grid; gap: 3px; font-size: .82rem; font-weight: 600; }
.loc-invite-form input, .loc-invite-form select { width: 100%; min-width: 0; font-weight: 400; }
.loc-invite-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.loc-invite-form .btn { justify-self: start; }
.loc-invite-form p.small { margin: 0; }
html[data-theme="dark"] .loc-invite-form { background: #1b2433; border-color: #33425a; }
/* v189: Contacts form - "Send invitation" switch */
.ct-invite { margin: 4px 0 12px; }
.ct-invite .crud-switch-lbl small { display: block; font-weight: 400; }

/* v191: Contacts - Save / Save & invite / Cancel */
.crud-btns-inv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crud-btns-inv .inv-need { flex-basis: 100%; margin: 2px 0 0; color: #b42318; font-weight: 600; }
.crud-form .inv-missing { border-color: #d92d20 !important; box-shadow: 0 0 0 3px rgba(217, 45, 32, .15) !important; }
/* v191: Sales > Invited */
.inv-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.inv-search input[type="search"] { flex: 0 1 380px; min-width: 0; }
.inv-search select { width: auto; }
.inv-search .inv-good { color: #067647; font-weight: 600; }
.inv-search .inv-bad { color: #b42318; font-weight: 600; }
.inv-table td { vertical-align: middle; }
.inv-who .inv-name, .inv-who .inv-mail, .inv-table .inv-sent { display: block; }
.inv-who .inv-name { font-weight: 700; }
.inv-who .inv-mail { font-size: .82rem; opacity: .75; }
.inv-locs { max-width: 260px; }
.inv-loc { display: inline-block; margin: 0 6px 4px 0; padding: 2px 9px; border: 1px solid #cfdbe8; border-radius: 999px; font-size: .82rem; text-decoration: none; }
.inv-status { white-space: nowrap; }
.inv-status .small { display: block; margin-top: 2px; }
.inv-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.inv-in { background: #dcfae6; color: #067647; }
.inv-wait { background: #fef0c7; color: #93370d; }
.inv-act { text-align: right; white-space: nowrap; }

/* v192: Types of users > Invite a <type> */
.ut-inv-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; align-items: end; }
.ut-inv-form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.ut-inv-form label small { font-weight: 400; }
.ut-inv-form input { width: 100%; min-width: 0; font-weight: 400; }
.ut-inv-form .btn { justify-self: start; }
.welcome-alt { margin-top: 12px; text-align: center; }

/* State lists (admin/state-load.php): the update history table wraps inside each card instead of running past it,
   and the cards in a row stay the same height. */
.dbu-grid { align-items: stretch; }
.dbu-card { min-width: 0; }
.dbu-card .stl-history { width: 100%; table-layout: fixed; font-size: .8rem; margin-top: 4px; }
.dbu-card .stl-history th,
.dbu-card .stl-history td { white-space: normal; overflow-wrap: normal; padding: 6px 3px; vertical-align: top; }
.dbu-card .stl-history th { font-size: .66rem; letter-spacing: .2px; line-height: 1.25; }
.dbu-card .stl-history th:nth-child(1), .dbu-card .stl-history td:nth-child(1) { width: 30%; }
.dbu-card .stl-history th:nth-child(2), .dbu-card .stl-history td:nth-child(2) { width: 22%; }
