/* ============================================================
   Life At 360 — newspaper.css
   Public frontend: topbar, masthead, nav, ticker, featured grid,
   cards, sections, archives, sidebar, footer.

   Design language: pure black on white, hairline rules, generous
   whitespace, and one warm accent (#e5633f) used only on hover
   and active states. Structure is expressed with rules and type
   scale rather than boxes, tints, or shadows.

   Tokens come from base.css.
   ============================================================ */

body.news-body { background: var(--paper); color: var(--ink); }

.np-wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================================
   Top bar — date on the left, social + search on the right
   ============================================================ */
.np-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 38px;
    line-height: 38px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
    border-bottom: 1px solid var(--rule-strong);
}
.np-date { white-space: nowrap; }
.np-topbar-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}
.np-topbar-links a { color: var(--ink); }
.np-topbar-links a:hover { color: var(--accent); }

/* The search field sits behind a divider, mirroring the rule work
   used everywhere else in the layout. */
.np-search-form {
    padding-left: 1.1rem;
    border-left: 1px solid var(--rule-strong);
}
.np-search-form input {
    font-family: var(--font-body);
    font-size: 0.78rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    width: 150px;
    padding: 0.2rem 0;
    line-height: 1.4;
}
.np-search-form input::placeholder {
    color: var(--ink-soft);
    text-transform: none;
    letter-spacing: 0;
}
.np-search-form input:focus {
    outline: none;
    border-bottom: 1px solid var(--accent);
}

/* ============================================================
   Masthead
   ============================================================ */
.np-masthead {
    text-align: center;
    padding: 2.2rem 1rem 1.8rem;
    border-bottom: 1px solid var(--rule-strong);
}
.np-masthead-title {
    display: inline-block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(2.6rem, 7vw, 4.9rem);
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-transform: uppercase;
}
.np-masthead-title:hover { color: var(--ink); }

/* The masthead name is an h1 on the front page and a span elsewhere
   (see layouts/public.php). Both inherit the type above so the two
   pages look identical — this only strips the h1's default block
   margins and browser font sizing. */
.np-masthead-name {
    display: inline;
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    text-transform: inherit;
}

/* The tagline is flanked by two short rules — the template's
   ornament, rebuilt with borders so it needs no image asset. */
.np-masthead-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 0.9rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink);
}
.np-masthead-tagline::before,
.np-masthead-tagline::after {
    content: "";
    display: block;
    width: 34px;
    border-top: 1px solid var(--ink);
}

/* ============================================================
   Navigation — centred, uppercase, heavy bottom rule
   ============================================================ */
.np-nav {
    border-bottom: 3px solid var(--rule-strong);
    position: relative;
}
.np-nav-toggle {
    display: none;
    width: 100%;
    background: none;
    border: 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--ink);
}
.np-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1rem;
}
.np-nav-list a {
    display: block;
    padding: 0.75rem 1.15rem;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink);
    line-height: 1.5;
}
.np-nav-list a:hover { color: var(--accent); }
.np-nav-cta a { color: var(--accent); }

/* ============================================================
   Breaking ticker
   ============================================================ */
.np-ticker {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--rule);
    font-size: 0.88rem;
}
.np-ticker-label {
    flex: none;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.7rem;
}
.np-ticker-items { position: relative; overflow: hidden; flex: 1; }
.np-ticker-item { display: none; color: var(--ink); }
.np-ticker-item.is-active { display: block; }
.np-ticker-item:hover { color: var(--accent); }

/* ============================================================
   Page shell
   ============================================================ */
.np-page {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

/* Section headings: centred small caps flanked by rules. */
.np-section { margin-bottom: 3rem; }
.np-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.6rem;
}
.np-section-title::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--ink);
}
.np-section-title span { flex: none; }

.np-section-title-center {
    justify-content: center;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    margin-bottom: 2.4rem;
}
.np-section-title-center::before,
.np-section-title-center::after {
    content: "";
    flex: none;
    width: 60px;
    border-top: 1px solid var(--ink);
}

/* ============================================================
   Featured grid — the home-grid hero block
   nr-1 spans two rows on the left; nr-2 fills the top right;
   nr-3 and nr-4 split the bottom right.
   ============================================================ */
.np-grid-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 2px;
    margin-bottom: 3rem;
}
.np-feature {
    position: relative;
    overflow: hidden;
    background: #000;
}
.np-feature-1 { grid-row: span 2; }
.np-feature-3,
.np-feature-4 { grid-column: span 1; }

/* nr-2 spans the full right column; 3 and 4 sit beneath it. */
.np-grid-feature .np-feature-2 { grid-column: 2; grid-row: 1; }
.np-grid-feature .np-feature-3 { grid-column: 2; grid-row: 2; }
.np-grid-feature .np-feature-4 { display: none; }

/* With four stories the right column splits into a 2x2. */
.np-grid-feature.has-4 {
    grid-template-columns: 1fr 0.5fr 0.5fr;
}
.np-grid-feature.has-4 .np-feature-2 { grid-column: 2 / span 2; grid-row: 1; }
.np-grid-feature.has-4 .np-feature-3 { grid-column: 2; grid-row: 2; }
.np-grid-feature.has-4 .np-feature-4 { grid-column: 3; grid-row: 2; display: block; }

.np-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.np-feature:hover img { transform: scale(1.04); }

.np-feature-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 3rem 1.6rem 1.4rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
    color: #fff;
}

/* No photograph: centre the type on flat black and drop the
   gradient, so the tile reads as an intentional text panel rather
   than a failed image. */
.np-feature-textonly .np-feature-caption {
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: none;
    padding: 1.8rem;
}
.np-feature-textonly .np-feature-title { text-shadow: none; }
.np-feature-textonly { border: 1px solid #000; }
.np-feature-textonly:hover { background: #111; }
.np-feature-caption a { color: #fff; }
.np-feature-caption a:hover { color: #fff; text-decoration: underline; }
.np-feature-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.15;
    margin-top: 0.4rem;
    text-shadow: 0 1px 24px rgba(0, 0, 0, 0.6);
}
.np-feature-1 .np-feature-title { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
.np-feature .np-feature-meta {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-top: 0.6rem;
}
.np-feature .np-feature-meta span { margin-right: 0.9rem; }

/* Category chip — black block, white type. */
.np-cat-label {
    display: inline-block;
    background: #000;
    color: #fff;
    font-family: var(--font-headline);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.28rem 0.6rem;
}
.np-cat-label:hover { background: var(--accent); color: #fff; }

/* ============================================================
   Primary / sidebar split
   ============================================================ */
.np-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}
.np-primary { min-width: 0; }
.np-sidebar { min-width: 0; }

/* ============================================================
   Article cards
   ============================================================ */
.np-grid {
    display: grid;
    gap: 2rem;
}
.np-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.np-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.np-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { min-width: 0; }
.card-image {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.85rem;
}
.card-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.card-image:hover img { transform: scale(1.04); }

.card-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.card-category {
    font-family: var(--font-headline);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
}
.card-category:hover { color: var(--accent); }

.card-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
    font-size: 0.94rem;
    line-height: 1.65;
    color: #333;
    margin-bottom: 0.6rem;
}
.card-meta {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-soft);
}
.card-meta a { color: var(--ink-soft); }
.card-meta a:hover { color: var(--accent); }

/* Lead card — the largest card outside the feature grid. */
.card-lead .card-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.card-lead .card-excerpt { font-size: 1.02rem; }

/* Compact card — text only, used in rails and related lists. */
.card-compact .card-title { font-size: 1rem; line-height: 1.3; }

/* Horizontal list row: thumbnail left, text right. */
.np-post-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
    padding-bottom: 1.8rem;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--rule);
}
.np-post-row:last-child { border-bottom: 0; }
.np-post-row .card-image { margin-bottom: 0; }
.np-post-row .card-image img { aspect-ratio: 4 / 3; }
.np-post-row .card-title { font-size: 1.35rem; }

/* ============================================================
   Sidebar widgets
   ============================================================ */
.np-widget { margin-bottom: 2.6rem; }

/* Title with a rule running from the text to the column edge. */
.np-widget-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 1.1rem;
}
.np-widget-title::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--ink);
}

.np-widget-list { list-style: none; }
.np-widget-list li {
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--rule);
}
.np-widget-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.np-widget-list a {
    font-family: var(--font-headline);
    font-size: 0.98rem;
    line-height: 1.3;
    color: var(--ink);
}
.np-widget-list a:hover { color: var(--accent); }
.np-widget-meta {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-soft);
}

/* Ranked list — oversized numerals in the accent colour. */
.np-widget-ranked li {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.6rem;
    align-items: start;
}
.np-rank {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent);
}

/* Tag cloud */
.np-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
    display: inline-block;
    background: var(--paper-muted);
    color: #222;
    font-size: 0.78rem;
    padding: 0.5rem 0.9rem;
    transition: background 0.25s ease, color 0.25s ease;
}
.chip:hover { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------
   Sidebar archive tree

   Years are disclosure rows; months hang off a drawn trunk with an
   elbow into each label. The rules are borders on pseudo-elements
   rather than box-drawing characters, so they line up at any font
   size and do not depend on the reader having a font that carries
   the glyphs.
   ------------------------------------------------------------ */
.np-tree { list-style: none; }

.np-tree-year + .np-tree-year { margin-top: 0.35rem; }

.np-tree-year > details > summary {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    cursor: pointer;
    list-style: none;                 /* hide the default triangle  */
    border-left: 3px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.np-tree-year > details > summary::-webkit-details-marker { display: none; }
.np-tree-year > details > summary:hover { background: var(--paper-muted); }
.np-tree-year > details[open] > summary {
    background: var(--paper-muted);
    border-left-color: var(--accent);
}

/* Custom marker: a caret that rotates when the year opens. */
.np-tree-year > details > summary::before {
    content: "";
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-left: 5px solid var(--accent);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}
.np-tree-year > details[open] > summary::before {
    transform: rotate(90deg) translateX(-1px);
}

.np-tree-year-label {
    font-family: var(--font-headline);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink);
}
.np-tree-year-count {
    margin-left: auto;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.np-tree-months {
    list-style: none;
    margin: 0.15rem 0 0.4rem 1.05rem;
}
.np-tree-months li {
    position: relative;
    padding-left: 1rem;
}

/* Elbow: trunk down to the row's centre line, then a tick across. */
.np-tree-months li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0.65rem;
    height: 0.95rem;
    border-left: 1px solid var(--rule-strong);
    border-bottom: 1px solid var(--rule-strong);
    opacity: 0.28;
}
/* Trunk continues past every row except the last, which closes it. */
.np-tree-months li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    bottom: 0;
    border-left: 1px solid var(--rule-strong);
    opacity: 0.28;
}

.np-tree-months a {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.22rem 0.3rem 0.22rem 0.15rem;
    font-size: 0.88rem;
    color: #333;
}
.np-tree-months a:hover { color: var(--accent); }
.np-tree-month { white-space: nowrap; }

/* Dotted leader between the month and its count — the newspaper
   contents-page convention, and it stops the eye losing the row
   between a short month name and a right-aligned figure. */
.np-tree-months a::before {
    content: "";
    order: 1;
    flex: 1 1 auto;
    align-self: center;
    border-bottom: 1px dotted var(--rule-strong);
    opacity: 0.35;
    transform: translateY(-1px);
}
.np-tree-count {
    order: 2;
    font-size: 0.72rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}
.np-tree-months a:hover .np-tree-count { color: var(--accent); }

/* ------------------------------------------------------------
   HTML sitemap (/sitemap)
   ------------------------------------------------------------ */
.np-sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem 2rem;
}
.np-sitemap-wide { grid-column: 1 / -1; }

.np-sitemap-block h2 {
    font-family: var(--font-headline);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
    margin-bottom: 0.9rem;
    border-bottom: 2px solid var(--rule-strong);
}
.np-sitemap-sub {
    font-family: var(--font-headline);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 1.4rem 0 0.5rem;
}
.np-sitemap-sub a { color: var(--ink); }

.np-sitemap-list { list-style: none; }
.np-sitemap-list li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--rule);
}
.np-sitemap-list li:last-child { border-bottom: 0; }
.np-sitemap-list a { font-size: 0.94rem; }
.np-sitemap-count {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

/* Months run inline — twelve stacked links per year would make the
   archive column taller than the rest of the page put together. */
.np-sitemap-inline {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.75rem;
}
.np-sitemap-inline a { font-size: 0.86rem; }

.np-sitemap-recent {
    list-style: none;
    columns: 2;
    column-gap: 2rem;
}
.np-sitemap-recent li {
    break-inside: avoid;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--rule);
}
.np-sitemap-recent a { font-size: 0.94rem; line-height: 1.35; }
.np-sitemap-meta {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    margin-top: 0.15rem;
}
.np-sitemap-note {
    margin-top: 0.9rem;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

@media (max-width: 860px) {
    .np-sitemap-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .np-sitemap-grid { grid-template-columns: 1fr; }
    .np-sitemap-recent { columns: 1; }
}

/* Month index on a year archive page. */
.np-archive-months { margin-top: 2.4rem; }
.np-archive-count-chip {
    margin-left: 0.3rem;
    font-size: 0.68rem;
    color: var(--ink-soft);
}
.chip:hover .np-archive-count-chip { color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   Archive headers (category / tag / author)
   ============================================================ */
.np-archive-header {
    text-align: center;
    padding-bottom: 1.6rem;
    margin-bottom: 2.4rem;
    border-bottom: 1px solid var(--rule-strong);
}
.np-archive-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
}
.np-archive-intro {
    max-width: 640px;
    margin: 0.9rem auto 0;
    color: #333;
    font-size: 1rem;
}
.np-archive-note,
.np-archive-count {
    margin-top: 0.7rem;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
}
.np-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.6rem 2rem;
}

/* Author header runs the portrait beside the name. */
.np-author-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    text-align: left;
    padding-bottom: 1.6rem;
    margin-bottom: 2.4rem;
    border-bottom: 1px solid var(--rule-strong);
}
.np-author-photo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    flex: none;
}
.np-author-social { margin-top: 0.6rem; font-size: 0.78rem; }
.np-author-social a { margin-right: 0.9rem; color: var(--ink-soft); }
.np-author-social a:hover { color: var(--accent); }

/* ============================================================
   Pagination
   ============================================================ */
.np-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--rule);
    padding-top: 1.8rem;
    margin-top: 2.4rem;
}
.np-pagination .page-info {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
}

/* ============================================================
   Advertisement slots
   ============================================================ */
.np-ad {
    text-align: center;
    padding: 1.2rem 1rem;
    margin: 0 auto;
    max-width: var(--wrap);
}
.np-ad-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-soft);
    margin-bottom: 0.5rem;
}
.np-ad img { max-width: 100%; height: auto; }
.np-ad-article { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 2.4rem 0; }

/* ============================================================
   Newsletter block
   ============================================================ */
.np-newsletter {
    border: 1px solid var(--rule-strong);
    padding: 2rem 1.8rem;
    margin: 3rem 0;
    text-align: center;
}
.np-newsletter-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.np-newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}
.np-newsletter-form input[type="email"] {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--rule-strong);
    min-width: 260px;
    background: #fff;
    color: var(--ink);
}
.np-newsletter-form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: -2px; }

/* The honeypot must be unreachable but not display:none, which
   some bots detect. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================================
   Footer
   ============================================================ */
.np-footer {
    background: #000;
    color: #fff;
    margin-top: 4rem;
    padding: 3.5rem 1rem 0;
}
.np-footer a { color: #fff; }
.np-footer a:hover { color: var(--accent); }
.np-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 2.5rem;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-bottom: 3rem;
}
.np-footer-brand {
    display: block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}
.np-footer-about p { color: #bbb; font-size: 0.92rem; line-height: 1.7; }
.np-footer-col h3 {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #333;
}
.np-footer-col ul { list-style: none; }
.np-footer-col li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.np-footer-nl-title { margin-top: 1.6rem; }
.np-footer-nl { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.np-footer-nl input[type="email"] {
    font-family: var(--font-body);
    font-size: 0.88rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #444;
    background: #111;
    color: #fff;
    flex: 1;
    min-width: 150px;
}
.np-footer-nl .btn-outline { color: #fff; border-color: #fff; }
.np-footer-nl .btn-outline:hover { background: #fff; color: #000; }
.np-footer-bottom {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 1.4rem 0;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
}

/* ============================================================
   Trust labels — provenance, always visible
   ============================================================ */
.trust-label {
    display: inline-block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.5rem;
    border: 1px solid currentColor;
}
.trust-editorial   { color: var(--ink-soft); }
.trust-community   { color: #2d5a2f; }
.trust-sponsored   { color: #8a6d1f; }
.trust-ai_assisted { color: #3b5998; }
.trust-syndicated  { color: #5a4a7a; }
.trust-breaking    { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ============================================================
   Empty states
   ============================================================ */
.np-empty,
.np-empty-front {
    text-align: center;
    color: var(--ink-soft);
    padding: 2.5rem 1rem;
    font-size: 0.95rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .np-columns { grid-template-columns: 1fr; gap: 2.5rem; }
    .np-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .np-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .np-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .np-grid-feature,
    .np-grid-feature.has-4 {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .np-grid-feature .np-feature,
    .np-grid-feature.has-4 .np-feature {
        grid-column: 1;
        grid-row: auto;
        height: 260px;
        display: block;
    }
    .np-grid-feature .np-feature-1 { height: 340px; }
    .np-post-row { grid-template-columns: 140px minmax(0, 1fr); gap: 1rem; }
    .np-post-row .card-title { font-size: 1.1rem; }
}

@media (max-width: 640px) {
    .np-topbar { flex-direction: column; align-items: stretch; gap: 0; line-height: 1.9; padding-bottom: 0.5rem; }
    .np-topbar-links { justify-content: space-between; }
    .np-search-form { padding-left: 0; border-left: 0; }
    .np-search-form input { width: 100%; }

    .np-nav-toggle { display: block; }
    .np-nav-list { display: none; flex-direction: column; padding-bottom: 0.5rem; }
    .np-nav-list.is-open { display: flex; }
    .np-nav-list a { padding: 0.55rem 1rem; }

    .np-grid-2,
    .np-grid-3,
    .np-grid-4,
    .np-archive-grid { grid-template-columns: 1fr; }

    .np-post-row { grid-template-columns: 1fr; }
    .np-post-row .card-image img { aspect-ratio: 16 / 10; }

    .np-author-header { flex-direction: column; text-align: center; }
    .np-footer-grid { grid-template-columns: 1fr; }
    .np-pagination { flex-direction: column; }
}
