/*
Theme Name: Numbers of New York
Theme URI: https://numbersofnewyork.com
Author: Numbers of New York Data Desk
Description: A data journalism theme for Numbers of New York — Proof that Albany Hates Your Guts, in Numbers.
Version: 1.1.0
Text Domain: numbers-of-new-york
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Manufacturing+Consent&display=swap');

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   BODY
   ============================================================ */
html, body {
    background: #ffffff;
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
    color: #111;
    line-height: 1.6;
}

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --red: #cc0000;
    --font-serif: 'Playfair Display', 'Times New Roman', Times, serif;
    --font-sans: Arial, Helvetica, sans-serif;
}

/* ============================================================
   SITE WRAPPER
   ============================================================ */
.site-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    background: #ffffff;
}

/* ============================================================
   UTILITY BAR
   ============================================================ */
.utility-bar {
    background: #ffffff;
    color: #444;
    font-family: var(--font-sans);
    font-size: 11px;
    padding: 7px 0 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000000;
}
.utility-bar span { padding: 0 14px; }
.utility-bar span:first-child { padding-left: 0; }
.utility-bar span:last-child  { padding-right: 0; }
.utility-bar span + span { border-left: 1px solid #ccc; }
.utility-bar a { color: var(--red); }
.utility-bar a:hover { text-decoration: underline; }

/* ============================================================
   MASTHEAD
   ============================================================ */
.site-masthead {
    background: #ffffff;
    padding: 18px 0 0;
    text-align: center;
}

/* single hairline above nameplate */
.site-masthead::before {
    content: '';
    display: block;
    border-top: 1px solid #000;
    margin-bottom: 18px;
}

.site-title {
    font-family: 'Manufacturing Consent', 'Times New Roman', Times, serif;
    font-size: 86px;
    font-weight: 400;
    color: #000000;
    line-height: 1;
    display: block;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.site-title:hover { color: #000000; }

.site-quote {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #444;
    margin-top: 12px;
    line-height: 1.4;
}

/* single hairline below nameplate / above nav */
.masthead-rule {
    margin-top: 18px;
    border-top: 1px solid #000;
}

/* ============================================================
   NAV — white with thin black lines
   ============================================================ */
.primary-nav {
    background: #ffffff;
    border-bottom: none;
    margin-top: 0;
}
.primary-nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; margin: 0; padding: 0; }
.primary-nav ul li { border-right: none; }
.primary-nav ul li:first-child { border-left: none; }
.primary-nav ul li a { display: block; color: #000000; font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 9px 16px; transition: color 0.15s; }
.primary-nav ul li a:hover, .primary-nav ul li.current-menu-item a { color: var(--red); }

/* ============================================================
   LABELS
   ============================================================ */
.section-label { font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; background: #000; display: inline-block; padding: 3px 8px; margin-bottom: 12px; }
.section-label.gold { background: var(--red); }
.kicker { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; display: block; }

/* ============================================================
   HOMEPAGE
   ============================================================ */
.homepage-body { padding: 24px 0; }

.hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; border-bottom: 1px solid #000; padding-bottom: 24px; margin-bottom: 24px; }

.featured-image-wrap { width: 100%; aspect-ratio: 16/10; background: #000; overflow: hidden; margin-bottom: 14px; }
.featured-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.featured-image-wrap .chart-embed { width: 100%; height: 100%; }

.featured-headline { font-family: var(--font-serif); font-size: 30px; font-weight: 700; line-height: 1.2; color: #000; margin-bottom: 10px; }
.featured-headline a { color: #000; }
.featured-headline a:hover { color: var(--red); }
.featured-dek { font-size: 15px; line-height: 1.6; color: #333; margin-bottom: 12px; }
.featured-byline { font-family: var(--font-sans); font-size: 11px; color: #666; border-top: 1px solid #e0e0e0; padding-top: 10px; margin-bottom: 10px; }
.read-more-link { display: inline-block; font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #000; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.read-more-link:hover { color: var(--red); }

.sidebar-latest { border-left: 1px solid #e0e0e0; padding-left: 22px; }
.sidebar-article { padding: 10px 0; border-bottom: 1px solid #eee; }
.sidebar-article:last-child { border-bottom: none; }
.sidebar-article:hover .sidebar-article-title { color: var(--red); }
.sidebar-article-kicker { font-family: var(--font-sans); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 3px; display: block; }
.sidebar-article-title { font-family: var(--font-serif); font-size: 14px; font-weight: 700; line-height: 1.3; color: #000; display: block; }
.sidebar-article-title:hover { color: var(--red); }
.sidebar-article-date { font-family: var(--font-sans); font-size: 10px; color: #999; margin-top: 4px; display: block; }

.wpra-feeds-list, .widget_rss_aggregator ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.wpra-feeds-list li, .widget_rss_aggregator li { padding: 10px 0 !important; border-bottom: 1px solid #eee !important; list-style: none !important; }
.wpra-feeds-list li:last-child { border-bottom: none !important; }
.wpra-feeds-list .wpra-item-title a, .widget_rss_aggregator li a { font-family: var(--font-serif) !important; font-size: 14px !important; font-weight: 700 !important; color: #000 !important; text-decoration: none !important; display: block !important; }
.wpra-feeds-list .wpra-item-title a:hover, .widget_rss_aggregator li a:hover { color: var(--red) !important; }
.wpra-item-date { font-family: var(--font-sans) !important; font-size: 10px !important; color: #999 !important; display: block !important; }

.archive-section { margin-top: 8px; }
.archive-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.archive-title { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: #000; white-space: nowrap; }
.archive-rule { flex: 1; height: 1px; background: #ccc; }
.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.archive-card { cursor: pointer; }
.archive-card:hover .archive-card-title { color: var(--red); }
.archive-thumb { width: 100%; aspect-ratio: 16/9; background: #000; margin-bottom: 10px; overflow: hidden; }
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-card-kicker { font-family: var(--font-sans); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 5px; display: block; }
.archive-card-title { font-family: var(--font-serif); font-size: 14px; font-weight: 700; line-height: 1.3; color: #000; display: block; }
.archive-card-date { font-family: var(--font-sans); font-size: 10px; color: #999; margin-top: 5px; display: block; }

/* ============================================================
   SINGLE STORY
   ============================================================ */
.story-header { background: #000; padding: 40px 24px; border-bottom: 3px solid var(--red); }
.story-header .kicker { color: var(--red); margin-bottom: 12px; }
.story-headline { font-family: var(--font-serif); font-size: 38px; font-weight: 700; line-height: 1.15; color: #fff; margin-bottom: 14px; max-width: 820px; }
.story-dek { font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 1.5; color: #aaa; margin-bottom: 16px; max-width: 720px; }
.story-meta { font-family: var(--font-sans); font-size: 11px; color: #888; border-top: 1px solid #333; padding-top: 14px; display: flex; gap: 20px; flex-wrap: wrap; }
.story-body-wrap { padding: 40px 24px; max-width: 720px; margin: 0 auto; }
.story-body p { font-size: 20px; line-height: 1.75; color: #333; margin-bottom: 1.5rem; }
.story-body h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: #000; margin: 2.5rem 0 1rem; border-bottom: 2px solid var(--red); padding-bottom: 8px; }
.story-body blockquote { border-left: 4px solid var(--red); padding: 12px 20px; margin: 2rem 0; background: #f9f9f9; font-family: var(--font-serif); font-style: italic; font-size: 19px; color: #000; }
.story-body ul, .story-body ol { margin: 1.5rem 0 1.5rem 2rem; }
.story-body li { font-size: 20px; line-height: 1.7; margin-bottom: 0.5rem; color: #333; }
.chart-zone { background: #000; border: 2px solid var(--red); padding: 8px; margin: 2.5rem 0; min-height: 300px; }
.chart-zone-label { font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #ffffff; border-top: 2px solid var(--red); padding: 24px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #e0e0e0; }
.footer-col p, .footer-col a { font-family: var(--font-sans); font-size: 12px; color: #555; line-height: 1.7; display: block; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid #e0e0e0; padding-top: 16px; text-align: center; font-family: var(--font-sans); font-size: 11px; color: #888; }
.footer-bottom span { color: var(--red); }

/* ============================================================
   PAGINATION
   ============================================================ */
.archive-pagination { display: flex; justify-content: center; gap: 8px; padding: 24px 0; border-top: 1px solid #e0e0e0; }
.archive-pagination a, .archive-pagination span { font-family: var(--font-sans); font-size: 12px; padding: 6px 12px; border: 1px solid #ccc; color: #000; }
.archive-pagination a:hover, .archive-pagination .current { background: #000; color: #fff; border-color: #000; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .sidebar-latest { border-left: none; border-top: 1px solid #000; padding-left: 0; padding-top: 20px; }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .site-title { font-size: 38px; }
    .archive-grid { grid-template-columns: 1fr; }
}
/* ============================================================
   OVERRIDES — third-party plugin border resets
   ============================================================ */
.primary-nav,
.primary-nav ul,
nav.primary-nav,
#site-navigation,
.main-navigation,
.wp-block-navigation,
header nav {
    border-bottom: 1px solid #000000 !important;
    border-top: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.site-masthead::after,
.primary-nav::after,
.primary-nav::before {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Force nav bottom border completely off — use masthead-rule only */
nav.primary-nav {
    border-bottom: none !important;
    border-top: none !important;
    box-shadow: none !important;
    outline: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
nav.primary-nav::before,
nav.primary-nav::after {
    content: none !important;
    display: none !important;
    border: none !important;
}
