/* Marketplace Magazine — matches design reference */
:root {
    --mag-navy: #001431;
    --mag-navy-2: #061b3b;
    --mag-gold: #e8a838;
    --mag-gold-2: #f5b94d;
    --mag-ink: #041531;
    --mag-muted: #5a6a82;
    --mag-line: #e2e8f0;
    --mag-soft: #f4f7fb;
    --mag-panel: #f5f7fa;
    --mag-footer-bg: #f3f4f6;
}

body.magazine-page {
    background: #fff;
    color: var(--mag-ink);
    font-family: 'Inter', sans-serif;
}

.magazine-page header.unified-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 0 var(--mag-line);
}

.magazine-page .top-bar { background: var(--mag-navy); }

.mag-wrap {
    width: 100%;
    padding-inline: var(--site-gutter, clamp(16px, 4vw, 48px));
    box-sizing: border-box;
}

/* ── Hero (white) ── */
.mag-hero {
    background: #fff;
    padding: clamp(40px, 6vw, 56px) var(--site-gutter, clamp(16px, 4vw, 48px)) clamp(32px, 5vw, 48px);
    border-bottom: 1px solid var(--mag-line);
}

.mag-hero-inner {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: center;
}

.mag-hero-label {
    color: var(--mag-gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.mag-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.85rem, 3.8vw, 2.85rem);
    color: var(--mag-navy);
    line-height: 1.08;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 800;
}

.mag-hero-desc {
    color: var(--mag-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 520px;
}

.mag-features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 16px;
    margin-bottom: 28px;
}

.mag-feature { text-align: left; }

.mag-feature i {
    font-size: 1.35rem;
    color: var(--mag-gold);
    margin-bottom: 8px;
    display: block;
}

.mag-feature strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--mag-navy);
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 4px;
}

.mag-feature span {
    font-size: 0.68rem;
    color: var(--mag-muted);
    line-height: 1.45;
    display: block;
}

.mag-search-bar {
    display: flex;
    max-width: 100%;
}

.mag-search-bar input {
    flex: 1;
    padding: 13px 16px;
    border: 1px solid var(--mag-line);
    border-right: 0;
    border-radius: 4px 0 0 4px;
    font-size: 0.88rem;
    outline: none;
    color: var(--mag-ink);
}

.mag-search-bar input:focus { border-color: var(--mag-gold); }

.mag-search-bar button {
    background: var(--mag-navy);
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: 0 4px 4px 0;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
}

.mag-search-bar button:hover { background: var(--mag-navy-2); }

/* Hero cover slider */
.hero-slider-col { position: relative; }

/* Hero cover display — flat fade like reference, no 3D warp */
.hero-covers-wrap {
    position: relative;
    min-height: clamp(340px, 40vw, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.hero-covers {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-height: clamp(320px, 38vw, 400px);
    background: transparent;
}

.hero-cover-slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.hero-cover-slide.active {
    display: flex;
    pointer-events: auto;
    z-index: 2;
}

.hero-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}

.hero-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--mag-line);
    background: #fff;
    color: var(--mag-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.hero-arrow:hover {
    background: var(--mag-gold);
    border-color: var(--mag-gold);
    color: #fff;
}

.hero-dots { display: flex; gap: 7px; }

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
}

.hero-dot.active { background: var(--mag-gold); }

/* Cover images — clean art, no overlay or matte */
.mag-cover-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    background: transparent;
    border: 0;
    filter: none;
    box-shadow: none;
}

.mag-cover-img--stack {
    max-width: min(500px, 100%);
    max-height: min(400px, 72vw);
}

.mag-cover-img--portrait {
    max-width: min(260px, 78%);
    max-height: min(380px, 65vw);
}

.issue-cover {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 8px 0;
}

.issue-cover .mag-cover-img {
    max-height: min(240px, 50vw);
}

.weekly-cover-img {
    max-width: 90%;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    filter: none;
    box-shadow: none;
}

.mag-newsletter-visual img {
    width: auto;
    height: auto;
    max-width: min(160px, 18vw);
    max-height: 200px;
    object-fit: contain;
    background: transparent;
    filter: none;
    box-shadow: none;
}

/* ── Section headers ── */
.mag-block-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.mag-block-head > i {
    color: var(--mag-gold);
    font-size: 1.2rem;
    margin-top: 4px;
}

.mag-block-head h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--mag-navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.mag-block-head p {
    font-size: 0.82rem;
    color: var(--mag-muted);
    line-height: 1.5;
}

.mag-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.mag-section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--mag-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mag-section-header h2 i { color: var(--mag-gold); }

.mag-view-all {
    color: var(--mag-gold);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.mag-view-all:hover { text-decoration: underline; }

/* ── Latest + Previous panel (reference layout) ── */
.mag-latest-zone {
    padding: clamp(36px, 5vw, 52px) 0;
}

.mag-latest-panel {
    background: var(--mag-panel);
    border: 1px solid var(--mag-line);
    border-radius: 12px;
    padding: clamp(20px, 3vw, 28px);
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    gap: clamp(24px, 3.5vw, 40px);
    align-items: start;
}

.mag-latest-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.mag-previous-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mag-col-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
}

.mag-col-head > i {
    color: var(--mag-gold);
    font-size: 1.15rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.mag-col-head h2,
.mag-previous-head h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    color: var(--mag-navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    font-weight: 800;
    line-height: 1.3;
}

.mag-col-head p,
.mag-previous-sub {
    font-size: 0.78rem;
    color: var(--mag-muted);
    line-height: 1.45;
    margin: 0;
}

.mag-latest-card {
    background: #fff;
    border: 1px solid var(--mag-line);
    border-radius: 10px;
    padding: clamp(16px, 2vw, 22px);
    min-height: 100%;
}

.latest-card-inner {
    display: grid;
    grid-template-columns: minmax(120px, 0.36fr) minmax(0, 1fr);
    gap: clamp(14px, 2vw, 22px);
    align-items: start;
}

.latest-cover-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.latest-cover {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
}

.latest-cover .mag-cover-img--portrait,
.latest-cover .mag-cover-img {
    max-width: min(200px, 100%);
    max-height: min(300px, 50vw);
}

.new-badge {
    position: absolute;
    top: 8px;
    left: 0;
    background: var(--mag-gold);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
    border-radius: 0 3px 3px 0;
}

.issue-meta {
    color: var(--mag-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.latest-details {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.latest-details h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--mag-navy);
    margin: 8px 0 6px;
    line-height: 1.25;
    font-weight: 800;
}

.latest-subtitle {
    font-size: 0.8rem;
    color: var(--mag-muted);
    margin-bottom: 12px;
    line-height: 1.45;
}

.feature-list {
    list-style: none;
    margin-bottom: 18px;
    flex: 1;
}

.feature-list li {
    padding: 4px 0;
    color: var(--mag-ink);
    font-size: 0.78rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.feature-list li i {
    color: var(--mag-gold);
    font-size: 0.7rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.latest-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.btn-download--full {
    width: 100%;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 6px;
}

.btn-download {
    background: var(--mag-navy);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover { background: var(--mag-navy-2); }

.btn-read-online {
    background: none;
    border: none;
    color: var(--mag-navy);
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-read-online:hover { color: var(--mag-gold); }

/* Previous column */
.mag-previous-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 12px;
}

.mag-view-all-btn {
    border: 1px solid var(--mag-gold);
    color: var(--mag-gold);
    background: #fff;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.mag-view-all-btn:hover {
    background: var(--mag-gold);
    color: #fff;
}

#previous-issues {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 10px;
}

.prev-issue-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.prev-cover {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    margin-bottom: 2px;
    padding: 0;
    width: 100%;
}

.prev-cover .mag-cover-img--portrait,
.prev-cover .mag-cover-img {
    max-width: 100%;
    max-height: min(150px, 28vw);
}

.prev-date {
    display: block;
    font-size: 0.68rem;
    color: var(--mag-navy);
    font-weight: 700;
    line-height: 1.3;
}

.prev-issue-num {
    display: block;
    font-size: 0.62rem;
    color: var(--mag-muted);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}

.issue-download-link {
    background: none;
    border: none;
    color: var(--mag-navy);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.issue-download-link:hover { color: var(--mag-gold); }

.latest-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 0;
}

.latest-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
}

.latest-dot.active { background: var(--mag-navy); }

/* ── Weekly section ── */
.mag-weekly-zone {
    background: var(--mag-panel);
    padding: clamp(36px, 5vw, 48px) var(--site-gutter, clamp(16px, 4vw, 48px));
    border-top: 1px solid var(--mag-line);
    border-bottom: 1px solid var(--mag-line);
}

.mag-weekly-zone .mag-section-header h2 i { color: var(--mag-gold); }

.weekly-carousel { position: relative; }

#weekly-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none;
}

#weekly-track::-webkit-scrollbar { display: none; }

.weekly-card {
    flex: 0 0 min(260px, 78vw);
    background: #fff;
    border: 1px solid var(--mag-line);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.weekly-card:hover { box-shadow: 0 8px 24px rgba(0, 20, 49, 0.1); }

.weekly-thumb {
    height: 150px;
    position: relative;
    overflow: hidden;
    background: #eef1f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
}

.weekly-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--mag-gold);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 8px;
    border-radius: 3px;
    line-height: 1.3;
    max-width: calc(100% - 20px);
}

.weekly-body { padding: 14px 16px 16px; }

.weekly-date {
    font-size: 0.65rem;
    color: var(--mag-gold);
    font-weight: 700;
    text-transform: uppercase;
}

.weekly-body h4 {
    font-size: 0.85rem;
    color: var(--mag-navy);
    margin: 8px 0 12px;
    line-height: 1.35;
    font-weight: 700;
}

.weekly-download {
    background: none;
    border: none;
    color: var(--mag-navy);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.weekly-download:hover { color: var(--mag-gold); }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--mag-line);
    background: #fff;
    color: var(--mag-navy);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.carousel-btn:hover {
    background: var(--mag-gold);
    color: #fff;
    border-color: var(--mag-gold);
}

.carousel-btn.next { right: -12px; }
.carousel-btn.prev { left: -12px; }

/* ── Categories ── */
.mag-categories-zone {
    padding: clamp(36px, 5vw, 52px) 0 clamp(44px, 6vw, 60px);
}

#category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mag-weekly-zone .mag-wrap {
    width: 100%;
    max-width: none;
    padding-inline: var(--site-gutter, clamp(16px, 4vw, 48px));
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 12px;
    min-height: 100px;
    border: 1px solid #e8ecf2;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s;
}

.category-card:hover,
.category-card.active-cat {
    border-color: var(--mag-gold);
    box-shadow: 0 6px 20px rgba(232, 168, 56, 0.12);
}

.category-card i {
    font-size: 1.5rem;
    color: var(--mag-gold);
}

.category-card span {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--mag-navy);
    text-align: center;
    line-height: 1.35;
}

/* ── Newsletter (full-width navy) ── */
.mag-newsletter-zone {
    background: var(--mag-navy);
    padding: clamp(40px, 5vw, 52px) var(--site-gutter, clamp(16px, 4vw, 48px));
}

.mag-newsletter {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) auto;
    gap: clamp(20px, 3vw, 32px);
    align-items: center;
    color: #fff;
}

.mag-newsletter-intro h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.mag-newsletter-intro h3 i { color: var(--mag-gold); }

.mag-newsletter-intro p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

.mag-newsletter-form {
    display: flex;
    gap: 0;
}

.mag-newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.95);
}

.mag-newsletter-form button {
    background: var(--mag-gold);
    color: var(--mag-navy);
    border: none;
    padding: 13px 22px;
    border-radius: 0 4px 4px 0;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.72rem;
    white-space: nowrap;
}

.mag-newsletter-form button:hover { background: var(--mag-gold-2); }

.mag-newsletter-benefits { list-style: none; }

.mag-newsletter-benefits li {
    font-size: 0.78rem;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
}

.mag-newsletter-benefits li i {
    color: var(--mag-gold);
    font-size: 0.65rem;
}

.mag-newsletter-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.mag-newsletter-visual img {
    width: auto;
    height: auto;
    max-width: clamp(110px, 12vw, 150px);
    max-height: 180px;
    object-fit: contain;
    background: transparent;
    filter: none;
    box-shadow: none;
}

/* ── Stats ── */
.mag-stats {
    background: #fff;
    padding: clamp(40px, 5vw, 52px) var(--site-gutter, clamp(16px, 4vw, 48px));
    border-top: 1px solid var(--mag-line);
}

.mag-stats-grid {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.mag-stat i {
    font-size: 1.8rem;
    color: var(--mag-gold);
    margin-bottom: 10px;
}

.mag-stat h3 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--mag-navy);
    margin-bottom: 4px;
    font-weight: 800;
}

.mag-stat p {
    font-size: 0.78rem;
    color: var(--mag-muted);
    line-height: 1.4;
}

/* ── Footer (light) ── */
.mag-footer {
    background: var(--mag-footer-bg);
    color: var(--mag-ink);
    padding: clamp(40px, 5vw, 56px) var(--site-gutter, clamp(16px, 4vw, 48px)) 28px;
    border-top: 1px solid var(--mag-line);
}

.mag-footer-grid {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(5, 1fr);
    gap: clamp(20px, 3vw, 32px);
}

.mag-footer h4 {
    color: var(--mag-navy);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 14px;
    font-weight: 800;
}

.mag-footer ul { list-style: none; }

.mag-footer ul li { margin-bottom: 8px; }

.mag-footer ul a {
    color: var(--mag-muted);
    font-size: 0.82rem;
}

.mag-footer ul a:hover { color: var(--mag-gold); }

.mag-footer-brand .logo-title { color: var(--mag-navy) !important; }

.mag-footer-brand p {
    color: var(--mag-muted);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 14px 0;
}

.mag-footer-socials {
    display: flex;
    gap: 8px;
}

.mag-footer-socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--mag-line);
    color: var(--mag-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.mag-footer-socials a:hover {
    background: var(--mag-gold);
    border-color: var(--mag-gold);
    color: #fff;
}

.mag-footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mag-muted);
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.mag-footer-contact i { color: var(--mag-gold); width: 14px; }

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.app-badge {
    background: #fff;
    border: 1px solid var(--mag-line);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.62rem;
    color: var(--mag-ink);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.app-badge i { font-size: 1.1rem; color: var(--mag-navy); }

.mag-footer-bottom {
    width: 100%;
    max-width: none;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--mag-line);
    text-align: center;
    font-size: 0.75rem;
    color: var(--mag-muted);
}

.mag-footer-bottom a { color: var(--mag-muted); }

/* Search results */
.mag-section { width: 100%; padding: 32px 0; }

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.search-empty {
    text-align: center;
    padding: 40px;
    color: var(--mag-muted);
}

.mag-clear-search {
    background: none;
    border: 1px solid var(--mag-line);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--mag-muted);
}

/* PDF modal */
.pdf-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.pdf-modal.show { display: flex; }

.pdf-modal-content {
    width: 90%;
    height: 90%;
    background: #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.pdf-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--mag-navy);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

.pdf-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.search-results-grid .issue-card {
    background: var(--mag-panel);
    border: 1px solid var(--mag-line);
    border-radius: 8px;
    padding: 16px;
}

.mag-cover-placeholder {
    width: auto;
    min-width: 160px;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: linear-gradient(145deg, #001431, #0a2a5e);
    color: #fff;
    border-radius: 6px;
}

.mag-footer-brand .logo-container.logo-image {
    width: clamp(185px, 18vw, 230px);
    height: 68px;
    background: url('../assets/reference/brand-logo.png') left center / contain no-repeat;
    display: block;
}

.mag-footer-brand .logo-container.logo-image > * { display: none; }

/* Nav magazine extras */
.magazine-page .nav-search-btn {
    background: none;
    border: none;
    color: var(--mag-ink);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    margin-right: 4px;
}

.magazine-page .nav-search-btn:hover { color: var(--mag-gold); }

/* Responsive */
@media (max-width: 1100px) {
    .mag-latest-panel { grid-template-columns: 1fr; }
    #previous-issues { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mag-newsletter { grid-template-columns: 1fr 1fr; }
    .mag-newsletter-visual { display: none; }
    .mag-footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .mag-hero-inner { grid-template-columns: 1fr; }
    .hero-slider-col { order: -1; }
    .mag-features-row { grid-template-columns: repeat(2, 1fr); }
    .mag-stats-grid { grid-template-columns: repeat(2, 1fr); }
    #category-grid { grid-template-columns: repeat(2, 1fr); }
    .mag-newsletter { grid-template-columns: 1fr; }
    .mag-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    #previous-issues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .latest-card-inner { grid-template-columns: 1fr; }
    .latest-cover-col { max-width: 200px; margin: 0 auto; }
    #previous-issues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-results-grid { grid-template-columns: 1fr; }
    .mag-footer-grid { grid-template-columns: 1fr; }
    .carousel-btn { display: none; }
    .mag-features-row { grid-template-columns: 1fr; }
}



