.magazines-rtl-root {
    direction: rtl;
    text-align: right;
}

    .magazines-rtl-root [dir="ltr"] {
        text-align: left;
    }

.magazine-prose p {
    margin: 0 0 1.1rem;
    line-height: 1.95;
}

    .magazine-prose p:last-child {
        margin-bottom: 0;
    }

.magazine-rule-item {
    position: relative;
    padding: 0.85rem 1rem 0.85rem 0;
    border-inline-end: 3px solid rgba(197, 160, 89, 0.55);
    background: linear-gradient(to left, rgba(0, 77, 61, 0.05), transparent);
    border-radius: 0 10px 10px 0;
}

.magazine-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .magazine-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 50px rgba(0, 77, 61, 0.12);
        border-color: rgba(197, 160, 89, 0.45);
    }

.magazine-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(155deg, #004D3D 0%, #0a5c4a 45%, #003329 100%);
    border: 1px solid rgba(197, 160, 89, 0.35);
    box-shadow: 0 16px 40px rgba(0, 77, 61, 0.2);
}

    .magazine-cover::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg, rgba(241, 212, 151, 0.12) 0%, transparent 38%);
        pointer-events: none;
    }

.magazine-cover-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 3;
    height: 6px;
    background: linear-gradient(90deg, #C5A059, #F1D497, #C5A059);
}

.magazine-cover-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 1.1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: right;
    color: rgba(255, 255, 255, 0.95);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.2) 42%, transparent 72%);
}

.magazine-cover-badge {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(197, 160, 89, 0.25);
    border: 1px solid rgba(241, 212, 151, 0.45);
    color: #F1D497;
    margin-bottom: auto;
    margin-top: 0.75rem;
}

.magazine-cover-title {
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.magazine-cover-meta {
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(241, 212, 151, 0.95);
    margin-top: 0.35rem;
}

.magazine-cover-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.magazine-card--nolink {
    pointer-events: none;
    cursor: default;
}

.mag-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    padding: 20px;
}

    .mag-modal.is-open {
        display: flex;
    }

.mag-modal-dialog {
    width: min(1200px, 100%);
    height: min(88vh, 920px);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
    display: grid;
    grid-template-rows: 56px 1fr;
}

.mag-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #004d3d;
    color: #fff;
}

.mag-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.mag-modal-close {
    border: 0;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 800;
    background: #c5a059;
    color: #1f2937;
    cursor: pointer;
}

.mag-modal-body {
    position: relative;
    background: #f8fafc;
}
