/*
Theme Name: Noizez
Theme URI: https://noizez.com
Author: Noizez Editorial
Author URI: https://noizez.com
Description: A New Yorker-inspired editorial theme for Noizez, an AI-driven journalism platform. Features classic serif typography, drop caps, single-column long-form layouts, and an unmistakable editorial voice. Designed to host AI-generated reporting with the visual gravitas of a legacy magazine.
Version: 1.4.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noizez
Tags: editorial, magazine, news, blog, serif, long-form, accessibility-ready, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments
*/

/* =========================================================
   NOIZEZ — Editorial Theme
   Inspired by The New Yorker
   ========================================================= */

/* -----------  1. CSS Variables  ----------- */
:root {
    /* Colors */
    --nz-black:        #0a0a0a;
    --nz-ink:          #1a1a1a;
    --nz-paper:        #ffffff;
    --nz-cream:        #f7f4ee;
    --nz-rule:         #d8d4cb;
    --nz-muted:        #6b6862;
    --nz-red:          #e1261c;
    --nz-red-dark:     #b81d14;
    --nz-link:         #0a0a0a;
    --nz-link-hover:   #e1261c;

    /* Typography */
    --nz-serif-display: "Playfair Display", "Libre Caslon Text", "EB Garamond", Georgia, serif;
    --nz-serif-body:    "Source Serif Pro", "Source Serif 4", "EB Garamond", Georgia, "Times New Roman", serif;
    --nz-sans:          "Inter", "Helvetica Neue", Arial, sans-serif;
    --nz-mono:          "JetBrains Mono", "Courier New", monospace;

    /* Scale */
    --nz-fs-display: clamp(2.4rem, 5vw, 4.2rem);
    --nz-fs-h1:      clamp(2rem, 3.6vw, 3rem);
    --nz-fs-h2:      clamp(1.5rem, 2.4vw, 2rem);
    --nz-fs-h3:      1.3rem;
    --nz-fs-body:    1.0625rem;
    --nz-fs-small:   0.85rem;
    --nz-fs-micro:   0.72rem;

    /* Layout */
    --nz-max-w:        1280px;
    --nz-article-w:    880px;   /* widened ~30% from 680px for less cramped reading */
    --nz-wide-w:       1180px;  /* alignwide proportionally bumped to keep distinction */
    --nz-gutter:       2rem;
    --nz-section-gap:  4rem;
}

/* -----------  2. Reset & Base  ----------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--nz-serif-body);
    font-size: var(--nz-fs-body);
    line-height: 1.65;
    color: var(--nz-ink);
    background: var(--nz-paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
    color: var(--nz-link);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.25s ease, color 0.2s ease;
}
a:hover { color: var(--nz-link-hover); background-size: 100% 1px; }

p { margin: 0 0 1.2em; }

hr {
    border: 0;
    border-top: 1px solid var(--nz-rule);
    margin: 2.5rem 0;
}

/* -----------  3. Typography  ----------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--nz-serif-display);
    font-weight: 700;
    line-height: 1.18;
    color: var(--nz-black);
    letter-spacing: -0.01em;
    margin: 1.6em 0 0.6em;
}
h1 { font-size: var(--nz-fs-h1); }
h2 { font-size: var(--nz-fs-h2); }
h3 { font-size: var(--nz-fs-h3); }

.nz-eyebrow,
.nz-kicker {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    color: var(--nz-red);
    margin: 0 0 0.6em;
    display: inline-block;
}

.nz-dek,
.nz-deck {
    font-family: var(--nz-serif-body);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--nz-muted);
    margin: 0.5em 0 1.5em;
    max-width: 36ch;
}

blockquote {
    margin: 2rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    border-left: 3px solid var(--nz-black);
    font-family: var(--nz-serif-display);
    font-size: 1.4rem;
    line-height: 1.4;
    font-style: italic;
    color: var(--nz-black);
}
blockquote cite {
    display: block;
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    font-style: normal;
    color: var(--nz-muted);
    margin-top: 0.8em;
    letter-spacing: 0.04em;
}

/* -----------  4. Header / Masthead  ----------- */
.nz-site-header {
    border-bottom: 1px solid var(--nz-black);
    background: var(--nz-paper);
    /* Masthead stays at the top of the page, does not follow on scroll. */
    position: relative;
}

.nz-masthead-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem var(--nz-gutter);
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-bottom: 1px solid var(--nz-rule);
    color: var(--nz-muted);
}

.nz-masthead-date { font-variant-numeric: tabular-nums; }

.nz-masthead-tagline { font-style: italic; text-transform: none; letter-spacing: 0; font-family: var(--nz-serif-body); }

.nz-masthead-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.4rem var(--nz-gutter) 1rem;
}
/* Force WordPress's custom logo (an <img>) to honor the masthead's centering.
   Without this, the base rule `img { display:block }` makes it left-align. */
.nz-masthead-center .custom-logo-link {
    display: inline-block;
    margin: 0 auto;
}
.nz-masthead-center .custom-logo-link img,
.nz-masthead-center img.custom-logo {
    display: block;
    margin: 0 auto;
    max-height: 90px;
    width: auto;
}

.nz-logo {
    font-family: var(--nz-serif-display);
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--nz-black);
    display: inline-block;
    background: none;
}
.nz-logo:hover { background: none; color: var(--nz-red); }

.nz-logo-italic { font-style: italic; }

.nz-issue-line {
    /* Issue line removed from the design. Hidden defensively in case an
       older cached header.php still renders the markup. */
    display: none !important;
}

/* Navigation */
.nz-primary-nav {
    border-top: 1px solid var(--nz-rule);
}
.nz-primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0.6rem var(--nz-gutter);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.8rem;
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}
.nz-primary-nav a {
    color: var(--nz-ink);
    background: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.nz-primary-nav a:hover,
.nz-primary-nav .current-menu-item > a {
    color: var(--nz-red);
    border-bottom-color: var(--nz-red);
}

/* -----------  5. Layout containers  ----------- */
.nz-container {
    max-width: var(--nz-max-w);
    margin: 0 auto;
    padding: 0 var(--nz-gutter);
}

.nz-article-container {
    max-width: var(--nz-article-w);
    margin: 0 auto;
    padding: 0 var(--nz-gutter);
}

.nz-main { padding: 3rem 0 var(--nz-section-gap); }

/* -----------  6. Homepage / Archive cards  ----------- */
.nz-hero {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--nz-rule);
    margin-bottom: 3rem;
}
.nz-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}
.nz-hero-figure img { width: 100%; }
.nz-hero-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin: 0.4rem 0 0.6rem;
    line-height: 1.1;
}
.nz-hero-title a { background: none; }
.nz-hero-title a:hover { color: var(--nz-red); }

/* Text-only hero variant (homepage with no featured images) */
.nz-hero--text {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 3.5rem var(--nz-gutter) 3rem;
    border-bottom: 1px solid var(--nz-rule);
}
.nz-hero--text .nz-kicker {
    margin-bottom: 1.2rem;
}
.nz-hero--text .nz-hero-title {
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0.2rem 0 1rem;
}
.nz-hero--text .nz-dek {
    font-size: 1.25rem;
    line-height: 1.5;
    max-width: 40ch;
    margin: 0 auto 1.5rem;
}
.nz-hero--text .nz-byline {
    justify-content: center;
}

.nz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--nz-rule);
    margin-bottom: 3rem;
}
.nz-card-figure {
    margin-bottom: 0.9rem;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--nz-cream);
}
.nz-card-figure img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.nz-card:hover .nz-card-figure img { transform: scale(1.03); }

/* Text-only grid variant (homepage) — editorial column rules between cards */
.nz-grid--text {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    column-gap: 2.5rem;
}
.nz-card--text {
    padding: 1.8rem 0 1.6rem;
    border-top: 1px solid var(--nz-rule);
}
.nz-card--text .nz-kicker {
    margin-bottom: 0.6rem;
}
.nz-card--text .nz-card-title {
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 0.1rem 0 0.5rem;
}
.nz-card--text .nz-card-dek {
    margin-bottom: 0.8rem;
}

.nz-card-title {
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0.3rem 0 0.4rem;
}
.nz-card-title a { background: none; }
.nz-card-title a:hover { color: var(--nz-red); }

.nz-card-dek {
    font-style: italic;
    font-size: 0.98rem;
    color: var(--nz-muted);
    margin: 0.4em 0 0.6em;
}

.nz-byline {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nz-muted);
}
.nz-byline a { color: var(--nz-ink); }
.nz-byline-name { color: var(--nz-ink); font-weight: 600; }

/* Section dividers */
.nz-section-head {
    border-top: 4px double var(--nz-black);
    border-bottom: 1px solid var(--nz-black);
    padding: 0.6rem 0;
    margin: 0 0 2rem;
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* -----------  7. Single article  ----------- */
.nz-article-header {
    text-align: center;
    margin: 2rem auto 3rem;
    max-width: var(--nz-article-w);
    padding: 0 var(--nz-gutter);
}
.nz-article-category {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--nz-red);
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}
.nz-article-title {
    font-size: var(--nz-fs-display);
    line-height: 1.05;
    margin: 0.4rem 0 0.8rem;
    letter-spacing: -0.015em;
}
.nz-article-dek {
    font-family: var(--nz-serif-body);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--nz-muted);
    margin: 0 auto 1.5rem;
    max-width: 38ch;
}
.nz-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.6rem;
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--nz-muted);
}
.nz-article-meta .nz-author-name {
    color: var(--nz-ink);
    font-weight: 600;
}
.nz-byline-text {
    display: inline;
}

/* Small circular avatar inline with the byline (used on the homepage hero). */
.nz-byline-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    flex-shrink: 0;
}
.nz-byline-avatar:hover { background: none; }
.nz-byline-avatar .nz-portrait {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    margin: 0 !important;
}
.nz-byline-avatar .nz-portrait-image,
.nz-byline-avatar .nz-portrait-initials {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 14px;
}

/* Big circular avatar above the byline (used on single article pages). */
.nz-article-avatar {
    display: inline-block;
    margin: 1.8rem auto 1.2rem;
    background: none;
    width: 112px;
    height: 112px;
}
.nz-article-avatar:hover { background: none; }
.nz-article-avatar .nz-portrait {
    width: 112px !important;
    height: 112px !important;
    border-radius: 50% !important;
    margin: 0 !important;
}
.nz-article-avatar .nz-portrait-image,
.nz-article-avatar .nz-portrait-initials {
    width: 112px !important;
    height: 112px !important;
    border-radius: 50% !important;
    font-size: 32px;
}

/* Homepage hero reuses the single-article header layout. Title becomes a
   link to the post — inherit heading color instead of the global link gradient. */
.nz-hero--featured {
    padding: 1rem 0 2.5rem;
    border-bottom: 1px solid var(--nz-rule);
    margin-bottom: 3rem;
}
.nz-hero--featured .nz-article-header {
    margin-top: 1rem;
}
.nz-hero--featured .nz-article-title a {
    background: none;
    color: var(--nz-black);
}
.nz-hero--featured .nz-article-title a:hover {
    color: var(--nz-red);
}

.nz-article-hero {
    margin: 2rem auto 3rem;
    max-width: var(--nz-wide-w);
    padding: 0 var(--nz-gutter);
}
.nz-article-hero figcaption {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    color: var(--nz-muted);
    margin-top: 0.6rem;
    padding-left: 0.4rem;
    border-left: 2px solid var(--nz-rule);
    line-height: 1.4;
}

.nz-article-body {
    max-width: var(--nz-article-w);
    margin: 0 auto;
    padding: 0 var(--nz-gutter);
    font-size: 1.125rem;
    line-height: 1.78;
}

/* Drop cap */
.nz-article-body > p:first-of-type::first-letter {
    font-family: var(--nz-serif-display);
    font-weight: 900;
    font-size: 5.6rem;
    line-height: 0.85;
    float: left;
    margin: 0.25rem 0.6rem -0.4rem 0;
    color: var(--nz-black);
}

.nz-article-body h2 {
    font-size: 1.7rem;
    margin: 2.4em 0 0.6em;
}
.nz-article-body h3 {
    font-size: 1.3rem;
    font-family: var(--nz-serif-body);
    font-style: italic;
    font-weight: 700;
    margin: 1.8em 0 0.4em;
}

.nz-article-body figure {
    margin: 2rem 0;
}
.nz-article-body figcaption {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    color: var(--nz-muted);
    margin-top: 0.6rem;
    line-height: 1.4;
}

/* Pull quote */
.nz-pullquote {
    margin: 2.4rem -1rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--nz-black);
    border-bottom: 1px solid var(--nz-black);
    font-family: var(--nz-serif-display);
    font-size: 1.6rem;
    line-height: 1.3;
    font-style: italic;
    text-align: center;
    color: var(--nz-black);
}

/* Article footer */
.nz-article-footer {
    max-width: var(--nz-article-w);
    margin: 4rem auto 0;
    padding: 2rem var(--nz-gutter);
    border-top: 1px solid var(--nz-rule);
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
}

.nz-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nz-muted);
    line-height: 1;
}
.nz-tags a {
    display: inline-block;
    background: var(--nz-cream);
    padding: 0.55em 0.85em;
    color: var(--nz-ink);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;          /* keep multi-word tags like "Nigel Farage" together */
    background-image: none;        /* override the global underline-on-hover gradient */
    transition: background 0.15s ease, color 0.15s ease;
}
.nz-tags a:hover {
    background: var(--nz-black);
    color: var(--nz-paper);
}

/* End mark — small ■ at the end of the article body's last paragraph */
.nz-article-body > p:last-of-type::after {
    content: " \25A0";
    color: var(--nz-red);
    font-weight: 900;
    padding-left: 0.18em;
    font-size: 0.9em;
    line-height: 1;
    vertical-align: 0.05em;
}

/* Breadcrumb (above article header) */
.nz-breadcrumb {
    max-width: var(--nz-wide-w);
    margin: 1.8rem auto 0;
    padding: 0 var(--nz-gutter);
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--nz-muted);
}
.nz-breadcrumb ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
}
.nz-breadcrumb li {
    margin: 0;
    list-style: none !important;
}
.nz-breadcrumb li::before { content: none; }
.nz-breadcrumb li + li::before {
    content: "›";
    padding-right: 0.6rem;
    color: var(--nz-rule);
    font-size: 1em;
}
.nz-breadcrumb a {
    color: var(--nz-ink);
    background: none;
    font-weight: 600;
}
.nz-breadcrumb a:hover { color: var(--nz-red); }
.nz-breadcrumb {
    overflow: hidden;          /* never cause horizontal page scroll */
}
.nz-breadcrumb [aria-current="page"] {
    color: var(--nz-muted);
    font-weight: 400;
    max-width: 60ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom;
}
@media (max-width: 700px) {
    /* Drop the current-page item on phones — the article title is right
       below the breadcrumb anyway, and the long string was pushing the
       layout horizontally. */
    .nz-breadcrumb li:last-child { display: none; }
}

/* Floating share strip — fixed on the left, follows scroll */
.nz-share-strip {
    position: fixed;
    left: 1.5rem;
    top: 35vh;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.nz-share-strip ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.nz-share-strip li {
    margin: 0;
    list-style: none !important;
}
.nz-share-strip li::before { content: none; }
.nz-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--nz-paper);
    border: 1px solid var(--nz-rule);
    color: var(--nz-ink);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    text-decoration: none;
    background-image: none;
}
.nz-share-btn:hover {
    background: var(--nz-black);
    color: var(--nz-paper);
    border-color: var(--nz-black);
    transform: scale(1.06);
}
.nz-share-feedback {
    margin-top: 0.4rem;
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    color: var(--nz-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    min-height: 1em;
}

@media (max-width: 1200px) {
    .nz-share-strip {
        position: static;
        flex-direction: row;
        margin: 1.5rem auto 0;
        padding: 0 var(--nz-gutter);
        max-width: var(--nz-article-w);
        justify-content: flex-start;
        gap: 0.6rem;
    }
    .nz-share-strip ul { flex-direction: row; }
}

/* Reactions block */
.nz-reactions {
    max-width: var(--nz-article-w);
    margin: 3rem auto 0;
    padding: 1.8rem var(--nz-gutter);
    border-top: 1px solid var(--nz-rule);
    border-bottom: 1px solid var(--nz-rule);
    text-align: center;
}
.nz-reactions-title {
    font-family: var(--nz-serif-display);
    font-size: 1.3rem;
    margin: 0 0 1.2rem;
    font-weight: 700;
    color: var(--nz-black);
}
.nz-reactions-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}
.nz-reaction {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7em 1.1em;
    background: var(--nz-paper);
    border: 1px solid var(--nz-rule);
    color: var(--nz-ink);
    cursor: pointer;
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nz-reaction:hover {
    background: var(--nz-cream);
    border-color: var(--nz-black);
}
.nz-reaction.is-voted {
    background: var(--nz-black);
    color: var(--nz-paper);
    border-color: var(--nz-black);
    cursor: default;
}
.nz-reaction.is-voted:hover { background: var(--nz-black); }
.nz-reaction-count {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    padding: 0.1em 0.5em;
    background: var(--nz-cream);
    color: var(--nz-ink);
    border-radius: 999px;
    min-width: 1.6em;
    text-align: center;
    line-height: 1.4;
}
.nz-reaction.is-voted .nz-reaction-count {
    background: var(--nz-paper);
    color: var(--nz-black);
}
.nz-reactions-note {
    margin: 1rem 0 0;
    font-family: var(--nz-serif-body);
    font-style: italic;
    font-size: var(--nz-fs-small);
    color: var(--nz-muted);
}

/* Cite this piece */
.nz-cite {
    max-width: var(--nz-article-w);
    margin: 2.5rem auto 0;
    padding: 1.6rem var(--nz-gutter);
    background: var(--nz-cream);
    border-left: 4px solid var(--nz-black);
}
.nz-cite-label {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--nz-red);
    margin-bottom: 0.8rem;
}
.nz-cite-text {
    font-family: var(--nz-serif-body);
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--nz-ink);
    margin: 0 0 1rem;
    word-break: break-word;
}
.nz-cite-text a {
    color: var(--nz-ink);
    background: none;
    border-bottom: 1px dotted var(--nz-rule);
}
.nz-cite-text a:hover { color: var(--nz-red); border-bottom-color: var(--nz-red); }
.nz-cite-copy {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    background: var(--nz-black);
    color: var(--nz-paper);
    border: 0;
    padding: 0.6em 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}
.nz-cite-copy:hover { background: var(--nz-red); }
.nz-cite-feedback {
    margin-left: 0.8rem;
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--nz-red);
    font-weight: 700;
    min-height: 1em;
}

/* AI disclosure badge */
.nz-ai-disclosure {
    background: var(--nz-cream);
    border: 1px solid var(--nz-rule);
    padding: 1rem 1.2rem;
    margin: 2rem auto;
    max-width: var(--nz-article-w);
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    color: var(--nz-muted);
    line-height: 1.5;
}
.nz-ai-disclosure strong {
    color: var(--nz-black);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: var(--nz-fs-micro);
    display: block;
    margin-bottom: 0.4em;
}

/* -----------  8. Author portrait + archive  ----------- */
.nz-portrait {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    vertical-align: middle;
    user-select: none;
}
.nz-portrait-image {
    object-fit: cover;
}
.nz-portrait-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--nz-portrait-bg, var(--nz-cream));
    color: var(--nz-portrait-fg, var(--nz-ink));
    font-family: var(--nz-serif-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}
.nz-author-header {
    text-align: center;
    padding: 3rem var(--nz-gutter);
    border-bottom: 1px solid var(--nz-black);
    margin-bottom: 3rem;
}
.nz-author-header .nz-portrait {
    margin: 0 auto 1.2rem;
}
.nz-author-header img:not(.nz-portrait) {
    /* legacy fallback for any non-portrait image rendered by plugins */
    width: 140px; height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    display: inline-block;
}
.nz-author-header h1 {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    margin: 0.4rem 0;
}
.nz-author-header .nz-author-beat {
    font-family: var(--nz-sans);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: var(--nz-fs-small);
    color: var(--nz-red);
}
.nz-author-header .nz-author-bio-long {
    max-width: 56ch;
    margin: 1.2rem auto 0;
    font-style: italic;
    color: var(--nz-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* -----------  8b. Authors index page  ----------- */
.nz-authors-header {
    text-align: center;
    padding: 3rem var(--nz-gutter) 2.5rem;
    max-width: 720px;
    margin: 0 auto;
    border-bottom: 1px solid var(--nz-rule);
}
.nz-authors-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0.3rem 0 0.8rem;
}
.nz-authors-intro {
    font-family: var(--nz-serif-body);
    font-style: italic;
    color: var(--nz-muted);
    font-size: 1.1rem;
    line-height: 1.55;
    max-width: 52ch;
    margin: 0.8rem auto 0;
}
.nz-authors-intro p { margin: 0 0 0.8em; }

.nz-authors-list {
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.nz-author-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    padding: 2.4rem 0;
    border-bottom: 1px solid var(--nz-rule);
    align-items: start;
}
.nz-author-row:last-child { border-bottom: 0; }

/* Portrait — square, no circle mask. Keeps real uploaded images sharp,
   and gives the initials-fallback a clean editorial block. */
.nz-author-row-portrait {
    display: block;
    background: none;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}
.nz-author-row-portrait:hover { background: none; }
.nz-author-row-portrait .nz-portrait {
    margin: 0;
    width: 180px;
    height: 180px;
    border-radius: 0;          /* override the global circle */
    overflow: hidden;
}
.nz-author-row-portrait .nz-portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;              /* show photos in full colour on this page */
}
.nz-author-row-portrait .nz-portrait-initials {
    border-radius: 0;
}

.nz-author-row-beat {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--nz-red);
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.nz-author-row-name {
    font-family: var(--nz-serif-display);
    font-size: 1.8rem;
    line-height: 1.1;
    margin: 0 0 0.3rem;
}
.nz-author-row-name a { background: none; }
.nz-author-row-name a:hover { color: var(--nz-red); }
.nz-author-row-meta {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--nz-muted);
    margin: 0 0 0.7rem;
}
.nz-author-row-bio {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.4rem 0 0.9rem;
    color: var(--nz-ink);
    max-width: 56ch;
}
/* Recent stories list under bio */
.nz-author-row-recent {
    margin: 1.2rem 0 0.4rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--nz-rule);
}
.nz-author-row-recent-label {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--nz-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.nz-author-row-recent ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nz-author-row-recent li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    padding: 0.45rem 0;
    border-bottom: 1px dotted var(--nz-rule);
    font-family: var(--nz-serif-body);
}
.nz-author-row-recent li:last-child { border-bottom: 0; }
.nz-author-row-recent li a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--nz-ink);
    background: none;
    line-height: 1.3;
    flex: 1 1 auto;
}
.nz-author-row-recent li a:hover { color: var(--nz-red); }
.nz-author-row-recent-date {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nz-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.nz-author-row-footer { margin: 0.9rem 0 0; }
.nz-author-row-link {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    background: none;
    border-bottom: 1px solid var(--nz-black);
    padding-bottom: 2px;
}
.nz-author-row-link:hover {
    color: var(--nz-red);
    border-bottom-color: var(--nz-red);
}

@media (max-width: 700px) {
    .nz-author-row {
        grid-template-columns: 120px 1fr;
        gap: 1.2rem;
        padding: 1.6rem 0;
    }
    .nz-author-row-portrait,
    .nz-author-row-portrait .nz-portrait {
        width: 120px;
        height: 120px;
    }
    .nz-author-row-name { font-size: 1.4rem; }
    .nz-author-row-recent li {
        flex-direction: column;
        gap: 0.2rem;
    }
}

/* -----------  8c. Recent stories carousel (single article)  ----------- */
.nz-recent-carousel {
    margin: 4rem 0 0;
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--nz-rule);
    border-bottom: 1px solid var(--nz-rule);
}
.nz-recent-title {
    font-family: var(--nz-serif-display);
    font-size: 1.6rem;
    margin: 0 0 1.6rem;
    color: var(--nz-black);
    /* Slight tribute to the screenshot — kicker-style accent. */
    letter-spacing: -0.005em;
}
.nz-carousel {
    position: relative;
    padding: 0 56px; /* room for the arrow circles */
    width: 100%;
}
.nz-carousel-viewport {
    overflow: hidden !important;
    width: 100%;
    position: relative;
}
.nz-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    transition: transform 0.45s cubic-bezier(.4,.0,.2,1);
    will-change: transform;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nz-carousel-item {
    flex: 0 0 calc(100% / 3) !important;   /* exactly 3 per page on desktop */
    max-width: calc(100% / 3);
    box-sizing: border-box;
    padding: 0.4rem 1.5rem;
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    border-right: 1px solid var(--nz-rule);
    min-height: 96px;
}
.nz-carousel-item:last-child { border-right: 0; }
/* Items at the 3rd, 6th, 9th... position (end of each "page") have no
   right rule — keeps the dividers visually clean. */
.nz-carousel-item:nth-child(3n) { border-right: 0; }

.nz-carousel-avatar {
    flex: 0 0 64px !important;
    width: 64px;
    height: 64px;
    border-radius: 50% !important;
    overflow: hidden;
    background: none;
    display: block;
}
.nz-carousel-avatar:hover { background: none; }
.nz-carousel-avatar .nz-portrait {
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    border-radius: 50% !important;
}
.nz-carousel-avatar .nz-portrait-image,
.nz-carousel-avatar .nz-portrait-initials {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    font-size: 20px;
}

.nz-carousel-text { min-width: 0; }
.nz-carousel-author {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    color: var(--nz-muted);
    margin-bottom: 0.4em;
    line-height: 1.2;
}
.nz-carousel-headline {
    font-family: var(--nz-serif-display);
    font-size: 1.02rem;
    line-height: 1.22;
    font-weight: 700;
    margin: 0;
    /* Clamp to ~4 lines to keep card heights tidy */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nz-carousel-headline a {
    color: var(--nz-black);
    background: none;
}
.nz-carousel-headline a:hover { color: var(--nz-red); }

/* Arrow buttons */
.nz-carousel-arrow {
    position: absolute;
    top: calc(50% - 1.2rem);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--nz-paper);
    border: 1px solid var(--nz-rule);
    color: var(--nz-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    padding: 0;
}
.nz-carousel-arrow:hover {
    background: var(--nz-black);
    color: var(--nz-paper);
    border-color: var(--nz-black);
}
.nz-carousel-prev { left: 0; }
.nz-carousel-next { right: 0; }
.nz-carousel-arrow[disabled] {
    opacity: 0.35;
    cursor: default;
}
.nz-carousel-arrow[disabled]:hover {
    background: var(--nz-paper);
    color: var(--nz-black);
    border-color: var(--nz-rule);
}

/* Dots */
.nz-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin: 1.6rem 0 0.4rem;
    min-height: 10px;
}
.nz-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nz-rule);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.nz-carousel-dot:hover { background: var(--nz-muted); }
.nz-carousel-dot.is-active {
    background: var(--nz-black);
    transform: scale(1.2);
}

@media (max-width: 1000px) {
    .nz-carousel-item {
        flex: 0 0 50% !important;
        max-width: 50%;
    }
    .nz-carousel-item:nth-child(3n) { border-right: 1px solid var(--nz-rule); }
    .nz-carousel-item:nth-child(2n) { border-right: 0; }
}
@media (max-width: 700px) {
    .nz-carousel { padding: 0; }
    .nz-carousel-arrow { display: none; }
    .nz-carousel-viewport {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .nz-carousel-track {
        transition: none;
        transform: none !important;
    }
    .nz-carousel-item {
        flex: 0 0 85% !important;
        max-width: 85%;
        scroll-snap-align: start;
        border-right: 1px solid var(--nz-rule) !important;
    }
    .nz-carousel-item:last-child { border-right: 0 !important; }
    .nz-carousel-dots { display: none; }
}

/* -----------  8d. Homepage editorial blocks  ----------- */

/* ===== Opinion-style block (featured + 4-card row) ===== */
.nz-op-featured {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2.5rem;
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--nz-rule);
    margin-top: 1rem;
    align-items: start;
}

/* Opinion-style list (archive, author, search pages — repeated featured cards) */
.nz-op-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}
.nz-op-list .nz-op-list-item {
    margin-top: 0;
    padding: 1.8rem 0 2rem;
}
.nz-op-list .nz-op-list-item:last-child {
    border-bottom: 1px solid var(--nz-rule);
}
.nz-op-list .nz-op-featured-title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
/* Author archive — hide the per-row author avatar (whole page is about that author) */
.nz-op-list--no-avatar .nz-op-list-item {
    grid-template-columns: 1fr;
}
.nz-op-list--no-avatar .nz-op-featured-avatar { display: none; }
.nz-op-featured-text { min-width: 0; padding-top: 0.3rem; }
.nz-op-mark {
    display: inline-block;
    font-family: var(--nz-serif-display);
    font-weight: 900;
    color: var(--nz-red);
    font-size: 2.4rem;
    line-height: 0.7;
    letter-spacing: -0.05em;
    margin-right: 0.05em;
    vertical-align: -0.2em;
}
.nz-op-featured-title {
    font-family: var(--nz-serif-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    display: inline;
}
.nz-op-featured-title a {
    color: var(--nz-black);
    background: none;
}
.nz-op-featured-title a:hover { color: var(--nz-red); }
.nz-op-author {
    margin: 0.5rem 0 0.7rem;
    font-family: var(--nz-serif-display);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
}
.nz-op-author a {
    color: var(--nz-red);
    background: none;
}
.nz-op-author a:hover { color: var(--nz-black); }
.nz-op-featured-dek {
    margin: 0.5rem 0 0.8rem;
    font-family: var(--nz-serif-body);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--nz-muted);
    max-width: 64ch;
}
.nz-op-time {
    margin: 0.6rem 0 0;
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--nz-muted);
}
.nz-op-featured-avatar {
    display: block;
    width: 200px;
    height: 200px;
    background: none;
    justify-self: end;
    flex-shrink: 0;
}
.nz-op-featured-avatar:hover { background: none; }
.nz-op-featured-avatar .nz-portrait {
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    margin: 0 !important;
}
.nz-op-featured-avatar .nz-portrait-image,
.nz-op-featured-avatar .nz-portrait-initials {
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    font-size: 56px;
}

/* "More from Noizez" 4-card row */
.nz-op-grid-section {
    padding-top: 0.5rem;
    margin-bottom: 3rem;
}
.nz-op-section-head {
    font-family: var(--nz-sans);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--nz-ink);
    margin: 0 0 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nz-rule);
    text-transform: none;
    letter-spacing: 0;
}
.nz-op-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--nz-rule);
}
.nz-op-card {
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.1rem;
    border-left: 1px solid var(--nz-rule);
    min-height: 260px;
    position: relative;
}
.nz-op-card:first-child { border-left: 0; padding-left: 0; }
.nz-op-card .nz-op-mark {
    font-size: 1.8rem;
    margin-right: 0.05em;
    vertical-align: -0.18em;
}
.nz-op-card-title {
    font-family: var(--nz-serif-display);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.18;
    letter-spacing: -0.008em;
    margin: 0 0 0.7rem;
    display: inline;
}
.nz-op-card-title a {
    color: var(--nz-black);
    background: none;
}
.nz-op-card-title a:hover { color: var(--nz-red); }
.nz-op-card .nz-op-author {
    font-size: 1.1rem;
    margin: 0.6rem 0 0.6rem;
}
.nz-op-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding-top: 0.8rem;
}
.nz-op-card-avatar {
    display: block;
    width: 64px;
    height: 64px;
    background: none;
    flex-shrink: 0;
}
.nz-op-card-avatar:hover { background: none; }
.nz-op-card-avatar .nz-portrait {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    margin: 0 !important;
}
.nz-op-card-avatar .nz-portrait-image,
.nz-op-card-avatar .nz-portrait-initials {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    font-size: 20px;
}

@media (max-width: 1000px) {
    .nz-op-featured {
        grid-template-columns: 1fr 140px;
        gap: 1.5rem;
    }
    .nz-op-featured-avatar,
    .nz-op-featured-avatar .nz-portrait,
    .nz-op-featured-avatar .nz-portrait-image,
    .nz-op-featured-avatar .nz-portrait-initials {
        width: 140px !important;
        height: 140px !important;
    }
    .nz-op-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .nz-op-card { border-left: 0; padding-left: 1.2rem; }
    .nz-op-card:nth-child(2n+1) { border-left: 0; padding-left: 0; }
    .nz-op-card { border-top: 1px solid var(--nz-rule); padding-top: 1rem; }
}
@media (max-width: 600px) {
    .nz-op-featured {
        grid-template-columns: 1fr;
    }
    .nz-op-featured-avatar { justify-self: start; }
    .nz-op-grid { grid-template-columns: 1fr; }
    .nz-op-card { padding-left: 0; }
}


/* Front section: featured hero on the left + aside (3 posts) on the right */
.nz-front-section {
    display: grid;
    grid-template-columns: 2.2fr minmax(240px, 1fr);
    gap: 3rem;
    align-items: start;
    padding: 2rem 0 3rem;
    border-bottom: 1px solid var(--nz-rule);
    margin-bottom: 3rem;
}
/* Aside markup is rendered before the hero in the DOM (for accessibility / source order),
   but we put it in the second grid column visually. */
.nz-front-aside {
    grid-column: 2;
    grid-row: 1;                /* lock to first row so it doesn't push hero down */
    border-left: 1px solid var(--nz-rule);
    padding: 0.5rem 0 0 2rem;
}
.nz-hero--in-front {
    grid-column: 1;
    grid-row: 1;
}
.nz-front-aside-label {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--nz-red);
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--nz-black);
}
.nz-front-aside-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.nz-front-aside-list li {
    padding: 1.1rem 0;
    margin: 0;
    border-bottom: 1px solid var(--nz-rule);
    list-style: none !important;
}
.nz-front-aside-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.nz-front-aside-list li::before { content: none; }
.nz-front-aside-list .nz-kicker {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
}
.nz-front-aside-title {
    font-family: var(--nz-serif-display);
    font-size: 1.15rem;
    line-height: 1.22;
    font-weight: 700;
    margin: 0 0 0.45rem;
    letter-spacing: -0.005em;
}
.nz-front-aside-title a {
    color: var(--nz-black);
    background: none;
}
.nz-front-aside-title a:hover { color: var(--nz-red); }
.nz-front-aside-list .nz-byline {
    font-size: var(--nz-fs-micro);
    margin: 0;
    line-height: 1.4;
}

/* When the hero sits in the front section, drop its own border + reset padding
   so the parent section owns the layout. */
.nz-hero--in-front {
    padding: 0 !important;
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.nz-hero--in-front .nz-article-header {
    margin-top: 0;
    padding: 0 var(--nz-gutter);
}

@media (max-width: 1000px) {
    .nz-front-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .nz-front-aside {
        grid-column: 1;
        grid-row: auto;            /* let it stack below hero */
        border-left: 0;
        border-right: 0;
        padding: 1.5rem 0 0 0;
        position: static;
        order: 2;
        border-top: 1px solid var(--nz-rule);
    }
    .nz-hero--in-front {
        grid-column: 1;
        grid-row: auto;
        order: 1;
    }
}

/* Issue number in masthead top bar */
.nz-issue-no {
    font-weight: 700;
    color: var(--nz-black);
    letter-spacing: 0.16em;
}
.nz-issue-sep {
    margin: 0 0.4em;
    color: var(--nz-muted);
}
.nz-issue-date { color: var(--nz-muted); }

/* Today's bylines strip — horizontal avatar row */
.nz-bylines-strip {
    display: flex !important;
    align-items: center;
    gap: 1.4rem;
    padding: 1.2rem 0;
    margin: 0 auto 2.5rem;
    border-top: 1px solid var(--nz-rule);
    border-bottom: 1px solid var(--nz-rule);
    flex-wrap: wrap;
}
.nz-bylines-label {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--nz-red);
    flex-shrink: 0;
    padding-right: 1rem;
    border-right: 1px solid var(--nz-rule);
}
.nz-bylines-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto;
}
.nz-bylines-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.nz-bylines-list li::marker { content: none; }
.nz-bylines-list li::before { content: none; }
.nz-bylines-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    text-decoration: none;
}
.nz-bylines-list a:hover { background: none; }
.nz-bylines-list a:hover .nz-bylines-name { color: var(--nz-red); }
.nz-bylines-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nz-bylines-avatar .nz-portrait {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    margin: 0 !important;
}
.nz-bylines-avatar .nz-portrait-image,
.nz-bylines-avatar .nz-portrait-initials {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    font-size: 13px;
}
.nz-bylines-name {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--nz-ink);
    transition: color 0.2s ease;
}

/* Featured essay block — drop-cap long-form teaser */
.nz-essay-feature {
    max-width: 760px;
    margin: 1rem auto 3.5rem;
    padding: 0 var(--nz-gutter);
}
.nz-essay-rule {
    height: 6px;
    background: var(--nz-black);
    width: 100%;
    margin-bottom: 1.8rem;
}
.nz-essay-header { text-align: center; margin-bottom: 2rem; }
.nz-essay-kicker {
    display: inline-block;
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--nz-red);
    font-weight: 700;
    margin-bottom: 1rem;
}
.nz-essay-kicker a { color: var(--nz-red); background: none; }
.nz-essay-kicker a:hover { color: var(--nz-black); }
.nz-essay-kicker-sep { margin: 0 0.4em; }
.nz-essay-title {
    font-family: var(--nz-serif-display);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0.3rem 0 1rem;
    font-weight: 700;
}
.nz-essay-title a { background: none; color: var(--nz-black); }
.nz-essay-title a:hover { color: var(--nz-red); }
.nz-essay-dek {
    font-family: var(--nz-serif-body);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--nz-muted);
    max-width: 40ch;
    margin: 0.6rem auto 0;
}
.nz-essay-body {
    font-family: var(--nz-serif-body);
    font-size: 1.08rem;
    line-height: 1.72;
    color: var(--nz-ink);
}
.nz-essay-body > p:first-of-type::first-letter {
    font-family: var(--nz-serif-display);
    font-weight: 900;
    font-size: 4.6rem;
    line-height: 0.85;
    float: left;
    margin: 0.2rem 0.55rem -0.4rem 0;
    color: var(--nz-black);
}
.nz-essay-body p { margin: 0 0 1em; }
.nz-essay-cta {
    margin: 1.4rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--nz-rule);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.nz-essay-link {
    font-weight: 700;
    color: var(--nz-black);
    background: none;
    border-bottom: 2px solid var(--nz-black);
    padding-bottom: 2px;
}
.nz-essay-link:hover { color: var(--nz-red); border-bottom-color: var(--nz-red); }
.nz-essay-byline {
    color: var(--nz-muted);
}
.nz-essay-byline a { color: var(--nz-ink); font-weight: 600; background: none; }
.nz-essay-byline a:hover { color: var(--nz-red); }

/* Mixed-density grid: 1 big card + 2 stacked small cards */
.nz-mix-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--nz-rule);
    margin-bottom: 2.5rem;
    align-items: start;
}
.nz-card--big {
    border-top: 4px double var(--nz-black);
    padding-top: 1.4rem;
}
.nz-card-title--big {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.1;
    margin: 0.4rem 0 0.6rem;
}
.nz-card--big .nz-card-dek {
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 0.8rem;
}
.nz-mix-side {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.nz-card--small {
    padding-top: 1rem;
    border-top: 1px solid var(--nz-rule);
}
.nz-card--small .nz-card-title {
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0.2rem 0 0.4rem;
}

/* Homepage pull quote — typographic moment */
.nz-homepage-pullquote {
    max-width: 880px;
    margin: 3rem auto;
    padding: 2.5rem var(--nz-gutter);
    text-align: center;
    border-top: 1px solid var(--nz-black);
    border-bottom: 1px solid var(--nz-black);
}
.nz-homepage-pullquote blockquote {
    font-family: var(--nz-serif-display);
    font-style: italic;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    line-height: 1.3;
    color: var(--nz-black);
    margin: 0 0 1rem;
    border: 0;
    padding: 0;
}
.nz-homepage-pullquote cite {
    display: block;
    font-family: var(--nz-sans);
    font-style: normal;
    font-size: var(--nz-fs-small);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--nz-muted);
    line-height: 1.5;
}
.nz-homepage-pullquote cite a {
    color: var(--nz-ink);
    font-weight: 600;
    background: none;
    border-bottom: 1px solid var(--nz-rule);
}
.nz-homepage-pullquote cite a:hover { color: var(--nz-red); border-bottom-color: var(--nz-red); }

/* Departments — three beat columns */
.nz-departments {
    margin: 0 0 3rem;
}
.nz-departments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--nz-rule);
}
.nz-department {
    min-width: 0;
}
.nz-department-title {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--nz-black);
}
.nz-department-title a {
    color: var(--nz-red);
    background: none;
}
.nz-department-title a:hover { color: var(--nz-black); }
.nz-department-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.nz-department-list li {
    padding: 1rem 0;
    margin: 0;
    border-bottom: 1px solid var(--nz-rule);
    list-style: none !important;
}
.nz-department-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.nz-department-list li::before { content: none; }
.nz-department-headline {
    font-family: var(--nz-serif-display);
    font-size: 1.1rem;
    line-height: 1.22;
    font-weight: 700;
    margin: 0 0 0.4rem;
    letter-spacing: -0.005em;
}
.nz-department-headline a { color: var(--nz-black); background: none; }
.nz-department-headline a:hover { color: var(--nz-red); }
.nz-department-list .nz-byline {
    font-size: var(--nz-fs-micro);
    margin: 0;
    line-height: 1.4;
}

/* The Dispatch — newsletter callout */
.nz-dispatch-callout {
    margin: 1rem 0 3.5rem;
    padding: 3rem var(--nz-gutter);
    background: var(--nz-cream);
    border-top: 4px double var(--nz-black);
    border-bottom: 4px double var(--nz-black);
    text-align: center;
}
.nz-dispatch-inner {
    max-width: 640px;
    margin: 0 auto;
}
.nz-dispatch-kicker {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--nz-red);
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.nz-dispatch-title {
    font-family: var(--nz-serif-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 0.8rem;
    letter-spacing: -0.01em;
}
.nz-dispatch-desc {
    font-family: var(--nz-serif-body);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--nz-muted);
    max-width: 48ch;
    margin: 0 auto 1.6rem;
}
.nz-dispatch-form {
    display: flex;
    gap: 0.5rem;
    max-width: 460px;
    margin: 0 auto;
}
.nz-dispatch-form input[type="email"] {
    flex: 1;
    background: var(--nz-paper);
    border: 1px solid var(--nz-black);
}
.nz-dispatch-form button {
    flex-shrink: 0;
}

/* "More Stories" — compact 4-column grid of dense headlines */
.nz-more-stories {
    margin: 0 0 3.5rem;
}
.nz-more-stories .nz-op-section-head { margin-top: 1.5rem; }
.nz-more-stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 2.2rem;
    padding-bottom: 0.5rem;
}
.nz-more-story {
    padding: 1.2rem 0 1.4rem;
    border-top: 1px solid var(--nz-rule);
    min-width: 0;
}
.nz-more-story:nth-child(-n+4) {
    border-top: 0;
    padding-top: 0;
}
.nz-more-story-kicker {
    display: inline-block;
    font-family: var(--nz-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: var(--nz-red);
    margin-bottom: 0.5rem;
    background: none;
}
.nz-more-story-kicker:hover { color: var(--nz-black); }
.nz-more-story-title {
    font-family: var(--nz-serif-display);
    font-size: 1.05rem;
    line-height: 1.22;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.005em;
}
.nz-more-story-title a {
    color: var(--nz-black);
    background: none;
}
.nz-more-story-title a:hover { color: var(--nz-red); }
.nz-more-story-meta {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nz-muted);
    margin: 0;
    line-height: 1.4;
}
.nz-more-story-author {
    color: var(--nz-ink);
    font-weight: 600;
}

@media (max-width: 1100px) {
    .nz-more-stories-grid { grid-template-columns: repeat(3, 1fr); }
    .nz-more-story:nth-child(-n+4) { border-top: 1px solid var(--nz-rule); padding-top: 1.2rem; }
    .nz-more-story:nth-child(-n+3) { border-top: 0; padding-top: 0; }
}
@media (max-width: 800px) {
    .nz-more-stories-grid { grid-template-columns: repeat(2, 1fr); gap: 0 1.4rem; }
    .nz-more-story:nth-child(-n+4),
    .nz-more-story:nth-child(-n+3) { border-top: 1px solid var(--nz-rule); padding-top: 1.2rem; }
    .nz-more-story:nth-child(-n+2) { border-top: 0; padding-top: 0; }
}
@media (max-width: 560px) {
    .nz-more-stories-grid { grid-template-columns: 1fr; }
    .nz-more-story { border-top: 1px solid var(--nz-rule); padding-top: 1rem; }
    .nz-more-story:first-child { border-top: 0; padding-top: 0; }
}

/* Mini list — condensed headlines */
.nz-mini-list {
    max-width: var(--nz-max-w);
    margin: 0 0 3rem;
}
.nz-mini-list ol {
    list-style: none;
    counter-reset: nzmini;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 3rem;
}
.nz-mini-list li {
    counter-increment: nzmini;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--nz-rule);
    break-inside: avoid;
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.6rem;
    align-items: baseline;
}
.nz-mini-list li::before {
    content: counter(nzmini, decimal-leading-zero);
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    color: var(--nz-red);
    font-weight: 700;
    letter-spacing: 0.06em;
}
.nz-mini-list li > a + .nz-mini-meta { grid-column: 2; }
.nz-mini-title {
    font-family: var(--nz-serif-display);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--nz-black);
    background: none;
}
.nz-mini-title:hover { color: var(--nz-red); }
.nz-mini-meta {
    display: block;
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nz-muted);
    margin-top: 0.2rem;
}

@media (max-width: 900px) {
    .nz-mix-row { grid-template-columns: 1fr; gap: 1.6rem; }
    .nz-mini-list ol { columns: 1; column-gap: 0; }
    .nz-bylines-label {
        border-right: 0;
        border-bottom: 1px solid var(--nz-rule);
        padding-right: 0;
        padding-bottom: 0.4rem;
        width: 100%;
    }
    .nz-departments-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .nz-dispatch-form {
        flex-direction: column;
    }
}
@media (max-width: 600px) {
    .nz-essay-body > p:first-of-type::first-letter { font-size: 3.2rem; }
    .nz-essay-cta { flex-direction: column; align-items: flex-start; }
    .nz-dispatch-callout { padding: 2rem var(--nz-gutter); }
}

/* -----------  9. Footer  ----------- */
.nz-site-footer {
    background: var(--nz-black);
    color: var(--nz-cream);
    padding: 4rem var(--nz-gutter) 2rem;
    margin-top: 4rem;
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
}
.nz-footer-grid {
    max-width: var(--nz-max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
}
.nz-footer-logo {
    font-family: var(--nz-serif-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--nz-paper);
    margin-bottom: 0.4rem;
    display: block;
}
.nz-site-footer h4 {
    color: var(--nz-paper);
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0 0 1rem;
}
.nz-site-footer ul {
    list-style: none;
    padding: 0; margin: 0;
}
.nz-site-footer ul li { margin-bottom: 0.5em; }
.nz-site-footer a {
    color: var(--nz-cream);
    background: none;
}
.nz-site-footer a:hover { color: var(--nz-red); text-decoration: underline; }

.nz-footer-bottom {
    max-width: var(--nz-max-w);
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2a2a;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    color: var(--nz-muted);
    font-size: var(--nz-fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* -----------  10. Comments  ----------- */
.nz-comments {
    max-width: var(--nz-article-w);
    margin: 4rem auto 0;
    padding: 0 var(--nz-gutter);
}
.nz-comments-title {
    font-family: var(--nz-sans);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: var(--nz-fs-small);
    border-bottom: 1px solid var(--nz-black);
    padding-bottom: 0.6em;
    margin-bottom: 1.6rem;
}
.comment-list, .comment-list ol {
    list-style: none;
    padding: 0;
}
.comment {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--nz-rule);
}
.comment-meta {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    color: var(--nz-muted);
    margin-bottom: 0.4em;
}

/* -----------  11. Forms  ----------- */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="password"],
textarea,
select {
    font-family: var(--nz-serif-body);
    font-size: 1rem;
    padding: 0.7em 0.9em;
    border: 1px solid var(--nz-rule);
    background: var(--nz-paper);
    width: 100%;
    border-radius: 0;
    transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--nz-black);
}

button, .nz-btn, input[type="submit"] {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    background: var(--nz-black);
    color: var(--nz-paper);
    padding: 0.8em 1.6em;
    border: 0;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover, .nz-btn:hover, input[type="submit"]:hover {
    background: var(--nz-red);
}

/* -----------  12. Search form  ----------- */
.nz-search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto;
}

/* -----------  13. Pagination  ----------- */
.nz-pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 3rem 0;
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
}
.nz-pagination a,
.nz-pagination .current {
    padding: 0.5em 0.9em;
    border: 1px solid var(--nz-rule);
    color: var(--nz-ink);
    background: none;
}
.nz-pagination a:hover,
.nz-pagination .current {
    background: var(--nz-black);
    color: var(--nz-paper);
    border-color: var(--nz-black);
}

/* -----------  14. Newsletter inline  ----------- */
.nz-newsletter-inline {
    background: var(--nz-cream);
    border-top: 4px double var(--nz-black);
    border-bottom: 4px double var(--nz-black);
    padding: 2.5rem var(--nz-gutter);
    margin: 4rem 0;
    text-align: center;
}
.nz-newsletter-inline h3 {
    font-size: 1.8rem;
    margin: 0 0 0.4em;
}
.nz-newsletter-inline p {
    font-style: italic;
    color: var(--nz-muted);
    max-width: 44ch;
    margin: 0 auto 1.4em;
}
.nz-newsletter-inline form {
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    gap: 0.4rem;
}

/* -----------  15. Skip link & a11y  ----------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--nz-black);
    color: var(--nz-paper);
    padding: 0.6em 1em;
    z-index: 100;
}
.skip-link:focus {
    left: 1em; top: 1em;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px,1px,1px,1px);
    width: 1px; height: 1px; overflow: hidden;
}

/* -----------  16. Responsive  ----------- */
@media (max-width: 900px) {
    .nz-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .nz-grid { grid-template-columns: repeat(2, 1fr); }
    .nz-footer-grid { grid-template-columns: 1fr 1fr; }
    .nz-pullquote { margin: 2rem 0; }
}
@media (max-width: 600px) {
    .nz-grid { grid-template-columns: 1fr; }
    .nz-footer-grid { grid-template-columns: 1fr; }
    .nz-masthead-top { flex-direction: column; gap: 0.3em; text-align: center; }
    .nz-article-body { font-size: 1.05rem; line-height: 1.72; }
    .nz-article-body > p:first-of-type::first-letter { font-size: 4rem; }
    .nz-pullquote { font-size: 1.3rem; }
}

/* -----------  17. WordPress core  ----------- */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: var(--nz-wide-w); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-family: var(--nz-sans);
    font-size: var(--nz-fs-small);
    color: var(--nz-muted);
    margin-top: 0.4em;
}

.sticky { /* sticky posts */ }

.bypostauthor { /* nothing special */ }
