/**
 * The site's ONE paywall look (since 2026-11-12, Zach: the light card)
 * Location: /styles/paywall.css   Markup: scripts/paywall.js (card(), chip(),
 * note(), showModal()) and its PHP twin includes/paywall-card.php.
 *
 * A white card with a soft border, a lock in a tinted circle, the headline,
 * the allowance line, a filled "Become a member" button and a "Log in" link.
 * Over a locked section it sits on the section's blurred, faded skeleton.
 * Colours are tokens only, the button and lock from the SITE's brand (a
 * partner site's lock wears its own colour). Never a page-local copy of
 * these rules: a lock that needs another place gets a modifier here.
 */

/* ========================================
   PAYWALL VARIABLES (change once, applies everywhere)
   ======================================== */
:root {
    --pw-accent: color-mix(in srgb, var(--tmb-brand), black 30%);
    --pw-accent-hover: color-mix(in srgb, var(--tmb-brand), black 42%);
    --pw-accent-tint: color-mix(in srgb, var(--tmb-brand) 14%, var(--tmb-surface));
    --pw-cover: color-mix(in srgb, var(--tmb-surface) 72%, transparent);
    --pw-border: var(--tmb-gray-300);
    --pw-text: var(--tmb-gray-900);
    --pw-text-2: var(--tmb-gray-700);
    --pw-on-accent: var(--tmb-surface);
}

/* ========================================
   THE CARD
   ======================================== */

.tmb-pw-card {
    background: var(--tmb-surface);
    border: 1px solid var(--pw-border);
    border-radius: 12px;
    box-shadow: 0 6px 24px var(--tmb-black-10);
    color: var(--pw-text);
    text-align: center;
    padding: 22px 28px 20px;
    max-width: 460px;
    margin: 0 auto;
    cursor: default;
}

.tmb-pw-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pw-accent-tint);
    color: var(--pw-accent);
    font-size: 19px;
    margin-bottom: 10px;
}

.tmb-pw-card p { margin: 0; }

.tmb-pw-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pw-text);
}

.tmb-pw-sub {
    margin-top: 6px !important;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--pw-text-2);
}

/* A page's own paragraph rules (the blog theme's .entry-content p) must not
   resize the card's two lines. */
.tmb-pw-card p.tmb-pw-title { font-size: 1.1rem !important; line-height: 1.3 !important; }
.tmb-pw-card p.tmb-pw-sub { font-size: 0.875rem !important; line-height: 1.45 !important; }
.tmb-pw-card.tmb-pw-inline p.tmb-pw-title { font-size: 0.95rem !important; }

.tmb-pw-sub a,
.tmb-pw-note a { color: var(--pw-accent); font-weight: 600; }

.tmb-pw-actions {
    margin-top: 14px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.tmb-unlock-btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--pw-accent);
    color: var(--pw-on-accent) !important;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.tmb-unlock-btn:hover,
.tmb-unlock-btn:focus { background: var(--pw-accent-hover); color: var(--pw-on-accent) !important; }

.tmb-signin-btn {
    display: inline-block;
    padding: 9px 2px;
    background: none;
    border: none;
    color: var(--pw-accent) !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    cursor: pointer;
}
.tmb-signin-btn:hover { color: var(--pw-accent-hover) !important; }

/* Inline: one row (a banner across a list, a strip over columns). */
.tmb-pw-card.tmb-pw-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    max-width: none;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--tmb-black-5);
}
.tmb-pw-inline .tmb-pw-lock { margin: 0; flex: 0 0 auto; width: 36px; height: 36px; font-size: 15px; }
.tmb-pw-inline .tmb-pw-text { flex: 1 1 auto; min-width: 0; }
.tmb-pw-inline .tmb-pw-title { font-size: 0.95rem; }
.tmb-pw-inline .tmb-pw-sub { margin-top: 2px !important; }
.tmb-pw-inline .tmb-pw-actions { margin-top: 0; flex: 0 0 auto; justify-content: flex-end; }

/* ========================================
   OVER A LOCKED SECTION
   ======================================== */

.tmb-paywall-locked {
    position: relative;
    overflow: hidden;
}

.tmb-lock-overlay {
    position: absolute;
    inset: 0;
    background: var(--pw-cover);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 10;
    border-radius: 4px;
}

/* The pre-2026-11-12 markup some pages still print server-side: the same
   card, from the same rules. */
.tmb-lock-overlay-content {
    background: var(--tmb-surface);
    border: 1px solid var(--pw-border);
    border-radius: 12px;
    box-shadow: 0 6px 24px var(--tmb-black-10);
    color: var(--pw-text);
    text-align: center;
    padding: 22px 28px 20px;
    max-width: 460px;
}
.tmb-lock-overlay-content > i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--pw-accent-tint); color: var(--pw-accent);
    font-size: 19px; margin-bottom: 10px;
}
.tmb-lock-overlay-content > p:first-of-type { font-size: 1.1rem; font-weight: 700; color: var(--pw-text); margin: 0; }
.tmb-lock-overlay-content .tmb-pw-sub { margin: 6px 0 0; }

/* ========================================
   CHIP AND NOTE
   ======================================== */

.tmb-pw-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--pw-accent) 35%, transparent);
    background: var(--pw-accent-tint);
    color: var(--pw-accent) !important;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none !important;
}
.tmb-pw-chip:hover { background: color-mix(in srgb, var(--tmb-brand) 22%, var(--tmb-surface)); }
.tmb-pw-chip i { font-size: 0.72rem; }

.tmb-pw-note {
    color: var(--pw-text-2);
    font-size: 0.85rem;
    line-height: 1.45;
}
.tmb-pw-note > i { color: var(--pw-accent); margin-right: 2px; }

/* ========================================
   THE POPUP (a limit hit)
   ======================================== */

.tmb-pw-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: var(--tmb-black-45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.tmb-pw-modal-box { position: relative; width: 100%; max-width: 460px; }
.tmb-pw-modal .tmb-pw-card { box-shadow: 0 16px 48px var(--tmb-black-30); }
.tmb-pw-close {
    position: absolute;
    top: 6px;
    right: 10px;
    z-index: 1;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 4px !important;
    font-size: 26px;
    line-height: 1;
    color: var(--tmb-gray-600);
    cursor: pointer;
}
.tmb-pw-close:hover { color: var(--pw-text); }

/* ========================================
   SKELETON SHIMMER (locked game placeholders)
   ======================================== */

.tmb-paywall-skeleton {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    min-height: 200px;
}

.skeleton-section {
    padding: 12px;
}

.skeleton-bar {
    height: 14px;
    background: linear-gradient(90deg, var(--tmb-gray-300) 25%, var(--tmb-gray-100) 50%, var(--tmb-gray-300) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-bar.short {
    height: 10px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   MATCHUP PAGE SPECIFICS
   ======================================== */

.game-container.tmb-paywall-locked .game-content-area {
    min-height: 200px;
}

/* ========================================
   SYSTEMS PAGE SPECIFICS
   ======================================== */

.card.tmb-paywall-locked .card-header {
    position: relative;
    z-index: 15;
    pointer-events: none;
}

.card.tmb-paywall-locked .card-header .btn,
.card.tmb-paywall-locked .card-header .btn-group,
.card.tmb-paywall-locked .card-header .dropdown,
.card.tmb-paywall-locked .card-header #systems-header-controls {
    visibility: hidden;
}

.card.tmb-paywall-locked .card-body {
    min-height: 120px;
}

/* ========================================
   ODDS TRACKER PAGE SPECIFICS
   ======================================== */

td.odds-locked-col,
td.prop-cell.odds-locked-col {
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    background: var(--tmb-gray-100);
    position: relative;
}

td.odds-locked-col:hover {
    background: var(--tmb-gray-300);
}

th.odds-locked-col {
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    cursor: pointer;
    color: transparent;
    position: relative;
}

th.odds-locked-col > * {
    visibility: hidden;
}

th.odds-locked-col::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 14px;
    background: linear-gradient(90deg, var(--tmb-white-10) 25%, var(--tmb-white-20) 50%, var(--tmb-white-10) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 3px;
}

/* The card over locked book columns */
.odds-metered-wrap {
    position: relative;
}
.odds-lock-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background: var(--pw-cover);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 120px 16px 0;
    border-radius: 0 8px 8px 0;
    /* Left edge set by JS */
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .tmb-pw-card, .tmb-lock-overlay-content { padding: 18px 18px 16px; }
    .tmb-pw-title, .tmb-lock-overlay-content > p:first-of-type { font-size: 1rem; }
    .tmb-pw-card.tmb-pw-inline { flex-wrap: wrap; text-align: center; justify-content: center; }
    .tmb-pw-inline .tmb-pw-text { flex-basis: 100%; }
    .tmb-pw-inline .tmb-pw-actions { justify-content: center; width: 100%; }
}
