/* Main news feed, related credits and compact reading layouts. */
.nd-feed { --nf-tint: color-mix(in srgb, var(--nd-accent) 7%, var(--nd-surface)); }
.nf-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 14px; }
.nd-feed .nd-feed-head h2 { line-height: 1.34; }
.nf-count { color: var(--nd-muted); font-weight: 550; font-size: .77rem; white-space: nowrap; }
.nf-section-desc { margin-block: 8px 0 !important; font-size: .88rem; line-height: 1.7; color: var(--nd-muted); }
.nd-feed .nd-feed-tools { position: relative; margin-block: 10px 19px; padding: 0; }
.nd-feed-tools nav { gap: 16px; }
.nd-feed-tools nav a { display: inline-flex; align-items: center; gap: 6px; position: relative; padding-block: 9px; }
.nd-feed-tools nav .icon { width: 14px; height: 14px; }
.nd-feed-tools nav a[aria-current]::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--nd-accent); }
.nf-edition { gap: 26px 21px; }
.nf-item { min-width: 0; }
.nf-item .nd-story-link { min-width: 0; }
.nf-item .nf-art { isolation: isolate; }
.nf-item .nf-art img { position: absolute; inset: 0; }
.nf-item .nf-copy { min-width: 0; }
.nf-item .nf-meta { line-height: 1.6; }
.nf-item .nf-meta b { font-size: .72rem; }
.nf-item .nf-meta time { font-size: .73rem; }
.nf-item .nf-copy p { margin-block: 8px 0; line-height: 1.8; }
.nf-feature { grid-column: 1 / -1; overflow: clip; border: 1px solid var(--nd-line); border-radius: 14px; background: linear-gradient(118deg, var(--nd-surface), var(--nf-tint)); }
.nf-feature .nf-link { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1fr); align-items: stretch; }
.nf-feature .nf-art { border-radius: 0; aspect-ratio: auto; min-height: clamp(215px, 19vw, 286px); background: var(--nd-surface); }
.nf-feature .nf-art > img { object-fit: contain; }
.nf-matte { position: absolute; inset: -12px; filter: blur(15px); opacity: .38; pointer-events: none; }
.nf-item .nf-short-title { display: none; }
.nf-feature .nf-copy { align-self: center; padding: clamp(17px, 1.85vw, 28px); }
.nf-feature .nf-meta b { padding-inline-start: 9px; border-inline-start: 3px solid var(--nd-accent); }
.nf-feature .nf-copy h3 { font-size: clamp(20px, 1.85vw, 29px); line-height: 1.48; margin-block: 10px 0; }
.nf-feature .nf-copy p { -webkit-line-clamp: 3; }
.nf-read { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 13px; color: var(--nd-accent-ink); font-size: .82rem; font-weight: 750; }
.nf-read .icon { width: 16px; height: 16px; }
.nf-connections {
    display: flex; flex-wrap: wrap; align-items: stretch; column-gap: clamp(14px, 2.2vw, 30px); row-gap: 12px;
    padding: 13px clamp(15px, 1.7vw, 24px) 15px; border-block-start: 1px solid var(--nd-line);
    background: color-mix(in srgb, var(--nd-surface) 64%, var(--nd-paper));
}
.nf-credit-group { min-width: 0; }
.nf-credit-work { flex: 1 1 175px; }
.nf-credit-cast { flex: 1.55 1 275px; }
.nf-credit-work + .nf-credit-cast { border-inline-start: 1px solid var(--nd-line); padding-inline-start: clamp(14px,2.2vw,30px); }
.nf-credit-group h4 { margin: 0 0 6px; font-size: .73rem; line-height: 1.5; font-weight: 650; color: var(--nd-muted); }
.nf-connections .nf-credit-link { display: flex; align-items: center; gap: 9px; min-height: 42px; width: fit-content; max-width: 100%; border-radius: 5px; }
.nf-credit-link bdi { min-width: 0; font-size: .87rem; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.nf-connections .nf-credit-link:is(:hover,:focus-visible) { color: var(--nd-accent-ink); }
.nf-connections .nf-poster,.nf-connections .nf-avatar { flex: none; display: grid; place-items: center; overflow: hidden; color: var(--nd-muted); background: var(--nf-tint); border: 1px solid var(--nd-line); }
.nf-connections .nf-poster { width: 39px; height: 55px; border-radius: 5px; }
.nf-connections .nf-avatar { width: 38px; height: 38px; border-radius: 50%; }
.nf-connections :is(.nf-avatar,.nf-poster) { position: relative; }
.nf-connections :is(.nf-avatar,.nf-poster) img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nf-credit-work .nf-credit-link { width: 100%; }
.nf-credit-work .nf-credit-arrow { margin-inline-start: auto; }
.nf-connections .nf-avatar img { object-position: center 28%; }
.nf-connections .nf-poster img { object-position: center; }
.nf-connections .nf-credit-arrow { width: 14px; height: 14px; color: var(--nd-accent-ink); }
.nf-connections .nf-cast-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 115px), 1fr)); column-gap: 12px; row-gap: 4px; }
.nf-cast-list li { min-width: 0; }
/* The four supporting stories read down each column. The feed order also works on phones. */
.nf-secondary {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 0 clamp(20px, 2.4vw, 36px);
}
.nf-card { min-width: 0; padding-block: 15px; border-block-end: 1px solid var(--nd-line); }
.nf-card:nth-child(odd) { padding-block-start: 0; }
.nf-edition:not([data-layout=list]) .nf-card .nf-link {
    display: grid;
    grid-template-columns: clamp(82px, 7vw, 114px) minmax(0, 1fr);
    align-items: stretch; gap: clamp(12px, 1.2vw, 19px);
}
.nf-edition:not([data-layout=list]) .nf-card .nf-art {
    width: 100%; height: auto; align-self: start;
    aspect-ratio: 3 / 4; border-radius: 9px; background: var(--nd-surface);
}
.nf-edition:not([data-layout=list]) .nf-card .nf-copy {
    min-width: 0; display: flex; flex-direction: column; align-items: start;
    padding: 1px 0; gap: 6px;
}
.nf-edition:not([data-layout=list]) .nf-card .nf-meta { display: contents; }
.nf-edition:not([data-layout=list]) .nf-card .nf-meta b {
    display: flex; align-items: baseline; gap: 6px; font-weight: 650;
    line-height: 1.55; color: var(--nd-accent-ink);
}
.nf-edition:not([data-layout=list]) .nf-card .nf-meta b::before {
    content: ''; flex: 0 0 9px; height: 2px; align-self: center; background: currentColor;
}
.nf-edition:not([data-layout=list]) .nf-card .nf-meta i { display: none; }
.nf-card .nf-meta time .icon { display: none; }
.nf-edition:not([data-layout=list]) .nf-card .nf-meta time {
    order: 3; display: inline-flex; align-items: center; gap: 5px; margin-block-start: auto;
    padding-block-start: 4px; font-size: .72rem; color: var(--nd-muted);
}
.nf-edition:not([data-layout=list]) .nf-card .nf-meta time .icon { display: inline; width: 13px; height: 13px; }
.nf-edition:not([data-layout=list]) .nf-card h3 {
    margin: 0; font-size: clamp(16px, 1.24vw, 20px); line-height: 1.55; font-weight: 690;
}
.nf-edition:not([data-layout=list]) .nf-card .nf-full-title {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.nf-edition[data-layout=list] .nf-secondary { display: contents; }
.nf-brief { grid-column: 1 / -1; padding-block-end: 15px; border-block-end: 1px solid var(--nd-soft-line); }
.nf-brief + .nf-brief { margin-top: -10px; }
.nf-brief .nf-link { display: grid; grid-template-columns: minmax(0,1fr) 108px; align-items: center; gap: 18px; }
.nf-brief .nf-art { grid-column: 2; grid-row: 1; width: 100%; aspect-ratio: 1.72; border-radius: 7px; }
.nf-brief .nf-copy { grid-column: 1; grid-row: 1; padding: 0; }
.nf-brief .nf-copy h3 { font-size: clamp(16px, 1.34vw, 19px); }
.nf-brief .nf-copy h3,.nf-edition[data-layout=list] .nf-copy h3 { white-space: nowrap; text-wrap: nowrap; margin-block: 5px 0; line-height: 1.65; }
.nf-brief .nf-short-title,.nf-edition[data-layout=list] .nf-short-title { display: block; overflow: hidden; text-overflow: ellipsis; }
.nf-brief .nf-meta,.nf-edition[data-layout=list] .nf-meta { flex-wrap: nowrap; min-width: 0; gap: 7px; }
.nf-brief .nf-meta b,.nf-edition[data-layout=list] .nf-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-brief .nf-meta time,.nf-edition[data-layout=list] .nf-meta time { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nf-brief .nf-art,.nf-edition[data-layout=list] .nf-art { background: var(--nf-tint); box-shadow: inset 0 0 0 1px var(--nd-soft-line); }
.nf-brief .nf-art > img,.nf-edition[data-layout=list] .nf-art > img { object-fit: contain; }
.nf-edition[data-layout=list] .nf-item { border: 0; border-bottom: 1px solid var(--nd-soft-line); border-radius: 0; background: transparent; overflow: visible; }
.nf-edition[data-layout=list] .nf-item + .nf-item { margin-top: 0; }
.nf-edition[data-layout=list] .nf-link { display: grid; grid-template-columns: 108px minmax(0,1fr); align-items: center; gap: 18px; }
.nf-edition[data-layout=list] .nf-art { grid-area: 1/1; width: 100%; min-height: 0; aspect-ratio: 1.72; border-radius: 7px; }
.nf-edition[data-layout=list] .nf-copy { grid-area: 1/2; padding: 0; }
.nf-edition[data-layout=list] .nf-matte { display: block; }
.nf-brief .nf-link:hover .nf-art > img,.nf-edition[data-layout=list] .nf-link:hover .nf-art > img { transform: none; }
.nf-edition[data-layout=list] .nf-copy h3 { margin-block: 4px 0; font-size: clamp(16px, 1.42vw, 21px); }
.nf-edition[data-layout=list] .nf-meta b { padding: 0; border: 0; }
.nf-edition[data-layout=list] :is(.nf-read,.nf-connections,.nf-full-title,.nf-copy p) { display: none; }
@media (min-width: 821px) {
    /* Share the archive's height across the stories on a full page. */
    .nd-feed:has(.nf-brief) {
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }
    .nd-feed:has(.nf-brief) > .nf-edition {
        flex: 1 0 auto;
        align-content: space-between;
    }
    .nd-feed:has(.nf-brief) > .nf-edition[data-layout=list] { justify-content: space-between; }
}
@media (max-width: 650px) {
    .nf-heading { gap: 4px 8px; }
    .nd-feed .nd-feed-tools { margin-block: 5px 13px; }
    .nf-edition { gap: 16px; }
    .nf-feature { border-radius: 11px; }
    .nf-feature .nf-link { display: block; }
    .nf-feature .nf-art { min-height: 0; aspect-ratio: 1.95; }
    .nf-feature .nf-copy { padding: 14px 15px; }
    .nf-feature .nf-copy h3 { font-size: 1.22rem; margin-top: 7px; }
    .nf-feature .nf-copy p { -webkit-line-clamp: 2; }
    .nf-read { margin-top: 9px; }
    .nf-secondary { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
    .nf-card,.nf-card:nth-child(odd) { padding-block: 12px; }
    .nf-card:first-child { padding-block-start: 0; }
    .nf-edition:not([data-layout=list]) .nf-card .nf-link { grid-template-columns: clamp(75px, 21vw, 95px) minmax(0, 1fr); gap: 14px; }
    .nf-brief { padding-bottom: 13px; }
    .nf-brief + .nf-brief { margin-top: -3px; }
    .nf-brief .nf-link { grid-template-columns: minmax(0,1fr) 77px; gap: 12px; }
    .nf-brief .nf-art { aspect-ratio: 1.45; border-radius: 6px; }
    .nf-connections { display: grid; gap: 10px; padding: 12px 15px; }
    .nf-credit-work + .nf-credit-cast { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--nd-soft-line); padding-block-start: 10px; }
    .nf-credit-group h4 { margin-block-end: 4px; }
    .nf-connections .nf-poster { width: 33px; height: 47px; }
    .nf-connections .nf-avatar { width: 35px; height: 35px; }
    .nf-connections .nf-cast-list { grid-template-columns: repeat(auto-fit,minmax(min(100%, 116px),1fr)); }
    .nf-credit-link bdi { font-size: .82rem; }

    .nf-brief .nf-copy h3 { font-size: .96rem; }
    .nf-edition[data-layout=list] .nf-link { grid-template-columns: 77px minmax(0,1fr); gap: 12px; }
    .nf-edition[data-layout=list] .nf-art { aspect-ratio: 1.45; }
    .nf-edition[data-layout=list] .nf-copy h3 { font-size: .96rem; }
}
