.nf-home {
    --nf-navy: #071a2f;
    --nf-ink: #10243e;
    --nf-paper: #faf7f2;
    --nf-gold: #c59a3d;
    --nf-green: #0d6e63;
    --nf-rule: #e8e1d8;
    padding: 10px 0 28px;
    color: var(--nf-ink);
    background: var(--nf-paper);
}
.nf-home .container { max-width: 1440px; }
.nf-home__top-ad, .nf-home__billboard, .nf-home__footer-ad { padding-block: 8px; }
.nf-home .ad-slot { overflow: hidden; border: 1px solid var(--nf-gold); border-radius: 6px; background: var(--nf-navy); }
.nf-home .ad-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nf-home .ad-sponsored-label { color: #f5d589; }
.nf-home__top-ad .ad-slot, .nf-home__footer-ad .ad-slot { min-height: 90px; }
.nf-home__billboard .ad-slot { min-height: 180px; }
.nf-label, .nf-kicker {
    color: var(--accent-gold-text, #8c6d1c);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.nf-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
}
.nf-button--gold { color: #fff; background: linear-gradient(135deg, #b68024, #d5aa50); }
.nf-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.nf-panel-title h2 { margin: 0; color: var(--nf-ink); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.nf-panel-title a { color: var(--accent-gold-text, #8c6d1c); font-size: 10px; font-weight: 700; }

.nf-lead {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, .74fr) minmax(180px, .43fr);
    gap: 14px;
    padding-block: 4px 14px;
}
.nf-lead--no-ad { grid-template-columns: minmax(0, 2fr) minmax(280px, .72fr); }
.nf-lead--no-market { grid-template-columns: minmax(0, 1fr) 300px; }
.nf-lead--no-ad.nf-lead--no-market { grid-template-columns: minmax(0, 1fr); }
.nf-lead__stories { position: relative; min-height: 430px; overflow: hidden; border-radius: 7px; background: var(--nf-navy); }
.nf-lead__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease; }
.nf-lead__slide.is-active { opacity: 1; visibility: visible; }
.nf-lead__image, .nf-lead__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.nf-lead__image { object-fit: cover; }
.nf-lead__shade { background: linear-gradient(90deg, rgba(4,17,31,.92) 0%, rgba(4,17,31,.68) 48%, rgba(4,17,31,.08) 85%); }
/* Controlled overlay presets (Phase 1) — legibility over the hero image. */
.nf-lead__shade--none   { background: linear-gradient(90deg, rgba(4,17,31,.55) 0%, rgba(4,17,31,.15) 55%, transparent 85%); }
.nf-lead__shade--light  { background: linear-gradient(90deg, rgba(4,17,31,.78) 0%, rgba(4,17,31,.42) 50%, rgba(4,17,31,.04) 85%); }
.nf-lead__shade--medium { background: linear-gradient(90deg, rgba(4,17,31,.92) 0%, rgba(4,17,31,.68) 48%, rgba(4,17,31,.08) 85%); }
.nf-lead__shade--strong { background: linear-gradient(90deg, rgba(4,17,31,.98) 0%, rgba(4,17,31,.82) 55%, rgba(4,17,31,.35) 95%); }
.nf-lead__copy { position: absolute; z-index: 1; inset-inline-start: 44px; bottom: 38px; width: min(520px, 72%); color: #fff; }
.nf-lead__copy h1,
.nf-lead__copy .nf-lead__slide-title { margin: 12px 0; font-family: var(--en-serif); font-size: clamp(34px, 3.3vw, 54px); line-height: 1.05; font-weight: inherit; }
.nf-lead__copy h1 a,
.nf-lead__copy .nf-lead__slide-title a { color: inherit; }
.lang-ar .nf-lead__copy h1,
.lang-ar .nf-lead__copy .nf-lead__slide-title { font-family: var(--ar-head); line-height: 1.35; }
.nf-lead__copy p { max-width: 520px; margin: 0 0 14px; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.55; }
.nf-lead__meta { display: flex; gap: 8px; margin-bottom: 18px; color: rgba(255,255,255,.8); font-size: 11px; }
.nf-slider-arrow { position: absolute; z-index: 3; top: 48%; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; background: rgba(7,26,47,.82); font-size: 24px; }
.nf-slider-arrow--prev { inset-inline-start: 10px; }
.nf-slider-arrow--next { inset-inline-end: 10px; }
.nf-slider-dots { position: absolute; z-index: 3; inset-inline: 0; bottom: 10px; display: flex; justify-content: center; gap: 11px; }
.nf-slider-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.75); }
.nf-slider-dots button.is-active { background: var(--nf-gold); }
.nf-market-card, .nf-news-panel, .nf-media-panel {
    padding: 18px;
    border: 1px solid var(--nf-rule);
    border-radius: 7px;
    background: rgba(255,255,255,.68);
}
.nf-market-list { border-top: 1px solid var(--nf-rule); }
.nf-market-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; gap: 8px; min-height: 69px; border-bottom: 1px solid var(--nf-rule); }
.nf-market-row div { display: grid; grid-template-columns: 1fr auto; gap: 3px 7px; align-items: end; }
.nf-market-row small { grid-column: 1 / -1; font-size: 9px; }
.nf-market-row strong { font-size: 16px; }
.nf-market-row span { font-size: 9px; font-weight: 800; }
.nf-market-row svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nf-market-source { margin: 12px 0 0; color: #6c7782; font-size: 9px; line-height: 1.4; }
.nf-market-reference { color: var(--text-secondary, #5f6f7e); font-size: 9px; text-align: end; }
/* The change % now owns the right column (the fabricated sparkline was removed);
   size it as the primary right-hand signal and keep it end-aligned. */
.nf-market-row .nf-market-change { font-size: 14px; font-weight: 800; text-align: end; }
.nf-market-delayed { color: var(--accent-gold-text, #8c6d1c); font-weight: 600; }
.nf-side-market-source { margin: 8px 0 0; color: #6c7782; font-size: 10px; line-height: 1.4; }
.is-up { color: #07875f; }
.is-down { color: #c92d3a; }
.nf-lead__ad, .nf-partners__ad { min-width: 0; }
.nf-lead__ad .ad-slot { min-height: 430px; }

.nf-news-desk { display: grid; grid-template-columns: 1fr 1.12fr .92fr; gap: 14px; padding-block: 12px; }
.nf-compact-list article { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--nf-rule); }
.nf-compact-list img { width: 120px; height: 68px; border-radius: 3px; object-fit: cover; }
.nf-news-panel h3 { margin: 3px 0; font-size: 13px; line-height: 1.25; }
.nf-news-panel h3 a { color: var(--nf-ink); }
.nf-news-panel small { color: #6c7782; font-size: 9px; }
.nf-editors__lead { padding-bottom: 12px; border-bottom: 1px solid var(--nf-rule); }
.nf-editors__lead img { width: 100%; aspect-ratio: 16/7; border-radius: 4px; object-fit: cover; }
.nf-editors__lead h3 { font-family: var(--en-serif); font-size: 24px; }
.lang-ar .nf-editors__lead h3 { font-family: var(--ar-head); }
.nf-editors__small { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding-top: 10px; }
.nf-editors__small img { width: 82px; height: 54px; object-fit: cover; }
.nf-ranked-list { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.nf-ranked-list li { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--nf-rule); }
.nf-ranked-list li > span { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #dcccae; border-radius: 50%; font-family: var(--en-serif); font-weight: 700; }

.nf-media-desk { display: grid; grid-template-columns: 1.08fr 1fr 1fr .9fr; gap: 12px; padding-block: 12px; }
.nf-media-feature { position: relative; display: block; width: 100%; padding: 0; border: 0; color: #fff; background: var(--nf-navy); text-align: start; }
.nf-media-feature img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .76; }
.nf-media-feature strong { position: absolute; inset-inline: 12px; bottom: 10px; font-size: 12px; }
.nf-play { position: absolute; top: 44%; inset-inline-start: 50%; display: grid; width: 46px; height: 46px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: rgba(7,26,47,.65); transform: translate(-50%,-50%); }
.nf-media-list button, .nf-podcast-list button { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--nf-rule); color: var(--nf-ink); background: transparent; text-align: start; font-size: 10px; }
.nf-media-list img { width: 58px; height: 38px; object-fit: cover; }
.nf-podcast-list button { position: relative; grid-template-columns: 38px 1fr; }
.nf-play--small { position: static; width: 32px; height: 32px; color: #fff; font-size: 9px; transform: none; }
.nf-podcast-list strong, .nf-podcast-list small { display: block; }
.nf-report-list a { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--nf-rule); color: var(--nf-ink); font-size: 10px; }
.nf-report-list img { width: 70px; height: 50px; object-fit: cover; }
.nf-report-list small { display: block; margin-top: 5px; color: var(--accent-gold-text, #8c6d1c); }
.nf-event-list a { display: grid; grid-template-columns: 54px 1fr; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--nf-rule); color: var(--nf-ink); }
.nf-event-list time { display: grid; place-items: center; padding: 7px; border: 1px solid var(--nf-rule); background: #fff; }
.nf-event-list time strong { font-family: var(--en-serif); font-size: 23px; }
.nf-event-list time span, .nf-event-list small { color: #6c7782; font-size: 9px; }
.nf-event-list a > span strong, .nf-event-list a > span small { display: block; }
.nf-event-list a > span strong { font-size: 11px; }

.nf-partners { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; padding-block: 0 12px; }
.nf-partners--no-ad { grid-template-columns: 1fr; }
.nf-partners__logos { padding: 18px; border: 1px solid var(--nf-rule); border-radius: 7px; background: #fff; }
.nf-partners__logos h2 { margin: 0 0 16px; font-size: 12px; text-transform: uppercase; }
/* Centered wrap so any number of partners sits in the middle of the row,
   never bunched to one side with empty tracks trailing off the end. */
.nf-partners__logos > div { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 14px; }
.nf-partners__logos a {
    display: grid;
    place-items: center;
    flex: 0 1 180px;
    min-height: 88px;
    padding: 14px 18px;
    color: var(--nf-ink);
    text-align: center;
    border: 1px solid var(--nf-rule);
    border-radius: 8px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.nf-partners__logos a:hover { border-color: #d8cbb0; box-shadow: 0 4px 14px rgba(12,31,51,.07); transform: translateY(-1px); }
/* Original colours — no grayscale/opacity filter, so a partner's brand shows
   as supplied. The white backing matches how these logos are authored: some
   are transparent PNGs with dark artwork, one (XM) ships a baked white
   background — a white plate hosts both cleanly, with no white rectangle
   floating on a tinted card. object-fit keeps aspect ratio. */
.nf-partners__logos img { max-width: 100%; max-height: 60px; object-fit: contain; background: #fff; border-radius: 3px; }
/* Text fallback (no logo uploaded) reads as a branded chip, not raw text. */
.nf-partners__logos a strong { font-family: var(--en-serif); font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.lang-ar .nf-partners__logos a strong { font-family: var(--ar-head); }
.nf-partners__ad .ad-slot { min-height: 128px; }
.nf-newsletter { display: grid; grid-template-columns: 1fr minmax(360px, .8fr); align-items: center; gap: 40px; padding: 26px 32px; border-radius: 7px; color: #fff; background: var(--nf-navy); }
.nf-newsletter h2 { margin: 6px 0; color: #fff; font-family: var(--en-serif); font-size: 28px; }
.lang-ar .nf-newsletter h2 { font-family: var(--ar-head); }
.nf-newsletter p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; }
.nf-newsletter form { display: flex; gap: 10px; }
.nf-newsletter input { min-width: 0; flex: 1; height: 44px; padding: 0 14px; border: 0; border-radius: 3px; }
.nf-newsletter button { min-width: 120px; border: 0; border-radius: 3px; color: #fff; background: var(--nf-gold); font-weight: 800; }

@media (max-width: 1100px) {
    .nf-lead { grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr); }
    .nf-lead__ad { display: none; }
    .nf-media-desk { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
    .nf-lead, .nf-news-desk, .nf-partners, .nf-newsletter { grid-template-columns: 1fr; }
    .nf-lead__stories { min-height: 520px; }
    .nf-lead__copy { inset-inline: 26px; width: auto; }
    .nf-market-card { display: none; }
    .nf-newsletter form { width: 100%; }
}
@media (max-width: 560px) {
    .nf-home { padding-top: 0; }
    .nf-home__top-ad, .nf-home__footer-ad { padding-inline: 0; }
    .nf-lead__stories { min-height: 470px; border-radius: 0; }
    .nf-lead__copy h1,
    .nf-lead__copy .nf-lead__slide-title { font-size: 34px; }
    .nf-lead__copy p { display: none; }
    .nf-media-desk { grid-template-columns: 1fr; }
    .nf-compact-list article { grid-template-columns: 96px 1fr; }
    .nf-compact-list img { width: 96px; height: 62px; }
    .nf-newsletter { padding: 24px 20px; }
    .nf-newsletter form { flex-direction: column; }
    .nf-newsletter button { height: 44px; }
}

/* ── Breaking-news ticker ───────────────────────────────────────────────
   The marquee mechanics — the flex track, the overflow clip, the scroll
   animation and its @keyframes — live in site.css / homepage.css, which the
   newspaper homepage does NOT load. Without them the ticker did not scroll and
   its items rendered broken/clipped ("breaking tab not working"). This block is
   self-contained so it works regardless of which shell stylesheet set the bar
   colour. The blade duplicates the item set, so translateX(-50%) advances
   exactly one full set → a seamless loop. Hover (or focus) pauses it so a
   moving headline can be read and clicked. */
.breaking-bar { display: flex; align-items: stretch; min-height: 38px; overflow: hidden; background: #a91e2c; }
.brk-label {
    flex-shrink: 0; display: flex; align-items: center;
    padding: 0 14px; background: #881522; color: #fff;
    font-family: var(--en-sans, "Helvetica Neue", Arial, sans-serif);
    font-size: 11px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; white-space: nowrap;
}
.lang-ar .brk-label { font-family: var(--ar-head, sans-serif); letter-spacing: 0; }
.brk-wrap { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.brk-track { display: flex; align-items: center; white-space: nowrap; direction: ltr; animation: brk-scroll 40s linear infinite; }
.brk-wrap:hover .brk-track,
.brk-track:focus-within { animation-play-state: paused; }
.brk-item {
    flex-shrink: 0; padding: 0 16px; color: #fff;
    font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
a.brk-item { cursor: pointer; }
a.brk-item:hover, a.brk-item:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.brk-sep { flex-shrink: 0; color: rgba(255,255,255,.4); font-size: 7px; }

@keyframes brk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Reduced motion (and newsroom-v2's global animation kill-switch): stop the
   scroll and let the reader swipe the row by hand, so items are never lost past
   the first frame under overflow:hidden. */
@media (prefers-reduced-motion: reduce) {
    .brk-track { animation: none; }
    .brk-wrap  { overflow-x: auto; }
}
