/* ═══════════════════════════════════════════════════════
   NEWSPAPER STYLE — nalogi-blog.ru
   Газетный стиль: многоколоночная сетка, серифные заголовки,
   линейки-разделители, нумерация, классическая типографика
   ═══════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
body.newspaper-theme {
  background: #faf8f4 !important;
  color: #1a1a18 !important;
  font-family: 'Inter', sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

body.newspaper-theme * {
  border-radius: 0 !important;
}

/* ── MASTHEAD BAR ── */
.np-masthead-bar {
  background: #1a1a18;
  color: #faf8f4;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}
.np-masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.np-edition { color: #cc2200; font-weight: 600; }
.np-date-line { color: rgba(250,248,244,.5); }
.np-articles { color: rgba(250,248,244,.35); }

/* ── HEADER ── */
body.newspaper-theme .site-header {
  background: #faf8f4 !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
body.newspaper-theme .site-header .site-branding .site-title,
body.newspaper-theme .site-header .site-branding a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: 42px !important;
  letter-spacing: -1px !important;
  color: #1a1a18 !important;
  text-transform: uppercase !important;
  text-align: center !important;
}
body.newspaper-theme .site-header .site-branding .site-description {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: #999 !important;
  text-align: center !important;
}

/* Newspaper header dividers */
body.newspaper-theme .site-header::before {
  content: '';
  display: block;
  height: 4px;
  background: #1a1a18;
  margin: 0 40px;
}
body.newspaper-theme .site-header::after {
  content: '';
  display: block;
  height: 1px;
  background: #1a1a18;
  margin: 0 40px;
  margin-top: 2px;
}
body.newspaper-theme .site-header .site-header-inner-wrap {
  padding-top: 24px !important;
  padding-bottom: 20px !important;
}

/* Navigation - newspaper style */
body.newspaper-theme .header-navigation nav {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin: 0 40px;
  padding: 0 !important;
}
body.newspaper-theme .header-navigation .menu > li > a,
body.newspaper-theme .header-navigation nav a {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #1a1a18 !important;
  padding: 12px 20px !important;
}
body.newspaper-theme .header-navigation nav a:hover {
  color: #cc2200 !important;
}
body.newspaper-theme .header-navigation .menu > li + li {
  border-left: 1px solid #ddd;
}

/* ── CONTENT AREA ── */
body.newspaper-theme .site-container .site-inner-wrap,
body.newspaper-theme .content-wrap {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
}

/* ── ARCHIVE / BLOG GRID — NEWSPAPER LAYOUT ── */
body.newspaper-theme .loop-entry.type-post,
body.newspaper-theme .entry.type-post {
  border-bottom: 1px solid #ddd !important;
  padding-bottom: 24px !important;
  margin-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.newspaper-theme .entry-list-item {
  background: transparent !important;
  box-shadow: none !important;
}
body.newspaper-theme .loop-entry .entry-content-wrap,
body.newspaper-theme .entry-list-item .entry-content-wrap {
  background: transparent !important;
  box-shadow: none !important;
  padding: 16px 0 !important;
}
body.newspaper-theme .content-area {
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
}
/* Hide author name */
body.newspaper-theme .entry-meta .entry-author,
body.newspaper-theme .entry-meta .posted-by {
  display: none !important;
}
/* Hide "Без рубрики" category */
body.newspaper-theme .entry-meta .cat-links a[href*="bez-rubriki"],
body.newspaper-theme .entry-taxonomies a[href*="bez-rubriki"] {
  display: none !important;
}

/* First post - hero style */
body.newspaper-theme .loop-entry.type-post:first-child {
  border-bottom: 3px double #1a1a18 !important;
  padding-bottom: 48px !important;
  margin-bottom: 48px !important;
}
body.newspaper-theme .loop-entry.type-post:first-child .entry-title {
  font-size: 48px !important;
  line-height: 1.1 !important;
}
body.newspaper-theme .loop-entry.type-post:first-child .entry-summary,
body.newspaper-theme .loop-entry.type-post:first-child .entry-content {
  font-size: 18px !important;
}

/* Post titles */
body.newspaper-theme .entry-title,
body.newspaper-theme .entry-title a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  color: #1a1a18 !important;
  letter-spacing: -0.5px !important;
}
body.newspaper-theme .entry-title a:hover {
  color: #cc2200 !important;
  text-decoration: none !important;
}

/* Meta info - newspaper dateline style */
body.newspaper-theme .entry-meta,
body.newspaper-theme .entry-meta a {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #999 !important;
}
body.newspaper-theme .entry-meta .posted-on::before {
  content: '— ';
}

/* Excerpt / summary */
body.newspaper-theme .entry-summary,
body.newspaper-theme .entry-summary p {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: #444 !important;
}

/* Category labels - section tags */
body.newspaper-theme .entry-taxonomies a,
body.newspaper-theme .entry-meta .cat-links a {
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #cc2200 !important;
  border: 1px solid #cc2200 !important;
  padding: 3px 10px !important;
  background: transparent !important;
}

/* Featured images - newspaper crop */
body.newspaper-theme .post-thumbnail img,
body.newspaper-theme .entry-thumbnail img {
  filter: grayscale(20%) contrast(1.05) !important;
  transition: filter 0.3s ease !important;
}
body.newspaper-theme .post-thumbnail img:hover,
body.newspaper-theme .entry-thumbnail img:hover {
  filter: grayscale(0%) contrast(1.05) !important;
}

/* ── SINGLE POST ── */
body.newspaper-theme.single-post .entry-header {
  text-align: center !important;
  max-width: 800px !important;
  margin: 0 auto 48px !important;
  padding: 48px 0 !important;
  border-bottom: 3px double #1a1a18 !important;
}
body.newspaper-theme.single-post .entry-title {
  font-size: clamp(32px, 5vw, 56px) !important;
  line-height: 1.1 !important;
  margin-bottom: 20px !important;
}
body.newspaper-theme.single-post .entry-meta {
  margin-bottom: 0 !important;
}

/* Article body - newspaper column feel */
body.newspaper-theme.single-post .entry-content {
  max-width: 760px !important;
  margin: 0 auto !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 17px !important;
  line-height: 1.85 !important;
  color: #2a2a28 !important;
}
body.newspaper-theme.single-post .entry-content p {
  margin-bottom: 1.5em !important;
  text-align: justify !important;
  hyphens: auto !important;
}
body.newspaper-theme.single-post .entry-content p:first-of-type::first-letter {
  font-family: 'Inter', sans-serif;
  font-size: 4.5em;
  float: left;
  line-height: 0.8;
  margin-right: 12px;
  margin-top: 6px;
  color: #cc2200;
  font-weight: 900;
}

/* H2 in article - section headers */
body.newspaper-theme.single-post .entry-content h2 {
  font-family: 'Inter', sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1a1a18 !important;
  margin: 56px 0 20px !important;
  padding-top: 32px !important;
  border-top: 1px solid #ddd !important;
  letter-spacing: -0.3px !important;
}
body.newspaper-theme.single-post .entry-content h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  font-style: italic !important;
  color: #1a1a18 !important;
  margin: 40px 0 16px !important;
}

/* Lists */
body.newspaper-theme.single-post .entry-content ul,
body.newspaper-theme.single-post .entry-content ol {
  padding-left: 24px !important;
  margin: 20px 0 28px !important;
}
body.newspaper-theme.single-post .entry-content li {
  margin-bottom: 8px !important;
  line-height: 1.75 !important;
}

/* Blockquote - pull quote style */
body.newspaper-theme.single-post .entry-content blockquote {
  font-family: 'Inter', sans-serif !important;
  font-size: 24px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #1a1a18 !important;
  border: none !important;
  border-top: 3px solid #1a1a18 !important;
  border-bottom: 3px solid #1a1a18 !important;
  padding: 32px 0 !important;
  margin: 48px 0 !important;
  text-align: center !important;
  background: transparent !important;
}
body.newspaper-theme.single-post .entry-content blockquote::before {
  content: '"';
  display: block;
  font-size: 60px;
  line-height: 1;
  color: #cc2200;
  margin-bottom: 8px;
}

/* Links in article */
body.newspaper-theme.single-post .entry-content a {
  color: #cc2200 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-color: rgba(204,34,0,.3) !important;
}
body.newspaper-theme.single-post .entry-content a:hover {
  text-decoration-color: #cc2200 !important;
}

/* Strong */
body.newspaper-theme .entry-content strong {
  font-weight: 700 !important;
  color: #1a1a18 !important;
}

/* ── CTA BOX inside articles ── */
body.newspaper-theme .entry-content div[style*="border-left:4px solid #cc2200"] {
  border: 2px solid #1a1a18 !important;
  border-left: none !important;
  padding: 28px 32px !important;
  margin: 48px 0 !important;
  background: #f0ede6 !important;
  position: relative;
}
body.newspaper-theme .entry-content div[style*="border-left:4px solid #cc2200"]::before {
  content: 'РЕКЛАМА';
  position: absolute;
  top: -10px;
  left: 20px;
  background: #faf8f4;
  padding: 0 8px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: #999;
}

/* ── SIDEBAR ── */
body.newspaper-theme .widget-area .widget {
  border-bottom: 1px solid #ddd !important;
  padding-bottom: 24px !important;
  margin-bottom: 24px !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.newspaper-theme .widget-area .widget-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #1a1a18 !important;
  border-bottom: 2px solid #1a1a18 !important;
  padding-bottom: 8px !important;
  margin-bottom: 16px !important;
}

/* ── FOOTER ── */
body.newspaper-theme .site-footer {
  background: #1a1a18 !important;
  color: #faf8f4 !important;
  border-top: 4px solid #cc2200 !important;
}
body.newspaper-theme .site-footer a {
  color: rgba(250,248,244,.6) !important;
}
body.newspaper-theme .site-footer a:hover {
  color: #cc2200 !important;
}

/* ── PAGINATION ── */
body.newspaper-theme .pagination a,
body.newspaper-theme .nav-links a {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: #1a1a18 !important;
  border: 1px solid #ddd !important;
  padding: 10px 20px !important;
  background: transparent !important;
}
body.newspaper-theme .pagination a:hover,
body.newspaper-theme .nav-links a:hover {
  background: #1a1a18 !important;
  color: #faf8f4 !important;
}

/* ── READ MORE LINK ── */
body.newspaper-theme a.entry-more-link,
body.newspaper-theme .more-link {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #cc2200 !important;
  text-decoration: none !important;
  border-bottom: 1px solid #cc2200 !important;
  padding-bottom: 2px !important;
}

/* ── ARCHIVE HEADER ── */
body.newspaper-theme .entry-hero-container-inner,
body.newspaper-theme .archive-hero-section {
  text-align: center !important;
  border-bottom: 3px double #1a1a18 !important;
  padding-bottom: 32px !important;
  margin-bottom: 48px !important;
}
body.newspaper-theme .archive-hero-section .entry-hero-container-inner .page-title,
body.newspaper-theme .entry-hero-container-inner h1 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: 42px !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
}

/* ── CATEGORY FILTER BAR ── */
.np-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 2px solid #1a1a18;
  border-bottom: 1px solid #ddd;
  padding: 0;
  margin: 0 auto 0;
  max-width: var(--global-content-width, 1290px);
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #faf8f4;
}
.np-cat-btn {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #666;
  background: transparent;
  border: none;
  border-right: 1px solid #ddd;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.np-cat-btn:last-child {
  border-right: none;
}
.np-cat-btn:hover {
  color: #1a1a18;
  background: rgba(0,0,0,.03);
}
.np-cat-btn.active {
  color: #cc2200;
  font-weight: 600;
  background: rgba(204,34,0,.04);
}
.np-cat-count {
  font-size: 9px;
  font-weight: 400;
  color: #bbb;
  margin-left: 4px;
}
.np-cat-btn.active .np-cat-count {
  color: rgba(204,34,0,.5);
}

/* ── HERO HEADING ── */
.np-hero {
  text-align: center;
  padding: 32px 40px 28px;
  border-bottom: 3px double #1a1a18;
  margin: 0 auto;
  max-width: var(--global-content-width, 1290px);
  box-sizing: border-box;
  overflow: hidden;
}
.np-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #1a1a18;
  margin-bottom: 16px;
  line-height: 1.1;
}
.np-hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #777;
  max-width: 640px;
  margin: 0 auto;
}

/* ── SEO BLOCK ── */
.np-seo-block {
  border-top: 3px double #1a1a18;
  background: #f3f0e8;
  padding: 56px 0;
  margin-top: 48px;
}
.np-seo-inner {
  max-width: var(--global-content-width, 1290px);
  margin: 0 auto;
  padding: 0 40px;
}
.np-seo-block h2 {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a18;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ddd;
}
.np-seo-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.np-seo-block h3 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a18;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 28px 0 12px;
}
.np-seo-block p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: #555;
  margin-bottom: 16px;
}
.np-seo-block strong {
  color: #1a1a18;
  font-weight: 600;
}
.np-seo-block ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.np-seo-block ul li {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  padding: 8px 0;
  border-bottom: 1px solid #e5e2da;
}
.np-seo-block ul li:first-child {
  border-top: 1px solid #e5e2da;
}
.np-seo-block ul li strong {
  color: #cc2200;
}
@media (max-width: 768px) {
  .np-seo-cols { grid-template-columns: 1fr; gap: 0; }
  .np-seo-block { padding: 36px 0; }
  .np-seo-inner { padding: 0 16px; }
}

/* ── SEARCH ── */
body.newspaper-theme .search-form input[type="search"] {
  border: 1px solid #ddd !important;
  font-family: 'Inter', sans-serif !important;
  background: transparent !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .np-category-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .np-category-filter::-webkit-scrollbar { display: none; }
  .np-cat-btn { padding: 12px 16px; font-size: 10px; }
  .np-masthead-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 0 16px;
  }
  body.newspaper-theme .site-header .site-branding .site-title,
  body.newspaper-theme .site-header .site-branding a {
    font-size: 28px !important;
  }
  body.newspaper-theme .loop-entry.type-post:first-child .entry-summary,
  body.newspaper-theme .loop-entry.type-post:first-child .entry-content {
    columns: 1 !important;
  }
  body.newspaper-theme .loop-entry.type-post:first-child .entry-title {
    font-size: 32px !important;
  }
  body.newspaper-theme.single-post .entry-content p:first-of-type::first-letter {
    font-size: 3.5em;
  }
  body.newspaper-theme.single-post .entry-content blockquote {
    font-size: 20px !important;
  }
  body.newspaper-theme .content-wrap {
    padding: 0 16px !important;
  }
  body.newspaper-theme .header-navigation nav {
    margin: 0 16px;
  }
  body.newspaper-theme.single-post .entry-header {
    padding: 32px 0 !important;
  }
}

/* ── PRINT STYLES ── */
@media print {
  body.newspaper-theme {
    background: white !important;
  }
  .np-masthead-bar,
  .site-footer,
  .header-navigation {
    display: none !important;
  }
}
