:root {
    --matched-guide-bg: #0f0f0f;
    --matched-guide-surface: #141614;
    --matched-guide-surface-strong: #191d1a;
    --matched-guide-line: #2e352f;
    --matched-guide-text: #f5f7f5;
    --matched-guide-muted: #b8c0ba;
    --matched-guide-green: #1cad75;
    --matched-guide-green-hover: #22bd82;
    --matched-guide-space-1: 8px;
    --matched-guide-space-2: 16px;
    --matched-guide-space-3: 24px;
    --matched-guide-space-4: 32px;
    --matched-guide-space-5: 48px;
    --matched-guide-space-6: 64px;
    --matched-guide-radius: 8px;
}

body:has(.matched-betting-guide),
.baseholder:has(.matched-betting-guide) {
    background: var(--matched-guide-bg);
}

.baseholder:has(.matched-betting-guide) {
    color: var(--matched-guide-text);
}

.matched-betting-guide.main-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: var(--matched-guide-space-6) var(--matched-guide-space-3) 96px;
    color: var(--matched-guide-text);
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    line-height: 1.72;
}

.matched-betting-guide .toc-container {
    display: block;
    margin-bottom: var(--matched-guide-space-5);
}

.matched-betting-guide .toc-text {
    width: 100%;
}

.matched-betting-guide h1,
.matched-betting-guide h2,
.matched-betting-guide h3 {
    color: var(--matched-guide-text);
    font-family: 'Poppins', sans-serif;
}

.matched-betting-guide h1 {
    max-width: 820px;
    margin: 0 0 var(--matched-guide-space-2);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-align: left;
}

.matched-betting-guide .toc-text > p {
    margin: 0 0 var(--matched-guide-space-4);
    color: var(--matched-guide-muted);
    font-size: 15px;
}

.matched-betting-guide h2 {
    margin: var(--matched-guide-space-6) 0 var(--matched-guide-space-3);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--matched-guide-line);
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 650;
    line-height: 1.2;
}

.matched-betting-guide h3 {
    margin: var(--matched-guide-space-4) 0 12px;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
}

.matched-betting-guide p,
.matched-betting-guide li {
    color: var(--matched-guide-muted);
}

.matched-betting-guide p {
    max-width: 75ch;
    margin-bottom: var(--matched-guide-space-3);
}

.matched-betting-guide ul,
.matched-betting-guide ol {
    margin: 0 0 var(--matched-guide-space-3);
    padding-left: var(--matched-guide-space-3);
}

.matched-betting-guide li {
    margin-bottom: var(--matched-guide-space-1);
    padding-left: 4px;
}

.matched-betting-guide strong {
    color: var(--matched-guide-text);
}

.matched-betting-guide .table-of-contents {
    width: 100%;
    max-width: 760px;
    padding: var(--matched-guide-space-3);
    border: 1px solid var(--matched-guide-line);
    border-radius: var(--matched-guide-radius);
    background: var(--matched-guide-surface);
    box-shadow: none;
}

.matched-betting-guide .table-of-contents > p {
    margin-bottom: var(--matched-guide-space-2);
}

.matched-betting-guide .table-of-contents strong {
    color: var(--matched-guide-green);
}

.matched-betting-guide .table-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px var(--matched-guide-space-4);
    margin: 0;
    padding-left: 20px;
}

.matched-betting-guide .table-content li {
    margin: 0;
}

.matched-betting-guide .table-content a,
.matched-betting-guide .wagerwise-link {
    color: var(--matched-guide-green);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color 150ms ease, text-decoration-color 150ms ease;
}

.matched-betting-guide .table-content a {
    color: var(--matched-guide-text);
}

.matched-betting-guide .table-content a:hover,
.matched-betting-guide .table-content a:focus-visible,
.matched-betting-guide .wagerwise-link:hover,
.matched-betting-guide .wagerwise-link:focus-visible {
    color: var(--matched-guide-green-hover);
    text-decoration-color: currentColor;
}

.matched-betting-guide .table-content a:focus-visible,
.matched-betting-guide .wagerwise-link:focus-visible {
    outline: 2px solid var(--matched-guide-green);
    outline-offset: 3px;
}

.matched-betting-guide .highlight {
    margin: var(--matched-guide-space-4) 0;
    padding: var(--matched-guide-space-3);
    border: 1px solid var(--matched-guide-line);
    border-left: 4px solid var(--matched-guide-green);
    border-radius: var(--matched-guide-radius);
    background: var(--matched-guide-surface-strong);
    color: var(--matched-guide-muted);
    font-family: 'Poppins', sans-serif;
}

@media (max-width: 768px) {
    .matched-betting-guide.main-container {
        padding: var(--matched-guide-space-5) var(--matched-guide-space-2) var(--matched-guide-space-6);
        font-size: 16px;
    }

    .matched-betting-guide .table-content {
        grid-template-columns: 1fr;
        gap: var(--matched-guide-space-1);
    }

    .matched-betting-guide h2 {
        margin-top: var(--matched-guide-space-5);
    }
}
