/* Shared styles for ncaaf-bets.aspx and ncaaf-playoff.aspx (dark theme).
   Linked from ContentPlaceHolder1 (inside <body>), not <head>: that keeps the
   same cascade position the inline styles had, after css/style1.css. Rules
   that restyle the master page's chrome are prefixed with "html body" so they
   also win over css/MasterStyle.css, which loads later. */
/* Dark theme for this page only. The master's stylesheets load after
   this block, so rules that restyle master chrome are prefixed with
   "html body" to win on specificity. */
:root {
    --bg:#0d1117; --surface:#161b22; --surface-2:#1c232c; --row-alt:#11161d; --hover:#17251c;
    --border:#2a323d; --border-soft:#1f2630;
    --text:#e6edf3; --text-2:#c2cbd5; --muted:#8b96a5; --faint:#6b7684;
    --green:#3fb950; --green-strong:#2ea043; --green-bg:rgba(63,185,80,.12); --green-border:rgba(63,185,80,.45);
    --yellow:#e3b341; --yellow-bg:rgba(210,153,34,.14); --yellow-border:rgba(210,153,34,.45);
    --red:#ff7b72;
    --font:'Barlow Semi Condensed', 'Roboto Condensed', 'Arial Narrow', sans-serif;
    --mono:Consolas, Menlo, monospace;
}
html { color-scheme:dark; }
html body { background:var(--bg); color:var(--text); font-family:var(--font); }
/* The master has an inline "body * { font-family: Poppins }", which
   sets every element directly, so inheritance alone won't do. Class
   rules (icon fonts, .hw-formula) still outrank this selector. */
html body * { font-family:var(--font); }

/* master chrome */
html body nav.navbar, html body .navbar-trans, html body .navbar-default { background:rgba(13,17,23,.96) !important; border-bottom:1px solid var(--border); box-shadow:none !important; }
html body .navbar .nav-link { color:var(--text) !important; font-weight:600; letter-spacing:.02em; }
html body .navbar .nav-link:hover { color:var(--green) !important; }
/* crown logo is black-on-white: invert it. On phones the master shows
   it inside the menu toggle button instead of .navbar-brand. */
html body .navbar-brand img, html body .navbar-toggler img { filter:invert(1); mix-blend-mode:lighten; }
html body .navbar-toggler { background:transparent; border-color:transparent; }
html body .navbar-toggler span { background-color:var(--text) !important; }
html body .dropdown-menu { background:var(--surface); border-color:var(--border); }
html body .dropdown-item { color:var(--text-2); }
html body .dropdown-item:hover { background:var(--surface-2); color:var(--text); }
html body .dropdown-header { color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; }
html body .dropdown-divider { border-top-color:var(--border); }
html body .page-wrapper, html body .page-content, html body .main-content,
html body .intro-single, html body .agents-grid { background:transparent !important; }
html body .title-single { color:var(--text); font-weight:700; letter-spacing:.01em; }
html body .title-single-box { border-left-color:var(--green); }
html body .breadcrumb { background:var(--surface) !important; border:1px solid var(--border); }
html body .breadcrumb-item, html body .breadcrumb-item a, html body .breadcrumb-item.active,
html body .breadcrumb-item + .breadcrumb-item::before { color:var(--muted); }
html body .breadcrumb-item a:hover { color:var(--green); }
html body footer.footer, html body .section-footer { background:var(--surface) !important; color:var(--muted); border-top:1px solid var(--border); }
html body footer.footer h5, html body footer.footer a, html body footer.footer .font300 { color:var(--text-2) !important; }

/* switch between the NCAAF pages */
.subnav { display:flex; gap:.4rem; margin-bottom:.9rem; }
.subnav a { border:1px solid var(--border); border-radius:999px; padding:.2rem .85rem; color:var(--text-2); font-weight:600; font-size:15px; }
.subnav a.on { background:var(--green-bg); border-color:var(--green-border); color:var(--green); }
.subnav a:hover { text-decoration:none; color:var(--text); }

/* day nav + summary */
.ncaaf-nav { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1rem; margin-bottom:.75rem; font-size:16px; }
.ncaaf-nav .day { font-weight:700; font-size:1.2rem; color:var(--text); }
.ncaaf-nav .count { color:var(--muted); }
.ncaaf-nav a { color:var(--green); font-weight:500; }
.ncaaf-nav a:hover { color:#56d364; text-decoration:none; }
.ncaaf-nav .live-stamp { color:var(--faint); font-size:13.5px; }
.ncaaf-nav .live-stamp::before { content:""; display:inline-block; width:.5em; height:.5em; border-radius:50%; background:var(--red); margin-right:.35rem; vertical-align:middle; animation:livePulse 2s infinite; }
@keyframes livePulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.ncaaf-nav .how-link { margin-left:auto; border:1px solid var(--green-border); border-radius:999px; padding:.15rem .75rem; }
.ncaaf-nav .how-link:hover { background:var(--green-bg); }
.ncaaf-summary { background:var(--green-bg); border:1px solid var(--green-border); border-radius:8px; padding:.6rem .9rem; margin-bottom:1rem; font-size:16px; color:var(--text); }
.ncaaf-summary a { color:var(--green); font-weight:700; }

/* games table */
.table-responsive { border:1px solid var(--border); border-radius:10px; }
table.ncaaf { width:100%; font-size:15px; border-collapse:collapse; color:var(--text); }
table.ncaaf th { background:var(--surface-2); color:var(--muted); font-weight:600; font-size:12.5px; text-transform:uppercase; letter-spacing:.07em; padding:.6rem .55rem; white-space:nowrap; border-bottom:1px solid var(--border); }
table.ncaaf td { padding:.5rem .55rem; border-bottom:1px solid var(--border-soft); vertical-align:middle; background:var(--surface); }
table.ncaaf tr:nth-child(even) td { background:var(--row-alt); }
table.ncaaf tr:last-child td { border-bottom:0; }
table.ncaaf tr.has-an { cursor:pointer; }
table.ncaaf tr.has-an:hover td { background:var(--hover); }

.when { white-space:nowrap; font-weight:500; color:var(--text-2); }
.when .live { color:var(--red); font-weight:700; }
.when .final { color:var(--faint); }
.when .tv { color:var(--faint); font-size:12.5px; font-weight:400; }

.team { display:flex; align-items:center; gap:.4rem; line-height:1.85; }
.team img { width:22px; height:22px; object-fit:contain; }
.team .rank { font-size:12px; color:var(--muted); min-width:1.2em; text-align:right; }
.team .name { font-weight:500; }
.team .record { font-size:12.5px; color:var(--faint); }
.team .score { margin-left:auto; font-weight:700; min-width:2em; text-align:right; font-variant-numeric:tabular-nums; }
.team.winner .name, .team.winner .score { font-weight:700; color:#fff; }
tr.state-post .team:not(.winner) .name, tr.state-post .team:not(.winner) .score { color:var(--muted); }

.num { white-space:nowrap; text-align:right; line-height:1.85; font-variant-numeric:tabular-nums; }
.num .price { color:var(--faint); font-size:13px; }
table.ncaaf td.pick-cell { background:var(--green-bg) !important; box-shadow:inset 3px 0 0 var(--green); }
.pick-side { font-weight:700; color:var(--green); }
.pick-side .price { color:var(--green); }
.model { color:var(--text-2); }
.noline { color:var(--faint); text-align:center; font-style:italic; }

.pick { white-space:nowrap; }
.badge-bet, .badge-pass, .badge-check { display:inline-block; border-radius:5px; padding:.12rem .5rem; font-size:13px; font-weight:700; letter-spacing:.02em; margin:0 .25rem .15rem 0; }
.badge-bet { background:var(--green-strong); color:#fff; }
.badge-pass { background:var(--surface-2); color:var(--muted); border:1px solid var(--border); }
.badge-check { background:var(--yellow-bg); color:var(--yellow); border:1px solid var(--yellow-border); }
/* NFL: context flags next to the verdict, and day headers within a week */
.badge-qb, .badge-wind { display:inline-block; border-radius:5px; padding:.08rem .4rem; font-size:12px; font-weight:600; margin:0 .25rem .15rem 0; border:1px solid var(--border); color:var(--text-2); }
.badge-qb { color:var(--yellow); border-color:var(--yellow-border); }
.badge-wind { color:#79c0ff; border-color:rgba(121,192,255,.45); }
table.ncaaf tr.day-row td { background:var(--bg) !important; color:var(--muted); font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; padding:.55rem .55rem .35rem; border-bottom:1px solid var(--border); }
.ncaaf-note { color:var(--faint); font-size:13.5px; margin-top:.85rem; line-height:1.5; }

/* modal */
.nm-overlay { position:fixed; inset:0; background:rgba(1,4,9,.75); z-index:10000; display:none; align-items:flex-start; justify-content:center; padding:3vh 1rem; overflow-y:auto; }
.nm-overlay.open { display:flex; }
.nm-panel { background:var(--surface); border:1px solid var(--border); border-radius:12px; max-width:780px; width:100%; padding:1.25rem 1.5rem 1.5rem; position:relative; box-shadow:0 16px 48px rgba(0,0,0,.6); font-size:15px; color:var(--text); }
.nm-close { position:absolute; top:.5rem; right:.75rem; border:0; background:none; font-size:1.7rem; line-height:1; color:var(--muted); cursor:pointer; }
.nm-close:hover { color:var(--text); }
.nm-panel h3 { font-size:1.45rem; font-weight:700; margin:0 2rem .2rem 0; color:var(--text); }
.nm-panel h4 { font-size:1.05rem; font-weight:700; margin:1.2rem 0 .4rem; border-bottom:1px solid var(--border); padding-bottom:.3rem; color:var(--text); }
.an-sub { color:var(--muted); font-size:14px; }
.verdicts { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; margin-top:1rem; }
.verdict { border-radius:8px; padding:.65rem .85rem; border:1px solid var(--border); background:var(--surface-2); }
.verdict p { margin:.35rem 0; font-size:14px; color:var(--text-2); }
.verdict.v-bet { border-color:var(--green-border); background:var(--green-bg); }
.verdict.v-check { border-color:var(--yellow-border); background:var(--yellow-bg); }
.v-title { font-weight:700; font-size:16px; }
.v-market { text-transform:uppercase; font-size:12px; letter-spacing:.07em; color:var(--muted); }
.v-bet .v-word, .v-bet .v-pick { color:var(--green); }
.v-check .v-word { color:var(--yellow); }
.v-pass .v-word { color:var(--muted); }
.v-stats { display:flex; flex-wrap:wrap; gap:.25rem .9rem; font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; }
.v-stats b { color:var(--text); }
table.calc { width:100%; border-collapse:collapse; font-size:14px; font-variant-numeric:tabular-nums; color:var(--text-2); }
table.calc th { font-weight:600; text-align:right; padding:.25rem .45rem; border-bottom:1px solid var(--border); color:var(--muted); }
table.calc td { padding:.25rem .45rem; text-align:right; border-bottom:1px solid var(--border-soft); }
table.calc td:first-child, table.calc th:first-child { text-align:left; }
table.calc tr.total-row td { font-weight:700; color:var(--text); border-top:1px solid var(--border); }
table.calc.steps { max-width:440px; margin-top:.5rem; }
.rk { color:var(--faint); font-size:12px; }
p.how { color:var(--muted); font-size:13.5px; margin:.2rem 0 .45rem; }
ul.notes { padding-left:1.1rem; margin:.2rem 0; font-size:14px; color:var(--text-2); }
ul.notes li { margin:.25rem 0; }
ul.notes.muted { color:var(--muted); }
ul.notes strong { color:var(--text); }

/* saved history: records, locked picks, results */
.ncaaf-summary .sep { display:inline-block; width:1px; height:1em; background:var(--border); margin:0 .75rem; vertical-align:middle; }
.ncaaf-summary .rec { color:var(--text-2); }
.ncaaf-summary .rec b { color:var(--text); }
td.locked { color:var(--muted); }
.res { display:inline-block; min-width:1.4em; text-align:center; border-radius:4px; padding:.05rem .35rem; font-size:12px; font-weight:700; margin:0 .35rem .15rem -.1rem; }
.res-w { background:var(--green-strong); color:#fff; }
.res-l { background:#8b2a2a; color:#ffd7d5; }
.res-p { background:var(--surface-2); color:var(--muted); border:1px solid var(--border); }
.res-live { background:transparent; color:var(--red); border:1px solid rgba(255,123,114,.45); font-weight:600; }
.locked-note { background:var(--surface-2); border:1px solid var(--border); border-left:3px solid var(--green); border-radius:8px; padding:.55rem .8rem; margin:0 2rem .9rem 0; font-size:13.5px; color:var(--text-2); }
.locked-note b { color:var(--text); }

/* "How picks work" guide */
.hw-tabs { display:flex; gap:.25rem; border-bottom:2px solid var(--border); margin:.75rem 0 1rem; overflow-x:auto; scrollbar-width:none; }
.hw-tab { border:0; background:none; padding:.45rem .85rem; font-size:15px; font-weight:600; color:var(--muted); border-bottom:2px solid transparent; margin-bottom:-2px; cursor:pointer; white-space:nowrap; }
.hw-tab:hover { color:var(--text); }
.hw-tab.on { color:var(--green); border-bottom-color:var(--green); }
.hw-panel { display:none; }
.hw-panel.on { display:block; animation:hwIn .15s ease-out; }
@keyframes hwIn { from { opacity:0; transform:translateY(3px); } to { opacity:1; transform:none; } }
.hw-lead { font-size:17px; line-height:1.5; margin:0 0 1rem; color:var(--text); }
.hw-label { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin:1.1rem 0 .45rem; }
.hw-small { font-size:14px; color:var(--text-2); margin:.4rem 0; }
.hw-stats { display:grid; grid-template-columns:repeat(3, 1fr); gap:.6rem; }
.hw-stat { background:var(--green-bg); border:1px solid var(--green-border); border-radius:10px; padding:.7rem .85rem; }
.hw-stat b { display:block; font-size:1.6rem; color:var(--green); line-height:1.15; }
.hw-stat span { font-size:13.5px; color:var(--text-2); }
.hw-flow { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.4rem; counter-reset:hw; }
.hw-flow li { flex:1 1 115px; position:relative; background:var(--surface-2); border:1px solid var(--border); border-left:4px solid var(--green); border-radius:8px; padding:.45rem .65rem; counter-increment:hw; }
.hw-flow li b { display:block; font-size:15px; color:var(--text); }
.hw-flow li b::before { content:counter(hw) ". "; color:var(--green); }
.hw-flow li span { font-size:13px; color:var(--muted); }
.hw-list { padding-left:1.1rem; margin:.2rem 0; font-size:14.5px; color:var(--text-2); }
.hw-list li { margin:.4rem 0; }
.hw-list b { color:var(--text); }
.hw-list.hw-check { list-style:none; padding-left:0; }
.hw-list.hw-check li { padding-left:1.4rem; position:relative; }
.hw-list.hw-check li::before { content:"\2610"; position:absolute; left:0; color:var(--faint); }
.hw-step { display:grid; grid-template-columns:2.1rem 1fr; gap:.8rem; padding:.8rem 0; border-bottom:1px solid var(--border-soft); }
.hw-step:last-child { border-bottom:0; }
.hw-step > div > b { font-size:16px; color:var(--text); }
.hw-step p { margin:.25rem 0; font-size:14.5px; color:var(--text-2); }
.hw-num { width:2.1rem; height:2.1rem; border-radius:50%; background:var(--green-strong); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; }
.hw-formula { font-family:var(--mono); font-size:13px; background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:.5rem .7rem; margin:.45rem 0; color:#d2dae3; }
.hw-formula b { color:var(--green); }
.hw-formula i { color:var(--faint); font-style:normal; }
.hw-eg { font-size:13.5px !important; color:var(--muted) !important; font-style:italic; }
.hw-keys { font-size:14.5px; color:var(--text-2); margin:.4rem 0; }
.hw-keys i { display:inline-block; font-style:normal; font-weight:700; background:var(--green-strong); color:#fff; border-radius:5px; padding:0 .5rem; margin-left:.25rem; }
.hw-table { width:100%; border-collapse:collapse; font-size:14.5px; color:var(--text-2); }
.hw-table th { text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); padding:.35rem .5rem; border-bottom:1px solid var(--border); }
.hw-table td { padding:.55rem .5rem; border-bottom:1px solid var(--border-soft); vertical-align:top; }
.hw-table td:first-child { font-weight:700; white-space:nowrap; color:var(--text); }
.hw-table b { color:var(--text); }
.hw-verdicts td:first-child { width:5.5rem; }
.hw-callout { margin-top:1rem; background:var(--yellow-bg); border:1px solid var(--yellow-border); border-radius:8px; padding:.65rem .85rem; font-size:14px; color:#e9d18c; }
.hw-callout b { color:var(--yellow); }
.hw-cards { display:grid; grid-template-columns:repeat(2, 1fr); gap:.6rem; }
.hw-card { border:1px solid var(--border); border-radius:10px; padding:.65rem .8rem; background:var(--surface-2); }
.hw-card b { font-size:15px; color:var(--green); }
.hw-card p { margin:.25rem 0 0; font-size:14px; color:var(--text-2); }
.hw-filter { width:100%; background:var(--bg); color:var(--text); border:1px solid var(--border); border-radius:8px; padding:.5rem .7rem; font-size:15px; margin-bottom:.75rem; }
.hw-filter::placeholder { color:var(--faint); }
.hw-filter:focus { outline:none; border-color:var(--green); box-shadow:0 0 0 3px var(--green-bg); }
.hw-gloss { display:grid; grid-template-columns:repeat(2, 1fr); gap:.5rem; margin:0; }
.hw-term { border:1px solid var(--border); border-radius:8px; padding:.5rem .7rem; background:var(--surface-2); }
.hw-term dt { font-size:15px; color:var(--green); }
.hw-term dd { margin:.15rem 0 0; font-size:14px; color:var(--text-2); }
.hw-empty { color:var(--faint); font-style:italic; font-size:14px; }

/* phones: tighter table so more of it fits before scrolling */
@media (max-width:640px) {
    .ncaaf-nav { font-size:15px; }
    .ncaaf-nav .how-link { margin-left:0; }
    table.ncaaf { font-size:14px; }
    table.ncaaf th { font-size:11.5px; padding:.5rem .4rem; }
    table.ncaaf td { padding:.45rem .4rem; }
    .team img { width:18px; height:18px; }
    .team .record { display:none; }
    .verdicts, .hw-stats, .hw-cards, .hw-gloss { grid-template-columns:1fr; }
    .nm-panel { padding:1rem 1rem 1.25rem; }
}
