:root {
    --navy: #10243c;
    --gold: #d8b66b;
    --ink: #18283b;
    --muted: #64748b;
    --line: #e1e5ea;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #f7f8fa;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

.header {
    background: var(--navy);
    color: white;
    padding: 12px clamp(16px, 4vw, 64px);
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    color: white;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
}

.brand span { color: var(--gold); }

.edition {
    color: var(--gold);
    font-size: 13px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 12px;
    font-size: 14px;
}

nav a {
    color: white;
    text-decoration: none;
}

.pending { color: #b4c0cf; }

.slider {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: var(--navy);
}

.media-stage {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--navy);
}

.media-stage img,
.media-stage video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.fallback {
    color: var(--gold);
    text-align: center;
    display: grid;
    gap: 10px;
}

.fallback strong {
    font-size: clamp(30px, 7vw, 80px);
}

.fallback span {
    font-size: clamp(14px, 3vw, 24px);
}

.sponsored {
    position: absolute;
    top: 12px;
    left: 12px;
    color: white;
    background: rgba(16,36,60,.85);
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 1px;
    border-radius: 4px;
}

.slider-controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16,36,60,.88);
    padding: 6px;
    border-radius: 30px;
}

.slider-controls button {
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
    width: 34px;
    height: 34px;
    font-size: 16px;
}

.slider-controls button:disabled {
    opacity: .35;
    cursor: default;
}

.dots {
    display: flex;
    gap: 2px;
}

.dots button {
    width: 22px;
    font-size: 18px;
    color: #a9b6c7;
}

.dots button.active { color: var(--gold); }

main {
    max-width: 1400px;
    margin: auto;
    padding: 0 clamp(16px, 4vw, 48px) 32px;
}

.intro {
    padding: 40px 0 30px;
    text-align: center;
}

.eyebrow {
    color: #8b6c32;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: bold;
}

h1 {
    font-family: Georgia, serif;
    font-size: clamp(30px, 5vw, 58px);
    margin: 14px 0;
}

.intro p { color: var(--muted); }

.section { margin: 30px 0; }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    font-family: Georgia, serif;
    font-size: clamp(21px, 3vw, 30px);
}

.section-heading span {
    font-size: 12px;
    color: var(--muted);
}

.categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.categories div {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
    padding: 20px 8px;
    font-size: 13px;
}

.categories span {
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
}

.editorial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.editorial article {
    background: white;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: 8px;
    padding: 24px;
}

.editorial small {
    color: #8b6c32;
    font-weight: bold;
}

.editorial h3 {
    font-family: Georgia, serif;
    font-size: 24px;
}

.editorial p {
    color: var(--muted);
    line-height: 1.6;
}

.advertise {
    margin-top: 40px;
    padding: 40px 20px;
    background: var(--navy);
    color: white;
    text-align: center;
    border-radius: 10px;
}

.advertise .eyebrow { color: var(--gold); }

.coming {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 20px;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 6px;
}

footer {
    background: var(--navy);
    color: white;
    padding: 30px 16px;
    display: grid;
    text-align: center;
    gap: 10px;
}

footer small { color: #b4c0cf; }

@media (max-width: 760px) {
    .categories {
        grid-template-columns: repeat(4, 1fr);
    }

    .editorial {
        grid-template-columns: 1fr;
    }

    .slider-controls {
        bottom: 6px;
        gap: 2px;
    }

    .slider-controls button {
        height: 28px;
    }
}

@media (max-width: 380px) {
    .categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* BIRTUAL-independent OFWZ R4-P7E slider repair */

.media-stage {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 160px;
    overflow: hidden;
    isolation: isolate;
}

.media-stage > img,
.media-stage > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
    visibility: visible;
    opacity: 1;
    z-index: 1;
}

.media-stage > .fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.slider-controls,
.sponsored {
    z-index: 5;
}

.ofwz-media-status {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 6;
    max-width: 65%;
    background: rgba(16,36,60,.88);
    color: white;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 11px;
    pointer-events: none;
}

.ofwz-media-status[hidden] {
    display: none !important;
}
