/*
 * Classic — a busy news portal.
 *
 * A bright header, a mosaic of top stories, section blocks headed by tabs
 * in each section's colour, a sidebar beside them, a video strip and a
 * dark footer. Plain CSS, no build step: edit and upload. Colours and
 * sizes come from the customizer as custom properties (--nf-accent,
 * --nf-max-width...), and its switches as attributes on <html>
 * (data-nf-header-style...). Logical properties keep right-to-left working.
 */

/* Tokens. Fonts are system stacks, so nothing is downloaded from third parties. */

:root {
    --nf-serif:
        Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia,
        'Noto Serif', serif;
    --nf-sans:
        system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans',
        'Helvetica Neue', Arial, sans-serif;
    --nf-humanist:
        'Seravek', 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans',
        source-sans-pro, sans-serif;
    --nf-font-heading: var(--nf-serif);
    --nf-font-body: var(--nf-sans);
    --nf-header-bg: var(--nf-bg);
    --nf-header-text: var(--nf-text);
    --nf-heading-tab: #1a1a1a;
    --nf-title: #222222;
    --nf-date: #8c8c8c;
    --nf-band: #f5f5f5;
    --nf-footer-bg: #1d1d1d;
    --nf-footer-text: #b5b5b5;
    --nf-sidebar-width: 23rem;
}

:root[data-nf-font-pairing='classic'] {
    --nf-font-heading: var(--nf-serif);
    --nf-font-body: var(--nf-serif);
}

:root[data-nf-font-pairing='modern'] {
    --nf-font-heading: var(--nf-sans);
    --nf-font-body: var(--nf-sans);
}

:root[data-nf-font-pairing='humanist'] {
    --nf-font-heading: var(--nf-humanist);
    --nf-font-body: var(--nf-humanist);
}

:root[data-nf-header-style='dark'] {
    --nf-header-bg: #151515;
    --nf-header-text: #ffffff;
}

:root[data-nf-header-style='accent'] {
    --nf-header-bg: var(--nf-accent);
    --nf-header-text: var(--nf-accent-contrast);
}

:root[data-nf-scheme='dark'] {
    --nf-heading-tab: #2c2d31;
    --nf-title: var(--nf-text);
    --nf-date: #9a9a96;
    --nf-band: #17181b;
    --nf-footer-bg: #0b0c0e;
}

:root[data-nf-scheme='dark'][data-nf-header-style='dark'] {
    --nf-header-bg: #1b1c1f;
}

/* Layout */

.nf-container {
    width: 100%;
    max-width: var(--nf-max-width);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 1.75rem);
}

.nf-main {
    display: block;
    min-height: 50vh;
    padding-block-end: 3rem;
}

.nf-with-sidebar,
.nf-row {
    display: grid;
    gap: clamp(1.75rem, 3vw, 3rem);
    align-items: start;
}

@media (min-width: 1024px) {
    .nf-with-sidebar,
    .nf-row {
        grid-template-columns: minmax(0, 1fr) var(--nf-sidebar-width);
    }

    .nf-row--no-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .nf-with-sidebar[data-nf-sidebar='start'] {
        grid-template-columns: var(--nf-sidebar-width) minmax(0, 1fr);
    }

    .nf-with-sidebar[data-nf-sidebar='start'] .nf-sidebar {
        grid-row: 1;
        grid-column: 1;
    }

    .nf-with-sidebar[data-nf-sidebar='start'] .nf-primary {
        grid-column: 2;
    }

    .nf-with-sidebar[data-nf-sidebar='none'] {
        grid-template-columns: minmax(0, 1fr);
    }

    .nf-sidebar {
        position: sticky;
        inset-block-start: 6rem;
    }
}

.nf-with-sidebar[data-nf-sidebar='none'] .nf-primary {
    max-width: 50rem;
    margin-inline: auto;
    width: 100%;
}

.nf-sidebar,
.nf-row__main,
.nf-row__side {
    display: grid;
    align-content: start;
    gap: clamp(2rem, 4vw, 2.75rem);
    min-width: 0;
}

.nf-sidebar .nf-block,
.nf-row .nf-block {
    margin: 0;
}

/* Top bar */

.nf-topbar {
    border-block-end: 1px solid var(--nf-border);
    color: var(--nf-muted);
    font-size: 0.875rem;
}

.nf-topbar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    align-items: center;
    min-height: 2.75rem;
}

.nf-topbar__date {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    margin: 0;
}

.nf-topbar__date .nf-icon {
    width: 15px;
    height: 15px;
    opacity: 0.8;
}

.nf-topbar__date + .nf-topbar__menu {
    padding-inline-start: 1rem;
    border-inline-start: 1px solid var(--nf-border);
}

.nf-topbar__menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nf-topbar__menu a {
    text-decoration: none;
}

.nf-topbar__menu a:hover {
    color: var(--nf-accent);
}

.nf-topbar__end {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-inline-start: auto;
}

.nf-topbar .nf-social {
    gap: 0.35rem;
}

.nf-topbar .nf-social a {
    width: 1.9rem;
    height: 1.9rem;
    border: 0;
    background: none;
    color: var(--nf-muted);
}

.nf-topbar .nf-social a:hover {
    color: var(--nf-accent);
}

.nf-topbar .nf-social .nf-icon {
    width: 16px;
    height: 16px;
}

/* Header: logo, menu and tools on one line */

.nf-navbar {
    position: relative;
    z-index: 50;
    background: var(--nf-header-bg);
    color: var(--nf-header-text);
}

:root[data-nf-sticky-header='on'] .nf-navbar {
    position: sticky;
    inset-block-start: 0;
}

.nf-navbar__inner {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 2rem);
    min-height: 5.5rem;
    border-block-end: 1px solid
        color-mix(in srgb, var(--nf-header-text) 10%, transparent);
}

.nf-brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.nf-brand__name {
    font-family: var(--nf-font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.nf-brand__logo {
    display: block;
    width: auto;
    max-width: 15rem;
    max-height: 3.75rem;
}

.nf-brand__logo--dark,
:root[data-nf-scheme='dark'] .nf-brand__logo--light {
    display: none;
}

:root[data-nf-scheme='dark'] .nf-brand__logo--dark {
    display: block;
}

.nf-nav {
    flex: 1;
    min-width: 0;
}

.nf-nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 1200px) {
    .nf-nav__list {
        flex-wrap: nowrap;
    }

    .nf-nav__item > a {
        white-space: nowrap;
    }
}

.nf-nav__item {
    position: relative;
}

.nf-nav__item > a {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    padding: 1.1rem clamp(0.45rem, 1vw, 1rem);
    color: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-transform: uppercase;
}

.nf-nav__item > a .nf-icon {
    width: 14px;
    height: 14px;
}

.nf-nav__item > a:hover,
.nf-nav__item > a[aria-current='page'],
.nf-nav__item:focus-within > a {
    color: var(--nf-accent);
}

:root[data-nf-header-style='accent'] .nf-nav__item > a:hover,
:root[data-nf-header-style='accent'] .nf-nav__item > a[aria-current='page'] {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.nf-nav__submenu {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 100%;
    display: none;
    min-width: 14rem;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background: var(--nf-bg);
    color: var(--nf-text);
    border-block-start: 3px solid var(--nf-accent);
    box-shadow: 0 12px 30px rgb(0 0 0 / 0.14);
}

.nf-nav__item.has-children:hover .nf-nav__submenu,
.nf-nav__item.has-children:focus-within .nf-nav__submenu {
    display: block;
}

.nf-nav__submenu a {
    display: block;
    padding: 0.55rem 1.1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.nf-nav__submenu a:hover {
    background: var(--nf-surface);
    color: var(--nf-accent);
}

.nf-navbar__tools {
    display: flex;
    flex: none;
    gap: 0.25rem;
    margin-inline-start: auto;
}

.nf-navbar__toggle {
    display: none;
}

.nf-scheme-icon--light,
:root[data-nf-scheme='dark'] .nf-scheme-icon--dark {
    display: none;
}

:root[data-nf-scheme='dark'] .nf-scheme-icon--light {
    display: inline-flex;
}

@media (max-width: 1199px) {
    .nf-navbar__inner {
        min-height: 4.25rem;
    }

    .nf-navbar__toggle {
        display: inline-flex;
        order: -1;
    }

    .nf-brand__logo {
        max-height: 2.75rem;
    }

    .nf-nav {
        position: absolute;
        inset-inline: 0;
        inset-block-start: 100%;
        display: none;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        background: var(--nf-bg);
        color: var(--nf-text);
        border-block: 1px solid var(--nf-border);
        box-shadow: 0 12px 30px rgb(0 0 0 / 0.15);
    }

    .nf-nav.is-open {
        display: block;
    }

    .nf-nav__list {
        flex-direction: column;
        padding: 0.5rem 1rem 1rem;
    }

    .nf-nav__item > a {
        justify-content: space-between;
        padding: 0.8rem 0.25rem;
        border-block-end: 1px solid var(--nf-border);
    }

    .nf-nav__submenu {
        position: static;
        display: block;
        padding: 0 0 0 1rem;
        border: 0;
        box-shadow: none;
        background: transparent;
    }
}

/* Search panel */

.nf-search-panel {
    display: none;
    padding-block: 1rem;
    background: var(--nf-surface);
    color: var(--nf-text);
}

.nf-search-panel.is-open {
    display: block;
}

.nf-search-form {
    display: flex;
    gap: 0.5rem;
}

.nf-search-form input {
    flex: 1;
    min-width: 0;
}

.nf-search-form--page {
    max-width: 36rem;
    margin-block-start: 1rem;
}

/* Ticker: one headline at a time */

.nf-ticker {
    color: var(--nf-text);
}

.nf-ticker__inner {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-height: 4.5rem;
}

.nf-ticker__label {
    position: relative;
    flex: none;
    padding: 0.45rem 0.7rem;
    background: var(--nf-accent);
    color: var(--nf-accent-contrast);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* The little tail under the label. */
.nf-ticker__label::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 100%;
    border-inline-end: 8px solid transparent;
    border-block-start: 8px solid var(--nf-accent);
}

.nf-ticker__list {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nf-ticker__item a {
    display: block;
    overflow: hidden;
    font-size: 1.0625rem;
    font-weight: 500;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    animation: nf-ticker-in 0.35s ease;
}

.nf-ticker__item a:hover {
    color: var(--nf-accent);
}

@keyframes nf-ticker-in {
    from {
        opacity: 0;
        transform: translateY(0.4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nf-ticker__item a {
        animation: none;
    }
}

.nf-ticker__controls {
    display: flex;
    flex: none;
    gap: 0.25rem;
}

.nf-ticker__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    background: var(--nf-accent);
    color: var(--nf-accent-contrast);
    cursor: pointer;
}

.nf-ticker__button .nf-icon {
    width: 14px;
    height: 14px;
}

.nf-ticker__button:hover {
    filter: brightness(0.9);
}

[dir='rtl'] .nf-ticker__button .nf-icon {
    transform: scaleX(-1);
}

/* Home page and blocks */

.nf-home {
    display: grid;
    gap: clamp(2.25rem, 5vw, 4rem);
    padding-block-start: 0.25rem;
}

.nf-page-home .nf-main {
    padding-block-end: 0;
}

.nf-block {
    position: relative;
    margin: 0;
}

/* Headings: a tab in the section's colour with a tail, over a line. */

.nf-block__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-block-end: clamp(1.5rem, 3vw, 2.5rem);
    border-block-end: 2px solid var(--nf-section-color, var(--nf-heading-tab));
}

.nf-block__title {
    position: relative;
    margin: 0;
    padding: 0.55rem 1.2rem;
    background: var(--nf-section-color, var(--nf-heading-tab));
    color: #ffffff;
    font-family: var(--nf-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.25;
    text-transform: uppercase;
}

.nf-block__title::after {
    content: '';
    position: absolute;
    inset-inline-start: 1.1rem;
    inset-block-start: 100%;
    border-inline: 8px solid transparent;
    border-block-start: 8px solid var(--nf-section-color, var(--nf-heading-tab));
}

.nf-block__title a {
    color: inherit;
    text-decoration: none;
}

.nf-block__more {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    padding-block-end: 0.4rem;
    color: var(--nf-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.nf-block__more:hover {
    color: var(--nf-section-color, var(--nf-accent));
}

.nf-block__more .nf-icon {
    width: 14px;
    height: 14px;
}

[dir='rtl'] .nf-block__more .nf-icon {
    transform: scaleX(-1);
}

/* Section columns hold their own headings; their "More" link is the tab. */
.nf-section-columns .nf-block__more {
    display: none;
}

.nf-block--text p {
    margin-block: 0 0.75rem;
}

.nf-block__link {
    font-weight: 600;
}

.nf-block--banner img {
    display: block;
    width: 100%;
}

.nf-block--ad {
    display: flex;
    justify-content: center;
}

/* Strips across the whole page: videos on grey, or on black. */

.nf-band {
    margin-inline: calc(50% - 50vw);
    padding-block: clamp(2.5rem, 6vw, 5rem);
}

.nf-band__inner {
    width: 100%;
    max-width: var(--nf-max-width);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 1.75rem);
}

.nf-band--light {
    background: var(--nf-band);
}

.nf-band--light .nf-block__header,
.nf-band--dark .nf-block__header {
    border: 0;
    margin-block-end: 1.75rem;
}

.nf-band--light .nf-block__title,
.nf-band--dark .nf-block__title {
    padding: 0;
    background: none;
    color: var(--nf-title);
    font-size: 1.4rem;
}

.nf-band--light .nf-block__title::after,
.nf-band--dark .nf-block__title::after {
    display: none;
}

.nf-band--dark {
    background: #111111;
    color: #f2f2f2;
    --nf-text: #f2f2f2;
    --nf-title: #ffffff;
    --nf-muted: #b8b8b4;
    --nf-date: #a8a8a4;
    --nf-border: #333333;
}

/* Live now */

.nf-live-now {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 1rem 1.2rem;
    list-style: none;
    border-inline-start: 4px solid var(--nf-live);
    background: var(--nf-surface);
}

.nf-live-now a {
    font-family: var(--nf-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

.nf-live-now a:hover {
    color: var(--nf-accent);
}

.nf-live-now time {
    display: block;
    color: var(--nf-date);
    font-size: 0.8125rem;
}

/* Cards */

.nf-cards {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.nf-cards--grid {
    grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
}

.nf-cards--compact {
    gap: 0;
}

.nf-cards--compact > .nf-card {
    padding-block: 0.85rem;
    border-block-end: 1px solid var(--nf-border);
}

.nf-cards--compact > .nf-card:first-child {
    padding-block-start: 0;
}

.nf-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0.9rem;
    min-width: 0;
}

:root[data-nf-card-style='bordered'] .nf-cards--grid .nf-card {
    padding: 0.75rem;
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius);
}

:root[data-nf-card-style='raised'] .nf-cards--grid .nf-card {
    padding: 0.75rem;
    border-radius: var(--nf-radius);
    background: var(--nf-bg);
    box-shadow:
        0 1px 2px rgb(0 0 0 / 0.06),
        0 6px 20px rgb(0 0 0 / 0.06);
}

.nf-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--nf-radius);
    background: var(--nf-surface);
}

.nf-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.nf-card:hover .nf-card__image {
    transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .nf-card__image {
        transition: none;
    }
}

.nf-card__body {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.nf-card__title {
    margin: 0;
    color: var(--nf-title);
    font-family: var(--nf-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.nf-card__title a {
    text-decoration: none;
}

/* The whole card is clickable through its headline link. */
.nf-card__title a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.nf-card__section,
.nf-card__tag,
.nf-card__media {
    position: relative;
    z-index: 1;
}

.nf-card__title a:hover,
.nf-card:focus-within .nf-card__title a {
    color: var(--nf-accent);
}

.nf-card__excerpt {
    margin: 0;
    color: var(--nf-muted);
    font-size: 0.9688rem;
    line-height: 1.85;
}

.nf-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0;
    align-items: center;
    margin: 0;
    color: var(--nf-date);
    font-size: 0.875rem;
}

.nf-card__author {
    color: var(--nf-title);
    font-weight: 700;
}

/* "Author | date" */
.nf-card__author + time::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 0.8em;
    margin-inline: 0.75rem;
    background: var(--nf-border);
    vertical-align: -0.05em;
}

/* The section as a small label, for grid cards. */
.nf-card__section {
    justify-self: start;
    color: var(--nf-section-color, var(--nf-accent));
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.nf-card__section:hover {
    text-decoration: underline;
}

.nf-card--lead .nf-card__section,
.nf-card--hero .nf-card__section {
    display: none;
}

/* The section as a badge with a tail, on pictures. */
.nf-card__tag {
    justify-self: start;
    display: inline-block;
    padding: 0.3rem 0.5rem;
    background: var(--nf-section-color, var(--nf-accent));
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.15;
    text-decoration: none;
    text-transform: uppercase;
}

.nf-card__tag::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 100%;
    border-inline-end: 6px solid transparent;
    border-block-start: 6px solid var(--nf-section-color, var(--nf-accent));
}

.nf-card__media .nf-card__tag {
    position: absolute;
    inset-inline-start: 1.5rem;
    inset-block-start: 1.5rem;
    background: #151515;
}

.nf-card__media .nf-card__tag::after {
    border-block-start-color: #151515;
}

/* Kind of article: video, gallery, audio. */
.nf-card__badge {
    position: absolute;
    inset-inline-start: 1.4rem;
    inset-block-start: 1.4rem;
    z-index: 1;
    padding: 0.3rem 0.5rem;
    background: #151515;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.nf-card__badge::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 100%;
    border-inline-end: 6px solid transparent;
    border-block-start: 6px solid #151515;
}

.nf-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.nf-card__play .nf-icon {
    box-sizing: content-box;
    width: clamp(1.75rem, 4vw, 2.5rem);
    height: clamp(1.75rem, 4vw, 2.5rem);
    padding: clamp(0.9rem, 2vw, 1.4rem);
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: rgb(0 0 0 / 0.25);
    color: #ffffff;
    transition: transform 0.2s ease;
}

.nf-card:hover .nf-card__play .nf-icon {
    transform: scale(1.08);
}

[dir='rtl'] .nf-card__play .nf-icon {
    transform: scaleX(-1);
}

/* List: a small picture beside the headline and date. */
.nf-cards--list {
    gap: clamp(1.25rem, 2.2vw, 1.9rem);
}

.nf-card--list {
    grid-template-columns: clamp(6.5rem, 27%, 7.9rem) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 2vw, 1.6rem);
}

.nf-card--list.nf-card--no-image {
    grid-template-columns: minmax(0, 1fr);
}

.nf-card--list .nf-card__image {
    aspect-ratio: 4 / 3;
}

.nf-card--list .nf-card__title {
    font-size: 1rem;
    line-height: 1.5;
}

.nf-card--list .nf-card__meta {
    margin-block-start: 0.25rem;
}

.nf-card--compact .nf-card__title {
    font-size: 1rem;
}

/* Lead: a big picture with the headline, byline and summary under it. */
.nf-card--lead .nf-card__image {
    aspect-ratio: 5 / 4;
}

.nf-card--lead .nf-card__title {
    font-size: clamp(1.35rem, 2.4vw, 1.55rem);
    line-height: 1.3;
}

.nf-lead-grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 760px) {
    .nf-lead-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.nf-lead-grid__side {
    display: grid;
    align-content: start;
    gap: clamp(1.25rem, 2.2vw, 1.9rem);
}

/* Rows: picture on one side, headline, byline and summary on the other. */
.nf-cards--rows {
    gap: clamp(1.75rem, 3vw, 2.25rem);
}

.nf-card--row {
    gap: clamp(1rem, 3vw, 2.25rem);
}

@media (min-width: 640px) {
    .nf-card--row {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
        align-items: start;
    }

    .nf-card--row.nf-card--no-image {
        grid-template-columns: minmax(0, 1fr);
    }
}

.nf-card--row .nf-card__title {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    line-height: 1.35;
}

.nf-card--row .nf-card__meta {
    margin-block: 0.3rem 0.35rem;
}

/* Overlay: the headline on the picture. */
.nf-card--overlay {
    display: block;
    overflow: hidden;
    border-radius: var(--nf-radius);
    background: #222222;
    isolation: isolate;
}

.nf-card--overlay .nf-card__media {
    border-radius: 0;
}

.nf-card--overlay .nf-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgb(0 0 0 / 0.8) 0%,
        rgb(0 0 0 / 0.25) 55%,
        rgb(0 0 0 / 0.05) 100%
    );
}

.nf-card--overlay .nf-card__image {
    aspect-ratio: 3 / 2;
}

.nf-card--overlay .nf-card__body {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 2;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    color: #ffffff;
    pointer-events: none;
}

.nf-card--overlay .nf-card__body a {
    pointer-events: auto;
}

.nf-card--overlay .nf-card__title {
    color: #ffffff;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.35;
    text-shadow: 0 1px 12px rgb(0 0 0 / 0.35);
}

.nf-card--overlay .nf-card__title a:hover,
.nf-card--overlay:focus-within .nf-card__title a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.nf-card--overlay .nf-card__meta {
    color: rgb(255 255 255 / 0.9);
    font-size: 0.9375rem;
}

.nf-card--overlay .nf-card__tag {
    margin-block-end: 0.4rem;
}

.nf-card--overlay.nf-card--no-image {
    min-height: 14rem;
    background: linear-gradient(135deg, #2a2a2a, #111111);
}

.nf-card--overlay-large .nf-card__title {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.25;
}

.nf-cards--overlay {
    grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
}

/* Top stories: two big pictures above three smaller ones. */
.nf-mosaic {
    display: grid;
    gap: 5px;
}

.nf-mosaic .nf-card--overlay-large .nf-card__image {
    aspect-ratio: 2 / 1;
}

.nf-mosaic .nf-card--overlay-small .nf-card__image {
    aspect-ratio: 16 / 10;
}

/* In the mosaic the words sit at the top, over a darker top edge. */
.nf-mosaic .nf-card--overlay .nf-card__media::after {
    background: linear-gradient(
        to bottom,
        rgb(0 0 0 / 0.65) 0%,
        rgb(0 0 0 / 0.2) 60%,
        rgb(0 0 0 / 0.05) 100%
    );
}

.nf-mosaic .nf-card--overlay .nf-card__body {
    inset-block: 0 auto;
    padding: clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 2.5vw, 1.75rem) 0;
}

@media (min-width: 640px) {
    .nf-mosaic {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .nf-mosaic > .nf-card {
        grid-column: span 3;
    }

    .nf-mosaic > .nf-card--overlay-small {
        grid-column: span 2;
    }

    /* Fewer stories than five still fill the rows. */
    .nf-mosaic > .nf-card:only-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 640px) and (max-width: 899px) {
    .nf-mosaic > .nf-card--overlay-small {
        grid-column: span 3;
    }

    .nf-mosaic > .nf-card--overlay-small:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* Sections side by side. */
.nf-section-columns {
    display: grid;
    gap: clamp(2rem, 3.5vw, 3rem);
}

@media (min-width: 900px) {
    .nf-section-columns--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nf-section-columns--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.nf-section-columns__column {
    display: grid;
    align-content: start;
    gap: 2rem;
    min-width: 0;
}

.nf-section-columns__column .nf-block__header {
    margin-block-end: 0;
}

.nf-section-columns .nf-card--overlay .nf-card__image {
    aspect-ratio: 5 / 4;
}

/* Videos: four in a row, a play button on each. */
.nf-cards--videos {
    grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
}

.nf-card--video .nf-card__image {
    aspect-ratio: 16 / 10;
}

.nf-card--video .nf-card__title {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    line-height: 1.35;
}

/* Most read: numbers, or small pictures with a number. */
.nf-numbered {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nf-numbered > li {
    padding-block: 0.85rem;
    border-block-end: 1px solid var(--nf-border);
}

.nf-numbered > li:first-child {
    padding-block-start: 0;
}

.nf-card--numbered {
    grid-template-columns: 2.25rem minmax(0, 1fr);
}

.nf-card--numbered .nf-card__body {
    display: contents;
}

.nf-card__number {
    color: var(--nf-accent);
    font-family: var(--nf-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.nf-card--numbered .nf-card__title {
    font-size: 1rem;
}

.nf-thumbs {
    display: grid;
    gap: clamp(1.25rem, 2.2vw, 1.9rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nf-card--thumb {
    grid-template-columns: clamp(6.5rem, 33%, 7.9rem) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 2vw, 1.6rem);
}

.nf-card--thumb .nf-card__image {
    aspect-ratio: 4 / 3.2;
}

.nf-card--thumb .nf-card__title {
    font-size: 1rem;
    line-height: 1.5;
}

.nf-card__rank {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0.8rem;
    z-index: 1;
    min-width: 1.6rem;
    padding: 0.2rem 0.35rem;
    background: var(--nf-accent);
    color: var(--nf-accent-contrast);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

/* Swipe through stories: one at a time, arrows beside the heading. */
.nf-slider__track {
    display: grid;
    grid-auto-columns: 100%;
    grid-auto-flow: column;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.nf-slider__track::-webkit-scrollbar {
    display: none;
}

.nf-slider__slide {
    scroll-snap-align: start;
}

.nf-slider .nf-card--overlay .nf-card__image {
    aspect-ratio: 6 / 5;
}

/* In the slider the words sit in the middle. */
.nf-slider .nf-card--overlay .nf-card__body {
    inset-block: 0;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.nf-slider .nf-card--overlay .nf-card__tag {
    justify-self: center;
    background: #151515;
}

.nf-slider .nf-card--overlay .nf-card__tag::after {
    border-block-start-color: #151515;
}

.nf-slider .nf-card__meta {
    justify-content: center;
}

.nf-slider__controls {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: 0.5rem;
    display: flex;
    gap: 0.3rem;
}

.nf-slider__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: 1px solid var(--nf-border);
    background: var(--nf-bg);
    color: var(--nf-muted);
    cursor: pointer;
}

.nf-slider__button:hover {
    border-color: var(--nf-accent);
    background: var(--nf-accent);
    color: var(--nf-accent-contrast);
}

[dir='rtl'] .nf-slider__button svg {
    transform: scaleX(-1);
}

/* A grid of small square pictures. */
.nf-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.nf-card--gallery {
    display: block;
    overflow: hidden;
    border-radius: var(--nf-radius);
}

.nf-card--gallery .nf-card__image {
    aspect-ratio: 1;
    transition:
        transform 0.35s ease,
        opacity 0.2s ease;
}

.nf-card--gallery:hover .nf-card__image {
    opacity: 0.85;
    transform: scale(1.06);
}

/* Big story across the page (Magazine and the featured "hero" layout). */
.nf-card--hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--nf-radius);
}

.nf-card--hero .nf-card__image {
    aspect-ratio: 21 / 9;
    min-height: 20rem;
}

.nf-card--hero .nf-card__body {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 1;
    padding: clamp(1rem, 4vw, 2.5rem);
    background: linear-gradient(to top, rgb(0 0 0 / 0.85), rgb(0 0 0 / 0));
    color: #ffffff;
    pointer-events: none;
}

.nf-card--hero .nf-card__body a {
    pointer-events: auto;
}

.nf-card--hero .nf-card__title {
    max-width: 48rem;
    color: #ffffff;
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    line-height: 1.1;
}

.nf-card--hero .nf-card__excerpt,
.nf-card--hero .nf-card__meta,
.nf-card--hero .nf-card__author {
    color: rgb(255 255 255 / 0.85);
}

/* Social profiles: coloured tiles with follower counts. */

.nf-social-counter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nf-social-counter a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.15rem;
    min-height: 7.25rem;
    padding: 0.75rem 0.25rem;
    background: var(--nf-network, #333333);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.nf-social-counter a:hover {
    filter: brightness(1.12);
}

.nf-social-counter .nf-icon {
    width: 1.9rem;
    height: 1.9rem;
    margin-block-end: 0.3rem;
}

.nf-social-counter strong {
    font-size: 1.2rem;
    line-height: 1.2;
}

.nf-social-counter span {
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nf-social-counter__item--facebook {
    --nf-network: #3b5998;
}

.nf-social-counter__item--x {
    --nf-network: #1da1f2;
}

.nf-social-counter__item--instagram {
    --nf-network: #5b4bd5;
}

.nf-social-counter__item--youtube {
    --nf-network: #ff0000;
}

.nf-social-counter__item--linkedin {
    --nf-network: #0a66c2;
}

.nf-social-counter__item--tiktok {
    --nf-network: #111111;
}

/* TikTok's black would vanish on a dark page. */
:root[data-nf-scheme='dark'] .nf-social-counter__item--tiktok {
    --nf-network: #2b2b30;
}

/* The newsletter box in a sidebar. */

.nf-row__side .nf-block--newsletter,
.nf-sidebar .nf-block--newsletter {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    background: var(--nf-surface);
}

/* A drawn envelope in the corner. */
.nf-row__side .nf-block--newsletter::after,
.nf-sidebar .nf-block--newsletter::after {
    content: '';
    position: absolute;
    inset-inline-end: 0.35rem;
    inset-block-end: 0.35rem;
    width: 5.5rem;
    height: 4.5rem;
    background: currentColor;
    opacity: 0.85;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 72' fill='none' stroke='%23000' stroke-width='5' stroke-linejoin='round'%3E%3Cpath d='M44 4 6 32v36h76V32z'/%3E%3Cpath d='M6 32l38 24 38-24M6 68l28-20M82 68 54 48'/%3E%3Cpath d='M26 20V10h36v10'/%3E%3Cpath d='M34 18h20M34 26h20'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 72' fill='none' stroke='%23000' stroke-width='5' stroke-linejoin='round'%3E%3Cpath d='M44 4 6 32v36h76V32z'/%3E%3Cpath d='M6 32l38 24 38-24M6 68l28-20M82 68 54 48'/%3E%3Cpath d='M26 20V10h36v10'/%3E%3Cpath d='M34 18h20M34 26h20'/%3E%3C/svg%3E")
        center / contain no-repeat;
    pointer-events: none;
}

.nf-row__side .nf-newsletter,
.nf-sidebar .nf-newsletter {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    padding: 0 0 0.5rem;
    border: 0;
    background: none;
}

.nf-row__side .nf-newsletter .nf-form__status:empty,
.nf-sidebar .nf-newsletter .nf-form__status:empty {
    display: none;
}

.nf-row__side .nf-newsletter__title,
.nf-sidebar .nf-newsletter__title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.nf-row__side .nf-newsletter__text,
.nf-sidebar .nf-newsletter__text {
    margin: 0;
    color: var(--nf-muted);
    line-height: 1.8;
}

.nf-row__side .nf-newsletter__row,
.nf-sidebar .nf-newsletter__row {
    display: grid;
    gap: 1.5rem;
}

.nf-row__side .nf-newsletter input,
.nf-sidebar .nf-newsletter input {
    width: 100%;
    border-radius: 0;
    background: var(--nf-bg);
}

.nf-row__side .nf-newsletter .nf-button,
.nf-sidebar .nf-newsletter .nf-button {
    justify-self: start;
    border-radius: 0;
    padding-inline: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Buttons follow the square look. */
.nf-button {
    border-radius: 0;
}

/* Page headers */

.nf-page-header {
    padding-block: clamp(1.25rem, 4vw, 2.25rem) 0;
    margin-block-end: clamp(1.75rem, 3vw, 2.5rem);
    border-block-end: 2px solid var(--nf-section-color, var(--nf-heading-tab));
}

.nf-page-header__kicker {
    margin: 0 0 0.35rem;
    color: var(--nf-section-color, var(--nf-accent));
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nf-page-header__title {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0.5rem 1.25rem;
    background: var(--nf-section-color, var(--nf-heading-tab));
    color: #ffffff;
    font-family: var(--nf-font-heading);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.nf-page-header__title::after {
    content: '';
    position: absolute;
    inset-inline-start: 1.1rem;
    inset-block-start: 100%;
    border-inline: 9px solid transparent;
    border-block-start: 9px solid var(--nf-section-color, var(--nf-heading-tab));
}

.nf-page-header__description {
    max-width: 48rem;
    margin: 1.5rem 0 1.25rem;
    color: var(--nf-muted);
    font-size: 1.0625rem;
}

.nf-page-header > :last-child:not(.nf-page-header__title) {
    margin-block-end: 1.25rem;
}

.nf-page-header .nf-profile + *,
.nf-page-header .nf-chips {
    margin-block-end: 1.25rem;
}

.nf-chips ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.nf-chips a {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--nf-border);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.nf-chips a:hover {
    border-color: var(--nf-accent);
    color: var(--nf-accent);
}

.nf-page-category .nf-primary > .nf-card--lead {
    padding-block-end: 1.75rem;
    margin-block-end: 1.75rem;
    border-block-end: 1px solid var(--nf-border);
}

.nf-page-category .nf-primary > .nf-card--lead .nf-card__image {
    aspect-ratio: 16 / 9;
}

.nf-page-category .nf-primary > .nf-card--lead .nf-card__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.nf-primary > .nf-cards--list {
    gap: 1.75rem;
}

.nf-breadcrumbs {
    padding-block-start: 1rem;
}

.nf-empty,
.nf-results-count {
    color: var(--nf-muted);
}

.nf-section-title {
    margin-block: 0 1rem;
    font-family: var(--nf-font-heading);
    font-size: 1.35rem;
}

.nf-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    margin-block-start: 1.5rem;
}

.nf-profile__avatar {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    object-fit: cover;
}

.nf-profile__role {
    margin: 0.35rem 0 0;
    font-weight: 600;
}

.nf-profile .nf-social {
    margin-block-start: 0.75rem;
}

/* Articles */

.nf-article {
    min-width: 0;
}

.nf-article__header {
    display: grid;
    gap: 1rem;
    padding-block: 1.25rem 1.75rem;
}

.nf-article__section {
    position: relative;
    justify-self: start;
    padding: 0.3rem 0.55rem;
    background: var(--nf-section-color, var(--nf-accent));
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
}

.nf-article__section::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 100%;
    border-inline-end: 6px solid transparent;
    border-block-start: 6px solid var(--nf-section-color, var(--nf-accent));
}

.nf-article__title {
    margin: 0;
    color: var(--nf-title);
    font-family: var(--nf-font-heading);
    font-size: clamp(1.9rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.nf-article__standfirst {
    margin: 0;
    color: var(--nf-muted);
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    line-height: 1.6;
}

.nf-article__media {
    margin: 0 0 2rem;
}

.nf-article__image {
    display: block;
    width: 100%;
    border-radius: var(--nf-radius);
}

.nf-article__content {
    max-width: 46rem;
}

.nf-article__footer {
    display: grid;
    gap: 1.5rem;
    max-width: 46rem;
    margin-block-start: 2rem;
    padding-block-start: 1.5rem;
    border-block-start: 1px solid var(--nf-border);
}

.nf-article__source {
    margin: 0;
    color: var(--nf-muted);
    font-size: 0.9375rem;
}

.nf-series-nav {
    padding: 1rem 1.25rem;
    border-inline-start: 4px solid var(--nf-accent);
    background: var(--nf-surface);
}

.nf-series-nav__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.nf-series-nav ol {
    margin: 0;
    padding-inline-start: 1.4rem;
}

.nf-series-nav [aria-current] {
    font-weight: 700;
}

.nf-author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--nf-surface);
}

.nf-author-box p {
    margin: 0;
}

.nf-author-box__avatar {
    flex: none;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
}

.nf-author-box__name {
    font-size: 1.1rem;
    font-weight: 800;
}

.nf-author-box__name a {
    text-decoration: none;
}

.nf-author-box__name a:hover {
    color: var(--nf-accent);
}

.nf-author-box__role {
    color: var(--nf-muted);
    font-size: 0.875rem;
}

.nf-author-box__bio {
    margin-block-start: 0.5rem !important;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.nf-related-articles {
    margin-block-start: 3rem;
}

.nf-series-list {
    display: grid;
    gap: 1.25rem;
    max-width: 52rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nf-series-list__part {
    display: block;
    margin-block-end: 0.35rem;
    color: var(--nf-accent);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nf-static-page .nf-content {
    max-width: 46rem;
}

.nf-contact-form {
    margin-block-start: 2rem;
}

.nf-error {
    max-width: 40rem;
    padding-block: clamp(3rem, 10vw, 6rem);
    text-align: center;
}

.nf-error .nf-search-form {
    margin-inline: auto;
}

.nf-error__code {
    margin: 0;
    color: var(--nf-accent);
    font-family: var(--nf-font-heading);
    font-size: clamp(4rem, 14vw, 7rem);
    font-weight: 800;
    line-height: 1;
}

/* Footer: four dark columns, the site in the middle, a coloured bar */

.nf-footer {
    margin-block-start: clamp(2.5rem, 6vw, 4.5rem);
    padding-block-start: clamp(2.5rem, 6vw, 5rem);
    background: var(--nf-footer-bg);
    color: var(--nf-footer-text);
    font-size: 0.9375rem;
    color-scheme: dark;
    --nf-text: #f2f2f2;
    --nf-title: #ffffff;
    --nf-muted: #a9a9a9;
    --nf-date: #9a9a9a;
    --nf-border: #3a3a3a;
    --nf-surface: #262626;
    --nf-bg: #1d1d1d;
}

.nf-footer__columns {
    display: grid;
    gap: 2.5rem clamp(2rem, 4vw, 3.5rem);
    padding-block-end: clamp(2rem, 5vw, 4rem);
    border-block-end: 1px solid #3a3a3a;
}

@media (min-width: 640px) {
    .nf-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .nf-footer__columns {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.nf-footer .nf-block__header {
    margin-block-end: 1.75rem;
    border: 0;
}

.nf-footer .nf-block__title {
    padding: 0;
    background: none;
    color: #ffffff;
    font-size: 1.15rem;
}

.nf-footer .nf-block__title::after,
.nf-footer .nf-block__more {
    display: none;
}

.nf-footer .nf-card--list,
.nf-footer .nf-card--thumb {
    grid-template-columns: 6.25rem minmax(0, 1fr);
    gap: 1.25rem;
}

.nf-footer .nf-card__title {
    color: #ffffff;
    font-size: 1rem;
}

.nf-footer .nf-card__title a:hover {
    color: var(--nf-accent);
}

.nf-footer .nf-card__rank {
    display: none;
}

.nf-footer .nf-link-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nf-footer .nf-link-list__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
    border: 0;
}

.nf-footer .nf-link-list a {
    padding: 0;
    color: var(--nf-footer-text);
    font-size: 1.0625rem;
    text-decoration: none;
}

.nf-footer .nf-link-list a:hover {
    color: #ffffff;
}

.nf-link-list__count {
    color: var(--nf-muted);
}

.nf-footer__about {
    display: grid;
    justify-items: center;
    gap: 1.25rem;
    max-width: 46rem;
    margin-inline: auto;
    padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}

.nf-brand--footer {
    color: #ffffff;
}

.nf-brand--footer .nf-brand__logo {
    max-height: 3.5rem;
}

.nf-footer__tagline {
    margin: 0;
    line-height: 1.85;
}

.nf-footer__contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin: -0.5rem 0 0;
}

.nf-footer__contact a {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    color: #d4d4d4;
    text-decoration: none;
}

.nf-footer__contact a:hover {
    color: #ffffff;
}

.nf-footer__contact .nf-icon {
    width: 15px;
    height: 15px;
}

.nf-footer__social .nf-social {
    gap: 0.75rem;
}

.nf-footer__social .nf-social a {
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 0;
    background: #2a2a2a;
    color: #ffffff;
}

.nf-footer__social .nf-social a:hover {
    background: var(--nf-accent);
}

.nf-footer__social .nf-icon {
    width: 16px;
    height: 16px;
}

.nf-footer__bar {
    background: var(--nf-accent);
    color: var(--nf-accent-contrast);
}

.nf-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
    min-height: 4.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.nf-footer__bottom p {
    margin: 0;
}

.nf-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nf-footer__legal a,
.nf-footer__feed a,
.nf-footer__bar .nf-link-button {
    color: inherit;
    text-decoration: none;
}

.nf-footer__legal a:hover,
.nf-footer__feed a:hover {
    text-decoration: underline;
}

.nf-footer__feed {
    margin-inline-start: auto !important;
}

.nf-footer__feed a {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.nf-footer__feed .nf-icon {
    width: 16px;
    height: 16px;
}

/* Cards on dark strips keep dark surfaces, whatever the card style. */
:root[data-nf-card-style] .nf-band--dark .nf-cards--grid .nf-card {
    background: rgb(255 255 255 / 0.06);
    border-color: rgb(255 255 255 / 0.12);
    box-shadow: none;
}
