/* ============================================================
   BSB MECCA — CSS extracted from page-history.php
   Externalized Session 4 (2026-04-21) for caching across page views.
   ============================================================ */

/* --- block 0 from page-history.php --- */
html, body { background: #F5F3EE !important; }
#page, .site-main, body { background: #F5F3EE !important; }
.entry-content { background: transparent; padding: 0; }

.mrh-page {
    --accent: #C8102E;
    --accent-hover: #B84008;
    --bg: #F5F3EE;
    --card-bg: #FFFFFF;
    --border: #CCCCCC;
    --text: #1A1A1A;
    --text-sec: #444444;
    --text-muted: #888888;
    --dotted-rule: linear-gradient(to right, #1A1A1A 24%, transparent 0%) / 4px 1px;
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 80vh;
}
.mrh-page a { color: inherit; text-decoration: none; }

/* Section label + header pattern */
.mrh-section-label {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
    margin-bottom: 16px;
}
.mrh-section-header {
    border-bottom: 2px solid #1A1A1A;
    padding-bottom: 12px;
    margin-bottom: 32px;
}
.mrh-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1A1A1A;
    margin: 0;
}

/* 1. HERO */
.mrh-hero {
    padding: 64px 24px 48px;
    text-align: center !important;
    border-bottom: 1px solid var(--border);
}
.mrh-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}
.mrh-hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #1A1A1A;
    margin: 0 auto 16px;
    text-align: center !important;
}
.mrh-hero-dek {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 20px;
    color: var(--text-sec);
    margin: 0 auto 32px;
    line-height: 1.4;
    text-align: center !important;
}
.mrh-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.mrh-hero-stat {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-sec);
}
.mrh-hero-stat-sep {
    color: var(--text-muted);
    font-size: 18px;
}

/* 2. ERA CARDS */
.mrh-eras {
    padding: 48px 24px;
    border-bottom: 1px solid var(--border);
}
.mrh-eras-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.mrh-era-card {
    padding: 32px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    flex-direction: column;
}
.mrh-era-card:hover {
    background: #EDEBE6;
}
.mrh-era-card + .mrh-era-card {
    border-left: 0;
}
.mrh-era-card--dark {
    background: #222222;
    border-color: #222222;
    color: #F5F3EE;
}
.mrh-era-card--dark:hover {
    background: #2A2A2A;
}
.mrh-era-card--dark .mrh-era-card-period {
    color: rgba(245,243,238,0.6);
}
.mrh-era-card--dark .mrh-era-card-dek {
    color: rgba(245,243,238,0.7);
}
.mrh-era-card--dark .mrh-era-card-stat-label {
    color: rgba(245,243,238,0.5);
}
.mrh-era-card--dark .mrh-era-card-title {
    color: #F7F6F2 !important;
}
.mrh-era-card-period {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.mrh-era-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 12px;
}
.mrh-era-card-dek {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-sec);
    margin: 0;
    flex: 1;
}
.mrh-era-card-footer {
    margin-top: 24px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.mrh-era-card-stat {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}
.mrh-era-card-stat-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Active era highlight */
.mrh-era-card.mrh-era-active {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

/* 3. DECADE NAV */
.mrh-decade-nav {
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}
.mrh-decade-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    overflow-x: auto;
}
.mrh-decade-tab {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 16px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.mrh-decade-tab:hover {
    color: var(--text);
}
.mrh-decade-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* 4. CHAMPIONS TABLE */
.mrh-champions {
    padding: 48px 24px;
    border-bottom: 1px solid var(--border);
}
.mrh-champions-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.mrh-champ-table {
    width: 100%;
    border-collapse: collapse;
}
.mrh-champ-table thead th {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-align: left;
    padding: 0 12px 12px;
    border-bottom: 2px solid #1A1A1A;
}
.mrh-champ-table tbody tr {
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-image: var(--dotted-rule);
    border-image-slice: 1;
}
.mrh-champ-table tbody td {
    padding: 12px;
    vertical-align: middle;
}
.mrh-td-year {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    color: #1A1A1A;
    width: 80px;
}
.mrh-td-class {
    width: 80px;
}
.mrh-class-badge {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    display: inline-block;
}
.mrh-badge--mxgp {
    background: rgba(217,80,10,0.1);
    color: #B84008;
}
.mrh-badge--mx2 {
    background: rgba(0,87,184,0.1);
    color: #0057b8;
}
.mrh-badge--125 {
    background: rgba(0,122,51,0.1);
    color: #007a33;
}
.mrh-td-name {
    font-size: 15px;
    font-weight: 600;
}
.mrh-td-name a {
    color: #1A1A1A;
    transition: color 0.15s;
}
.mrh-td-name a:hover {
    color: var(--accent);
}
.mrh-td-bike {
    font-size: 13px;
    color: var(--text-muted);
}
.mrh-td-nat {
    font-size: 13px;
    color: var(--text-sec);
    white-space: nowrap;
}
.mrh-nat-flag {
    margin-right: 6px;
    font-size: 16px;
}

/* 5. DYNASTIES */
.mrh-dynasties {
    padding: 48px 24px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
}
.mrh-dynasties-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.mrh-dynasties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.mrh-dynasty-card {
    padding: 32px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-image: var(--dotted-rule);
    border-image-slice: 1;
    border-right-style: solid;
    border-right-width: 1px;
    border-right-color: transparent;
}
.mrh-dynasty-card:nth-child(3n) {
    border-right: none;
}
.mrh-dynasty-card:nth-child(3n+1),
.mrh-dynasty-card:nth-child(3n+2) {
    border-right-style: solid;
    border-right-width: 1px;
    border-image: none;
    border-right-color: transparent;
    background-image: linear-gradient(to right, #1A1A1A 24%, transparent 0%);
    background-size: 4px 1px;
    background-repeat: repeat-y;
    background-position: right;
}
.mrh-dynasty-card:nth-last-child(-n+3) {
    border-bottom: none;
    border-image: none;
}
.mrh-dynasty-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.mrh-dynasty-link:hover .mrh-dynasty-name {
    color: var(--accent);
}
.mrh-dynasty-stat {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    display: block;
}
.mrh-dynasty-stat-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}
.mrh-dynasty-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 6px;
    transition: color 0.15s;
}
.mrh-dynasty-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* 6. NATIONS */
.mrh-nations {
    padding: 48px 24px;
    border-bottom: 1px solid var(--border);
}
.mrh-nations-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.mrh-nations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.mrh-nation-card {
    padding: 24px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    text-align: center;
}
.mrh-nation-card--featured {
    grid-column: 1 / -1;
    max-width: 400px;
    padding: 40px;
    border: 2px solid #1A1A1A;
}
.mrh-nation-card--featured .mrh-nation-flag {
    font-size: 48px;
}
.mrh-nation-card--featured .mrh-nation-name {
    font-size: 24px;
}
.mrh-nation-card--featured .mrh-nation-count {
    font-size: 56px;
}
.mrh-nation-flag {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}
.mrh-nation-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 400;
    display: block;
    margin-bottom: 4px;
    color: #1A1A1A;
}
.mrh-nation-count {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #1A1A1A;
    display: block;
    line-height: 1;
}
.mrh-nation-count-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* 7. CLASS HISTORIES */
.mrh-classes {
    padding: 48px 24px;
}
.mrh-classes-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.mrh-classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.mrh-class-card {
    padding: 32px;
    border: 1px solid var(--border);
    background: var(--card-bg);
}
.mrh-class-card + .mrh-class-card {
    border-left: 0;
}
.mrh-class-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
    color: #1A1A1A;
}
.mrh-class-card-years {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 4px;
}
.mrh-class-card-stat {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}
.mrh-class-card-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-sec);
    margin: 0 0 16px;
}
.mrh-class-card-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    transition: color 0.15s;
}
.mrh-class-card-link:hover {
    color: var(--accent-hover);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .mrh-hero-headline { font-size: 36px; }
    .mrh-hero-dek { font-size: 17px; }
    .mrh-eras-inner { grid-template-columns: 1fr; }
    .mrh-era-card + .mrh-era-card { border-left: 1px solid var(--border); border-top: 0; }
    .mrh-era-card--dark + .mrh-era-card { border-left: 1px solid var(--border); }
    .mrh-dynasties-grid { grid-template-columns: 1fr; }
    .mrh-dynasty-card:nth-child(3n+1),
    .mrh-dynasty-card:nth-child(3n+2) {
        background-image: none;
        border-right: none;
    }
    .mrh-classes-grid { grid-template-columns: 1fr; }
    .mrh-class-card + .mrh-class-card { border-left: 1px solid var(--border); border-top: 0; }
    .mrh-nations-grid { grid-template-columns: repeat(2, 1fr); }
    .mrh-nation-card--featured { max-width: 100%; }
    .mrh-td-bike { display: none; }
    .mrh-th-bike { display: none; }
    .mrh-td-year { font-size: 18px; width: 56px; }
}
@media (max-width: 480px) {
    .mrh-hero { padding: 40px 16px 32px; }
    .mrh-hero-headline { font-size: 30px; }
    .mrh-td-nat { display: none; }
    .mrh-th-nat { display: none; }
    .mrh-nations-grid { grid-template-columns: 1fr 1fr; }
}
