/**
 * mbburgess.com brand — white background, black text, light purple accents.
 */

:root {
    --mbb-black: #000000;
    --mbb-white: #ffffff;
    --mbb-accent: #6E00B3;
    --mbb-accent-muted: #8a33c7;
    --mbb-purple: #6E00B3;
    --mbb-purple-hover: #58008f;
    --mbb-purple-light: var(--mbb-accent);
    --mbb-purple-muted: var(--mbb-accent-muted);
    --mbb-surface: #ffffff;
    --mbb-surface-raised: #f5f5f5;
    --mbb-border: #e5e5e5;
    --mbb-muted: #525252;
}

html {
    background: var(--mbb-white) !important;
    background-image: none !important;
}

body {
    background-color: var(--mbb-white) !important;
    color: var(--mbb-black);
}

h1,
h2,
h3 {
    color: var(--mbb-black);
}

a {
    color: var(--mbb-purple);
}

a:hover {
    color: var(--mbb-purple-hover);
}

.card,
.card--readable,
.card--legal,
.card--detail,
body.page-500 .card {
    background-color: #ffffff !important;
    color: var(--mbb-black);
    border: 1px solid var(--mbb-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.card p a,
.meta a,
.copy a {
    color: var(--mbb-purple);
}

.meta {
    color: var(--mbb-muted);
}

code {
    color: var(--mbb-purple);
}

/* Header */
.site-header {
    background-color: var(--mbb-white) !important;
    border-bottom: 1px solid var(--mbb-border) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.site-header__brand {
    gap: 12px;
}

.site-header__brand-logo {
    display: block;
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
    object-fit: contain;
}

.site-header__brand-lockup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
    min-width: 0;
}

.site-header__brand-name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(0.82rem, 2.2vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mbb-black);
}

.site-header__brand:hover .site-header__brand-logo {
    opacity: 0.88;
}

.site-header .site-header__nav-link {
    color: var(--mbb-black);
    background: transparent;
    border: none;
}

.site-header .site-header__nav-link:hover,
.site-header .site-header__nav-link:focus-visible {
    color: var(--mbb-purple) !important;
    border: none !important;
    background: transparent !important;
}

.site-header .site-header__nav-link.is-active {
    color: var(--mbb-purple) !important;
    border: 1px solid var(--mbb-purple) !important;
    background: var(--mbb-surface-raised) !important;
}

.site-header .site-header__nav-label {
    color: var(--mbb-black);
}

.site-header__item--has-submenu.is-submenu-active .site-header__nav-label {
    color: var(--mbb-purple) !important;
}

.site-header__submenu {
    background: var(--mbb-white) !important;
    border-color: var(--mbb-border) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.site-header__menu-toggle {
    background: var(--mbb-white) !important;
    border-color: var(--mbb-border) !important;
    color: var(--mbb-black);
}

.site-header__menu-toggle:hover,
.site-header__menu-toggle:focus-visible {
    border-color: var(--mbb-purple) !important;
    background: var(--mbb-surface-raised) !important;
    outline-color: var(--mbb-purple) !important;
}

@media (max-width: 991.98px) {
    .site-header__nav.is-open {
        background: var(--mbb-white);
        border-color: var(--mbb-border);
    }
}

.btn-link,
.text-link {
    color: var(--mbb-purple);
}

.btn-link:hover,
.text-link:hover {
    color: var(--mbb-purple-hover);
}

.notice-warn {
    color: var(--mbb-black);
    border-color: var(--mbb-purple-light);
}

/* Page intros (baseball, charts) */
.baseball-intro,
.charts-intro {
    color: var(--mbb-black) !important;
    font-weight: bold;
}

/* Resume page */
body.page-resume {
    background-color: #e5e5e5 !important;
    color: var(--mbb-black);
}

html:has(body.page-resume) {
    background: #e5e5e5 !important;
}

body.page-resume .resume-sheet__hero {
    border-bottom-color: var(--mbb-purple-light) !important;
}

body.page-resume .resume-sheet__tagline,
body.page-resume .resume-section__title,
body.page-resume .resume-entry__dates,
body.page-resume .resume-entry__location {
    color: var(--mbb-purple-muted) !important;
}

body.page-resume .resume-sheet a {
    color: var(--mbb-purple);
}

body.page-resume .resume-sheet a:hover {
    color: var(--mbb-purple-hover);
}

body.page-resume .resume-skill {
    border-color: var(--mbb-purple-light) !important;
    color: var(--mbb-black);
}

/* baseball.php — light card & dark table text (override legacy b-team bundle) */
body.page-baseball .card,
body.page-baseball .card.card--pvm {
    background-color: #ffffff !important;
    color: #111111 !important;
    border-color: var(--mbb-border) !important;
}

body.page-baseball .card h1,
body.page-baseball .card h2,
body.page-baseball .pvm-page-toolbar h1,
body.page-baseball .pvm400-matchup__title {
    color: #111111 !important;
}

body.page-baseball .meta,
body.page-baseball .panel-hint,
body.page-baseball .pvm400-matchup-status {
    color: #444444 !important;
}

body.page-baseball .lineup-table th,
body.page-baseball .pvm400-hitters-table th,
body.page-baseball table.lineup-hitter thead th,
body.page-baseball table.lineup-hitter thead th:nth-child(n+4):nth-child(-n+8),
body.page-baseball table.lineup-team thead th:nth-child(n+3):nth-child(-n+7) {
    color: #111111 !important;
    background: #eeeeee !important;
    border-bottom-color: #dddddd !important;
}

body.page-baseball .lineup-table td,
body.page-baseball .pvm400-hitters-table td,
body.page-baseball table.lineup-hitter tbody td,
body.page-baseball table.lineup-hitter tbody td:nth-child(n+4):nth-child(-n+8),
body.page-baseball table.lineup-team tbody td:nth-child(n+3):nth-child(-n+7) {
    color: #111111 !important;
    background: #ffffff !important;
    border-bottom-color: #eeeeee !important;
}

body.page-baseball .lineup-table tbody tr:hover td,
body.page-baseball .pvm400-hitters-table tbody tr:hover td,
body.page-baseball table.lineup-hitter tbody tr:hover td,
body.page-baseball table.lineup-hitter tbody tr:hover td:nth-child(n+4):nth-child(-n+8) {
    background: #f3f3f3 !important;
    color: #111111 !important;
}

body.page-baseball .lineup-table th.sortable:hover,
body.page-baseball table.lineup-hitter thead th:nth-child(n+4):nth-child(-n+8).sortable:hover {
    background: #e0e0e0 !important;
    color: #111111 !important;
}

body.page-baseball .pvm400-hitters-table tbody tr td,
body.page-baseball .pvm400-hitters-table .text-link,
body.page-baseball .pvm400-hitter-name-link {
    color: #111111 !important;
}

body.page-baseball .pvm400-hitters-table .text-link:hover,
body.page-baseball .pvm400-hitter-name-link:hover {
    color: var(--mbb-purple) !important;
}

body.page-baseball .pvm400-toolbar .btn-link,
body.page-baseball .pvm400-date-nav .btn-link,
body.page-baseball .pvm400-load-all-toolbar .btn-link {
    border-color: #dddddd !important;
    background: #f5f5f5 !important;
    color: #111111 !important;
}

body.page-baseball .pvm400-toolbar .btn-link:hover,
body.page-baseball .pvm400-date-nav .btn-link:hover,
body.page-baseball .pvm400-load-all-toolbar .btn-link:hover {
    background: #eeeeee !important;
}

body.page-baseball .pvm400-date-nav .btn-link.is-active {
    background: #e8e8e8 !important;
    border-color: #cccccc !important;
    color: #111111 !important;
}

body.page-baseball .pvm400-hitters-table tbody tr.pvm400-hitter-row--purple td {
    background: rgba(147, 51, 234, 0.22) !important;
    color: #111111 !important;
}

body.page-baseball .pvm400-hitters-table tbody tr.pvm400-hitter-row--purple:hover td {
    background: rgba(147, 51, 234, 0.32) !important;
}

body.page-baseball .pvm400-hitters-table tbody tr.pvm400-hitter-row--red td {
    background: rgba(220, 38, 38, 0.22) !important;
    color: #111111 !important;
}

body.page-baseball .pvm400-hitters-table tbody tr.pvm400-hitter-row--red:hover td {
    background: rgba(220, 38, 38, 0.32) !important;
}

body.page-baseball .pvm400-hitters-table tbody tr.pvm400-hitter-row--orange td {
    background: rgba(234, 88, 12, 0.22) !important;
    color: #111111 !important;
}

body.page-baseball .pvm400-hitters-table tbody tr.pvm400-hitter-row--orange:hover td {
    background: rgba(234, 88, 12, 0.32) !important;
}

body.page-baseball .pvm400-hitters-table tbody tr.pvm400-hitter-row--blue td {
    background: rgba(37, 99, 235, 0.22) !important;
    color: #111111 !important;
}

body.page-baseball .pvm400-hitters-table tbody tr.pvm400-hitter-row--blue:hover td {
    background: rgba(37, 99, 235, 0.32) !important;
}

body.page-baseball .pvm400-hitters-table tbody tr.pvm400-hitter-row--green td {
    background: rgba(22, 163, 74, 0.22) !important;
    color: #111111 !important;
}

body.page-baseball .pvm400-hitters-table tbody tr.pvm400-hitter-row--green:hover td {
    background: rgba(22, 163, 74, 0.32) !important;
}

body.page-baseball .pvm400-matchup {
    border-bottom-color: var(--mbb-border) !important;
}

body.page-baseball .lineup-table td.num,
body.page-baseball .pvm400-hitters-table td.num {
    color: #111111 !important;
}

@media (max-width: 520px) {
    .site-header__brand-logo {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 380px) {
    .site-header__brand-name {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }
}
