/* ═══════════════════════════════════════════════════════════════════════
   Article list — page-specific styles only.
   Shared editorial tokens/classes live in core/css/editorial.css.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Reading progress bar ── */
#mag-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: var(--mag-accent);
    z-index: 1100;
    transition: width .1s linear;
}

/* ── Centered content wrapper ── */
.mag-container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ── Sticky category filter bar ── */
#mag-filter-bar {
    position: sticky;
    top: calc(var(--navbar-h, 56px) - 1px);
    z-index: 89;
    background: rgba(var(--tw-stone-100-rgb), .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--mag-rule);
}
.mag-filter-form { scrollbar-width: none; }

/* ── TOC dots (desktop only) ── */
#mag-toc {
    position: fixed;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: center;
}
.toc-dot {
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--mag-rule);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
    position: relative;
}
.toc-dot.is-active {
    background: var(--mag-accent);
    transform: scale(1.6);
}
.toc-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 140%;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mag-ink-mute);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
#mag-toc:hover .toc-dot::after { opacity: 1; }

/* ── Article list hero ── */
.mag-hero {
    min-height: 460px;
    background: var(--tw-stone-100);
    border-bottom: 1px solid var(--mag-rule);
}
.mag-hero-img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
}
.mag-hero-img-col { min-height: 280px; }
.mag-hero-kicker {
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mag-accent);
}
.mag-hero-headline { font-size: clamp(1.75rem, 3.5vw, 3rem); }

/* ── Search bar ── */
.mag-search-group .input-group-text,
.mag-search-group .form-control {
    border-color: var(--mag-rule);
}
.mag-search-group .bi-search { color: var(--mag-ink-mute); }

/* ── Search results ── */
.search-result-card {
    border: 1px solid var(--mag-rule) !important;
    border-radius: .5rem;
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.search-result-card:hover {
    border-color: var(--mag-ink) !important;
    box-shadow: var(--bs-box-shadow-sm);
}
.search-result-title {
    font-size: .95rem;
    line-height: 1.4;
    color: var(--mag-ink);
    margin-bottom: .5rem;
    font-weight: 600;
}
.search-result-body {
    font-size: .78rem;
    margin-bottom: 0;
}

/* ── Section spacing ── */
.mag-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
@media (min-width: 768px) {
    .mag-section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
}
@media (min-width: 992px) {
    .mag-section { padding-top: 7rem; padding-bottom: 7rem; }
}
.mag-section-header { margin-bottom: 2.5rem; }
@media (min-width: 768px) {
    .mag-section-header { margin-bottom: 3.5rem; }
}

/* ── Responsive ── */
@media (max-width: 991px) {
    #mag-toc { display: none !important; }
}
@media (max-width: 767px) {
    .mag-hero { min-height: auto; }
}
