/* Custom typography & animations for TicketsCrunch Editorial (White & Light Theme) */

:root {
    color-scheme: light;
    scrollbar-color: #cbd5e1 #f8fafc;
}

html.dark {
    color-scheme: dark;
    scrollbar-color: #334155 #0f172a;
}

/* Custom scroll progress indicator */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #818cf8, #f59e0b);
    z-index: 100;
    transition: width 0.1s ease-out;
}

/* Editorial prose styling for optimal readability on white backgrounds */
.editorial-prose {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.editorial-prose h2 {
    scroll-margin-top: 5rem;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.dark .editorial-prose h2 {
    color: #f8fafc;
}

.editorial-prose p {
    margin-bottom: 1.25rem;
    color: #334155;
}

.dark .editorial-prose p {
    color: #cbd5e1;
}

.editorial-prose a {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.editorial-prose a:hover {
    color: #4338ca;
}

/* Sticky ticket widget transition */
.sticky-ticket-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Responsive iframe & embeds */
.editorial-article iframe {
    max-width: 100%;
    border-radius: 0.75rem;
}
