/* =============================================================================
   Hoopsalytics modern theme ("Clean Court" dark)
   Shared stylesheet for modernized pages. Load via template/head-modern.php.
   Pages using this do NOT load bootstrap/template-style/custom/theme css.
   ============================================================================= */

:root {
    --brand: #f7931d;
    --brand-hot: #f7a13a;
    --brand-tint: rgba(247, 147, 29, 0.14);
    --ink: #eef1f5;
    --body: #a3adba;
    --faint: #6f7987;
    --line: #262c35;
    --bg: #101318;
    --panel: #14171c;
    --card: #171b21;
    --input: #1d222a;
    --input-line: #333b47;
    --radius: 10px;

    /* button hierarchy tokens (css/modern-app.css .btn-primary / .btn-accent-soft / .btn-row) */
    --sa-brand: #f7931d;
    --sa-brand-ink: #14171c;
    --sa-brand-tint: #241a10;
    --sa-brand-tint-edge: #8a6526;

    --sa-slate: #333b47;
    --sa-slate-edge: #5b6779;
    --sa-slate-hover: #3f4959;
    --sa-ink: #eef1f5;
    --sa-ink-dim: #79838f;

    /* semantic only, never used on a button */
    --sa-win: #2fbf63;
    --sa-loss: #e2586a;
    --sa-video: #6cb6ff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Figtree', 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    /* sticky footer: fill the viewport so .site-footer's margin-top:auto pins it
       to the bottom even when the page content is short (i.e. wait interstitials) */
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hot); }
/* anchors that act via onclick with no href (clickable box score numbers etc) still get a hand cursor */
a[onclick]:not([href]), a.clickable { cursor: pointer; }

h1 { font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; margin: 0; }
h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h3 { font-size: 19px; font-weight: 700; margin: 0; }

/* nicer line breaks: balanced headings, no single-word orphan lines in body copy
   (applies to all paragraphs/lists/card text, centered or not;
   browsers without text-wrap support just ignore these) */
h1, h2, h3 { text-wrap: balance; }
p, li, .sub, .note-card .text, .feature .label { text-wrap: pretty; }

.text-center { text-align: center; }
.text-success { color: #4cd97e; }
.text-info { color: #6cb6ff; }

/* fluid images — but only for images WITHOUT width/height attributes: attribute-sized
   images (player headshots, icons) must keep their exact size, and any CSS width/height
   here (including revert) would override the attributes.
   :where() keeps this at plain-img specificity so class rules (i.e. .topnav-logo img)
   can still size their images */
img:where(:not([width]):not([height])) { max-width: 100%; height: auto; }
iframe { max-width: 100%; border: 0; }
iframe[src*="youtube.com/embed"] { width: 853px; aspect-ratio: 16 / 9; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* ---- top nav (template/nav-lead-modern.php) ---- */
.topnav {
    background: #191e26;                    /* a step lighter than the page bg for contrast */
    border-bottom: 1px solid #2c333e;
    box-shadow: 0 4px 18px -6px rgba(0, 0, 0, 0.55);
    position: relative; z-index: 50;
}
/* inner row shares .page-wrap's max-width + side padding so the logo and menu align with page content */
.topnav-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 10px 48px;
}
.topnav-logo { display: flex; align-items: center; }
.topnav-logo img { height: 104px; display: block; }    /* matches the previous header's xl logo size */
.topnav-links { display: flex; align-items: center; gap: 30px; }
.topnav-links > a, .nav-drop > .drop-toggle {
    font-size: 15px; font-weight: 600; color: #ccd3dc;
    display: flex; align-items: center; gap: 6px;
}
.topnav-links > a:hover, .nav-drop > .drop-toggle:hover { color: var(--brand); }
.topnav-links > a.btn-ghost { color: var(--brand); }
.topnav-links > a.btn-solid { color: #14171c; }

.nav-drop { position: relative; }
.drop-menu {
    display: none; position: absolute; top: 100%; left: 0; padding-top: 10px;
    min-width: 260px; z-index: 100;
}
.drop-menu .drop-inner {
    display: flex; flex-direction: column; gap: 2px;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    padding: 8px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
}
.drop-menu a {
    font-size: 14.5px; font-weight: 600; color: #ccd3dc;
    padding: 9px 12px; border-radius: 8px; display: block;
}
.drop-menu a:hover { color: var(--ink); background: var(--brand-tint); }
.nav-drop:hover > .drop-menu, .nav-drop.open > .drop-menu { display: block; }
.nav-icon { display: none; }    /* top-level nav icons hidden for a cleaner nav; remove this display:none to bring them back (svgs still in markup) */
.topnav-links > a:hover .nav-icon, .drop-toggle:hover .nav-icon { opacity: 1; }
.drop-caret { transition: transform 0.15s ease; }
.nav-drop.open .drop-caret { transform: rotate(180deg); }

.hamburger {
    display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}

/* ---- buttons ---- */
.btn-ghost {
    font-size: 15px; font-weight: 700; color: var(--brand);
    border: 2px solid var(--brand); border-radius: 8px; padding: 8px 18px;
    background: none; cursor: pointer; display: inline-block;
}
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-hot); }
.btn-solid {
    font: inherit;
    font-size: 15px; font-weight: 700; color: #14171c;
    background: var(--brand); border-radius: 8px; padding: 10px 20px;
    border: 0; cursor: pointer; display: inline-block;
}
.btn-solid:hover { background: var(--brand-hot); color: #14171c; }
.btn-solid:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-solid:disabled:hover { background: var(--brand); }
.btn-solid.btn-green:disabled:hover { background: #2fbf63; }

.btn-lg { font-size: 16px; padding: 13px 26px; }                 /* modifier for .btn-solid / .btn-ghost */
/* partner / event logo on a dark page */
.logo-strip { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.logo-strip img { max-width: 240px; max-height: 96px; width: auto; height: auto; background: #fff; padding: 10px 14px; border-radius: 10px; }

/* solid button color variants (green = start/go, blue = log in; matches old btn-success/btn-info roles) */
.btn-green { background: #2fbf63; }
.btn-green:hover { background: #4cd97e; }
.btn-blue { background: #4ba3f5; }
.btn-blue:hover { background: #6cb6ff; }

/* big primary call-to-action (form submits etc.) */
.btn-cta {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; border: 0; cursor: pointer;
    background: linear-gradient(180deg, #ffa733 0%, #f7931d 100%);
    border-radius: 12px; padding: 18px;
    font: inherit; font-size: 18px; font-weight: 800; color: #14171c;
    box-shadow: 0 10px 32px -6px rgba(247, 147, 29, 0.6), inset 0 1px 0 rgba(255, 214, 158, 0.55);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn-cta:hover:not(:disabled) {
    background: linear-gradient(180deg, #ffb44d 0%, #ff9c22 100%);
    box-shadow: 0 14px 38px -6px rgba(247, 147, 29, 0.75), inset 0 1px 0 rgba(255, 214, 158, 0.55);
    transform: translateY(-1px);
    color: #14171c;
}
.btn-cta:disabled { opacity: 0.55; cursor: not-allowed; }
/* green CTA: same shape, used when the form creates or adds something (Add Team, Add New Player ...) */
.btn-cta.btn-cta-green {
    background: linear-gradient(180deg, #4cd97e 0%, #2fbf63 100%);
    box-shadow: 0 10px 32px -6px rgba(47, 191, 99, 0.55), inset 0 1px 0 rgba(200, 245, 215, 0.5);
    color: #0f1a13;
}
.btn-cta.btn-cta-green:hover:not(:disabled) {
    background: linear-gradient(180deg, #5fe58f 0%, #3acb70 100%);
    box-shadow: 0 14px 38px -6px rgba(47, 191, 99, 0.7), inset 0 1px 0 rgba(200, 245, 215, 0.5);
    color: #0f1a13;
}

/* ---- layout ---- */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 48px 88px; }
.split {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 72px; align-items: start; padding-top: 40px;
}

.card {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
    padding: 36px 40px;
}
.note-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 20px 24px;
}
.note-card .head { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 8px; }
.note-card .text { font-size: 15px; line-height: 1.65; color: var(--body); }

/* pitch/marketing elements */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--brand-hot); }
.sub { font-size: 17px; line-height: 1.6; color: var(--body); }
/* centered lead lines under headings: balance the line breaks so a short fragment never sits alone on the last line */
.text-center .sub, .text-center.sub { text-wrap: balance; }
.features { display: flex; flex-direction: column; gap: 16px; }
.feature { display: flex; align-items: center; gap: 14px; }
.feature .icon {
    flex: none; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: var(--brand-tint); border-radius: 10px;
}
.feature .label { font-size: 16px; font-weight: 600; color: #d4dae2; }

/* centered single-column page (thank-you pages, simple forms) */
.center-col { max-width: 780px; margin: 0 auto; }
.center-col-wide { max-width: 980px; margin: 0 auto; }

/* Froala rich text editor: dark typing area with light text.
   (modern pages always init Froala with $froala_dark, and this file never loads
   on old light pages, so these overrides are safe; !important is needed because
   the Froala CDN css loads after this file) */
.fr-box { border-radius: var(--radius); overflow: hidden; }
.fr-box .fr-wrapper { background: var(--input) !important; border-color: var(--input-line) !important; }
.fr-box .fr-element.fr-view { background: var(--input) !important; color: var(--ink) !important; caret-color: var(--ink); }
.fr-box .fr-element.fr-view a { color: var(--brand); }
.fr-box .fr-placeholder { color: var(--faint) !important; }
.fr-box .fr-second-toolbar { display: none !important; }   /* empty white footer bar (attribution/counter are disabled) */

/* ---- tour pages ---- */
.tour-layout {
    display: grid; grid-template-columns: 290px minmax(0, 1fr);
    gap: 48px; padding-top: 32px; align-items: start;
}
.tour-sidebar { position: sticky; top: 20px; }
.tour-nav a, .tour-nav .current {
    display: block; font-size: 14px; font-weight: 500;
    padding: 4px 0; line-height: 1.4; color: var(--body);
}
.tour-nav a:hover { color: var(--brand); }
.tour-nav .current { color: var(--brand-hot); font-weight: 700; }
.tour-nav .current svg { margin-right: 6px; }
.tour-content h3 { font-size: 22px; margin: 10px 0 6px; }
.tour-content p, .tour-content ul { color: #c9d0d9; }
.tour-content ul { line-height: 1.7; }

/* ---- long-form content pages (user guides, product pages) ---- */
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose h3 { font-size: 21px; margin: 30px 0 8px; }
.prose p, .prose ul, .prose ol { color: #c9d0d9; line-height: 1.7; margin: 0 0 14px; }
.prose ol, .prose ul { padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose li > .shot { margin-top: 10px; }
.prose b, .prose strong { color: var(--ink); }
.prose em { color: var(--body); }
.prose img { max-width: 100%; }
/* screenshot image: bordered, rounded, capped width; wrap in a[data-lightbox] to zoom */
.shot { display: block; width: 100%; max-width: 560px; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0; }
.shot.wide { max-width: 100%; }                 /* full-column screenshot (box scores, wide charts) */
.shot-caption { font-size: 13px; color: var(--faint); margin: 8px 0 0; text-align: center; font-style: italic; }
/* screenshot that plays a video: <a class="shot-video" href="https://www.youtube.com/watch?v=ID" data-lightbox="video"><img ...><span class="shot-play"></span></a>
   (same scheme as the home page hero: dimmed still, orange play button, opens in the shared video lightbox) */
.shot-video { display: block; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #101318; }
.shot-video img { display: block; width: 100%; height: auto; }
.shot-video::after { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 16, 0.28); transition: background 0.15s ease; }
.shot-video:hover::after, .shot-video:focus::after { background: rgba(10, 12, 16, 0.12); }
.shot-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
    width: 84px; height: 84px; border-radius: 50%;
    background: rgba(247, 147, 29, 0.95); border: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
}
.shot-play::before { content: ""; margin-left: 7px; border-style: solid; border-width: 17px 0 17px 30px; border-color: transparent transparent transparent #fff; }
.shot-video:hover .shot-play, .shot-video:focus .shot-play { transform: translate(-50%, -50%) scale(1.08); background: var(--brand); }
.shot-video:focus-visible { outline: 3px solid #ffd9a3; outline-offset: 4px; }
/* "watch the video" pill under a video screenshot: a second way to open it */
.shot-video-caption {
    display: flex; align-items: center; justify-content: center; gap: 9px; width: fit-content; margin: 16px auto 0;
    padding: 8px 18px; border-radius: 999px;
    background: var(--brand-tint); border: 1px solid rgba(247, 147, 29, 0.55);
    color: var(--ink); font-size: 15px; text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.shot-video-caption b { color: var(--ink); }
.shot-video-caption:hover, .shot-video-caption:focus { background: rgba(247, 147, 29, 0.3); border-color: var(--brand); color: var(--ink); text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
    .shot-video::after, .shot-play { transition: none; }
    .shot-video:hover .shot-play, .shot-video:focus .shot-play { transform: translate(-50%, -50%); }
}
.prose .feature-list { margin-bottom: 16px; }
/* compact inputs inside data tables (roster grids etc.) */
table.table input:not([type="radio"]):not([type="checkbox"]), table.table select {
    padding: 6px 8px; font-size: 14px; border-radius: 6px;
}

/* ---- checkout / plan cards (order/buy-*.php; trust block in template/checkout-trust.php) ---- */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 30px 32px; }
.plan .plan-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.plan .plan-tag { font-size: 14.5px; color: var(--body); margin-top: 4px; }
.plan .plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan .plan-price .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan .plan-price .per { font-size: 15px; color: var(--body); }
.order-lines { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--body); }
.order-lines .line { display: flex; justify-content: space-between; gap: 16px; }
.order-lines .line.total { color: var(--ink); font-weight: 800; font-size: 17px; padding-top: 6px; border-top: 1px dashed var(--line); }
.order-lines .cur { font-size: 12px; font-weight: 600; color: var(--faint); margin-left: 6px; letter-spacing: 0.06em; }
.plan .btn-cta { margin-top: auto; }
.plan .plan-foot { font-size: 13.5px; color: var(--faint); text-align: center; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--body); }
.secure-note svg { flex: none; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trust-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan .field { margin-bottom: 0; }
.plan .qty-row { display: flex; align-items: center; gap: 12px; }
.plan .field .qty-row input[type="number"] { width: 140px; padding: 8px 12px; font-size: 28px; font-weight: 800; text-align: center; }   /* .field scoped so it outranks the generic .field input rule below (same specificity otherwise) */
.plan .qty-row .unit { font-size: 15px; color: var(--body); }
.trust-grid .note-card .head { display: flex; align-items: center; gap: 8px; }
.buyer-line { font-size: 14px; color: var(--faint); display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.buyer-line b { color: #d4dae2; font-weight: 600; }

/* clickable image tiles (sample reports etc.): <a class="tile" href><img><span class="tile-label">…</span></a> */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tile {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    color: #d4dae2; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.tile img { display: block; width: 100%; height: 160px; object-fit: cover; object-position: left top; border-bottom: 1px solid var(--line); }
.tile-label {
    display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1;
    padding: 16px 18px; font-size: 15px; font-weight: 700; text-align: center;
}
.tile:hover { border-color: var(--brand); color: var(--brand-hot); transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.8); }

/* minimal lightbox (a[data-lightbox]; handler in foot-modern.php) */
.mlb-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(8, 10, 13, 0.93);
    display: flex; align-items: center; justify-content: center;
    padding: 30px; cursor: zoom-out;
}
.mlb-overlay img {
    max-width: 95vw; max-height: 92vh; width: auto; height: auto;
    border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}
.mlb-overlay .mlb-close {
    position: fixed; top: 14px; right: 18px; z-index: 201;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(20, 22, 28, 0.85); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.mlb-overlay .mlb-close:hover { background: var(--brand); color: #14161c; border-color: var(--brand); }
/* video variant (a[data-lightbox="video"]): 16:9 YouTube embed, sized like the SAL lightbox */
.mlb-overlay.mlb-video { cursor: default; }
.mlb-overlay .mlb-frame {
    width: min(1100px, 94vw); aspect-ratio: 16 / 9; max-height: 90vh;
    background: #000; border-radius: 8px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8); cursor: auto;
}
.mlb-overlay .mlb-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
/* pdf variant (a[data-lightbox="pdf"]): tall portrait frame, the browser's own viewer scrolls inside it */
.mlb-overlay.mlb-pdf { cursor: default; }
.mlb-overlay.mlb-pdf .mlb-frame {
    width: min(900px, 94vw); height: 92vh; max-height: none; aspect-ratio: auto;
    background: #2b2f38;
}
.mlb-overlay .mlb-open {
    position: fixed; top: 14px; right: 74px; z-index: 201;
    display: inline-flex; align-items: center; height: 44px; padding: 0 16px;
    border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(20, 22, 28, 0.85); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
}
.mlb-overlay .mlb-open:hover { background: var(--brand); color: #14161c; border-color: var(--brand); text-decoration: none; }

/* legal/policy pages (terms of service, privacy policy) */
.policy-card { margin-bottom: 18px; padding: 0; overflow: hidden; }
.policy-card .policy-head { background: var(--panel); border-bottom: 1px solid var(--line); padding: 14px 24px; }
.policy-card .policy-head h2 { font-size: 18px; font-weight: 700; margin: 0; color: var(--brand-hot); }
.policy-card .policy-body { padding: 18px 24px; color: #c9d0d9; font-size: 15px; line-height: 1.65; }
.policy-card .policy-body ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.policy-card .policy-body p:first-child { margin-top: 0; }
.policy-card .policy-body p:last-child { margin-bottom: 0; }
.policy-card .policy-body h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 18px 0 8px; }
.policy-card .policy-body h4 { font-size: 15.5px; font-weight: 600; color: #d4dae2; margin: 14px 0 6px; }

/* about-page bios (photo + text) */
.bio {
    display: grid; grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px; align-items: start; margin-top: 40px;
}
.bio img { border-radius: 14px; border: 1px solid var(--line); }
.bio p { color: #c9d0d9; }

/* dark data tables (styles the old bootstrap .table markup) */
table.table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 28px; }
table.table th {
    position: sticky; top: 0; z-index: 5;
    background: var(--panel); color: var(--ink); text-align: left;
    padding: 11px 14px; border-bottom: 2px solid var(--input-line);
}
table.table td { padding: 9px 14px; border-bottom: 1px solid var(--line); color: #c9d0d9; vertical-align: middle; }
table.table.table-striped tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }

/* FAQ accordion (native details/summary) */
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq-item summary {
    cursor: pointer; padding: 14px 18px;
    font-weight: 600; font-size: 15.5px; color: #d4dae2;
    list-style: none; display: flex; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-hot); }
.faq-item .faq-caret { flex: none; transition: transform 0.15s ease; color: var(--faint); }
.faq-item[open] .faq-caret { transform: rotate(90deg); color: var(--brand); }
.faq-item .faq-title { flex: 1 1 auto; }
.faq-item .faq-link { flex: none; display: inline-flex; color: var(--faint); opacity: 0; transition: opacity 0.15s ease, color 0.15s ease; }
.faq-item summary:hover .faq-link, .faq-item[open] .faq-link, .faq-item .faq-link:focus-visible { opacity: 1; }
.faq-item .faq-link:hover { color: var(--brand); }
.faq-item .faq-body { padding: 2px 18px 16px 44px; color: var(--body); line-height: 1.65; font-size: 15px; }
.faq-item .faq-body img { border-radius: 8px; }

/* feature checklists (pricing etc.) */
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.feature-list li { display: flex; align-items: baseline; gap: 9px; font-size: 14.5px; color: var(--body); line-height: 1.45; }
.feature-list li svg { flex: none; position: relative; top: 1px; }
.feature-list strong { color: #d4dae2; font-weight: 600; }
.info-tip { color: var(--faint); cursor: help; display: inline-flex; vertical-align: middle; }
.info-tip:hover { color: var(--brand); }

/* ---- forms ---- */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 16px; }
.choice { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #d4dae2; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 700; color: #d4dae2; }
.field label .req, .text-danger { color: var(--brand); }
.field label .opt { font-weight: 500; color: var(--faint); }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
    font: inherit; font-size: 15px; color: var(--ink);
    border: 1.5px solid var(--input-line); border-radius: var(--radius);
    padding: 12px 14px; background: var(--input); width: 100%;
}
.field label.choice { font-weight: 500; font-size: 15px; }
/* radios/checkboxes must never pick up the boxed input styling, whatever the rule order */
.field input[type="radio"], .field input[type="checkbox"] {
    width: 16px; height: 16px; padding: 0; margin: 0;
    border: 0; border-radius: 0; background: none; box-shadow: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(247, 147, 29, 0.2);
}
.field select {
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5.5 L7 9.5 L11 5.5' stroke='%23c9ced9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 38px;
}
/* text inputs: lighter fill + border than the card so they read as fields; selects a step lighter again */
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea { background-color: #262c36; border-color: #4a5468; }
/* one height for single-line inputs and selects so they line up in a .grid2 row */
.field input:not([type="radio"]):not([type="checkbox"]), .field select:not([multiple]):not([size]) { height: 50px; box-sizing: border-box; }
.field select { background-color: #2b3240; border-color: #5b6779; padding-left: 18px; text-indent: 4px; }   /* a little breathing room before the text */
.field select:hover:not(:focus) { background-color: #323a4a; border-color: #7c889f; }
.field select:focus { background-color: #323a4a; }
.field select option { background: var(--card); color: var(--ink); }

/* the open drop-down list: Firefox honors option padding natively; Chrome/Edge 134+ can style the popup itself via
   the customizable-select mode (older browsers ignore this block and keep the native list) */
select option { padding: 7px 12px; }
@supports (appearance: base-select) {
    select:not([multiple]):not([size]), select:not([multiple]):not([size])::picker(select) { appearance: base-select; }
    select:not([multiple]):not([size])::picker-icon { display: none; }   /* our own caret (background image) stays */
    .field select:not([multiple]):not([size]) { display: flex; align-items: center; line-height: 1.2; overflow: hidden; min-width: 0; }
    .field select:not([multiple]):not([size]) > selectedcontent { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    select::picker(select) {
        background: #262c36; color: var(--ink);
        border: 1px solid #5b6779; border-radius: 10px; padding: 6px;
        box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.75); margin-top: 4px;
    }
    select option { padding: 9px 14px; border-radius: 6px; font-size: 14.5px; color: var(--ink); }
    select option:hover, select option:focus-visible { background: rgba(247, 147, 29, 0.16); outline: none; }
    select option:checked { background: var(--brand); color: #14171c; }
    select option::checkmark { display: none; }
}
.field textarea { resize: vertical; min-height: 84px; }
.g-recaptcha { margin: 4px 0 20px; }
.fineprint { font-size: 13px; color: var(--faint); text-align: center; margin-top: 12px; }

/* ---- alerts (markup from lib/alert.php; dismiss JS in foot-modern.php) ---- */
.alert {
    position: relative; display: block;
    border: 1px solid; border-radius: 12px;
    padding: 14px 44px 14px 18px; margin: 18px 0;
    font-size: 15px; font-weight: 500;
}
.alert .close {
    position: absolute; top: 8px; right: 12px;
    background: none; border: 0; cursor: pointer;
    font-size: 22px; line-height: 1; color: inherit; opacity: 0.6;
}
.alert .close:hover { opacity: 1; }
.alert-success { background: #16281d; border-color: #2c5e3f; color: #8fd8ab; }
.alert-info    { background: #14232e; border-color: #2a5372; color: #8ec7ec; }
.alert-warning { background: #2d2412; border-color: #6d5620; color: #ecc978; }
.alert-danger  { background: #2e1719; border-color: #6d3038; color: #ec9aa2; }

/* ---- footer (template/foot-modern.php) ---- */
.site-footer {
    background: var(--panel); border-top: 1px solid var(--line);
    padding: 16px 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    flex-wrap: wrap;
    font-size: 14px; color: var(--faint);
    margin-top: auto;   /* with body as a min-100vh flex column, this pins the footer to the page bottom */
}
.site-footer.fixed { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; }
.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--brand); }
.site-footer .social { display: flex; align-items: center; gap: 14px; }
.site-footer .social svg { display: block; }

/* ---- responsive ---- */
@media (min-width: 961px) {
    .split.wide-right { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); }
}
@media (max-width: 960px) {
    .desktop-only { display: none; }
    .grid3 { grid-template-columns: 1fr; }
    .topnav-inner { padding: 8px 20px; }
    .topnav-logo img { height: 72px; }
    .hamburger { display: block; }
    .topnav-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: #191e26; border-bottom: 1px solid #2c333e;   /* matches the nav bar */
        padding: 12px 20px 18px;
        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
    }
    .topnav-links.open { display: flex; }
    .topnav-links > a, .nav-drop > .drop-toggle { padding: 10px 4px; font-size: 16px; }
    .nav-drop:hover > .drop-menu { display: none; }        /* click, not hover, on mobile */
    .nav-drop.open > .drop-menu { display: block; }
    .drop-menu { position: static; padding-top: 4px; min-width: 0; }
    .drop-menu .drop-inner { box-shadow: none; background: var(--bg); }
    .topnav-links > .btn-ghost, .topnav-links > .btn-solid { text-align: center; margin-top: 6px; }

    .page-wrap { padding: 16px 20px 64px; }
    .split { grid-template-columns: 1fr; gap: 40px; padding-top: 20px; }
    .bio { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
    .tour-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 20px; }
    .tour-sidebar { position: static; order: 2; }   /* content first on mobile */
    .tour-content { order: 1; }
    h1 { font-size: 34px; }
    .card { padding: 26px 22px; }
    .grid2 { grid-template-columns: 1fr; gap: 0; }
    .tile-grid { grid-template-columns: 1fr; gap: 16px; }
    .plan-grid, .trust-grid, .trust-grid.two { grid-template-columns: 1fr; }
    .plan { padding: 24px 22px; }
    .site-footer { padding: 14px 20px; justify-content: center; text-align: center; }
}
