/*
Theme Name: NaturePress Pro
Theme URI: https://naturepresspro.org
Author: Premium Outdoor Themes
Author URI: https://naturepresspro.org/about
Description: Professional theme for Nature, Forest, Wildlife, Mountains and Adventure Blogging. Fully Core Web Vitals optimized, accessible, and translation ready.
Version: 1.1.0
License: GNU GPLv2 or later
Text Domain: naturepress
Tags: custom-colors, custom-menu, custom-logo, featured-images, translation-ready, grid-layout, wilderness
*/

:root {
  --np-primary: #2E7D32;
  --np-secondary: #4CAF50;
  --np-accent: #81C784;
  --np-bg: #FAFAFA;
  --np-text: #1B4332;
  --np-card-bg: #FFFFFF;
  
  --np-container-width: 1160px;
  --np-border-radius: 8px;
  --np-shadow: 0 20px 25px -5px rgba(0,0,0,0.03), 0 10px 10px -5px rgba(0,0,0,0.03), 0 0 0 1px rgba(46, 125, 50, 0.04);
  
  --np-font-base: "Bricolage Grotesque", "Inter", sans-serif;
  --np-font-heading: "Bricolage Grotesque", "Poppins", sans-serif;
  --np-font-size-base: 20px;
  --np-line-height: 1.9;
}

/* Core layouts enwrapped in emerald forest design */
body {
  font-family: var(--np-font-base);
  font-size: var(--np-font-size-base);
  line-height: var(--np-line-height);
  color: var(--np-text);
  background-color: var(--np-bg);
  margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Premium Typography Scale built specifically with Bricolage Grotesque */
h1, .h1 {
  font-family: var(--np-font-heading);
  font-size: 4.5rem; /* 72px */
  line-height: 1.1;
  font-weight: 800;
  color: #10301c;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
  letter-spacing: -0.03em;
}

h2, .h2 {
  font-family: var(--np-font-heading);
  font-size: 3.5rem; /* 56px */
  line-height: 1.15;
  font-weight: 800;
  color: #10301c;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
  letter-spacing: -0.02em;
}

h3, .h3 {
  font-family: var(--np-font-heading);
  font-size: 2.5rem; /* 40px */
  line-height: 1.25;
  font-weight: 700;
  color: #10301c;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
  letter-spacing: -0.015em;
}

h4, .h4 {
  font-family: var(--np-font-heading);
  font-size: 2rem; /* 32px */
  line-height: 1.3;
  font-weight: 700;
  color: #10301c;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
  letter-spacing: -0.01em;
}

h5, .h5 {
  font-family: var(--np-font-heading);
  font-size: 1.5rem; /* 24px */
  line-height: 1.35;
  font-weight: 600;
  color: #10301c;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

h6, .h6 {
  font-family: var(--np-font-heading);
  font-size: 1.25rem; /* 20px */
  line-height: 1.4;
  font-weight: 600;
  color: #10301c;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

@media (max-width: 768px) {
  h1, .h1 { font-size: 3rem; }
  h2, .h2 { font-size: 2.25rem; }
  h3, .h3 { font-size: 1.75rem; }
  h4, .h4 { font-size: 1.5rem; }
  h5, .h5 { font-size: 1.25rem; }
  h6, .h6 { font-size: 1.1rem; }
}

.site-container {
  max-width: var(--np-container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Elegant standard cards and layouts */
.np-card {
  background-color: var(--np-card-bg);
  border-radius: var(--np-border-radius);
  box-shadow: var(--np-shadow);
  border: 1px solid rgba(46, 125, 50, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.np-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -8px rgba(27,67,50,0.12);
  border-color: rgba(46, 125, 50, 0.18);
}

.np-btn {
  background-color: var(--np-primary);
  color: #ffffff !important;
  font-family: var(--np-font-base);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--np-border-radius);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(46, 125, 50, 0.15);
}
.np-btn:hover {
  background-color: #1b5e20;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -1px rgba(46, 125, 50, 0.25);
}
.np-btn-secondary {
  background-color: transparent;
  color: var(--np-primary) !important;
  border: 2px solid var(--np-primary);
  box-shadow: none;
}
.np-btn-secondary:hover {
  background-color: rgba(46, 125, 50, 0.05);
}

/* Custom TOC and article style sheets */
.np-toc {
  background-color: #f4f7f5;
  border-left: 4px border-solid var(--np-primary);
}

/* Sticky layout rules */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.92);
}

/* Responsive sidebars wrappers */
.site-content-wrapper {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  margin-bottom: 3.5rem;
}
.main-content {
  flex: 1;
  min-width: 0;
}
.site-sidebar {
  width: 320px;
  flex-shrink: 0;
}

@media(max-width: 991px) {
  .site-content-wrapper {
    flex-direction: column;
  }
  .site-sidebar {
    width: 100%;
  }
}

/* Reading Progress Bar indicator */
#np-reading-bar {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  background: var(--np-primary);
  width: 0%;
  z-index: 999;
}

/* Custom NaturePress Pagination Styles */
.trail-pagination {
  border-top: 1px solid rgba(46, 125, 50, 0.1);
  padding: 1.5rem 0;
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.trail-pagination .page-numbers-wrapper {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
}
.trail-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  color: var(--np-text);
  background-color: rgba(46, 125, 50, 0.05);
  border: 1px solid rgba(27, 67, 50, 0.08);
}
.trail-pagination a.page-numbers:hover {
  background-color: var(--np-primary);
  color: #FFFFFF;
  border-color: var(--np-primary);
}
.trail-pagination .current {
  background-color: var(--np-primary);
  color: #FFFFFF;
  border: 1px solid var(--np-primary);
}
.trail-pagination .dots {
  color: #81C784;
  background: transparent;
  border: none;
}

/* ==========================================================================
   PREMIUM READABILITY TYPOGRAPHY SYSTEM (Medium, NatGeo & Outside Style)
   ========================================================================== */

/* Remove any CSS causing collapsed paragraph spacing and enforce deep forest reading aesthetics */
.entry-content,
.naturepress-article .entry-content,
.editor-styles-wrapper {
  max-width: 750px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-family: "Bricolage Grotesque", "Inter", sans-serif !important;
  font-size: 20px !important;
  line-height: 1.9 !important;
  font-weight: 400 !important;
  color: #1a2a1f !important; /* Elegant off-black/green charcoal for optimal contrast */
  -webkit-font-smoothing: antialiased;
}

/* Force paragraph spacing with high specificity to override any preflights/resets */
.entry-content p,
.wp-block-paragraph,
.entry-content .wp-block-paragraph,
.editor-styles-wrapper p,
.editor-styles-wrapper .wp-block-paragraph {
  font-family: "Bricolage Grotesque", "Inter", sans-serif !important;
  font-size: 20px !important;
  line-height: 1.9 !important;
  font-weight: 400 !important;
  margin-top: 0 !important;
  margin-bottom: 1.75rem !important; /* Enforces 1.75rem minimum */
}

/* Dynamic typography headings scale in clamp sizes */
.entry-content h1,
.entry-content .wp-block-heading h1,
.editor-styles-wrapper h1,
.editor-styles-wrapper .wp-block-heading h1 {
  font-family: "Bricolage Grotesque", "Poppins", sans-serif !important;
  font-size: clamp(42px, 5vw, 72px) !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  color: #10301c !important;
  margin-top: 4.5rem !important;
  margin-bottom: 2rem !important;
  letter-spacing: -0.03em !important;
}

.entry-content h2,
.entry-content .wp-block-heading h2,
.editor-styles-wrapper h2,
.editor-styles-wrapper .wp-block-heading h2 {
  font-family: "Bricolage Grotesque", "Poppins", sans-serif !important;
  font-size: clamp(32px, 4vw, 48px) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  color: #10301c !important;
  margin-top: 4rem !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: -0.02em !important;
}

.entry-content h3,
.entry-content .wp-block-heading h3,
.editor-styles-wrapper h3,
.editor-styles-wrapper .wp-block-heading h3 {
  font-family: "Bricolage Grotesque", "Poppins", sans-serif !important;
  font-size: clamp(26px, 3vw, 36px) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #10301c !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  letter-spacing: -0.015em !important;
}

.entry-content h4,
.entry-content .wp-block-heading h4,
.editor-styles-wrapper h4,
.editor-styles-wrapper .wp-block-heading h4 {
  font-family: "Bricolage Grotesque", "Poppins", sans-serif !important;
  font-size: clamp(22px, 2.5vw, 28px) !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #10301c !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
}

/* Bulleted Lists & Ordered Lists spacing rules */
.entry-content ul,
.entry-content ol,
.wp-block-list,
.entry-content .wp-block-list,
.editor-styles-wrapper ul,
.editor-styles-wrapper ol,
.editor-styles-wrapper .wp-block-list {
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
  padding-left: 2.25rem !important;
}

.entry-content ul,
.wp-block-list:not(ol),
.editor-styles-wrapper ul {
  list-style-type: disc !important;
}

.entry-content ol,
ol.wp-block-list,
.editor-styles-wrapper ol {
  list-style-type: decimal !important;
}

.entry-content li,
.entry-content .wp-block-list li,
.editor-styles-wrapper li,
.editor-styles-wrapper .wp-block-list li {
  margin-bottom: 0.75rem !important;
  line-height: 1.8 !important;
  font-family: "Bricolage Grotesque", "Inter", sans-serif !important;
}

/* Beautiful Wilderness Blockquotes styling */
.entry-content blockquote,
.wp-block-quote,
.entry-content .wp-block-quote,
.editor-styles-wrapper blockquote,
.editor-styles-wrapper .wp-block-quote {
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left: 6px solid #2E7D32 !important; /* Thick vibrant Green left border */
  background-color: rgba(46, 125, 50, 0.04) !important; /* Delightful Nature soft green background tint */
  padding: 1.75rem 2.25rem !important; /* Extra padding */
  margin: 2.5rem 0 !important;
  border-radius: 0 16px 16px 0 !important;
  font-style: italic !important;
  font-size: 1.25rem !important; /* Extra readable modern font length */
  line-height: 1.8 !important;
  color: #1B4332 !important;
  position: relative !important;
}

/* Premium Image frames and figure wrappers */
.entry-content img,
.entry-content figure,
.wp-block-image,
.entry-content .wp-block-image,
.editor-styles-wrapper img,
.editor-styles-wrapper figure,
.editor-styles-wrapper .wp-block-image {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.entry-content img,
.editor-styles-wrapper img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 16px !important;
}

/* Interactive Gutenberg details tables */
.entry-content table,
.wp-block-table,
.entry-content .wp-block-table,
.editor-styles-wrapper table,
.editor-styles-wrapper .wp-block-table {
  width: 100% !important;
  margin-top: 2.25rem !important;
  margin-bottom: 2.25rem !important;
  border-collapse: collapse !important;
  font-size: 0.95rem !important;
}
.entry-content th,
.entry-content td,
.editor-styles-wrapper th,
.editor-styles-wrapper td {
  padding: 0.85rem 1.1rem !important;
  border-bottom: 1px solid rgba(46, 125, 50, 0.08) !important;
}
.entry-content th,
.editor-styles-wrapper th {
  background-color: rgba(46, 125, 50, 0.03) !important;
  font-weight: 700 !important;
  color: #10301c !important;
}

/* High Fidelity viewport compression adjustments */
@media (max-width: 768px) {
  .entry-content,
  .naturepress-article .entry-content,
  .editor-styles-wrapper {
    font-size: 18px !important; /* Mobile body size: 18px */
    line-height: 1.8 !important; /* Mobile line-height: 1.8 */
  }
  .entry-content p,
  .wp-block-paragraph,
  .entry-content .wp-block-paragraph,
  .editor-styles-wrapper p,
  .editor-styles-wrapper .wp-block-paragraph {
    font-size: 18px !important;
    line-height: 1.8 !important;
    margin-bottom: 1.5rem !important;
  }
  .entry-content blockquote,
  .wp-block-quote,
  .entry-content .wp-block-quote,
  .editor-styles-wrapper blockquote,
  .editor-styles-wrapper .wp-block-quote {
    padding: 1.25rem 1.5rem !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
  }
}

.single-post .entry-content,
.page .entry-content {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    line-height: 1.9;
}

.single-post .entry-content p,
.page .entry-content p,
.wp-block-paragraph {
    margin-bottom: 1.75rem !important;
    line-height: 1.9 !important;
}

.single-post .entry-content h2,
.page .entry-content h2 {
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

.single-post .entry-content h3,
.page .entry-content h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}