/* ============================================================
   Iran20 · home hero + latest-news rail redesign · 2026-09-30
   Loaded last from layouts/magazine so equal-specificity rules
   override iran20.css and iran20-20260910.css.
   ============================================================ */

/* ---------- Breaking strip ("تازه از ایران۲۰") ---------- */

.newswire {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 6px 22px rgba(23, 24, 22, .05);
    overflow: hidden;
}
.newswire > strong {
    flex: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    color: #fff;
    background: var(--red);
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
}
.newswire > strong i {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
}
@media (prefers-reduced-motion: no-preference) {
    .newswire > strong i { animation: newswire-pulse 1.6s ease-out infinite; }
    @keyframes newswire-pulse {
        0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); }
        100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
    }
}
.newswire > a {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .65rem 1rem;
}
.newswire > a:hover span { color: var(--red-dark); }
.newswire > a span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .88rem;
    font-weight: 800;
}
.newswire > a time {
    flex: none;
    padding: .15rem .5rem;
    border-radius: 6px;
    color: var(--red-dark);
    background: #fdf0ee;
    font-size: .68rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

/* ---------- Hero grid: story feature + تازه‌ها aside ---------- */

.newsroom-lead-grid {
    gap: 18px;
    margin-bottom: 18px;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
}

.newsroom-feature {
    position: relative;
    min-height: 460px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #153f48, #1d6680);
    box-shadow: 0 16px 42px rgba(16, 18, 25, .14);
}
.newsroom-feature-media {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}
.newsroom-feature-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.newsroom-feature-media:hover img { transform: scale(1.02); }
.newsroom-feature-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 9, 18, .93) 0%, rgba(3, 9, 18, .55) 42%, rgba(3, 9, 18, .05) 78%);
    pointer-events: none;
}
.newsroom-pattern { position: absolute; inset: 0; }

.newsroom-feature-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.4rem 1.5rem 1.25rem;
    color: #fff;
}
.feature-labels { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .65rem; }
.feature-labels .breaking-chip {
    padding: .22rem .7rem;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
}
.feature-labels .feature-cat {
    padding: .22rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
}
.newsroom-feature-overlay h2 {
    margin: 0 0 .45rem;
    font-size: clamp(1.25rem, 2.3vw, 1.85rem);
    line-height: 1.55;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.newsroom-feature-overlay p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 .8rem;
    max-width: 62ch;
    color: rgba(255, 255, 255, .88);
    font-size: .88rem;
    line-height: 1.85;
}
.newsroom-feature-overlay footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .7rem;
    border-top: 1px solid rgba(255, 255, 255, .22);
}
.newsroom-feature-overlay .creator-mini {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
}
.newsroom-feature-overlay .creator-mini small {
    padding: .1rem .45rem;
    border-radius: 999px;
    background: rgba(245, 201, 76, .2);
    color: var(--yellow);
    font-size: .6rem;
    font-weight: 850;
}
.newsroom-feature-overlay footer b {
    flex: none;
    color: var(--yellow);
    font-size: .76rem;
    font-weight: 900;
}
.feature-badge {
    top: 1rem;
    inset-inline-start: 1rem;
    background: rgba(23, 24, 22, .82);
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
}

/* تازه‌ها aside */
.quick-news {
    border-radius: 14px;
    border-top: 4px solid var(--red);
}
.quick-news header {
    min-height: auto;
    padding: .8rem 1rem;
    background: var(--ink);
    border-bottom: 0;
}
.quick-news header strong { color: #fff; font-size: .84rem; }
.quick-news header small { color: rgba(255, 255, 255, .62); font-size: .62rem; }
.quick-news header .live-dot {
    width: 8px; height: 8px;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(226, 59, 46, .2);
}
.quick-news > a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .25rem .7rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--line);
}
.quick-news > a:hover { background: #faf6ec; }
.quick-news > a time {
    grid-row: 1 / span 2;
    align-self: start;
    min-width: 42px;
    padding: .18rem .3rem;
    border-radius: 7px;
    text-align: center;
    color: var(--red-dark);
    background: #fdf0ee;
    font-size: .68rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.quick-news > a span {
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.75;
    color: var(--ink);
}
.quick-news > a:hover span { color: var(--red-dark); }
.quick-news > a small {
    grid-column: 2;
    color: var(--muted);
    font-size: .64rem;
}

/* ---------- Desk strip (replaces old marketing banner) ---------- */

.home-desk-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding: .8rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #faf8f3;
}
.home-desk-strip .desk-strip-light {
    flex: none;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #34b879;
    box-shadow: 0 0 0 4px rgba(52, 184, 121, .16);
}
.home-desk-strip p {
    flex: 1;
    min-width: 240px;
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.8;
}
.home-desk-strip p strong { color: var(--ink); }
.home-desk-strip a {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem 1.1rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .76rem;
    font-weight: 850;
}
.home-desk-strip a:hover { background: var(--red); }

/* ---------- Latest-news rail (right side) ---------- */

.global-latest-news-rail {
    width: 236px;
    inset-block-start: 196px;
    max-height: calc(100dvh - 218px);
    border: 1px solid #b9b1a3;
    border-top: 4px solid var(--red);
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: 0 14px 40px rgba(23, 24, 22, .13);
}
.global-latest-news-rail__head {
    padding: 11px 12px;
    background: var(--ink);
    border-bottom: 0;
}
.global-latest-news-rail__head strong {
    color: #fff;
    font-size: .8rem;
    font-weight: 900;
}
.global-latest-news-rail__head small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .58);
    font-size: .6rem;
    font-variant-numeric: tabular-nums;
}
.global-latest-news-rail__head > a {
    color: var(--yellow);
    font-size: .66rem;
    font-weight: 900;
}
.global-latest-news-rail__head > a:hover { color: #fff; }
.global-latest-news-rail__pulse {
    width: 8px; height: 8px;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(226, 59, 46, .22);
}
@media (prefers-reduced-motion: no-preference) {
    .global-latest-news-rail__pulse { animation: rail-pulse 1.8s ease-out infinite; }
    @keyframes rail-pulse {
        0% { box-shadow: 0 0 0 0 rgba(226,59,46,.45); }
        100% { box-shadow: 0 0 0 10px rgba(226,59,46,0); }
    }
}
.global-latest-news-rail__item > a {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 7px 11px 7px 13px;
}
.global-latest-news-rail__item > a::before {
    content: "";
    position: absolute;
    inset-block: 7px;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 3px;
    background: transparent;
    transition: background .15s;
}
.global-latest-news-rail__item > a:hover { background: #faf4e8; }
.global-latest-news-rail__item > a:hover::before { background: var(--red); }
.global-latest-news-rail__item strong {
    font-size: .74rem;
    line-height: 1.65;
    font-weight: 800;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.global-latest-news-rail__item > a:hover strong { color: var(--red-dark); }
.global-latest-news-rail__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: var(--muted);
    font-size: .58rem;
    white-space: nowrap;
    overflow: hidden;
}
.global-latest-news-rail__meta time {
    flex: none;
    color: var(--red-dark);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.global-latest-news-rail__type {
    flex: none;
    margin-inline-start: 0;
    color: #9b3027;
    font-size: .58rem;
    font-weight: 800;
}
.global-latest-news-rail__meta small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
    font-size: .58rem;
}

/* Reserved side band must match the rail width (236px + 12px margin) */
@media (min-width: 1100px) {
    body { padding-inline-start: 252px; }
    .site-header, .newsbar { margin-inline-start: -252px; }
}

/* ---------- Mobile news ticker (visible < 1100px) ---------- */

.mobile-news-ticker {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.mobile-news-ticker__label {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
    white-space: nowrap;
}
.mobile-news-ticker__label .live-dot {
    width: 7px; height: 7px;
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(226, 59, 46, .22);
}
.mobile-news-ticker__track {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.mobile-news-ticker__track::-webkit-scrollbar { display: none; }
.mobile-news-ticker__track > a {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: .7rem;
    font-weight: 750;
    white-space: nowrap;
    scroll-snap-align: start;
}
.mobile-news-ticker__track > a:active { background: rgba(255, 255, 255, .2); }
.mobile-news-ticker__track time {
    color: var(--yellow);
    font-size: .62rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 1099px) {
    .mobile-news-ticker { display: flex; }
    body { padding-inline-start: 0 !important; }
    .site-header, .newsbar { margin-inline-start: 0 !important; }
}

/* ---------- Reading home: story hero + welcome ---------- */

.reading-home .reading-feature {
    margin-top: 20px;
    min-height: 400px;
    border-color: #cfc7b8;
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(23, 24, 22, .09);
    overflow: hidden;
}
.reading-home .reading-feature-art { min-height: 400px; }
.reading-home .reading-feature-art img { transition: transform .5s ease; }
.reading-home .reading-feature-art:hover img { transform: scale(1.025); }
.reading-home .reading-feature-stamp {
    inset-inline-start: 16px;
    inset-block-start: 16px;
    padding: .3rem .85rem;
    border-radius: 999px;
    background: var(--red, #ad3f30);
    color: #fff;
    font-size: .7rem;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(23, 24, 22, .25);
}
.reading-home .reading-feature-copy { padding: 30px 32px; }
.reading-home .reading-feature-copy .reading-eyebrow {
    display: inline-block;
    padding-bottom: .45rem;
    border-bottom: 3px solid var(--red, #ad3f30);
    color: var(--red-dark, #9b3027);
    font-weight: 900;
}
.reading-home .reading-feature-copy h2 { margin: 14px 0 14px; line-height: 1.7; }
.reading-home .reading-feature-copy h2 a:hover { color: var(--red-dark, #9b3027); }
.reading-home .reading-feature-copy > p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.reading-home .reading-welcome { padding: 30px 0 22px; }
.reading-home .reading-welcome h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.reading-home .reading-welcome-note { transform: none; padding: 18px 20px; }
.reading-home .reading-welcome-note strong { font-size: 1.5rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .newsroom-lead-grid { grid-template-columns: 1fr; }
    .newsroom-feature { min-height: 380px; }
    .newsroom-feature-overlay { padding: 1.1rem 1.15rem 1rem; }
}
@media (max-width: 640px) {
    .newswire { flex-direction: column; }
    .newsroom-feature { min-height: 300px; }
    .newsroom-feature-overlay h2 { font-size: 1.15rem; }
    .newsroom-feature-overlay p { display: none; }
    .newsroom-feature-overlay footer { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .quick-news > a span { font-size: .78rem; }
}
