/* School magazine — landing + immersive flipbook reader */

.sf-magazine-page {
    background: linear-gradient(180deg, #f4f6fa 0%, #fff 45%);
}

.sf-magazine-intro {
    padding: 40px 0 56px;
}

.sf-magazine-intro .wrap {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    text-align: center;
}

.sf-magazine-intro h2 {
    margin: 0 0 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    color: #0a276e;
}

.sf-magazine-edition {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(200, 16, 46, 0.1);
    color: #9b0b24;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sf-magazine-intro p {
    margin: 0 auto 28px;
    max-width: 36rem;
    color: #4a5d78;
    line-height: 1.7;
    font-size: 16px;
}

.sf-magazine-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0a276e, #0b2c78);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(10, 39, 110, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sf-magazine-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(10, 39, 110, 0.34);
}

.sf-magazine-empty {
    padding: 48px 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px dashed rgba(10, 39, 110, 0.2);
    color: #5c6b80;
}

/* In-page promo buttons (not in main nav) */
.sf-magazine-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid #0a276e;
    background: #fff;
    color: #0a276e;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(10, 39, 110, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.sf-magazine-promo-btn:hover {
    transform: translateY(-2px);
    background: #0a276e;
    color: #fff;
    box-shadow: 0 14px 32px rgba(10, 39, 110, 0.22);
}

.sf-magazine-promo-btn--on-dark {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: none;
}

.sf-magazine-promo-btn--on-dark:hover {
    background: #fff;
    color: #0a276e;
}

.sf-magazine-promo-band {
    margin: 0 auto clamp(28px, 4vw, 44px);
    padding: 0;
}

.sf-magazine-promo-band .wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.sf-magazine-promo-band__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(10, 39, 110, 0.1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 22px 50px rgba(10, 39, 110, 0.1),
        0 8px 20px rgba(10, 39, 110, 0.06);
}

.sf-magazine-promo-band__inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #c8102e, #9b0b24 45%, #e7c56a 100%);
    z-index: 1;
}

.sf-magazine-promo-band__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 32px;
    background:
        radial-gradient(120% 100% at 0% 50%, rgba(255, 255, 255, 0.08), transparent 55%),
        linear-gradient(155deg, #071e52 0%, #0a276e 42%, #0c348c 100%);
    min-width: 148px;
}

.sf-magazine-promo-band__cover {
    position: relative;
    width: 112px;
    aspect-ratio: 3 / 4;
    border-radius: 6px 14px 14px 6px;
    background: linear-gradient(145deg, #f7f4ec 0%, #fff 38%, #eef3fb 100%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        -6px 0 0 rgba(0, 0, 0, 0.12),
        0 14px 28px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(10, 39, 110, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #0a276e;
}

.sf-magazine-promo-band__cover-edition {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9b0b24;
    background: rgba(200, 16, 46, 0.1);
    white-space: nowrap;
    max-width: 94%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-magazine-promo-band__cover i {
    font-size: 28px;
    margin-top: 18px;
    color: #0b2c78;
    opacity: 0.92;
}

.sf-magazine-promo-band__cover-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4a5d78;
}

.sf-magazine-promo-band__body {
    padding: clamp(22px, 3vw, 32px) clamp(22px, 3.5vw, 36px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    background: linear-gradient(105deg, #fbfcfe 0%, #fff 42%, #f6f9fc 100%);
}

.sf-magazine-promo-band__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.sf-magazine-promo-band__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9b0b24;
    background: rgba(200, 16, 46, 0.09);
    border: 1px solid rgba(200, 16, 46, 0.14);
}

.sf-magazine-promo-band__kicker {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: #64748b;
}

.sf-magazine-promo-band__title {
    margin: 0 0 10px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.2;
    color: #071e52;
    font-weight: 700;
}

.sf-magazine-promo-band__lead {
    margin: 0 0 20px;
    max-width: 36rem;
    font-size: 15px;
    line-height: 1.65;
    color: #4a5d78;
}

.sf-magazine-promo-band__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.sf-magazine-promo-band__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0a276e, #0b2c78);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(10, 39, 110, 0.28);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.sf-magazine-promo-band__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(10, 39, 110, 0.34);
    color: #fff;
    background: linear-gradient(135deg, #071e52, #0a276e);
}

.sf-magazine-promo-band__cta-arrow {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.sf-magazine-promo-band__cta:hover .sf-magazine-promo-band__cta-arrow {
    transform: translateX(3px);
}

.sf-magazine-promo-band__secondary {
    font-size: 14px;
    font-weight: 700;
    color: #0a276e;
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 39, 110, 0.25);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sf-magazine-promo-band__secondary:hover {
    color: #9b0b24;
    border-bottom-color: rgba(155, 11, 36, 0.45);
}

@media (max-width: 720px) {
    .sf-magazine-promo-band__inner {
        grid-template-columns: 1fr;
    }

    .sf-magazine-promo-band__visual {
        padding: 22px;
        min-width: 0;
    }

    .sf-magazine-promo-band__cover {
        width: 96px;
    }

    .sf-magazine-promo-band__body {
        padding-top: 8px;
    }
}

.sf-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    flex: none;
}

.sf-cta-btn--magazine {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.75);
}

.sf-cta-btn--magazine:hover {
    background: #fff;
    color: #0c2e78;
}

/* —— Fullscreen reader (Skyline / Newsline style) —— */
.sf-magazine-reader {
    --sf-mag-bg: #11151f;
    --sf-mag-panel: #1c2230;
    min-height: 100vh;
    margin: 0;
    background: var(--sf-mag-bg);
    color: #e8edf7;
    font-family: Outfit, "Segoe UI", sans-serif;
}

.sf-magazine-reader__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(180deg, rgba(12, 16, 24, 0.98), rgba(12, 16, 24, 0.85));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sf-magazine-reader__top a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    opacity: 0.92;
}

.sf-magazine-reader__top a:hover {
    opacity: 1;
}

.sf-magazine-reader__title {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.sf-magazine-reader__title strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-magazine-reader__title span {
    font-size: 11px;
    opacity: 0.65;
}

.sf-magazine-reader__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 20px 56px 88px;
}

.sf-magazine-reader__book-host {
    width: min(1100px, 100%);
    max-height: calc(100vh - 140px);
}

.sf-magazine-reader__book {
    margin: 0 auto;
}

.sf-magazine-reader__book .page {
    background: #fff;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.04);
}

.sf-magazine-reader__book .page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
}

.sf-magazine-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.sf-magazine-nav-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.06);
}

.sf-magazine-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.sf-magazine-nav-btn--prev {
    left: max(8px, 2vw);
}

.sf-magazine-nav-btn--next {
    right: max(8px, 2vw);
}

.sf-magazine-toolbar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(22, 28, 40, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.sf-magazine-toolbar button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.sf-magazine-toolbar button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sf-magazine-toolbar button.is-active {
    background: rgba(200, 16, 46, 0.35);
}

.sf-magazine-page-indicator {
    min-width: 88px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.88);
    padding: 0 8px;
}

.sf-magazine-loading {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(8, 10, 16, 0.92);
    color: #fff;
}

.sf-magazine-loading[hidden] {
    display: none !important;
}

.sf-magazine-loading__spin {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #e10600;
    border-radius: 50%;
    animation: sfMagSpin 0.9s linear infinite;
}

@keyframes sfMagSpin {
    to {
        transform: rotate(360deg);
    }
}

.sf-magazine-loading p {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}

@media (max-width: 720px) {
    .sf-magazine-reader__stage {
        padding: 12px 44px 92px;
    }

    .sf-magazine-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-magazine-loading__spin {
        animation: none;
    }
}

.sf-magazine-scroll-view {
    overflow-y: auto;
    max-height: calc(100vh - 132px);
    padding: 16px 12px 100px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 42%, #0f172a 100%);
    scroll-behavior: smooth;
}

.sf-magazine-scroll-page {
    display: block;
    max-width: min(860px, 100%);
    width: 100%;
    height: auto;
    margin: 0 auto 18px;
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.sf-magazine-toolbar button.is-active {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}