/* Usmaniyya Radio — small additions on top of Tailwind */

[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body { text-rendering: optimizeLegibility; }

:focus-visible {
    outline: 2px solid #B91C1C;
    outline-offset: 2px;
}

/* Live-player equaliser */
.rs-bar-1 { height: 0.9rem; animation: rs-bounce 0.8s ease-in-out infinite; }
.rs-bar-2 { height: 0.55rem; animation: rs-bounce 0.65s ease-in-out infinite 0.1s; }
.rs-bar-3 { height: 0.75rem; animation: rs-bounce 0.9s ease-in-out infinite 0.2s; }
@keyframes rs-bounce {
    0%, 100% { transform: scaleY(0.45); }
    50%      { transform: scaleY(1); }
}

/* Advert spacing. The container always reserves the slot's height. */
.rs-ad { width: 100%; }
.rs-ad--leaderboard { margin: 1rem auto 1.25rem; max-width: 72rem; padding: 0 1rem; min-height: 90px; }
.rs-ad--footer { margin: 0 auto 0; max-width: 72rem; padding: 1.5rem 1rem 0; min-height: 90px; }
.rs-ad--inline { margin: 1.75rem 0; min-height: 90px; }
.rs-ad--hero { margin: 1.5rem 0; }
.rs-ad--sidebar { margin: 0 0 1.25rem; min-height: 250px; }
.rs-ad img, .rs-ad video { display: block; }

/* Article body */
.rs-prose { color: #1f2937; font-size: 1.0625rem; line-height: 1.8; }
.rs-prose > * + * { margin-top: 1.15em; }
.rs-prose p { margin-bottom: 1.15em; }
.rs-prose h2 { margin-top: 1.8em; font-size: 1.4rem; font-weight: 700; line-height: 1.3; color: #111827; }
.rs-prose h3 { margin-top: 1.6em; font-size: 1.2rem; font-weight: 700; line-height: 1.35; color: #111827; }
.rs-prose h4 { margin-top: 1.4em; font-size: 1.05rem; font-weight: 700; color: #111827; }
.rs-prose a { color: #B91C1C; text-decoration: underline; text-underline-offset: 2px; }
.rs-prose a:hover { color: #991B1B; }
.rs-prose strong { font-weight: 700; color: #111827; }
.rs-prose ul { list-style: disc; padding-left: 1.4rem; }
.rs-prose ol { list-style: decimal; padding-left: 1.4rem; }
.rs-prose li + li { margin-top: 0.35em; }
.rs-prose blockquote {
    border-left: 4px solid #F5C518;
    background: #fafafa;
    padding: 0.85rem 1rem;
    color: #374151;
    font-style: italic;
}
.rs-prose img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.rs-prose figure { margin: 1.5rem 0; }
.rs-prose figcaption { margin-top: 0.5rem; font-size: 0.8rem; color: #6b7280; }
.rs-prose hr { border: 0; border-top: 1px solid #e5e7eb; margin: 2rem 0; }

/* Editor (console) */
.ql-toolbar.ql-snow { border-color: #d1d5db; border-radius: 0.5rem 0.5rem 0 0; background: #f9fafb; }
.ql-container.ql-snow { border-color: #d1d5db; border-radius: 0 0 0.5rem 0.5rem; font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif; font-size: 1rem; }
.ql-editor { min-height: 18rem; line-height: 1.7; }
.ql-editor.ql-blank::before { color: #9ca3af; font-style: normal; }

/* Print: hide the player and adverts */
@media print {
    header, footer, .rs-ad, .rs-share { display: none !important; }
    .rs-prose { font-size: 12pt; }
}

/* ============================================================
   Modern editorial refresh
   ============================================================ */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('../fonts/sora-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('../fonts/sora-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html { scroll-padding-top: 6rem; }
body { font-feature-settings: 'cv11', 'ss01'; }

h1, h2, h3, h4, h5, .font-display {
    font-family: 'Sora', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.025em;
}

::selection { background: #F5C518; color: #0A0F1C; }

/* Reading progress bar */
.rs-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 60;
    height: 3px;
    width: 0;
    background: #F5C518;
    transition: width 0.12s linear;
}

/* Small labels */
.rs-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Live dot */
.rs-live-dot { position: relative; display: inline-flex; height: 0.5rem; width: 0.5rem; }
.rs-live-dot::before,
.rs-live-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #E11D2E;
}
.rs-live-dot::before { animation: rs-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; opacity: 0.55; }

/* Equaliser used in the live buttons and on-air cards */
.rs-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 1rem; }
.rs-eq span { width: 3px; border-radius: 2px; background: currentColor; animation: rs-eq 0.9s ease-in-out infinite; }
.rs-eq span:nth-child(1) { height: 45%; animation-delay: 0s; }
.rs-eq span:nth-child(2) { height: 85%; animation-delay: 0.12s; }
.rs-eq span:nth-child(3) { height: 60%; animation-delay: 0.24s; }
.rs-eq span:nth-child(4) { height: 95%; animation-delay: 0.36s; }
.rs-eq.is-idle span { animation: none; height: 35%; }

@keyframes rs-ping {
    0% { transform: scale(1); opacity: 0.55; }
    75%, 100% { transform: scale(2.4); opacity: 0; }
}
@keyframes rs-eq {
    0%, 100% { transform: scaleY(0.45); }
    50% { transform: scaleY(1); }
}

/* Card motion */
.rs-card { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease; }
.rs-card:hover { transform: translateY(-4px); }
.rs-img-zoom img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.rs-img-zoom:hover img { transform: scale(1.05); }

/* Animated underline for text links */
.rs-link {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.3s ease;
}
.rs-link:hover { background-size: 100% 1px; }

/* Horizontal editorial rails */
.rs-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}
.rs-rail > * { scroll-snap-align: start; }
.rs-rail::-webkit-scrollbar { height: 6px; }
.rs-rail::-webkit-scrollbar-thumb { background: #D6D1C6; border-radius: 999px; }

/* Sidebar sticks on long editorial pages */
@media (min-width: 1024px) {
    .rs-sticky { position: sticky; top: 6.5rem; }
}

/* Advert rhythm */
.rs-ad--leaderboard { margin: 0 auto 1.75rem; min-height: 90px; }
.rs-ad--inline { margin: 2.25rem 0; min-height: 90px; }
.rs-ad--footer { margin: 0 auto; padding: 2rem 1rem 0; max-width: 80rem; min-height: 90px; }
.rs-ad--sidebar { margin: 0 0 1.5rem; min-height: 250px; }
.rs-ad > p { margin-bottom: 0.4rem; }

/* Article typography */
.rs-prose {
    color: #26303F;
    font-size: 1.125rem;
    line-height: 1.85;
}
.rs-prose > * + * { margin-top: 1.25em; }
.rs-prose p { margin-bottom: 1.25em; }
.rs-prose h2,
.rs-prose h3,
.rs-prose h4 { color: inherit; font-family: 'Sora', 'Inter', system-ui, sans-serif; }
.rs-prose h2 { margin-top: 2em; font-size: 1.55rem; }
.rs-prose h3 { margin-top: 1.8em; font-size: 1.3rem; }
.rs-prose a { color: #B91C1C; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rs-prose blockquote {
    border-left: 4px solid #F5C518;
    background: #FBF8EE;
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1rem 1.25rem;
    font-style: normal;
    color: #3C4657;
}
.rs-prose img { border-radius: 1rem; }
.rs-prose figcaption { color: #6B7280; }

/* Article share buttons */
.rs-share a,
.rs-share button { transition: transform 0.2s ease, opacity 0.2s ease; }
.rs-share a:hover,
.rs-share button:hover { transform: translateY(-1px); opacity: 0.85; }

/* Mobile menu panel */
.rs-sheet { max-height: calc(100vh - 4rem); overflow-y: auto; overscroll-behavior: contain; }

/* Native audio on episode cards */
audio { accent-color: #B91C1C; }

/* Smooth images */
img { max-width: 100%; }

/* Keep prose readable on dark panels */
.rs-prose-dark { color: rgba(255, 255, 255, 0.78); }
.rs-prose-dark h2, .rs-prose-dark h3, .rs-prose-dark h4, .rs-prose-dark strong { color: #fff; }
.rs-prose-dark a { color: #F5C518; }

/* Print */
@media print {
    .rs-progress { display: none; }
    .rs-prose { font-size: 12pt; }
}