/* The news front page follows the reader's selected site palette. */
.news-desk {
    --nd-ink: var(--studio-color-text, #f5f1ee);
    --nd-muted: var(--studio-color-text-muted, #b8bac9);
    --nd-paper: var(--studio-page-canvas, #141923);
    --nd-surface: var(--studio-component-card-bg, #1c2432);
    --nd-line: color-mix(in srgb, var(--nd-ink) 19%, var(--nd-paper));
    --nd-soft-line: color-mix(in srgb, var(--nd-ink) 12%, var(--nd-paper));
    --nd-accent: var(--studio-color-accent, #b8abff);
    --nd-accent-ink: color-mix(in srgb, var(--nd-accent) 58%, var(--nd-ink));
    --nd-sticky: var(--studio-page-clearance, var(--studio-shell-clearance, 108px));
    color: var(--nd-ink);
    width: min(1256px, calc(100% - 72px));
    margin-inline: auto;
    padding-block: calc(var(--nd-sticky) + 16px) clamp(55px, 7vw, 100px);
    font-family: var(--studio-font-family-ui, inherit);
    overflow-wrap: anywhere;
}
.news-desk *, .news-desk *::before, .news-desk *::after { box-sizing: border-box; }
.news-desk :is(h1,h2,h3,p,ol,ul) { margin: 0; }
.news-desk :is(a,button,summary,input) { -webkit-tap-highlight-color: transparent; }
.news-desk a { color: inherit; text-decoration: none; }
.news-desk :is(button,input) { font: inherit; }
.news-desk button { cursor: pointer; }
.news-desk :is(a,button,input,summary):focus-visible { outline: 3px solid var(--nd-accent-ink); outline-offset: 3px; }
.news-desk [hidden] { display: none !important; }
.news-desk .icon { display: block; flex: none; width: 20px; height: 20px; }
.news-desk img { display: block; width: 100%; height: 100%; object-fit: cover; }
html[dir=ltr] .news-desk .nd-forward { transform: scaleX(-1); }
.nd-masthead { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-block: 0 19px; }
.nd-nameplate { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 24px; }
.nd-nameplate h1 { font-size: clamp(35px, 4.8vw, 66px); line-height: 1.26; font-weight: 850; letter-spacing: -.033em; }
.nd-dateline { color: var(--nd-muted); display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; }
.nd-dateline .icon { width: 14px; height: 14px; }
.nd-mast-tools { width: min(33%, 322px); }
.nd-guide-shortcut { display: none; }
.nd-search { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 45px; padding: 5px; padding-inline-start: 13px; background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 10px; }
.nd-search > .icon { width: 17px; height: 17px; color: var(--nd-muted); }
.nd-search input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; color: var(--nd-ink); height: 32px; font-size: .84rem; }
.nd-search input::placeholder { color: var(--nd-muted); opacity: 1; }
.nd-search button { border: 0; color: var(--nd-ink); background: color-mix(in srgb, var(--nd-accent) 15%, var(--nd-surface)); border-radius: 6px; display: grid; place-items: center; width: 35px; height: 33px; }
.nd-search button .icon { width: 16px; height: 16px; }
.nd-sections { display: flex; align-items: stretch; gap: clamp(12px, 2.25vw, 33px); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--nd-line) transparent; max-width: 100%; border-top: 2px solid var(--nd-ink); border-bottom: 1px solid var(--nd-line); }
.nd-sections a { display: inline-flex; align-items: center; padding: 11px 0 10px; min-height: 48px; border-bottom: 2px solid transparent; color: var(--nd-muted); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.nd-sections a[aria-current], .nd-sections a:hover { color: var(--nd-ink); border-color: var(--nd-accent); }
.nd-sections a:focus-visible { outline-offset: -3px; }
.nd-breaking { display: flex; align-items: center; gap: 16px; margin-block-start: 16px; min-width: 0; font-size: .82rem; }
.nd-breaking b, .nd-label { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.nd-breaking b { color: var(--nd-accent-ink); }
.nd-breaking i, .nd-label i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.nd-breaking > div { display: flex; align-items: center; gap: 18px; padding: 2px; overflow: auto; scrollbar-width: thin; }
.nd-breaking a { flex-shrink: 0; max-width: min(92vw, 650px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-cover { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: clamp(19px, 2.1vw, 30px); margin-block-start: 23px; }
.nd-cover--solo { grid-template-columns: 1fr; }
.nd-lead { display: flex; min-width: 0; }
.nd-lead-link { display: flex; align-items: flex-end; isolation: isolate; position: relative; overflow: hidden; width: 100%; min-height: clamp(350px, 29vw, 410px); background: #151626; color: #fff !important; border-radius: 16px; }
.nd-lead-art { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 24% 16%, #635487, transparent 64%), #272336; }
.nd-lead-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(7 10 19 / 98%) 0%, rgb(7 10 19 / 70%) 31%, rgb(7 10 19 / 10%) 72%); }
.nd-lead-art img { object-position: center 35%; }
.nd-portraits { display: flex; }
.nd-portraits img { flex: 1; min-width: 0; width: 0; object-position: center 29%; }
.nd-lead-copy { width: 100%; padding: clamp(20px, 2.2vw, 34px); text-shadow: 0 1px 8px rgb(0 0 0 / 35%); }
.nd-lead-meta, .nd-lead-foot { display: flex; align-items: center; flex-wrap: wrap; }
.nd-lead-meta { gap: 9px 14px; font-size: .74rem; font-weight: 700; color: #eeedf4; }
.nd-lead-meta .nd-label { background: color-mix(in srgb, var(--nd-accent) 50%, #fff); color: #24212a; border-radius: 4px; padding: 3px 9px; text-shadow: none; }
.nd-lead h2 { margin-block: 11px 16px; max-width: 95%; font-weight: 800; line-height: 1.4; font-size: clamp(27px, 2.45vw, 38px); text-wrap: pretty; }
.nd-lead-foot { gap: 14px; font-size: .8rem; }
.nd-lead-foot > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.nd-lead-foot .icon { width: 16px; height: 16px; }
.nd-lead-foot time { padding-inline-start: 14px; border-inline-start: 1px solid #92929a; color: #e1e1e6; }
.nd-headlines { display: grid; grid-template-rows: auto 1fr 1fr; min-width: 0; }
.nd-section-label { display: flex; align-items: center; gap: 9px; font-size: .96rem; font-weight: 800; }
.nd-section-label > span { width: 16px; height: 3px; background: var(--nd-accent); }
.nd-headlines article { min-width: 0; display: flex; padding-block: 15px; }
.nd-headlines article:last-child { border-top: 1px solid var(--nd-line); padding-bottom: 0; }
.nd-cover-note { width: 100%; display: grid; grid-template-columns: minmax(84px, .57fr) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 20px); align-items: center; }
.nd-note-art,.nd-story-art { position: relative; overflow: hidden; background: var(--nd-surface); }
.nd-note-art { align-self: stretch; min-height: 94px; border-radius: 10px; }
.nd-note-art img { position: absolute; inset: 0; }
.nd-kicker, .nd-meta b { color: var(--nd-accent-ink); font-size: .74rem; font-weight: 750; }
.nd-note-copy h3 { font-size: clamp(16px, 1.36vw, 22px); line-height: 1.52; font-weight: 780; margin-block: 6px; text-wrap: pretty; }
.nd-note-copy time, .nd-meta time, .nd-panel-title, .nd-directory small, .nd-ranking small { font-size: .74rem; color: var(--nd-muted); }
.news-desk .nd-noart { position: absolute; width: 34%; height: 44%; inset: 28% 33%; color: var(--nd-accent); opacity: .38; stroke-width: 1; }
.nd-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(254px, .39fr); gap: clamp(24px, 3.3vw, 48px); align-items: start; margin-block-start: clamp(28px, 3.5vw, 50px); }
.nd-feed { grid-column: 1; grid-row: 1; min-width: 0; scroll-margin-top: calc(var(--nd-sticky) + 12px); }
.nd-feed:only-child, .nd-guide:only-child { grid-column: 1 / -1; }
.nd-feed-head, .nd-feed-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nd-feed-head h2 { font-size: clamp(26px, 2.5vw, 36px); font-weight: 800; line-height: 1.35; }
.nd-feed-head p { margin-block: 6px; font-size: .88rem; color: var(--nd-muted); }
.nd-view { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--nd-line); border-radius: 9px; }
.nd-view button { display: grid; place-items: center; width: 37px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--nd-muted); border-radius: 5px; }
.nd-view .icon { width: 16px; height: 16px; }
.nd-view button[aria-pressed=true] { color: var(--nd-accent-ink); background: color-mix(in srgb, var(--nd-accent) 16%, var(--nd-surface)); }
.nd-feed-tools { margin-block: 13px 19px; padding-block-end: 10px; border-bottom: 1px solid var(--nd-line); }
.nd-feed-tools nav { display: flex; flex-wrap: wrap; gap: 14px; }
.nd-feed-tools nav a { color: var(--nd-muted); font-size: .84rem; padding: 4px 0; }
.nd-feed-tools nav a[aria-current] { color: var(--nd-accent-ink); font-weight: 800; }
.nd-feed-tools > span { font-size: .74rem; color: var(--nd-muted); }
.nd-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nd-active-filters a { display: inline-flex; gap: 6px; align-items: center; background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 6px; padding: 4px 8px; font-size: .8rem; }
.nd-active-filters .icon { width: 13px; height: 13px; }
.nd-stories { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: clamp(16px, 1.8vw, 26px); row-gap: 24px; }
.nd-story-link { display: block; }
.nd-story-art { aspect-ratio: 1.85; border-radius: 10px; }
.nd-story-copy { padding-block-start: 11px; }
.nd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.nd-meta i { width: 3px; height: 3px; background: var(--nd-muted); border-radius: 50%; }
.nd-story h3 { font-size: clamp(17px, 1.43vw, 23px); font-weight: 760; line-height: 1.55; margin-block: 5px 2px; text-wrap: pretty; }
.nd-story p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .85rem; line-height: 1.75; color: var(--nd-muted); }
.nd-stories[data-layout=list] { display: flex; flex-direction: column; gap: 0; }
.nd-stories[data-layout=list] .nd-story { padding-block: 16px; border-bottom: 1px solid var(--nd-soft-line); }
.nd-stories[data-layout=list] .nd-story:first-child { padding-top: 0; }
.nd-stories[data-layout=list] .nd-story-link { display: grid; grid-template-columns: minmax(92px, 24%) minmax(0,1fr); align-items: center; gap: 18px; }
.nd-stories[data-layout=list] .nd-story-art { aspect-ratio: 1.55; }
.nd-stories[data-layout=list] .nd-story-copy { padding: 0; }
.nd-guide { scroll-margin-top: calc(var(--nd-sticky) + 12px); grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--nd-sticky) + 12px); min-width: 0; }
.nd-guide details { background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 14px; overflow: clip; }
.nd-guide summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; list-style: none; cursor: pointer; }
.nd-guide summary::-webkit-details-marker { display: none; }
.nd-guide summary:focus-visible { outline-offset: -4px; }
.nd-guide-title { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.nd-guide-title > .icon { color: var(--nd-accent-ink); width: 23px; height: 23px; }
.nd-guide .nd-guide-chevron { color: var(--nd-muted); width: 16px; height: 16px; }
.nd-guide details[open] .nd-guide-chevron { transform: rotate(180deg); }
.nd-guide details[open] summary { border-bottom: 1px solid var(--nd-soft-line); }
.nd-guide-in { padding: 13px clamp(12px, 1.35vw, 20px) 5px; }
.nd-guide-tabs { display: flex; align-items: stretch; gap: 3px; padding: 3px; background: var(--nd-paper); border-radius: 7px; margin-bottom: 16px; }
.nd-guide-tabs button { flex: 1; border: 0; padding: 7px 3px; border-radius: 5px; background: transparent; color: var(--nd-muted); font-weight: 650; font-size: .77rem; }
.nd-guide-tabs button[aria-selected=true] { background: color-mix(in srgb,var(--nd-accent) 18%,var(--nd-surface)); color: var(--nd-accent-ink); }
.nd-guide-panel + .nd-guide-panel { margin-top: 6px; }
.nd-panel-title { display: flex; gap: 7px; align-items: center; font-weight: 650; }
.nd-panel-title .icon { width: 14px; height: 14px; }
.nd-ranking, .nd-directory { list-style: none; padding: 0; }
.nd-ranking li + li, .nd-directory li + li { border-top: 1px solid var(--nd-soft-line); }
.nd-ranking a { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 12px 0; }
.nd-rank-no { font: 500 28px/1.15 Georgia, serif; color: var(--nd-accent-ink); font-variant-numeric: lining-nums tabular-nums; }
.nd-ranking b,.nd-directory b { display: block; font-size: .89rem; font-weight: 700; line-height: 1.55; }
.nd-ranking small,.nd-directory small { display: block; margin-top: 3px; }
.nd-directory a { display: grid; grid-template-columns: 46px minmax(0,1fr) 14px; align-items: center; gap: 10px; padding-block: 10px; }
.nd-directory .nd-forward { width: 14px; height: 14px; color: var(--nd-muted); }
.nd-person-photo, .nd-title-photo { overflow: hidden; background: var(--nd-paper); display: grid; place-items: center; }
.nd-person-photo { width: 43px; height: 43px; border-radius: 50%; }
.nd-title-photo { width: 38px; height: 52px; border-radius: 4px; }
.nd-person-photo img,.nd-title-photo img { object-position: center 26%; }
.nd-empty { padding: 36px 16px; border: 1px dashed var(--nd-line); border-radius: 12px; text-align: center; }
.nd-empty > .icon { margin: 0 auto 12px; width: 26px; height: 26px; color: var(--nd-muted); }
.nd-empty h3 { font-size: 1.2rem; }
.nd-empty p { color: var(--nd-muted); margin-block: 8px 16px; }
.nd-empty a { display: inline-flex; align-items: center; gap: 7px; color: var(--nd-accent-ink); font-weight: 700; }
.nd-pagination { margin-top: 32px; }
.nd-pagination .studio-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--nd-line); padding-top: 18px; color: var(--nd-muted); font-size: .8rem; }
.nd-pagination .studio-pagination > div { display: flex; gap: 4px; flex-wrap: wrap; }
.nd-pagination .studio-pagination :is(span,a) { padding: 6px 8px; border-radius: 5px; }
.nd-pagination .studio-pagination .is-current { background: var(--nd-surface); color: var(--nd-accent-ink); }
.nd-pagination a:hover,.nd-active-filters a:hover { color: var(--nd-accent-ink); }
@media (hover:hover) {
    .nd-cover-note:hover h3,.nd-story-link:hover h3,.nd-ranking a:hover b,.nd-directory a:hover b { color: var(--nd-accent-ink); }
    .nd-lead-link:hover .nd-lead-foot > span { color: var(--nd-accent); }
}
@media (prefers-reduced-motion:no-preference) {
    .nd-cover { animation: nd-cover-in .36s ease-out both; }
    .nd-guide-panel:not([hidden]) { animation: nd-cover-in .18s ease-out; }
    .nd-lead-art img,.nd-story-art img,.nd-note-art img { transition: transform .28s ease-out; }
    .nd-guide-chevron,.nd-sections a { transition: transform .18s, border-color .18s; }
    @keyframes nd-cover-in { from { transform: translateY(6px); } to { transform: none; } }
    @media (hover:hover) { .nd-lead-link:hover .nd-lead-art img,.nd-story-link:hover .nd-story-art img,.nd-cover-note:hover .nd-note-art img { transform: scale(1.025); } }
}
@media (max-width: 1000px) {
    .news-desk { width: calc(100% - 40px); }
    .nd-cover { grid-template-columns: minmax(0,1.6fr) minmax(250px,1fr); }
    .nd-cover--solo { grid-template-columns: 1fr; }
    .nd-cover-note { grid-template-columns: minmax(74px,.52fr) minmax(0,1fr); gap: 11px; }
    .nd-note-copy h3 { font-size: 1rem; }
}
@media (max-width: 820px) {
    .nd-body { grid-template-columns: minmax(0,1fr); gap: 22px; margin-top: 24px; }
    .nd-guide,.nd-feed { grid-column: auto; grid-row: auto; }
    .nd-guide { position: static; }
    .nd-guide summary { padding: 12px 15px; }
    .nd-guide-in { padding-inline: 16px; }
    .nd-ranking { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
    .nd-mast-tools { display: flex; align-items: stretch; gap: 6px; width: min(51%,390px); }
    .nd-guide-shortcut { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--nd-line); border-radius: 8px; color: var(--nd-accent-ink); padding-inline: 8px; font-weight: 700; font-size: .78rem; }
    .nd-guide-shortcut .icon { width: 15px; height: 15px; }
    .nd-nameplate { display: block; }
}
@media (max-width: 650px) {
    .news-desk { width: calc(100% - 28px); padding-top: calc(var(--nd-sticky) + 8px); }
    .nd-masthead { align-items: center; flex-wrap: wrap; gap: 10px; padding-bottom: 12px; }
    .nd-nameplate { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 4px 12px; }
    .nd-nameplate h1 { font-size: 35px; }
    .nd-dateline { font-size: .7rem; }
    .nd-dateline .icon { width: 12px; height: 12px; }
    .nd-mast-tools { width: 100%; }
    .nd-search { flex: 1; min-width: 0; min-height: 38px; padding-block: 3px; }
    .nd-search input { height: 30px; }
    .nd-search button { height: 30px; }
    .nd-sections { gap: 20px; scrollbar-width: none; }
    .nd-sections::-webkit-scrollbar { display: none; }
    .nd-sections a { min-height: 42px; font-size: .8rem; padding-block: 8px; }
    .nd-cover { display: block; margin-top: 15px; }
    .nd-lead-link { min-height: clamp(278px,72vw,356px); border-radius: 12px; }
    .nd-lead h2 { max-width: none; font-size: clamp(22px,5vw,29px); margin-block: 8px 12px; }
    .nd-lead-copy { padding: 17px; }
    .nd-headlines { margin-top: 15px; display: block; }
    .nd-headlines article,.nd-headlines article:last-child { padding: 9px 0; }
    .nd-cover-note { grid-template-columns: 78px minmax(0,1fr); gap: 12px; }
    .nd-note-art { min-height: 72px; border-radius: 7px; }
    .nd-note-copy h3 { margin-block: 2px; font-size: .95rem; }
    .nd-note-copy time,.nd-kicker { font-size: .7rem; }
    .nd-section-label { font-size: .86rem; }
    .nd-body { margin-top: 16px; }
    .nd-guide-title { font-size: 1rem; }
    .nd-ranking { display: block; }
    .nd-stories { grid-template-columns: 1fr; gap: 20px; }
    .nd-story-art { aspect-ratio: 1.95; }
    .nd-stories[data-layout=list] .nd-story-link { grid-template-columns: 85px minmax(0,1fr); gap: 12px; }
    .nd-stories[data-layout=list] .nd-story h3 { font-size: .98rem; }
    .nd-stories[data-layout=list] .nd-story-art { aspect-ratio: 1; }
    .nd-stories[data-layout=list] .nd-story p { display: none; }
    .nd-feed-head h2 { font-size: 1.55rem; }
    .nd-feed-tools { margin-top: 8px; }
}
