/* MN State Records - Styles */
/* Version: 2.0.0 - Rebranded to match MSV Hub style */

/* ============================================
   HIDE ASTRA THEME HEADER/NAV/FOOTER
   ============================================ */
body.msv-state-records-page .ast-above-header,
body.msv-state-records-page .ast-below-header,
body.msv-state-records-page .ast-main-header-wrap,
body.msv-state-records-page .site-header,
body.msv-state-records-page #masthead,
body.msv-state-records-page .ast-primary-header,
body.msv-state-records-page .ast-mobile-header-wrap,
body.msv-state-records-page .main-header-bar,
body.msv-state-records-page .ast-header-break-point,
body.msv-state-records-page .site-footer,
body.msv-state-records-page .ast-footer-overlay,
body.msv-state-records-page .ast-small-footer,
body.msv-state-records-page #colophon,
body.msv-state-records-page footer.site-footer,
body.msv-state-records-explorer-page .ast-above-header,
body.msv-state-records-explorer-page .ast-below-header,
body.msv-state-records-explorer-page .ast-main-header-wrap,
body.msv-state-records-explorer-page .site-header,
body.msv-state-records-explorer-page #masthead,
body.msv-state-records-explorer-page .ast-primary-header,
body.msv-state-records-explorer-page .ast-mobile-header-wrap,
body.msv-state-records-explorer-page .main-header-bar,
body.msv-state-records-explorer-page .ast-header-break-point,
body.msv-state-records-explorer-page .site-footer,
body.msv-state-records-explorer-page .ast-footer-overlay,
body.msv-state-records-explorer-page .ast-small-footer,
body.msv-state-records-explorer-page #colophon,
body.msv-state-records-explorer-page footer.site-footer {
    display: none !important;
}

/* Remove ALL padding/margin from Astra containers */
body.msv-state-records-page,
body.msv-state-records-page #page,
body.msv-state-records-page #content,
body.msv-state-records-page .site-content,
body.msv-state-records-page .ast-container,
body.msv-state-records-page .site-main,
body.msv-state-records-page .entry-content,
body.msv-state-records-page article,
body.msv-state-records-page .ast-article-single,
body.msv-state-records-page .ast-separate-container .ast-article-single,
body.msv-state-records-page .ast-separate-container .ast-article-post,
body.msv-state-records-page .ast-plain-container,
body.msv-state-records-page .post-content,
body.msv-state-records-page .page-content,
body.msv-state-records-explorer-page,
body.msv-state-records-explorer-page #page,
body.msv-state-records-explorer-page #content,
body.msv-state-records-explorer-page .site-content,
body.msv-state-records-explorer-page .ast-container,
body.msv-state-records-explorer-page .site-main,
body.msv-state-records-explorer-page .entry-content,
body.msv-state-records-explorer-page article,
body.msv-state-records-explorer-page .ast-article-single,
body.msv-state-records-explorer-page .ast-separate-container .ast-article-single,
body.msv-state-records-explorer-page .ast-separate-container .ast-article-post,
body.msv-state-records-explorer-page .ast-plain-container,
body.msv-state-records-explorer-page .post-content,
body.msv-state-records-explorer-page .page-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.msv-state-records-page .ast-separate-container .ast-article-single,
body.msv-state-records-page .ast-separate-container #primary,
body.msv-state-records-explorer-page .ast-separate-container .ast-article-single,
body.msv-state-records-explorer-page .ast-separate-container #primary {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================
   CSS Variables & Theme (MSV Brand Colors)
   ============================================ */
:root {
    --msv-mint-green: #6fcf8a;
    --msv-ocean-blue: #7ec8e8;
    --msv-light-blue: #a8e4f9;
    --msv-dark: #1a1a1a;
    --msv-dark-alt: #2a2a2a;
    --mn-primary: #002855;
    --mn-secondary: #C8102E;
    --mn-gold: #FFB81C;
    --mn-light: #F4F6F8;
    --mn-text: #2D3748;
    --mn-text-light: #718096;
    --mn-border: #E2E8F0;
    --mn-white: #FFFFFF;
    --mn-success: #38A169;
    --mn-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mn-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --mn-radius: 8px;
    --mn-radius-lg: 12px;
    --mn-transition: all 0.2s ease;
    
    /* Timeline specific colors */
    --mn-alltime: #002855;
    --mn-class-a: #38A169;
    --mn-class-aa: #C8102E;
}

/* ============================================
   Hub Wrapper - Full Bleed
   ============================================ */
.msv-hub.msv-state-records-wrapper,
.msv-hub.msv-state-records-explorer-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    background: var(--mn-light);
    color: var(--mn-text);
    line-height: 1.6;
}

/* ============================================
   Hub Header - Dark with Mint Accent
   ============================================ */
.msv-hub__header {
    background: linear-gradient(135deg, var(--msv-dark) 0%, var(--msv-dark-alt) 100%);
    color: #fff !important;
    padding: 32px 24px;
    text-align: center;
    border-bottom: 4px solid var(--msv-mint-green);
}

.msv-hub__header-inner {
    max-width: 800px;
    margin: 0 auto;
}

.msv-hub__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    color: #fff !important;
}

.msv-hub__subtitle {
    margin: 0;
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .msv-hub__header { padding: 40px 24px; }
    .msv-hub__title { font-size: 2rem; }
}

/* ============================================
   Hub Content Area
   ============================================ */
.msv-hub__content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* ============================================
   Base Container
   ============================================ */
.mn-state-records-container,
.mn-state-records-explorer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--mn-text);
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
}

/* ============================================
   Loading State
   ============================================ */
.mn-state-records-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--mn-text-light);
}

.mn-state-records-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--mn-border);
    border-top-color: var(--msv-mint-green);
    border-radius: 50%;
    animation: mn-state-spin 0.8s linear infinite;
}

@keyframes mn-state-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Toggle Buttons Container
   ============================================ */
.mn-state-records-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .mn-state-records-toggles {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }
}

/* ============================================
   Toggle Group
   ============================================ */
.mn-state-records-toggle-group {
    display: flex;
    background: var(--mn-white);
    border-radius: var(--mn-radius);
    box-shadow: var(--mn-shadow);
    overflow: hidden;
    border: 1px solid var(--mn-border);
}

.mn-state-records-toggle-group button {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--mn-white);
    color: #2D3748 !important;
    border: none;
    cursor: pointer;
    transition: var(--mn-transition);
    white-space: nowrap;
}

.mn-state-records-toggle-group button:not(:last-child) {
    border-right: 1px solid var(--mn-border);
}

.mn-state-records-toggle-group button:hover {
    background: var(--mn-light);
}

.mn-state-records-toggle-group button.active {
    background: var(--msv-dark);
    color: #FFFFFF !important;
}

/* Boys/Girls specific colors when active */
.mn-state-records-toggle-group.program-toggle button.active[data-program="boys"] {
    background: var(--mn-primary);
}

.mn-state-records-toggle-group.program-toggle button.active[data-program="girls"] {
    background: var(--msv-ocean-blue);
    color: var(--msv-dark) !important;
}

/* ============================================
   Explore Button - Mint Green Brand Color
   ============================================ */
.mn-state-records-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--msv-mint-green) 0%, #5ab876 100%);
    color: var(--msv-dark) !important;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--mn-radius);
    cursor: pointer;
    transition: var(--mn-transition);
    box-shadow: var(--mn-shadow);
    text-decoration: none;
}

.mn-state-records-explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--mn-shadow-lg);
    background: linear-gradient(135deg, #7fd99a 0%, var(--msv-mint-green) 100%);
    color: var(--msv-dark) !important;
    text-decoration: none;
}

.mn-state-records-explore-btn svg {
    width: 20px;
    height: 20px;
}

.mn-state-records-header-actions {
    margin-top: 16px;
}

/* ============================================
   Records Table Container
   ============================================ */
.mn-state-records-table-container {
    background: var(--mn-white);
    border-radius: var(--mn-radius-lg);
    box-shadow: var(--mn-shadow);
    overflow: hidden;
    border-left: 4px solid var(--msv-mint-green);
}

.mn-state-records-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--msv-dark);
    color: #FFFFFF !important;
}

.mn-state-records-table-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #FFFFFF !important;
    font-weight: 700;
}

/* Girls header color */
.mn-state-records-container[data-current-program="girls"] .mn-state-records-table-header {
    background: var(--msv-ocean-blue);
    color: var(--msv-dark) !important;
}

.mn-state-records-container[data-current-program="girls"] .mn-state-records-table-header h2 {
    color: var(--msv-dark) !important;
}

/* ============================================
   Desktop Table
   ============================================ */
.mn-state-records-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mn-state-records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.mn-state-records-table th,
.mn-state-records-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--mn-border);
}

.mn-state-records-table th {
    background: var(--mn-light);
    font-weight: 600;
    color: var(--mn-dark);
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.mn-state-records-table tr:hover {
    background: #F7FAFC;
}

.mn-state-records-table .event-cell {
    font-weight: 600;
    color: var(--mn-primary);
}

.mn-state-records-table .time-cell {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-weight: 700;
    color: var(--mn-dark);
}

.mn-state-records-table .holder-cell {
    max-width: 200px;
}

.mn-state-records-table .school-cell {
    color: var(--mn-text);
}

.mn-state-records-table .year-cell {
    font-weight: 600;
    color: var(--mn-text-light);
}

.mn-state-records-table .notes-cell {
    font-size: 0.8rem;
    color: var(--mn-text-light);
    font-style: italic;
}

/* Hide desktop table on mobile */
@media (max-width: 768px) {
    .mn-state-records-table-desktop {
        display: none;
    }
}

/* ============================================
   Mobile Cards
   ============================================ */
.mn-state-records-mobile-cards {
    display: none;
}

@media (max-width: 768px) {
    .mn-state-records-mobile-cards {
        display: block;
        padding: 8px;
    }
}

.mn-state-records-mobile-card {
    background: var(--mn-white);
    border-bottom: 1px solid var(--mn-border);
    padding: 16px 12px;
}

.mn-state-records-mobile-card:last-child {
    border-bottom: none;
}

.mn-state-records-mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.mn-state-records-mobile-event {
    flex: 1;
}

.mn-state-records-mobile-event-name {
    font-weight: 700;
    color: var(--mn-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.mn-state-records-mobile-holder {
    font-weight: 600;
    color: var(--mn-dark);
    font-size: 0.9rem;
    line-height: 1.4;
}

.mn-state-records-mobile-time {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mn-primary);
    white-space: nowrap;
}

/* Girls primary color */
.mn-state-records-container[data-current-program="girls"] .mn-state-records-mobile-event-name,
.mn-state-records-container[data-current-program="girls"] .mn-state-records-mobile-time {
    color: var(--msv-ocean-blue);
}

.mn-state-records-mobile-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 0.85rem;
    color: var(--mn-text-light);
}

.mn-state-records-mobile-card-details .school {
    color: var(--mn-text);
    font-weight: 500;
}

.mn-state-records-mobile-card-details .year {
    font-weight: 600;
}

.mn-state-records-mobile-card-details .notes {
    font-style: italic;
    width: 100%;
    margin-top: 4px;
}

/* ============================================
   TIMELINE EXPLORER STYLES
   ============================================ */

.mn-state-records-explorer-header {
    background: linear-gradient(135deg, var(--mn-primary) 0%, var(--mn-dark) 100%);
    color: #FFFFFF !important;
    padding: 24px 20px;
    border-radius: var(--mn-radius-lg);
    margin-bottom: 20px;
    text-align: center;
}

.mn-state-records-explorer-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #FFFFFF !important;
}

.mn-state-records-explorer-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
}

.mn-state-records-explorer[data-current-program="girls"] .mn-state-records-explorer-header {
    background: linear-gradient(135deg, var(--msv-ocean-blue) 0%, #5ba8c8 100%);
}

/* Explorer Controls */
.mn-state-records-explorer-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--mn-white);
    border-radius: var(--mn-radius-lg);
    box-shadow: var(--mn-shadow);
}

@media (min-width: 768px) {
    .mn-state-records-explorer-controls {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mn-state-records-explorer-controls {
        padding: 16px;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .mn-state-records-explorer-select {
        width: 100%;
        min-width: unset;
    }
    
    .mn-state-records-timeline-container {
        padding: 16px 12px;
    }
}

.mn-state-records-explorer-select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mn-state-records-explorer-select-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mn-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mn-state-records-explorer-select {
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--mn-border);
    border-radius: var(--mn-radius);
    background: var(--mn-white);
    color: var(--mn-text);
    cursor: pointer;
    min-width: 200px;
    transition: var(--mn-transition);
}

.mn-state-records-explorer-select:focus {
    outline: none;
    border-color: var(--mn-primary);
    box-shadow: 0 0 0 3px rgba(0, 40, 85, 0.1);
}

.mn-state-records-explorer[data-current-program="girls"] .mn-state-records-explorer-select:focus {
    border-color: var(--msv-ocean-blue);
    box-shadow: 0 0 0 3px rgba(126, 200, 232, 0.2);
}

/* Timeline Container */
.mn-state-records-timeline-container {
    background: var(--mn-white);
    border-radius: var(--mn-radius-lg);
    box-shadow: var(--mn-shadow);
    padding: 24px;
    overflow: hidden;
}

.mn-state-records-timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mn-dark);
    margin: 0 0 8px 0;
    text-align: center;
}

.mn-state-records-timeline-subtitle {
    font-size: 0.9rem;
    color: var(--mn-text-light);
    margin: 0 0 24px 0;
    text-align: center;
}

/* Timeline Legend */
.mn-state-records-timeline-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mn-state-records-timeline-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.mn-state-records-timeline-legend-line {
    width: 24px;
    height: 4px;
    border-radius: 2px;
}

.mn-state-records-timeline-legend-line.alltime {
    background: var(--mn-alltime);
}

.mn-state-records-timeline-legend-line.class-a {
    background: var(--mn-class-a);
}

.mn-state-records-timeline-legend-line.class-aa {
    background: var(--mn-class-aa);
}

/* Timeline SVG Container */
.mn-state-records-timeline-svg-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #FAFBFC;
    border-radius: var(--mn-radius);
    padding: 10px 0;
}

.mn-state-records-timeline-svg {
    display: block;
    width: 100%;
    min-width: 360px;
    height: 500px;
    touch-action: pan-x pan-y;
}

@media (max-width: 768px) {
    .mn-state-records-timeline-svg {
        height: 350px;
        min-width: 100%;
    }
    
    .mn-state-records-timeline-svg-container {
        padding: 5px 0;
        margin: 0 -8px;
        border-radius: 0;
    }
}

/* Timeline Playback Controls */
.mn-state-records-timeline-playback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--mn-border);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .mn-state-records-timeline-playback {
        gap: 10px;
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .mn-state-records-timeline-playback .btn-text {
        display: none;
    }
    
    .mn-state-records-timeline-btn {
        padding: 12px 16px !important;
    }
}

.mn-state-records-timeline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--mn-radius);
    cursor: pointer;
    transition: var(--mn-transition);
}

.mn-state-records-timeline-btn-play {
    background: var(--msv-mint-green);
    color: var(--msv-dark) !important;
}

.mn-state-records-timeline-btn-play:hover {
    background: #5ab876;
}

.mn-state-records-timeline-btn-reset {
    background: var(--mn-light);
    color: var(--mn-text) !important;
}

.mn-state-records-timeline-btn-reset:hover {
    background: var(--mn-border);
}

.mn-state-records-explorer[data-current-program="girls"] .mn-state-records-timeline-btn-play {
    background: var(--msv-ocean-blue);
    color: var(--msv-dark) !important;
}

.mn-state-records-explorer[data-current-program="girls"] .mn-state-records-timeline-btn-play:hover {
    background: #6ab8d8;
}

/* Speed Control */
.mn-state-records-timeline-speed {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--mn-text-light);
}

.mn-state-records-timeline-speed select {
    padding: 8px 12px;
    border: 1px solid var(--mn-border);
    border-radius: var(--mn-radius);
    font-size: 0.85rem;
    background: var(--mn-white);
    cursor: pointer;
}

/* Year Display */
.mn-state-records-timeline-year-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mn-primary);
    text-align: center;
    margin-bottom: 16px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

@media (max-width: 768px) {
    .mn-state-records-timeline-year-display {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .mn-state-records-timeline-title {
        font-size: 1.1rem;
    }
    
    .mn-state-records-timeline-subtitle {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }
    
    .mn-state-records-timeline-legend {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .mn-state-records-timeline-legend-item {
        font-size: 0.75rem;
    }
    
    .mn-state-records-timeline-legend-line {
        width: 18px;
        height: 3px;
    }
}

.mn-state-records-explorer[data-current-program="girls"] .mn-state-records-timeline-year-display {
    color: var(--msv-ocean-blue);
}

/* Record Info Popup/Tooltip */
.mn-state-records-timeline-tooltip {
    position: absolute;
    background: var(--mn-dark);
    color: #FFFFFF;
    padding: 12px 16px;
    border-radius: var(--mn-radius);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 100;
    max-width: 280px;
    box-shadow: var(--mn-shadow-lg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mn-state-records-timeline-tooltip.visible {
    opacity: 1;
}

.mn-state-records-timeline-tooltip-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.mn-state-records-timeline-tooltip-time {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mn-gold);
    margin-bottom: 4px;
}

.mn-state-records-timeline-tooltip-details {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Current Record Display */
.mn-state-records-current-records {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.mn-state-records-current-record-card {
    padding: 16px;
    border-radius: var(--mn-radius);
    background: var(--mn-light);
    border-left: 4px solid;
}

.mn-state-records-current-record-card.alltime {
    border-left-color: var(--mn-alltime);
}

.mn-state-records-current-record-card.class-a {
    border-left-color: var(--mn-class-a);
}

.mn-state-records-current-record-card.class-aa {
    border-left-color: var(--mn-class-aa);
}

.mn-state-records-current-record-card.merged {
    opacity: 0.5;
    background: repeating-linear-gradient(
        45deg,
        var(--mn-light),
        var(--mn-light) 10px,
        var(--mn-border) 10px,
        var(--mn-border) 20px
    );
}

.mn-state-records-current-record-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.mn-state-records-current-record-card.alltime .mn-state-records-current-record-label {
    color: var(--mn-alltime);
}

.mn-state-records-current-record-card.class-a .mn-state-records-current-record-label {
    color: var(--mn-class-a);
}

.mn-state-records-current-record-card.class-aa .mn-state-records-current-record-label {
    color: var(--mn-class-aa);
}

.mn-state-records-current-record-time {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mn-dark);
    margin-bottom: 8px;
}

.mn-state-records-current-record-holder {
    font-weight: 600;
    color: var(--mn-text);
    margin-bottom: 4px;
}

.mn-state-records-current-record-details {
    font-size: 0.85rem;
    color: var(--mn-text-light);
}

/* Back Button */
.mn-state-records-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--msv-dark);
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--mn-radius);
    cursor: pointer;
    transition: var(--mn-transition);
    text-decoration: none;
    margin-bottom: 20px;
}

.mn-state-records-back-btn:hover {
    background: var(--msv-dark-alt);
    color: #FFFFFF !important;
    text-decoration: none;
}

/* ============================================
   Animations
   ============================================ */
@keyframes mn-state-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mn-state-records-animate-in {
    animation: mn-state-fade-in 0.3s ease forwards;
}

@keyframes mn-state-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.mn-state-records-pulse {
    animation: mn-state-pulse 0.5s ease;
}

/* Line drawing animation */
@keyframes mn-state-draw-line {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

.mn-state-records-timeline-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.mn-state-records-timeline-line.animate {
    animation: mn-state-draw-line 2s ease forwards;
}

/* Record marker pulse */
@keyframes mn-state-marker-appear {
    0% { 
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

.mn-state-records-timeline-marker {
    transform-origin: center;
    opacity: 0;
}

.mn-state-records-timeline-marker.appear {
    animation: mn-state-marker-appear 0.4s ease forwards;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .mn-state-records-toggles,
    .mn-state-records-explorer-controls,
    .mn-state-records-timeline-playback,
    .mn-state-records-back-btn,
    .mn-state-records-explore-btn {
        display: none;
    }
    
    .mn-state-records-mobile-cards {
        display: none !important;
    }
    
    .mn-state-records-table-desktop {
        display: block !important;
    }
    
    .mn-state-records-container,
    .mn-state-records-explorer {
        box-shadow: none;
    }
}
