/*
Theme Name: NostalgicPosts
Theme URI: https://nostalgicposts.com
Author: NostalgicPosts
Author URI: https://nostalgicposts.com
Description: A warm vintage-editorial WordPress theme for nostalgia blogs. Features 6 fully manageable widget areas, built-in ad zones compatible with Google AdSense, Advanced Ads, and Amazon Affiliates.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nostalgicposts
Tags: blog, news, vintage, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --cream:      #F5EFE0;
  --warm-white: #FBF8F2;
  --ink:        #1A1209;
  --sepia:      #8B6914;
  --rust:       #C0392B;
  --gold:       #D4A017;
  --light-gold: #F0D080;
  --muted:      #7A6A52;
  --border:     #D9C89A;
  --card-bg:    #FFFDF7;
  --body-text:  #2E2416;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;
  --font-label:   'Bebas Neue', Impact, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--body-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
p {text-align: justify;}
ul li {text-align: justify;}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5em; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}

input[type="text"] { height: 25px; }
input[type="email"] { height: 25px; }
input[type="tel"] { height: 25px; }

/* ============================================================
   TOPBAR
   ============================================================ */
.np-topbar {
  background: var(--ink); color: var(--cream);
  font-size: 11px; letter-spacing: 0.08em;
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 40px;
}
.np-topbar a { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
.np-topbar a:hover { opacity: 0.8; text-decoration: none; }
.np-topbar-left { opacity: 0.7; }
.np-topbar-right { display: flex; gap: 16px; align-items: center; }
.np-topbar-advertise {
  background: var(--rust); color: white !important;
  padding: 3px 12px; border-radius: 2px;
  font-size: 10px; letter-spacing: 0.1em; font-weight: 700;
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.np-masthead {
  background: var(--warm-white); border-bottom: 3px double var(--border);
  padding: 24px 40px 20px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
}
.np-logo a { text-decoration: none; }
.np-logo-title {
  font-family: var(--font-display); font-size: 48px;
  font-weight: 900; line-height: 1; color: var(--ink); letter-spacing: -0.02em;
}
.np-logo-title .accent { color: var(--rust); }
.np-logo-tagline { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Header ad fallback */
.np-header-ad {
  background: linear-gradient(135deg, var(--ink) 0%, #3D2B0A 100%);
  border: 2px solid var(--gold); color: var(--gold);
  padding: 10px 24px; text-align: center; border-radius: 2px;
  position: relative; overflow: hidden;
}
.np-header-ad::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,160,23,0.15), transparent);
  animation: np-shimmer 3s infinite;
}
@keyframes np-shimmer { to { left: 200%; } }
.np-header-ad-label { font-size: 9px; opacity: 0.6; letter-spacing: 0.2em; text-transform: uppercase; display: block; }
.np-header-ad-content { font-size: 15px; font-family: var(--font-label); letter-spacing: 0.12em; display: block; margin: 4px 0; }
.np-header-ad-cta {
  display: inline-block; background: var(--gold); color: var(--ink);
  font-size: 10px; padding: 3px 12px; border-radius: 2px;
  font-weight: 700; letter-spacing: 0.1em; margin-top: 4px;
}
.np-header-ad-widget-wrap { width: 100%; }

/* Search form */
.np-search-form { display: flex; align-items: center; border: 1.5px solid var(--border); background: white; border-radius: 2px; overflow: hidden; }
.np-search-form input[type="search"] { border: none; outline: none; padding: 9px 14px; font-family: var(--font-ui); font-size: 13px; width: 200px; background: transparent; color: var(--ink); }
.np-search-form button { background: var(--rust); border: none; color: white; padding: 9px 14px; cursor: pointer; font-size: 14px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.np-nav-wrapper { background: var(--ink); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.np-nav-inner { display: flex; align-items: center; padding: 0 40px; }
.np-nav-inner .menu { display: flex; list-style: none; padding: 0; margin: 0; }
.np-nav-inner .menu li { position: relative; }
.np-nav-inner .menu li a { color: #EDE0C8; text-decoration: none; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; padding: 16px 14px; display: block; position: relative; transition: color 0.2s; }
.np-nav-inner .menu li a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--gold); transition: all 0.2s; transform: translateX(-50%); }
.np-nav-inner .menu li a:hover, .np-nav-inner .menu li.current-menu-item > a, .np-nav-inner .menu li.current-menu-ancestor > a { color: var(--gold); text-decoration: none; }
.np-nav-inner .menu li a:hover::after, .np-nav-inner .menu li.current-menu-item > a::after { width: 100%; }
.np-nav-inner .menu li ul { display: none; position: absolute; top: 100%; left: 0; background: var(--ink); border-top: 2px solid var(--gold); min-width: 200px; list-style: none; padding: 8px 0; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.np-nav-inner .menu li:hover > ul { display: block; }
.np-nav-inner .menu li ul li a { padding: 10px 16px; font-size: 11px; }
.np-nav-inner .menu li ul li a::after { display: none; }
.np-nav-home-icon { background: var(--rust) !important; padding: 16px 18px !important; margin-right: 4px; }
.np-nav-home-icon::after { display: none !important; }
.np-nav-spacer { flex: 1; }
.np-nav-submit { background: var(--gold); color: var(--ink) !important; padding: 13px 18px !important; font-weight: 700 !important; font-size: 11px !important; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.np-breadcrumb { padding: 12px 40px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border); background: var(--warm-white); }
.np-breadcrumb a { color: var(--rust); }
.np-breadcrumb .breadcrumb_last { color: var(--muted); }
.np-breadcrumb span.sep { color: var(--border); }

/* ============================================================
   LAYOUT
   ============================================================ */
.np-page-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding: 40px; max-width: 1280px; margin: 0 auto; align-items: start; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.np-hero-section { padding: 32px 40px 0; display: grid; grid-template-columns: 1fr 340px; gap: 24px; max-width: 1280px; margin: 0 auto; }
.np-hero-main { display: grid; grid-template-rows: 1fr auto; gap: 16px; }
.np-hero-feature { position: relative; border-radius: 3px; overflow: hidden; height: 380px; cursor: pointer; }
.np-hero-feature a { display: block; height: 100%; }
.np-hero-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.np-hero-feature:hover img { transform: scale(1.04); }
.np-hero-feature-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(20,10,0,0.92) 0%, rgba(20,10,0,0.5) 50%, transparent 100%); padding: 32px 28px 24px; }
.np-hero-feature-overlay .np-cat-badge { display: inline-block; background: var(--rust); color: white; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; padding: 3px 10px; border-radius: 2px; margin-bottom: 10px; }
.np-hero-feature-overlay h2 { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: white; line-height: 1.25; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.np-hero-feature-overlay h2 a { color: white; text-decoration: none; }
.np-hero-feature-overlay .np-meta { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.05em; }
.np-hero-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.np-mini-card { position: relative; border-radius: 3px; overflow: hidden; height: 160px; cursor: pointer; }
.np-mini-card a { display: block; height: 100%; }
.np-mini-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.np-mini-card:hover img { transform: scale(1.06); }
.np-mini-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,10,0,0.85) 0%, transparent 60%); padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; }
.np-mini-card-overlay .np-cat-badge { margin-bottom: 6px; width: fit-content; font-size: 9px; background: var(--sepia); color: white; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; padding: 2px 7px; border-radius: 2px; display: block; }
.np-mini-card-overlay h4 { font-family: var(--font-display); font-size: 14px; color: white; line-height: 1.3; }
.np-mini-card-overlay h4 a { color: white; text-decoration: none; }

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.np-section-divider { display: flex; align-items: center; gap: 16px; margin: 32px 40px 24px; }
.np-section-divider .np-label { font-family: var(--font-label); font-size: 26px; letter-spacing: 0.12em; white-space: nowrap; color: var(--ink); }
.np-section-divider .np-line { flex: 1; height: 1px; background: linear-gradient(to right, var(--border), transparent); }
.np-section-divider .np-dot { width: 6px; height: 6px; background: var(--rust); border-radius: 50%; }
.np-ornamental { text-align: center; color: var(--border); font-size: 18px; letter-spacing: 0.5em; margin: 0 0 28px; }

/* ============================================================
   TOPIC PILLS
   ============================================================ */
.np-topic-pills { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 40px 24px; }
.np-topic-pill { padding: 7px 16px; border: 1.5px solid var(--border); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; cursor: pointer; background: var(--warm-white); transition: all 0.2s; border-radius: 2px; color: var(--ink); text-decoration: none; }
.np-topic-pill:hover, .np-topic-pill.current { background: var(--ink); color: var(--gold); border-color: var(--ink); text-decoration: none; }

/* ============================================================
   AD STRIP
   ============================================================ */
.np-ad-strip-wrap { margin: 0 40px 32px; }
.np-ad-strip { background: linear-gradient(135deg, #1A1209 0%, #2C1810 50%, #1A1209 100%); border: 1.5px solid var(--gold); display: flex; align-items: center; gap: 24px; padding: 20px 32px; position: relative; overflow: hidden; }
.np-ad-strip::after { content: 'SPONSORED'; position: absolute; top: 8px; right: 12px; font-size: 9px; letter-spacing: 0.2em; color: var(--gold); opacity: 0.5; }
.np-ad-strip-icon { font-size: 36px; flex-shrink: 0; }
.np-ad-strip-text { flex: 1; }
.np-ad-strip-text h4 { font-family: var(--font-display); color: var(--cream); font-size: 17px; font-style: italic; }
.np-ad-strip-text p { font-size: 12px; color: rgba(245,239,224,0.55); margin-top: 4px; }
.np-ad-strip-btn { flex-shrink: 0; background: transparent; border: 1.5px solid var(--gold); color: var(--gold); padding: 10px 22px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap; font-family: var(--font-ui); text-decoration: none; display: inline-block; }
.np-ad-strip-btn:hover { background: var(--gold); color: var(--ink); text-decoration: none; }

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.np-article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.np-article-card { background: var(--card-bg); border: 1px solid var(--border); overflow: hidden; cursor: pointer; transition: box-shadow 0.3s, transform 0.3s; }
.np-article-card:hover { box-shadow: 0 8px 32px rgba(26,18,9,0.12); transform: translateY(-3px); }
.np-article-card-img-wrap { overflow: hidden; }
.np-article-card-img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.5s; }
.np-article-card:hover .np-article-card-img { transform: scale(1.04); }
.np-article-card-body { padding: 18px 18px 14px; }
.np-article-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.np-tag { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 2px; text-decoration: none; }
.np-tag-entertainment { background: #FAD7A0; color: #7D6608; }
.np-tag-cricket       { background: #A9CCE3; color: #1A5276; }
.np-tag-childhood     { background: #A9DFBF; color: #1E8449; }
.np-tag-cars          { background: #F1948A; color: #922B21; }
.np-tag-food          { background: #F9E79F; color: #9A7D0A; }
.np-tag-politics      { background: #D7BDE2; color: #6C3483; }
.np-tag-news          { background: #F5CBA7; color: #784212; }
.np-tag-technology    { background: #AED6F1; color: #1A5276; }
.np-tag-default       { background: var(--border); color: var(--ink); }
.np-article-card-body h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--ink); margin-bottom: 8px; }
.np-article-card-body h3 a { color: var(--ink); text-decoration: none; }
.np-article-card:hover h3 a { color: var(--rust); }
.np-article-card-body p { font-size: 12.5px; line-height: 1.65; color: var(--muted); margin-bottom: 12px; }
.np-article-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 10px; flex-wrap: wrap; }
.np-article-meta .np-author { font-weight: 600; color: var(--ink); }
.np-article-meta .np-dot { width: 3px; height: 3px; background: var(--border); border-radius: 50%; }
.np-featured-h-card { grid-column: 1 / -1; background: var(--card-bg); border: 1px solid var(--border); display: grid; grid-template-columns: 320px 1fr; overflow: hidden; cursor: pointer; transition: box-shadow 0.3s; }
.np-featured-h-card:hover { box-shadow: 0 8px 32px rgba(26,18,9,0.12); }
.np-featured-h-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.np-featured-h-card-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.np-featured-h-card-body h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.35; margin: 10px 0 12px; }
.np-featured-h-card-body h3 a { color: var(--ink); text-decoration: none; }
.np-featured-h-card:hover h3 a { color: var(--rust); }
.np-featured-h-card-body p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.np-read-more { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--rust); text-decoration: none; }
.np-read-more-arrow { font-size: 16px; transition: transform 0.2s; }
.np-featured-h-card:hover .np-read-more-arrow { transform: translateX(4px); }
.np-pagination { display: flex; gap: 6px; margin: 32px 0 0; justify-content: center; }
.np-pagination .page-numbers { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); font-size: 12px; font-weight: 600; background: var(--warm-white); transition: all 0.2s; color: var(--ink); text-decoration: none; border-radius: 2px; }
.np-pagination .page-numbers:hover, .np-pagination .page-numbers.current { background: var(--rust); color: white; border-color: var(--rust); }

/* ============================================================
   SIDEBAR & WIDGET AREAS
   ============================================================ */
.np-sidebar { min-width: 0; }
.np-sidebar-inner { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 20px; }

/* Every widget gets the themed card treatment */
.np-widget-item { background: var(--card-bg); border: 1px solid var(--border); border-top: 3px solid var(--rust); padding: 20px; }
.np-widget-item .np-widget-heading { font-family: var(--font-label); font-size: 19px; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.np-widget-item .np-widget-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Generic WP widget list */
.np-widget-item ul { list-style: none; padding: 0; margin: 0; }
.np-widget-item ul li { padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; line-height: 1.4; }
.np-widget-item ul li:last-child { border-bottom: none; }
.np-widget-item ul li a { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 13px; transition: color 0.2s; }
.np-widget-item ul li a:hover { color: var(--rust); }

/* Search widget */
.np-widget-item .wp-block-search__inside-wrapper,
.np-widget-item .widget_search form { display: flex; }
.np-widget-item .wp-block-search__input,
.np-widget-item .widget_search input[type="search"] { flex: 1; border: 1.5px solid var(--border); border-right: none; padding: 8px 12px; font-family: var(--font-ui); font-size: 13px; outline: none; background: white; color: var(--ink); }
.np-widget-item .wp-block-search__button,
.np-widget-item .widget_search input[type="submit"] { background: var(--rust); color: white; border: none; padding: 8px 14px; cursor: pointer; font-size: 13px; }

/* Tag cloud */
.np-widget-item .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.np-widget-item .tagcloud a { display: inline-block; padding: 4px 12px; border: 1.5px solid var(--border); font-size: 11px !important; letter-spacing: 0.08em; border-radius: 2px; background: var(--warm-white); color: var(--ink) !important; transition: all 0.2s; text-decoration: none; }
.np-widget-item .tagcloud a:hover { background: var(--ink); color: var(--gold) !important; border-color: var(--ink); }

/* Ad widget wrappers — no card border */
.np-header-ad-widget-wrap { width: 100%; }
.np-ad-strip-widget { width: 100%; }
.np-inline-ad-widget { margin: 24px 0; }
.np-inline-ad-wrap  { margin: 24px 0; }

/* Admin hint when sidebar is empty */
.np-empty-sidebar-hint { border: 2px dashed var(--border); padding: 16px 20px; background: var(--warm-white); border-radius: 2px; }
.np-empty-sidebar-hint p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }
.np-empty-sidebar-hint a { color: var(--rust); }

/* ============================================================
   SINGLE POST – HERO
   ============================================================ */
.np-article-hero { position: relative; max-height: 520px; overflow: hidden; }
.np-article-hero img { width: 100%; max-height: 520px; object-fit: cover; display: block; filter: sepia(15%) brightness(0.88); }
.np-article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,10,2,0.88) 0%, rgba(20,10,2,0.3) 50%, transparent 80%); }
.np-article-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 48px 40px 40px; animation: np-fadeUp 0.7s ease both; }
.np-hero-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.np-htag { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; padding: 4px 12px; border-radius: 2px; background: var(--rust); color: white; text-decoration: none; }
.np-article-hero-content h1 { font-family: var(--font-display); font-size: clamp(24px,4vw,44px); font-weight: 900; color: white; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,0.4); max-width: 820px; }
.np-hero-meta { margin-top: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.np-hero-author { display: flex; align-items: center; gap: 10px; }
.np-hero-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ink); border: 2px solid rgba(212,160,23,0.5); flex-shrink: 0; }
.np-hero-author-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); }
.np-hero-meta-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.2); }
.np-hero-meta-item { font-size: 12px; color: rgba(255,255,255,0.6); }

/* Reading bar */
.np-reading-bar { background: var(--warm-white); border-bottom: 1px solid var(--border); padding: 10px 40px; display: flex; align-items: center; gap: 20px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.np-reading-bar .np-stat { display: flex; align-items: center; gap: 6px; }
.np-reading-actions { margin-left: auto; display: flex; gap: 8px; }
.np-share-btn { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1.5px solid var(--border); background: white; font-size: 11px; letter-spacing: 0.08em; font-weight: 600; cursor: pointer; border-radius: 2px; color: var(--ink); transition: all 0.2s; font-family: var(--font-ui); text-decoration: none; }
.np-share-btn:hover { background: var(--ink); color: var(--gold); border-color: var(--ink); text-decoration: none; }
.np-share-fb { background: #1877F2 !important; color: white !important; border-color: #1877F2 !important; }
.np-share-wa { background: #25D366 !important; color: white !important; border-color: #25D366 !important; }

/* ============================================================
   ARTICLE CONTENT (single.php)
   ============================================================ */
.np-article-body { max-width: 720px; }
.np-article-intro { font-family: var(--font-body); font-size: 19px; line-height: 1.75; color: var(--body-text); margin-bottom: 32px; padding-bottom: 32px; border-bottom: 2px solid var(--border); font-style: italic; }
.np-article-body .entry-content p { font-family: var(--font-body); font-size: 16.5px; line-height: 1.85; color: var(--body-text); margin-bottom: 22px; }
.np-article-body .entry-content h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.np-article-body .entry-content h2::before { content: ''; display: block; width: 4px; height: 28px; background: var(--rust); flex-shrink: 0; border-radius: 2px; }
.np-article-body .entry-content h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; font-style: italic; }
.np-article-body .entry-content ul, .np-article-body .entry-content ol { font-family: var(--font-body); font-size: 16px; line-height: 1.8; color: var(--body-text); margin-bottom: 22px; }
.np-article-body .entry-content li { margin-bottom: 8px; }
.np-article-body .entry-content a { color: var(--rust); }
.np-article-body .entry-content blockquote { border-left: 5px solid var(--rust); background: linear-gradient(135deg,rgba(192,57,43,0.05),rgba(212,160,23,0.04)); padding: 24px 28px; margin: 32px 0; font-family: var(--font-display); font-size: 20px; font-style: italic; color: var(--ink); line-height: 1.55; }
.np-article-body .entry-content img { border: 3px solid var(--border); filter: sepia(10%); margin: 24px 0; }
.np-article-body .entry-content figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; font-style: italic; }
.np-article-body .entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-family: var(--font-ui); font-size: 14px; }
.np-article-body .entry-content table th { background: var(--ink); color: var(--gold); padding: 10px 14px; text-align: left; font-weight: 700; }
.np-article-body .entry-content table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.np-article-body .entry-content table tr:nth-child(even) td { background: var(--warm-white); }

/* Post footer */
.np-post-footer { margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--border); }
.np-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; align-items: center; }
.np-post-tags .np-label { font-size: 11px; font-weight: 600; color: var(--muted); }
.np-post-tag { padding: 5px 14px; border: 1.5px solid var(--border); font-size: 11px; cursor: pointer; color: var(--ink); transition: all 0.2s; border-radius: 2px; background: var(--warm-white); text-decoration: none; }
.np-post-tag:hover { background: var(--ink); color: var(--gold); border-color: var(--ink); text-decoration: none; }
.np-share-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.np-share-row > span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.np-social-btn { padding: 8px 16px; font-size: 12px; font-weight: 700; border: none; cursor: pointer; border-radius: 2px; font-family: var(--font-ui); transition: opacity 0.2s; text-decoration: none; display: inline-block; }
.np-social-btn:hover { opacity: 0.85; text-decoration: none; }
.np-sb-fb { background: #1877F2; color: white; }
.np-sb-tw { background: #000; color: white; }
.np-sb-wa { background: #25D366; color: white; }
.np-sb-copy { background: var(--warm-white); color: var(--ink); border: 1.5px solid var(--border); }

/* Author box */
.np-author-box { margin-top: 40px; padding: 28px; background: var(--card-bg); border: 1px solid var(--border); border-top: 3px solid var(--rust); display: flex; gap: 20px; align-items: flex-start; }
.np-author-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,var(--gold),var(--sepia)); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: white; flex-shrink: 0; font-family: var(--font-display); border: 3px solid var(--border); }
.np-author-info .np-author-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); }
.np-author-info .np-author-role { font-size: 11px; color: var(--rust); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin: 4px 0 10px; }
.np-author-info p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* Comments */
.np-comments-section { margin-top: 48px; padding-top: 32px; border-top: 2px double var(--border); }
.np-section-heading { font-family: var(--font-label); font-size: 26px; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.np-section-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.comment-form { background: var(--card-bg); border: 1px solid var(--border); padding: 24px; }
.comment-form label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { width: 100%; border: 1.5px solid var(--border); background: white; padding: 11px 14px; font-family: var(--font-ui); font-size: 13px; color: var(--ink); outline: none; border-radius: 2px; transition: border-color 0.2s; margin-bottom: 14px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--rust); }
.comment-form textarea { height: 120px; resize: vertical; }
.comment-form .submit { background: var(--rust); color: white; border: none; padding: 13px 28px; font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; border-radius: 2px; }
.comment-form .submit:hover { background: #A93226; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-bottom: 1px dashed var(--border); padding: 20px 0; }

/* Related posts */
.np-related-section { margin-top: 48px; padding-top: 32px; border-top: 2px double var(--border); }
.np-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.np-related-card { background: var(--card-bg); border: 1px solid var(--border); overflow: hidden; cursor: pointer; transition: transform 0.25s, box-shadow 0.25s; }
.np-related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,18,9,0.1); }
.np-related-card-img-wrap { overflow: hidden; }
.np-related-card img { width: 100%; height: 140px; object-fit: cover; display: block; transition: transform 0.4s; }
.np-related-card:hover img { transform: scale(1.05); }
.np-related-card-body { padding: 14px; }
.np-related-card-body .np-cat { font-size: 9px; color: var(--rust); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 6px; }
.np-related-card-body h4 { font-family: var(--font-display); font-size: 15px; line-height: 1.4; color: var(--ink); }
.np-related-card-body h4 a { color: var(--ink); text-decoration: none; }
.np-related-card:hover h4 a { color: var(--rust); }
.np-related-card-body .np-date { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.np-newsletter { margin: 40px; background: linear-gradient(135deg,#2C1A08 0%,#1A1209 100%); border: 1px solid var(--gold); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.np-newsletter::before { content: '\2726'; position: absolute; font-size: 200px; color: rgba(212,160,23,0.04); top: -30px; right: -20px; line-height: 1; }
.np-newsletter-text h3 { font-family: var(--font-display); font-size: 30px; color: var(--cream); font-style: italic; line-height: 1.3; }
.np-newsletter-text h3 span { color: var(--gold); }
.np-newsletter-text p { font-size: 13px; color: rgba(245,239,224,0.6); margin-top: 12px; line-height: 1.7; }
.np-newsletter-form { display: flex; flex-direction: column; gap: 10px; color: #fff; }
.np-newsletter-form input { background: rgba(255,255,255,0.07); border: 1px solid rgba(212,160,23,0.3); color: var(--cream); padding: 12px 16px; font-family: var(--font-ui); font-size: 13px; border-radius: 2px; outline: none; margin-top: 10px; }
input[type="submit"] { cursor: pointer; }
.np-newsletter-form input::placeholder { color: rgba(245,239,224,0.3); }
.np-newsletter-form input:focus { border-color: var(--gold); }
.np-newsletter-form button { background: var(--gold); color: var(--ink); border: none; padding: 13px; font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; cursor: pointer; border-radius: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.np-footer { background: var(--ink); color: var(--cream); padding: 48px 40px 24px; }
.np-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; }
.np-footer-brand .np-logo-title { font-size: 34px; }
.np-footer-brand p { font-size: 12px; color: rgba(245,239,224,0.45); margin-top: 14px; line-height: 1.7; }
.np-footer-col h5 { font-family: var(--font-label); font-size: 15px; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 14px; }
.np-footer-col ul { list-style: none; padding: 0; }
.np-footer-col ul li a { color: rgba(245,239,224,0.45); text-decoration: none; font-size: 12px; display: block; margin-bottom: 8px; transition: color 0.2s; }
.np-footer-col ul li a:hover { color: var(--gold); text-decoration: none; }
.np-footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: rgba(245,239,224,0.25); flex-wrap: wrap; gap: 12px; }
.np-social-icons { display: flex; gap: 10px; }
.np-social-icon { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; transition: all 0.2s; border-radius: 2px; color: rgba(245,239,224,0.5); text-decoration: none; }
.np-social-icon:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes np-fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.np-article-card { animation: np-fadeUp 0.5s ease both; }
.np-article-card:nth-child(1) { animation-delay: 0.05s; }
.np-article-card:nth-child(2) { animation-delay: 0.1s; }
.np-article-card:nth-child(3) { animation-delay: 0.15s; }
.np-article-card:nth-child(4) { animation-delay: 0.2s; }


/* ============================================================
   RESPONSIVE SYSTEM
   Breakpoints:
     1200px  – large tablet / small desktop
     1024px  – tablet landscape
     768px   – tablet portrait
     480px   – large mobile
     360px   – small mobile
   ============================================================ */

/* ── 1200px: Tighten desktop layout ── */
@media (max-width: 1200px) {
  .np-hero-section,
  .np-page-layout {
    padding-left: 24px;
    padding-right: 24px;
    gap: 32px;
  }
  .np-hero-section {
    grid-template-columns: 1fr 300px;
  }
  .np-page-layout {
    grid-template-columns: 1fr 300px;
  }
  .np-topbar,
  .np-masthead,
  .np-nav-inner,
  .np-breadcrumb,
  .np-reading-bar,
  .np-section-divider,
  .np-topic-pills,
  .np-ad-strip-wrap,
  .np-newsletter,
  .np-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .np-section-divider,
  .np-topic-pills,
  .np-ad-strip-wrap { margin-left: 0; margin-right: 0; }
  .np-footer-grid { gap: 24px; }
  .np-masthead { gap: 16px; }
  .np-logo-title { font-size: 40px; }
}

/* ── 1024px: Tablet landscape — single column ── */
@media (max-width: 1024px) {

  /* Layout: stack main + sidebar */
  .np-hero-section,
  .np-page-layout {
    grid-template-columns: 1fr;
    padding-left: 24px;
    padding-right: 24px;
    gap: 28px;
  }

  /* Sidebar: unstick and show below content */
  .np-sidebar-inner { position: static; }
  .np-sidebar { width: 100%; }

  /* Hero: keep feature card full width, mini grid 2-col */
  .np-hero-feature { height: 320px; }
  .np-hero-mini-grid { grid-template-columns: 1fr 1fr; }

  /* Masthead: stack into 2 rows */
  .np-masthead {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    padding: 18px 24px;
  }
  .np-logo { grid-column: 1; grid-row: 1; }
  .np-masthead .np-header-ad,
  .np-masthead .np-header-ad-widget-wrap { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .np-masthead > div:last-child { grid-column: 2; grid-row: 1; justify-self: end; }
  .np-logo-title { font-size: 38px; }

  /* Newsletter: single column */
  .np-newsletter {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 20px 24px;
    padding: 32px 28px;
  }

  /* Footer: 2-column grid */
  .np-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .np-footer { padding: 40px 24px 20px; }

  /* Article grid: keep 2 columns on tablet */
  .np-article-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* Featured horizontal card: stack on tablet */
  .np-featured-h-card { grid-template-columns: 1fr; }
  .np-featured-h-card img { height: 220px; width: 100%; }

  /* Topic pills */
  .np-topic-pills { padding-left: 24px; padding-right: 24px; }
}

/* ── 768px: Tablet portrait / Large mobile ── */
@media (max-width: 768px) {

  /* Global padding reset */
  .np-topbar,
  .np-masthead,
  .np-breadcrumb,
  .np-reading-bar,
  .np-footer { padding-left: 16px; padding-right: 16px; }

  .np-hero-section,
  .np-page-layout { padding-left: 16px; padding-right: 16px; }

  .np-section-divider,
  .np-topic-pills,
  .np-ad-strip-wrap,
  .np-newsletter { padding-left: 16px; padding-right: 16px; margin-left: 0; margin-right: 0; }

  /* Topbar: hide date, show only links */
  .np-topbar { padding: 6px 16px; font-size: 10px; }
  .np-topbar-left { display: none; }
  .np-topbar-right { width: 100%; justify-content: flex-end; gap: 12px; }

  /* Masthead: full stack */
  .np-masthead {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    padding: 16px;
    gap: 14px;
  }
  .np-logo { grid-column: 1; grid-row: 1; }
  .np-masthead .np-header-ad,
  .np-masthead .np-header-ad-widget-wrap { grid-column: 1; grid-row: 2; }
  .np-masthead > div:last-child { grid-column: 1; grid-row: 3; }
  .np-logo-title { font-size: 36px; }
  .np-search-form input[type="search"] { width: 100%; }
  .np-search-form { width: 100%; }

  /* Nav: horizontal scroll with hamburger-free approach */
  .np-nav-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .np-nav-inner {
    padding: 0 16px;
    min-width: max-content;
    overflow-x: visible;
  }
  .np-nav-inner .menu li a { padding: 14px 10px; font-size: 11px; letter-spacing: 0.08em; }
  .np-nav-home-icon { padding: 14px 14px !important; }
  .np-nav-submit { padding: 11px 14px !important; font-size: 10px !important; white-space: nowrap; }
  .np-nav-spacer { min-width: 8px; }

  /* Hero section */
  .np-hero-section { padding-top: 20px; gap: 16px; }
  .np-hero-feature { height: 260px; border-radius: 2px; }
  .np-hero-feature-overlay h2 { font-size: 20px; }
  .np-hero-mini-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .np-mini-card { height: 130px; }

  /* Breadcrumb */
  .np-breadcrumb { font-size: 11px; padding: 10px 16px; flex-wrap: wrap; }

  /* Article grid: 1 column on mobile */
  .np-article-grid { grid-template-columns: 1fr; gap: 16px; }
  .np-article-card-img { height: 200px; }

  /* Featured card: fully stacked */
  .np-featured-h-card { grid-template-columns: 1fr; }
  .np-featured-h-card img { height: 180px; }
  .np-featured-h-card-body { padding: 18px; }
  .np-featured-h-card-body h3 { font-size: 19px; }

  /* Section divider */
  .np-section-divider { margin: 24px 0 16px; }
  .np-section-divider .np-label { font-size: 20px; }

  /* Topic pills: scrollable row */
  .np-topic-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 6px;
    scrollbar-width: none;
  }
  .np-topic-pills::-webkit-scrollbar { display: none; }
  .np-topic-pill { white-space: nowrap; flex-shrink: 0; padding: 6px 12px; font-size: 10px; }

  /* Ad strip: stack vertically */
  .np-ad-strip { flex-direction: column; text-align: center; padding: 16px; gap: 12px; }
  .np-ad-strip-btn { width: 100%; text-align: center; }

  /* Article hero (single post) */
  .np-article-hero { max-height: 320px; }
  .np-article-hero img { max-height: 320px; }
  .np-article-hero-content { padding: 20px 16px; }
  .np-article-hero-content h1 { font-size: clamp(20px, 5vw, 28px); }
  .np-hero-meta { gap: 10px; flex-wrap: wrap; }
  .np-hero-meta-divider { display: none; }
  .np-hero-meta-item { font-size: 11px; }

  /* Reading bar */
  .np-reading-bar { padding: 8px 16px; gap: 12px; flex-wrap: wrap; }
  .np-reading-actions { margin-left: 0; width: 100%; justify-content: flex-start; gap: 6px; }
  .np-share-btn { padding: 5px 10px; font-size: 10px; }

  /* Article body */
  .np-article-body { max-width: 100%; }
  .np-article-intro { font-size: 16px; }
  .np-article-body .entry-content p { font-size: 15px; line-height: 1.8; }
  .np-article-body .entry-content h2 { font-size: 21px; }
  .np-article-body .entry-content h3 { font-size: 17px; }
  .np-article-body .entry-content blockquote { font-size: 17px; padding: 18px 20px; }

  /* Author box: stack on mobile */
  .np-author-box { flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; }
  .np-author-avatar { width: 60px; height: 60px; font-size: 22px; }

  /* Related grid: 1 column */
  .np-related-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Share row: wrap */
  .np-share-row { flex-wrap: wrap; gap: 6px; }
  .np-post-tags { gap: 6px; }

  /* Comments */
  .comment-form { padding: 16px; }

  /* Newsletter */
  .np-newsletter { padding: 28px 20px; margin: 16px 0; }
  .np-newsletter-text h3 { font-size: 24px; }

  /* Footer */
  .np-footer { padding: 32px 16px 16px; }
  .np-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .np-footer-brand .np-logo-title { font-size: 28px; }
  .np-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 10px; }

  /* Pagination */
  .np-pagination { flex-wrap: wrap; gap: 4px; }
  .np-pagination .page-numbers { width: 32px; height: 32px; font-size: 11px; }

  /* Widget item */
  .np-widget-item { padding: 16px; }
  .np-empty-sidebar-hint { padding: 12px 16px; }
}

/* ── 480px: Large phones ── */
@media (max-width: 480px) {

  .np-logo-title { font-size: 30px; }

  /* Hero: taller on small screens for impact */
  .np-hero-feature { height: 220px; }
  .np-hero-feature-overlay { padding: 16px 14px; }
  .np-hero-feature-overlay h2 { font-size: 17px; line-height: 1.3; }
  .np-hero-feature-overlay .np-cat-badge { font-size: 8px; margin-bottom: 6px; }
  .np-hero-mini-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .np-mini-card { height: 110px; }
  .np-mini-card-overlay h4 { font-size: 12px; }

  /* Article cards */
  .np-article-card-img { height: 170px; }
  .np-article-card-body h3 { font-size: 15px; }
  .np-article-card-body p { font-size: 12px; }

  /* Single post hero */
  .np-article-hero { max-height: 240px; }
  .np-article-hero img { max-height: 240px; }
  .np-article-hero-content h1 { font-size: 19px; }

  /* Reading bar: compact */
  .np-reading-bar { display: none; } /* hidden on very small — share buttons still in footer */

  /* Footer: single column */
  .np-footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .np-footer-col { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .np-footer-col:last-child { border-bottom: none; padding-bottom: 0; }

  /* Topbar */
  .np-topbar-right { gap: 10px; }

  /* Section divider */
  .np-section-divider .np-label { font-size: 18px; }
  .np-ornamental { display: none; }

  /* Newsletter */
  .np-newsletter { padding: 24px 16px; }
  .np-newsletter-text h3 { font-size: 21px; }

  /* Ad strip */
  .np-ad-strip-wrap { margin: 0 0 20px; }
  .np-ad-strip-icon { font-size: 28px; }

  /* Related posts: cards stacked */
  .np-related-card img { height: 160px; }
}

/* ── 360px: Small phones ── */
@media (max-width: 360px) {

  .np-logo-title { font-size: 26px; }
  .np-masthead { padding: 12px; }

  .np-hero-feature { height: 190px; }
  .np-hero-feature-overlay h2 { font-size: 15px; }

  .np-mini-card { height: 95px; }

  .np-article-card-img { height: 150px; }
  .np-article-card-body { padding: 12px 12px 10px; }
  .np-article-card-body h3 { font-size: 14px; }

  .np-article-hero { max-height: 200px; }
  .np-article-hero img { max-height: 200px; }
  .np-article-hero-content h1 { font-size: 16px; }
  .np-article-hero-content { padding: 14px 12px; }

  .np-topic-pill { padding: 5px 10px; font-size: 9px; }
}

/* ── HAMBURGER MOBILE NAV ──
   Shows a toggle button on screens < 768px.
   JS in main.js handles open/close.
   ──────────────────────────────────────── */
.np-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.np-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #EDE0C8;
  border-radius: 2px;
  transition: all 0.25s;
}
.np-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.np-nav-toggle.open span:nth-child(2) { opacity: 0; }
.np-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .np-nav-toggle { display: flex; }

  .np-nav-inner {
    flex-wrap: wrap;
    padding: 0;
    min-width: 0;
    overflow: hidden;
  }

  /* Home icon + toggle always visible */
  .np-nav-home-icon { order: 1; }
  .np-nav-toggle    { order: 2; }
  .np-nav-spacer    { display: none; }
  .np-nav-submit    { display: none; }

  /* Full menu: hidden by default, shown when .open */
  .np-nav-inner .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .np-nav-inner .menu.np-menu-open { display: flex; }

  .np-nav-inner .menu li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .np-nav-inner .menu li a { padding: 14px 20px; font-size: 13px; letter-spacing: 0.08em; }
  .np-nav-inner .menu li a::after { display: none; }

  /* Dropdowns: always visible on mobile */
  .np-nav-inner .menu li ul {
    display: block;
    position: static;
    border-top: none;
    border-left: 3px solid var(--rust);
    box-shadow: none;
    min-width: 0;
    padding: 0;
    margin-left: 16px;
    background: rgba(255,255,255,0.04);
  }
  .np-nav-inner .menu li ul li a { padding: 10px 16px; font-size: 12px; }
}

/* ── Sticky sidebar: only on desktop ── */
@media (min-width: 1025px) {
  .np-sidebar-inner { position: sticky; top: 72px; }
}

/* ── Print styles ── */
@media print {
  .np-topbar, .np-nav-wrapper, .np-reading-bar,
  .np-sidebar, .np-newsletter, .np-footer,
  .np-ad-strip-wrap, .np-inline-ad-wrap { display: none !important; }
  .np-page-layout { grid-template-columns: 1fr; }
  .np-article-body { max-width: 100%; }
  body { background: white; color: black; }
}

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */

/* ── Shared page layout base ── */
.np-page-layout { display: grid; gap: 48px; padding: 40px; max-width: 1280px; margin: 0 auto; align-items: start; }

/* Right sidebar (default) */
.np-layout-right-sidebar { grid-template-columns: 1fr 340px; }

/* Left sidebar */
.np-layout-left-sidebar  { grid-template-columns: 340px 1fr; }

/* Full width wrapper */
.np-fullwidth-wrap { max-width: 1280px; margin: 0 auto; padding: 40px; }
.np-page-full { max-width: 900px; margin: 0 auto; width: 100%; }

/* ── Page hero image ── */
.np-page-hero {
    position: relative;
    margin-bottom: 32px;
    overflow: hidden;
    border-radius: 3px;
    max-height: 440px;
}
.np-page-hero-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
    filter: sepia(8%) brightness(0.92);
}
/* Full-width hero overlay with title */
.np-page-hero-full { max-height: 480px; }
.np-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,10,2,0.75) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 36px 40px;
}
.np-page-title-overlay {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    margin: 0;
}

/* ── Page title bar (no featured image) ── */
.np-page-title-bar {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 32px;
}

/* ── Page article ── */
.np-page-article { background: var(--card-bg); border: 1px solid var(--border); padding: 40px; }

/* ── Page header ── */
.np-page-header {
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 28px;
    display: flex;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
}
.np-page-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.2;
    flex: 1;
}
.np-edit-link {
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    white-space: nowrap;
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 2px;
    transition: all 0.2s;
}
.np-edit-link:hover { background: var(--ink); color: var(--gold); border-color: var(--ink); text-decoration: none; }

/* ── Page content typography ── */
.np-page-content { font-family: var(--font-body); }
.np-page-content p { font-size: 16.5px; line-height: 1.85; color: var(--body-text); margin-bottom: 22px; }
.np-page-content h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.np-page-content h2::before { content: ''; display: block; width: 4px; height: 26px; background: var(--rust); flex-shrink: 0; border-radius: 2px; }
.np-page-content h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); margin: 26px 0 10px; font-style: italic; }
.np-page-content h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
.np-page-content ul, .np-page-content ol { font-size: 16px; line-height: 1.8; color: var(--body-text); margin-bottom: 22px; padding-left: 1.6em; }
.np-page-content li { margin-bottom: 6px; }
.np-page-content a { color: var(--rust); }
.np-page-content a:hover { color: var(--ink); }
.np-page-content blockquote { border-left: 5px solid var(--rust); background: linear-gradient(135deg, rgba(192,57,43,0.05), rgba(212,160,23,0.04)); padding: 22px 28px; margin: 28px 0; font-size: 19px; font-style: italic; color: var(--ink); line-height: 1.55; }
.np-page-content img { border: 3px solid var(--border); margin: 20px 0; max-width: 100%; height: auto; }
.np-page-content figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; font-style: italic; }
.np-page-content table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 14px; }
.np-page-content table th { background: var(--ink); color: var(--gold); padding: 10px 14px; text-align: left; font-weight: 700; }
.np-page-content table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.np-page-content table tr:nth-child(even) td { background: var(--warm-white); }
.np-page-content hr { border: none; border-top: 2px solid var(--border); margin: 32px 0; }
.np-page-links { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--muted); }
.np-page-links a { color: var(--rust); margin: 0 4px; }

/* ── Template indicator label (admin only) ── */
.np-tpl-right-sidebar .np-page-article::before,
.np-tpl-left-sidebar .np-page-article::before,
.np-tpl-full-width .np-page-full::before {
    display: none; /* shown only in admin bar hover via JS if needed */
}

/* ── Responsive: page templates ── */
@media (max-width: 1024px) {
    .np-layout-right-sidebar,
    .np-layout-left-sidebar {
        grid-template-columns: 1fr;
    }
    /* On tablet, sidebar always goes below content regardless of left/right */
    .np-layout-left-sidebar .np-sidebar { order: 2; }
    .np-layout-left-sidebar .np-page-main { order: 1; }

    .np-fullwidth-wrap { padding: 24px; }
    .np-page-full { max-width: 100%; }
}

@media (max-width: 768px) {
    .np-page-layout { padding: 16px; gap: 24px; }
    .np-page-article { padding: 20px 16px; }
    .np-page-content p { font-size: 15px; }
    .np-page-content h2 { font-size: 20px; }
    .np-page-content h3 { font-size: 17px; }
    .np-page-content blockquote { font-size: 16px; padding: 16px 18px; }
    .np-page-title { font-size: 24px; }
    .np-page-hero { margin-bottom: 20px; }
    .np-page-hero-img { max-height: 280px; }
    .np-page-hero-overlay { padding: 20px 16px; }
    .np-fullwidth-wrap { padding: 16px; }
}

@media (max-width: 480px) {
    .np-page-article { padding: 16px 14px; }
    .np-page-title { font-size: 20px; }
    .np-page-content p { font-size: 14.5px; line-height: 1.75; }
}


/* ============================================================
   RELATED POSTS SIDEBAR WIDGET
   ============================================================ */
.np-related-widget { border-top-color: var(--gold) !important; }

.np-related-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.np-related-sidebar-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
    align-items: flex-start;
    transition: background 0.2s;
}
.np-related-sidebar-item:last-child { border-bottom: none; padding-bottom: 0; }
.np-related-sidebar-item:hover { background: rgba(212,160,23,0.04); }

.np-rsi-thumb-link { flex-shrink: 0; display: block; overflow: hidden; border-radius: 2px; }
.np-rsi-thumb {
    width: 80px;
    height: 62px;
    object-fit: cover;
    display: block;
    border: 1.5px solid var(--border);
    transition: transform 0.4s;
}
.np-related-sidebar-item:hover .np-rsi-thumb { transform: scale(1.06); }

.np-rsi-body { flex: 1; min-width: 0; }

.np-rsi-cat {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rust);
    text-decoration: none;
    margin-bottom: 4px;
}
.np-rsi-cat:hover { color: var(--ink); text-decoration: none; }

.np-rsi-title {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 5px;
}
.np-rsi-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
}
.np-rsi-title a:hover { color: var(--rust); text-decoration: none; }

.np-rsi-excerpt {
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--muted);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-rsi-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--muted);
}
.np-rsi-dot { color: var(--border); }
.np-rsi-read { color: var(--sepia); font-weight: 600; }
.np-rsi-date { color: var(--muted); }

/* Mobile */
@media (max-width: 480px) {
    .np-rsi-thumb { width: 68px; height: 52px; }
    .np-rsi-title { font-size: 12.5px; }
    .np-rsi-excerpt { display: none; }
}