/* Newspaper Magazine Pro – theme for The Daily Scope */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --mag-teal: #4db2ec;
    --mag-teal-dk: #008080;
    --mag-red: #dd3333;
    --mag-nav: #222222;
    --mag-nav-hover: #111111;
    --mag-white: #ffffff;
    --mag-bg: #f5f5f5;
    --mag-text: #111111;
    --mag-muted: #767676;
    --mag-border: #e5e5e5;
    --mag-container: 1180px;
    --mag-sidebar: 324px;
    --mag-sidebar-thumb: 90px;
    --mag-font: 'Open Sans', sans-serif;
    --mag-heading: 'Roboto', 'Open Sans', sans-serif;
}

body {
    font-family: var(--mag-font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--mag-text);
    background: var(--mag-bg) url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e8e8e8' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.mag-wrap {
    max-width: var(--mag-container);
    margin: 0 auto;
    padding: 0 15px;
}

.mag-site {
    background: var(--mag-white);
    max-width: var(--mag-container);
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,.06);
}

/* ── TOP UTILITY BAR ── */
.mag-topbar {
    background: var(--mag-white);
    border-bottom: 1px solid var(--mag-border);
    font-size: 11px;
    color: var(--mag-muted);
}
.mag-topbar-inner {
    max-width: var(--mag-container);
    margin: 0 auto;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.mag-topbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mag-topbar-left span { display: inline-flex; align-items: center; gap: 4px; }
.mag-topbar-center { display: flex; gap: 16px; flex-wrap: wrap; }
.mag-topbar-center a:hover { color: var(--mag-teal); }
.mag-topbar-social { display: flex; gap: 10px; }
.mag-topbar-social a {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    color: var(--mag-text);
    font-size: 13px;
}
.mag-topbar-social a:hover { color: var(--mag-teal); }

/* ── LOGO ROW ── */
.mag-header-row {
    background: var(--mag-white);
    padding: 20px 15px;
    border-bottom: 1px solid var(--mag-border);
    position: relative;
    z-index: 210;
}
.mag-header-row .mag-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.mag-logo img { height: 60px; width: auto; background: transparent; }
.mag-logo-text {
    font-family: var(--mag-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--mag-text);
}
.mag-logo-text em {
    font-style: normal;
    color: var(--mag-teal);
}
.mag-logo-text small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mag-muted);
    margin-top: 4px;
}
.mag-header-promo {
    flex: 1;
    max-width: 728px;
    min-height: 90px;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    border: 1px dashed var(--mag-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mag-muted);
    font-size: 12px;
    border-radius: 2px;
    position: relative;
    z-index: 1;
}
.mag-header-promo--filled {
    background: #f5f5f5;
    border: none;
    min-height: 90px;
    height: 90px;
    padding: 0;
    flex: 1 1 728px;
    width: 100%;
    max-width: 728px;
    align-self: center;
}
.mag-sidebar-promo--filled {
    background: none;
    border: none;
    min-height: 0;
    padding: 0;
}
.mag-promo-visual {
    display: block;
    background-image: var(--promo-bg);
    background-position: center;
    background-repeat: no-repeat;
}
.mag-promo-visual--header {
    width: 100%;
    height: 90px;
    background-size: 100% 100%;
}
.mag-promo-visual--sidebar {
    width: 100%;
    max-width: 300px;
    height: 250px;
    margin: 0 auto;
    background-size: 100% 100%;
}

.mag-contact-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--mag-border);
}
.mag-contact-section h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}
.mag-contact-form {
    display: grid;
    gap: 16px;
    max-width: 640px;
}
.mag-contact-form__row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.mag-contact-form__row input,
.mag-contact-form__row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--mag-border);
    border-radius: 2px;
    font: inherit;
    background: #fff;
}
.mag-contact-form__row textarea {
    resize: vertical;
    min-height: 140px;
}
.mag-contact-form__error {
    display: block;
    color: #b00020;
    font-size: 12px;
    margin-top: 4px;
}
.mag-contact-form__submit {
    justify-self: start;
    background: var(--mag-red, #CC0000);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
}
.mag-contact-form__submit:hover {
    opacity: 0.92;
}
.mag-contact-alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 2px;
    font-size: 14px;
}
.mag-contact-alert--success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}
.mag-contact-alert--error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

/* ── MAIN NAV ── */
.mag-nav {
    background: var(--mag-nav);
    color: rgba(255, 255, 255, 0.9);
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 3px solid var(--mag-red);
}
.mag-nav-inner {
    max-width: var(--mag-container);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: stretch;
}
.mag-nav-links {
    display: flex;
    list-style: none;
    flex: 1;
    flex-wrap: wrap;
}
.mag-nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    transition: background .2s, color .2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}
.mag-nav-links a:hover,
.mag-nav-links a.active {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-bottom-color: var(--mag-red);
}
.mag-nav-search {
    display: flex;
    align-items: center;
    padding: 0 4px 0 12px;
}
.mag-nav-search form { display: flex; align-items: center; }
.mag-nav-search input {
    display: none;
}
.mag-nav-search button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    opacity: .85;
}
.mag-nav-search button:hover { opacity: 1; }
.mag-nav-search.open input {
    display: block;
    width: 180px;
    padding: 8px 10px;
    border: none;
    border-radius: 2px;
    font-size: 12px;
    margin-right: 4px;
}

.mag-hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 12px;
    cursor: pointer;
    margin-left: auto;
}
.mag-mobile-menu {
    display: none;
    background: #333;
    padding: 8px 0;
}
.mag-mobile-menu.open { display: block; }
.mag-mobile-menu a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,.85);
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.mag-mobile-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.mag-mobile-regions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px;
}
.mag-mobile-regions a {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255,255,255,.1);
    border-radius: 2px;
    font-size: 11px;
    border: none;
}
.mag-mobile-regions a.active { background: var(--mag-red); }

/* ── REGION BAR ── */
.mag-region-bar {
    background: #333;
    border-top: 1px solid rgba(255,255,255,.06);
}
.mag-region-inner {
    max-width: var(--mag-container);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 0;
}
.mag-region-label {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 8px 12px 8px 0;
    border-right: 1px solid rgba(255,255,255,.1);
    margin-right: 4px;
}
.mag-region-link {
    padding: 8px 14px;
    color: rgba(255,255,255,.65);
    font-size: 11px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}
.mag-region-link:hover { color: #fff; }
.mag-region-link.active { color: #fff; border-bottom-color: var(--mag-teal); }

/* ── NEWS TICKER ── */
.mag-news-ticker {
    background: var(--mag-white);
    border-bottom: 1px solid var(--mag-border);
    padding: 10px 15px;
    overflow: hidden;
}
.mag-news-ticker-inner {
    max-width: var(--mag-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mag-news-ticker-label {
    background: var(--mag-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 5px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.mag-news-ticker-wrap {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}
.mag-news-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: mag-news-ticker 45s linear infinite;
}
.mag-news-ticker-wrap:hover .mag-news-ticker-track {
    animation-play-state: paused;
}
.mag-news-ticker-item {
    font-size: 13px;
    font-weight: 600;
    color: var(--mag-text);
}
.mag-news-ticker-item a { color: var(--mag-text); text-decoration: none; }
.mag-news-ticker-item a:hover { color: var(--mag-teal); }
.mag-news-ticker-sep {
    margin: 0 18px;
    color: var(--mag-muted);
    opacity: .5;
}
@keyframes mag-news-ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── HERO GRID ── */
.mag-hero {
    padding: 15px;
}
.mag-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    min-height: 460px;
}
.mag-hero-main { grid-row: 1 / 3; grid-column: 1; min-height: 100%; }
.mag-hero-main .mag-card { height: 100%; min-height: 460px; }
.mag-hero-grid > .mag-card { min-height: 228px; }

/* ── OVERLAY CARDS ── */
.mag-card {
    position: relative;
    overflow: hidden;
    display: block;
    background: #000;
    min-height: 120px;
}
.mag-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform .4s ease;
}
.mag-card:hover img { transform: scale(1.05); }
.mag-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}
.mag-card__cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 6px;
    opacity: .9;
}
.mag-card__title {
    font-family: var(--mag-heading);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 6px;
}
.mag-hero-main .mag-card__title { font-size: 22px; }
.mag-card__meta {
    font-size: 11px;
    color: rgba(255,255,255,.75);
}
.mag-card__meta strong { font-weight: 600; color: rgba(255,255,255,.9); }

/* ── MAIN LAYOUT ── */
.mag-content {
    padding: 0 15px 20px;
}
.mag-main-grid {
    display: grid;
    grid-template-columns: 1fr var(--mag-sidebar);
    gap: 28px;
    align-items: start;
}
.mag-main-col { min-width: 0; }

/* ── SECTION HEADERS ── */
.mag-section {
    margin-bottom: 28px;
}
.mag-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--mag-border);
    padding-bottom: 8px;
}
.mag-section-title {
    font-family: var(--mag-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--mag-text);
    position: relative;
    padding-bottom: 8px;
    margin-bottom: -10px;
}
.mag-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    min-width: 80px;
    height: 2px;
    background: var(--mag-red);
}
.mag-section-title.teal::after { background: var(--mag-teal); }
.mag-section-filter {
    font-size: 11px;
    color: var(--mag-muted);
    border: 1px solid var(--mag-border);
    padding: 4px 10px;
    background: var(--mag-white);
}

/* ── BLOCK: FEATURED + LIST ── */
.mag-block-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.mag-block-featured .mag-card { min-height: 280px; }
.mag-block-featured .mag-card__title { font-size: 18px; }
.mag-list-stack { display: flex; flex-direction: column; gap: 0; }
.mag-list-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mag-border);
    align-items: flex-start;
}
.mag-list-item:last-child { border-bottom: none; }
.mag-list-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}
.mag-list-item__title {
    font-family: var(--mag-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--mag-text);
    margin-bottom: 4px;
}
.mag-list-item:hover .mag-list-item__title { color: var(--mag-teal); }
.mag-list-item__date { font-size: 11px; color: var(--mag-muted); }

/* ── 3-COL / 4-COL GRIDS ── */
.mag-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.mag-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.mag-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.mag-tile {
    background: var(--mag-white);
    overflow: hidden;
}
.mag-tile .mag-card { min-height: 180px; }
.mag-tile .mag-card__title { font-size: 13px; }

/* ── HORIZONTAL POPULAR ── */
.mag-popular-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.mag-popular-card .mag-card { min-height: 200px; }

/* ── LATEST LIST ── */
.mag-latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}
.mag-latest-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--mag-border);
    align-items: flex-start;
}
.mag-latest-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    flex-shrink: 0;
}
.mag-latest-item__cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}
.mag-latest-item__title {
    font-family: var(--mag-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}
.mag-latest-item:hover .mag-latest-item__title { color: var(--mag-teal); }
.mag-latest-item__meta { font-size: 11px; color: var(--mag-muted); }

/* ── SIDEBAR ── */
.mag-sidebar { position: sticky; top: 70px; }
.mag-widget { margin-bottom: 24px; }
.mag-widget-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mag-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 16px;
}
.mag-widget-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--mag-red);
}
.mag-widget-title.teal::after { background: var(--mag-teal); }

.mag-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* Stay Connected – demo horizontal rows */
.mag-social-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--mag-border); }
.mag-social-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--mag-border);
    background: var(--mag-white);
    transition: background .2s;
}
.mag-social-row:last-child { border-bottom: none; }
.mag-social-row:hover { background: #fafafa; }
.mag-social-row__icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
.mag-social-row--fb .mag-social-row__icon { background: #3b5998; }
.mag-social-row--tw .mag-social-row__icon { background: #000; }
.mag-social-row--yt .mag-social-row__icon { background: #cd201f; }
.mag-social-row__info { font-size: 12px; color: var(--mag-muted); }
.mag-social-row__info strong { color: var(--mag-text); font-size: 15px; font-weight: 700; display: block; line-height: 1.2; }
.mag-social-row__action {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mag-muted);
    padding: 6px 10px;
    border: 1px solid var(--mag-border);
}
.mag-social-row:hover .mag-social-row__action { border-color: var(--mag-teal); color: var(--mag-teal); }

/* Most Popular – sidebar circles (demo: ~90px) */
.mag-popular-side { display: flex; flex-direction: column; gap: 0; }
.mag-popular-side__item {
    display: grid;
    grid-template-columns: var(--mag-sidebar-thumb) 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--mag-border);
    align-items: center;
}
.mag-popular-side__item:last-child { border-bottom: none; }
.mag-popular-side__thumb {
    width: var(--mag-sidebar-thumb);
    height: var(--mag-sidebar-thumb);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.mag-popular-side__thumb--empty {
    display: block;
    background: var(--mag-border);
}
.mag-popular-side__cat {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--mag-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}
.mag-popular-side__title {
    font-family: var(--mag-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--mag-text);
}
.mag-popular-side__item:hover .mag-popular-side__title { color: var(--mag-teal); }

/* Carousel arrows for sidebar widgets (demo ‹ ›) */
.mag-widget-nav {
    display: flex;
    gap: 4px;
    margin-top: 12px;
}
.mag-widget-nav button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--mag-border);
    background: var(--mag-white);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: var(--mag-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mag-widget-nav button:hover {
    border-color: var(--mag-teal);
    color: var(--mag-teal);
}

/* Must Read – text list */
.mag-must-read-list { display: flex; flex-direction: column; }
.mag-must-read-line {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--mag-border);
}
.mag-must-read-line:last-child { border-bottom: none; }
.mag-must-read-line__cat {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--mag-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.mag-must-read-line__title {
    display: block;
    font-family: var(--mag-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}
.mag-must-read-line:hover .mag-must-read-line__title { color: var(--mag-teal); }
.mag-must-read-line__meta { font-size: 11px; color: var(--mag-muted); }

/* Don't Miss – tabbed block */
.mag-dont-miss {
    margin-bottom: 28px;
    padding: 0;
}
.mag-dm-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--mag-border);
    padding-bottom: 10px;
}
.mag-dm-badge {
    background: #f9d71c;
    color: #111;
    font-family: var(--mag-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 8px 14px;
    flex-shrink: 0;
}
.mag-dm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    flex: 1;
}
.mag-dm-tab {
    background: none;
    border: none;
    font-family: var(--mag-font);
    font-size: 12px;
    font-weight: 600;
    color: var(--mag-muted);
    cursor: pointer;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.mag-dm-tab:hover { color: var(--mag-text); }
.mag-dm-tab.active {
    color: var(--mag-text);
    border-bottom-color: var(--mag-red);
}
.mag-dm-panel { display: none; }
.mag-dm-panel.active { display: block; }
.mag-dm-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.mag-dm-featured { display: block; }
.mag-dm-featured__img-wrap {
    position: relative;
    margin-bottom: 12px;
}
.mag-dm-featured__img-wrap img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.mag-dm-featured__cat {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--mag-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.mag-dm-featured--sm .mag-dm-featured__title { font-size: 16px; }
.mag-dm-featured__title {
    font-family: var(--mag-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
    color: var(--mag-text);
}
.mag-dm-featured:hover .mag-dm-featured__title { color: var(--mag-teal); }
.mag-dm-featured__meta {
    font-size: 12px;
    color: var(--mag-muted);
    margin-bottom: 10px;
}
.mag-dm-featured__excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}
.mag-dm-list { display: flex; flex-direction: column; }
.mag-dm-list-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mag-border);
    align-items: start;
}
.mag-dm-list-item:last-child { border-bottom: none; }
.mag-dm-list-item img {
    width: 90px; height: 68px;
    object-fit: cover;
}
.mag-dm-list-item__title {
    font-family: var(--mag-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--mag-text);
    margin-bottom: 4px;
}
.mag-dm-list-item:hover .mag-dm-list-item__title { color: var(--mag-teal); }
.mag-dm-list-item__date { font-size: 11px; color: var(--mag-muted); }

/* Video player + playlist (demo) – full-width block, playlist pinned to player height */
.mag-video-section { margin-bottom: 28px; }
.mag-video-block {
    position: relative;
    background: #111;
    margin-bottom: 8px;
    overflow: hidden;
}
.mag-video-block__player {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    margin-right: 320px;
}
.mag-video-block__player iframe,
.mag-video-block__player .mag-lazy-video,
.mag-video-block__player .mag-lazy-video__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.mag-lazy-video {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}
.mag-lazy-video__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    margin: 0;
    cursor: pointer;
    background: #000;
}
.mag-lazy-video__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mag-lazy-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--mag-red);
    color: #fff;
    font-size: 22px;
    line-height: 64px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .45);
    pointer-events: none;
}
.mag-lazy-video__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.mag-article-video .mag-lazy-video {
    aspect-ratio: 16 / 9;
}
.mag-video-block__playlist {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
}
.mag-video-block__playlist-head {
    padding: 12px 14px;
    background: var(--mag-red);
    color: #fff;
}
.mag-video-block__now {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 4px;
}
.mag-video-block__playlist-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}
.mag-video-block__items {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.mag-video-block__item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #2a2a2a;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: #ccc;
    transition: background .2s;
}
.mag-video-block__item:hover,
.mag-video-block__item.active {
    background: #252525;
    color: #fff;
}
.mag-video-block__item img {
    width: 80px;
    height: 45px;
    object-fit: cover;
}
.mag-video-block__item-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
}
.mag-video-block__item-dur { font-size: 10px; opacity: .6; }

.mag-empty { color: var(--mag-muted); padding: 16px 0; }
.mag-mobile-search-form {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}
.mag-mobile-search-form input { flex: 1; padding: 10px; border: 1px solid #ddd; }
.mag-mobile-search-form button {
    background: #222; color: #fff; border: none;
    padding: 10px 16px; cursor: pointer;
}

.mag-social-box {
    text-align: center;
    padding: 14px 8px;
    border: 1px solid var(--mag-border);
    background: var(--mag-white);
    transition: border-color .2s;
}
.mag-social-box:hover { border-color: var(--mag-teal); }
.mag-social-box__icon { font-size: 20px; margin-bottom: 6px; }
.mag-social-box__count {
    font-family: var(--mag-heading);
    font-size: 16px;
    font-weight: 700;
    display: block;
}
.mag-social-box__label { display: block; font-size: 10px; color: var(--mag-muted); text-transform: uppercase; }
.mag-social-box__icon { display: block; font-weight: 700; }
.mag-social-box__action {
    display: block;
    margin-top: 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mag-muted);
}
.mag-social-box:hover .mag-social-box__action { color: var(--mag-teal); }

.mag-weather-box {
    background: var(--mag-nav);
    color: #fff;
    padding: 16px;
    border-radius: 2px;
}
.mag-weather-box .mag-widget-title {
    color: #fff;
    margin-bottom: 12px;
}
.mag-weather-box .mag-widget-title::after { background: rgba(255,255,255,.2); }
.mag-weather-main { display: flex; gap: 12px; align-items: center; }
.mag-weather-icon { font-size: 36px; }
.mag-weather-temp { font-size: 28px; font-weight: 700; }
.mag-weather-city { font-size: 12px; opacity: .8; }

.mag-must-read-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--mag-border);
}
.mag-must-read-item:last-child { border-bottom: none; }
.mag-must-read-item img {
    width: 70px; height: 52px;
    object-fit: cover;
    flex-shrink: 0;
}
.mag-must-read-item__title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}
.mag-must-read-item:hover .mag-must-read-item__title { color: var(--mag-teal); }

.mag-cat-list { list-style: none; }
.mag-cat-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--mag-border);
    font-size: 13px;
}
.mag-cat-list li a:hover { color: var(--mag-teal); }
.mag-cat-list span { color: var(--mag-muted); font-size: 12px; }

.mag-sidebar-promo {
    min-height: 250px;
    background: #f9f9f9;
    border: 1px dashed var(--mag-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mag-muted);
    font-size: 11px;
    margin-bottom: 24px;
}

/* ── VIDEO GRID ── */
.mag-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.mag-video-card { background: var(--mag-white); }
.mag-video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
    overflow: hidden;
}
.mag-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mag-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.25);
}
.mag-video-play span {
    width: 48px; height: 48px;
    background: var(--mag-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.mag-video-body { padding: 12px; }
.mag-video-title { font-size: 13px; font-weight: 700; line-height: 1.35; }

/* ── ARTICLE PAGE ── */
.mag-breadcrumb {
    font-size: 11px;
    color: var(--mag-muted);
    margin-bottom: 12px;
}
.mag-breadcrumb a:hover { color: var(--mag-teal); }
.mag-article-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}
.mag-article-title {
    font-family: var(--mag-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}
.mag-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--mag-border);
    font-size: 12px;
    color: var(--mag-muted);
}
.mag-article-meta-left { display: flex; align-items: center; gap: 10px; }
.mag-article-author-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--mag-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}
.mag-article-hero {
    width: 100%;
    margin-bottom: 24px;
    aspect-ratio: 16 / 9;
    background: #eee;
}
.mag-article-hero img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.mag-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}
.mag-article-summary {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 600;
}
.mag-article-body {
    font-size: 15px;
    line-height: 1.85;
    color: #333;
    max-width: none;
}
.mag-article-body p { margin-bottom: 16px; }
.mag-article-body ul,
.mag-article-body ol {
    margin: 0 0 16px;
    padding-left: 1.75em;
}
.mag-article-body ul { list-style: disc; }
.mag-article-body ol { list-style: decimal; }
.mag-article-body li { margin-bottom: 8px; }
.mag-article-body li:last-child { margin-bottom: 0; }
.mag-article-body h2, .mag-article-body h3 {
    font-family: var(--mag-heading);
    margin: 24px 0 12px;
}
.mag-article-body img { margin: 16px 0; }
.mag-article-body a { color: var(--mag-teal); text-decoration: underline; }

.mag-share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--mag-border); }
.mag-share a {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 2px;
}
.mag-share .fb { background: #1877F2; }
.mag-share .tw { background: #000; }
.mag-share .wa { background: #25D366; }

.mag-related-grid { gap: 16px; }

/* ── BACK TO TOP ── */
.mag-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--mag-nav);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s, background .2s;
    z-index: 400;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.mag-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.mag-back-to-top:hover { background: var(--mag-red); }

/* ── CATEGORY PAGE ── */
.mag-page-title {
    font-family: var(--mag-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}
.mag-page-sub { font-size: 12px; color: var(--mag-muted); margin-bottom: 20px; }
.mag-cat-featured-row .mag-card { min-height: 220px; }

/* ── PAGINATION ── */
.mag-pagination { margin-top: 24px; }
.mag-pagination-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mag-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--mag-border);
    font-size: 12px;
    color: var(--mag-text);
    background: var(--mag-white);
}
.mag-page-btn:hover:not(.active):not(.disabled) { border-color: var(--mag-teal); color: var(--mag-teal); }
.mag-page-btn.active { background: var(--mag-nav); color: #fff; border-color: var(--mag-nav); }
.mag-page-btn.disabled { opacity: .4; cursor: default; }
.mag-page-dots { padding: 0 4px; color: var(--mag-muted); font-size: 12px; }

/* ── FOOTER ── */
.mag-footer {
    background: var(--mag-nav);
    color: rgba(255,255,255,.7);
    padding: 30px 15px 16px;
    margin-top: 0;
}
.mag-footer-inner { max-width: var(--mag-container); margin: 0 auto; }
.mag-footer-logo { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.mag-footer-logo em { color: var(--mag-teal); font-style: normal; }
.mag-footer-tagline { font-size: 13px; margin-bottom: 16px; }
.mag-footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.mag-footer-links a { font-size: 12px; color: rgba(255,255,255,.6); }
.mag-footer-links a:hover { color: #fff; }
.mag-footer-copy {
    font-size: 11px;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 14px;
    color: rgba(255,255,255,.5);
}
.mag-footer-copy a { color: rgba(255,255,255,.6); }
.mag-footer-copy a:hover { color: #fff; }

/* ── VIDEO MODAL ── */
.video-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.video-modal-overlay.open { display: flex; }
.video-modal-box {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
}
.video-modal-close {
    position: absolute;
    top: -36px;
    right: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.video-modal-iframe { width: 100%; height: 100%; border: none; }

.region-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}
.region-badge.us { background: #dbeafe; color: #1e40af; }
.region-badge.uk { background: #fee2e2; color: #991b1b; }
.region-badge.world { background: #ede9fe; color: #5b21b6; }

/* ── DEMO SECTION HEAD: TITLE ——— All ▾ ── */
.mag-sec-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.mag-sec-title {
    font-family: var(--mag-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}
.mag-sec-line { flex: 1; height: 2px; background: var(--mag-red); }
.mag-sec-all { font-size: 11px; color: var(--mag-muted); white-space: nowrap; }
.mag-sec-all:hover { color: var(--mag-teal); }

/* ── CENTERED OVERLAY CARDS (demo Travel/Fashion) ── */
.mag-card--center .mag-card__overlay {
    align-items: center;
    text-align: center;
    padding: 20px 14px 26px;
}
.mag-card--center .mag-card__cat {
    background: #000;
    padding: 3px 8px;
    font-size: 9px;
    opacity: 1;
}
.mag-card--center .mag-card__title { font-size: 16px; }

/* Travel Guides row: 3 cols × 1 row, 9:16 portrait cards (demo) */
.mag-overlay-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.mag-overlay-row[hidden] { display: none !important; }
.mag-overlay-row .mag-card {
    aspect-ratio: 9 / 16;
    min-height: 0;
    width: 100%;
}
.mag-overlay-row .mag-card--center .mag-card__overlay {
    align-items: center;
    text-align: center;
    padding: 18px 12px 22px;
}
.mag-overlay-row .mag-card--center .mag-card__cat {
    margin-bottom: auto;
}
.mag-overlay-row .mag-card--center .mag-card__title {
    font-size: 15px;
    line-height: 1.3;
    margin-top: auto;
    margin-bottom: 6px;
}
.mag-overlay-row .mag-card--center .mag-card__meta {
    font-size: 10px;
}

/* ── TWO HALF-WIDTH CATEGORY COLUMNS (demo Gadgets/Receipes) ── */
.mag-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.mag-two-cols .mag-dm-list-item { grid-template-columns: 80px 1fr; }
.mag-two-cols .mag-dm-list-item img { width: 80px; height: 60px; }

/* ── FULL-WIDTH OVERLAY STRIP (demo Fashion) ── */
.mag-strip { margin-bottom: 28px; }
.mag-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}
.mag-strip-grid .mag-card { min-height: 380px; }
.mag-strip-grid .mag-card__title { font-size: 17px; }

/* ── BIG HORIZONTAL LIST (demo Fitness) ── */
.mag-fit-list { display: flex; flex-direction: column; }
.mag-fit-item {
    display: grid;
    grid-template-columns: 218px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--mag-border);
    align-items: start;
}
.mag-fit-item:first-child { padding-top: 0; }
.mag-fit-item:last-child { border-bottom: none; }
.mag-fit-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.mag-fit-item__title {
    font-family: var(--mag-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--mag-text);
}
.mag-fit-item:hover .mag-fit-item__title { color: var(--mag-teal); }
.mag-fit-item__meta { font-size: 11px; color: var(--mag-muted); margin-bottom: 8px; }
.mag-fit-item__meta .cat {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-right: 6px;
}
.mag-fit-item__excerpt { font-size: 13px; line-height: 1.6; color: #444; }

/* ── LATEST ARTICLES – image-top cards 2-col (demo) ── */
.mag-latest-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
}
.mag-latest-card { display: block; }
.mag-latest-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    margin-bottom: 10px;
}
.mag-latest-card__cat {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--mag-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.mag-latest-card__title {
    font-family: var(--mag-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: var(--mag-text);
}
.mag-latest-card:hover .mag-latest-card__title { color: var(--mag-teal); }
.mag-latest-card__meta { font-size: 11px; color: var(--mag-muted); }

/* ── MOBILE HEADER (demo) ── */
.mag-mobile-header,
.mag-mobile-strip,
.mag-mobile-search-bar { display: none; }

.mag-desktop-only { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .mag-main-grid { grid-template-columns: 1fr; }
    .mag-sidebar { position: static; }
    .mag-hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        min-height: auto;
        gap: 4px;
    }
    .mag-hero-main { grid-row: auto; grid-column: 1 / -1; min-height: 300px; }
    .mag-hero-main .mag-card { min-height: 300px; }
    .mag-hero-grid > .mag-card { min-height: 180px; }
    .mag-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .mag-popular-row { grid-template-columns: repeat(2, 1fr); }
    .mag-block-split { grid-template-columns: 1fr; }
    .mag-video-block__player { margin-right: 260px; }
    .mag-video-block__playlist { width: 260px; }
    .mag-strip-grid { grid-template-columns: repeat(2, 1fr); }
    .mag-strip-grid .mag-card { min-height: 280px; }
}

@media (max-width: 767px) {
    body { font-size: 13px; background: var(--mag-white); }

    .mag-desktop-only { display: none !important; }

    .mag-site {
        max-width: 100%;
        box-shadow: none;
        margin: 0;
    }

    /* Mobile header bar */
    .mag-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        background: var(--mag-white);
        border-bottom: 1px solid var(--mag-border);
        position: sticky;
        top: 0;
        z-index: 300;
    }
    .mag-mobile-icon-btn {
        background: none;
        border: none;
        font-size: 20px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--mag-text);
    }
    .mag-mobile-logo {
        flex: 1;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .mag-mobile-logo img { height: 36px; width: auto; margin: 0 auto; }
    .mag-mobile-logo-text {
        font-family: var(--mag-heading);
        font-size: 16px;
        font-weight: 700;
        letter-spacing: .02em;
    }
    .mag-mobile-strip {
        display: block;
        background: var(--mag-nav);
        color: #fff;
        text-align: center;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .14em;
        text-transform: uppercase;
        padding: 6px 12px;
        border-bottom: 3px solid var(--mag-red);
    }
    .mag-mobile-search-bar {
        display: none;
        background: #f9f9f9;
        border-bottom: 1px solid var(--mag-border);
        padding: 10px 14px;
    }
    .mag-mobile-search-bar.open { display: block; }
    .mag-mobile-search-bar form { display: flex; gap: 8px; }
    .mag-mobile-search-bar input {
        flex: 1;
        padding: 10px 12px;
        border: 1px solid var(--mag-border);
        font-size: 14px;
        border-radius: 0;
    }
    .mag-mobile-search-bar button {
        background: var(--mag-nav);
        color: #fff;
        border: none;
        padding: 10px 16px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
    }

    .mag-mobile-menu {
        display: none;
        background: var(--mag-nav);
        border-bottom: 3px solid var(--mag-red);
    }
    .mag-mobile-menu.open { display: block; }

    /* News ticker */
    .mag-news-ticker { padding: 8px 0; }
    .mag-news-ticker-inner { gap: 0; }
    .mag-news-ticker-label {
        font-size: 9px;
        padding: 6px 10px;
        border-radius: 0;
    }
    .mag-news-ticker-item { font-size: 12px; }

    /* Hero – full main + 2-col secondary */
    .mag-hero { padding: 0; }
    .mag-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3px;
    }
    .mag-hero-main { grid-column: 1 / -1; min-height: 260px; }
    .mag-hero-main .mag-card { min-height: 260px; }
    .mag-hero-main .mag-card__title { font-size: 18px; }
    .mag-hero-grid > .mag-card { min-height: 140px; }
    .mag-hero-grid > .mag-card .mag-card__title { font-size: 12px; line-height: 1.25; }
    .mag-hero-grid > .mag-card .mag-card__overlay { padding: 10px; }

    .mag-content { padding: 0 0 16px; }

    /* Section headers */
    .mag-section { margin-bottom: 22px; padding: 0 14px; }
    .mag-section-head { margin-bottom: 12px; }
    .mag-section-title { font-size: 15px; }

    /* Category blocks – featured + list (demo pattern) */
    .mag-block-split { gap: 0; }
    .mag-block-featured .mag-card { min-height: 220px; }
    .mag-block-featured .mag-card__title { font-size: 17px; }
    .mag-list-item { padding: 14px 0; }
    .mag-list-item img { width: 90px; height: 68px; }
    .mag-list-item__title { font-size: 14px; }

    /* Grids → single column except hero secondary & popular 2-col */
    .mag-grid-3,
    .mag-grid-4,
    .mag-grid-2,
    .mag-video-grid,
    .mag-latest-grid { grid-template-columns: 1fr; gap: 0; }

    .mag-popular-row {
        grid-template-columns: 1fr 1fr;
        gap: 3px;
    }
    .mag-popular-card .mag-card { min-height: 160px; }

    .mag-cat-featured-row {
        grid-template-columns: 1fr 1fr;
        gap: 3px;
    }
    .mag-cat-featured-row .mag-card { min-height: 160px; }

    .mag-tile .mag-card { min-height: 200px; }
    .mag-related-grid { gap: 12px; }

    .mag-back-to-top {
        bottom: 18px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Latest list – demo list style */
    .mag-latest-item {
        padding: 14px 0;
        border-bottom: 1px solid var(--mag-border);
    }
    .mag-latest-item img { width: 110px; height: 78px; }
    .mag-latest-item__title { font-size: 15px; }

    /* New demo blocks */
    .mag-sec-title { font-size: 14px; }
    .mag-two-cols { grid-template-columns: 1fr; gap: 0; }
    .mag-overlay-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }
    .mag-overlay-row .mag-card {
        aspect-ratio: 9 / 16;
        min-height: 0;
    }
    .mag-strip { margin-bottom: 22px; }
    .mag-strip-grid { grid-template-columns: 1fr 1fr; gap: 3px; }
    .mag-strip-grid .mag-card { min-height: 200px; }
    .mag-strip-grid .mag-card__title { font-size: 13px; }
    .mag-fit-item { grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; }
    .mag-fit-item img { height: 80px; }
    .mag-fit-item__title { font-size: 15px; margin-bottom: 4px; }
    .mag-fit-item__excerpt { display: none; }
    .mag-latest-cards { grid-template-columns: 1fr; gap: 22px; }

    /* Article page – horizontal inset for all text; hero stays full-bleed */
    .mag-main-col {
        padding-left: 14px;
        padding-right: 14px;
    }
    .mag-main-col .mag-article-hero {
        margin-left: -14px;
        margin-right: -14px;
        width: calc(100% + 28px);
    }
    .mag-article-title { font-size: 22px; line-height: 1.25; }
    .mag-article-meta { flex-direction: column; align-items: flex-start; }
    .mag-page-title { font-size: 22px; }

    /* Sidebar – full width, social 3-col like demo */
    .mag-sidebar { padding: 0 14px; }
    .mag-dm-split { grid-template-columns: 1fr; }
    .mag-dm-featured__title { font-size: 17px; }
    .mag-video-block__player { margin-right: 0; }
    .mag-video-block__playlist {
        position: static;
        width: 100%;
    }
    .mag-video-block__items { max-height: 240px; }
    .mag-sidebar-promo { min-height: 120px; margin-bottom: 16px; }

    .mag-footer { padding: 24px 14px 16px; }
    .mag-footer-links { gap: 12px; }
}
