body {
    background-color: #f8f9fa;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

/* Center page content with side margins on larger screens */
.app-wrap {
    max-width: 1120px; /* tweak as desired: 960–1280px */
    margin-left: auto;
    margin-right: auto;
}

.date-heading {
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Masthead (logos left, description right) */
.masthead {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
}
.masthead-inner { margin: 0; }
.mast-brand { display: flex; align-items: center; gap: 8px; }
.mast-brand.justify-content-center { justify-content: center; }
.brand-logo { height: 34px; width: auto; }
.brand-logo.small { height: 26px; }
.brand-x { color: #6c757d; font-weight: 700; }
.mast-desc { margin: 0; }
/* Masthead headline */
.mast-headline {
    font-weight: 600;
    line-height: 1.3;
}
/* Make the masthead description alert lighter */
.mast-desc.alert.alert-secondary {
    background-color: #f5f6f8;
    border-color: #e7e9ee;
    color: #525960;
}
/* Soft chip style for product link */
.product-chip {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0b5ed7;
    background: #eaf2ff;
    border: 1px solid #d6e6ff;
    padding: 2px 8px;
    border-radius: 999px;
    text-decoration: none;
}
.product-chip:hover {
    color: #0a58ca;
    background: #e1edff;
    border-color: #cfe2ff;
    text-decoration: none;
}

.date-nav {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.date-nav-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 12px;
}
.date-nav .nav-title { font-weight: 600; }
.btn.btn-sm.btn-outline-secondary.disabled, .btn.btn-sm.btn-outline-secondary:disabled { pointer-events: none; }

@media (max-width: 768px) {
}

.alert-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.alert-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.alert-text {
    line-height: 1.5;
}
/* Slightly rounded corners for videos */
.alert-video video {
    border-radius: 6px;
    overflow: hidden;
}

/* Language blocks (English/Spanish) */
.lang-block {
    background: #f9fbfc;
    border: 1px solid #e5edf2;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}
.lang-block:last-child {
    margin-bottom: 0;
}
.lang-header {
    margin-bottom: 6px;
}
.lang-chip {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0b5ed7;
    background: #e7f1ff;
    border: 1px solid #cfe2ff;
    padding: 2px 8px;
    border-radius: 999px;
}
.lang-content {
    color: #212529;
}
.lang-footer .see-more-link {
    font-size: 0.9rem;
}

/* MTA badge styles for lines and special tokens */
.mta-badge {
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    line-height: 1.4em;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 1em;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    margin: 0 0.09em 0 0.09em;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0,0,0,0.10);
    letter-spacing: 0;
    padding: 0;
}
.mta-line-1 { background: #EE352E; }
.mta-line-2 { background: #EE352E; }
.mta-line-3 { background: #EE352E; }
.mta-line-4 { background: #00933C; }
.mta-line-5 { background: #00933C; }
.mta-line-6 { background: #00933C; }
.mta-line-7 { background: #B933AD; }
.mta-line-A { background: #2850AD; }
.mta-line-B { background: #FF6319; }
.mta-line-C { background: #0039A6; }
.mta-line-D { background: #FF6319; }
.mta-line-E { background: #0039A6; }
.mta-line-F { background: #FF6319; }
.mta-line-G { background: #6CBE45; }
.mta-line-H { 
    background: #A7A9AC; 
    color: #fff; 
    position: relative; /* enable inner absolute positioning */
}
/* Centered S */
.mta-line-H .h-base {
    position: absolute;
    top: 60%;
    left: 40%;
    transform: translate(-50%, -52%); /* slight optical tweak toward center */
    font-weight: 700;
}
/* Small superscript R at top-right inside the circle */
.mta-line-H .h-sup {
    position: absolute;
    top: 0.58em;
    right: 0.40em;



    font-size: 0.48em;
    font-weight: 700;
    line-height: 1;
}
.mta-line-J { background: #996633; }
.mta-line-L { background: #A7A9AC; color: #222; }
.mta-line-M { background: #FF6319; }
.mta-line-N { background: #FCCC0A; color: #222; }
.mta-line-Q { background: #FCCC0A; color: #222; }
.mta-line-R { background: #FCCC0A; color: #222; }
.mta-line-S { background: #A7A9AC; color: #222; }
.mta-line-SIR { background: #2850AD; }
.mta-line-SF { background: #A7A9AC; color: #222; font-size: 0.7em; }
.mta-line-W { background: #FCCC0A; color: #222; }
.mta-line-Z { background: #996633; }
.mta-planned { background: #444; border-radius: 0.7em; padding: 0.05em 0.4em; font-size: 0.9em; height: auto; line-height: 1.2; }

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.date-section {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .card-header small {
        margin-top: 0.25rem;
    }
}