/* ============================================================
   NATURAL PURSUITS MAGAZINE — BLOG INDEX
   Part 1 of 3: Additional CSS (v6 — final)
   
   WHERE THIS GOES:
   WordPress Dashboard → Appearance → Customize
   → Additional CSS → replace ALL previous versions with this → Publish
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500&display=swap');

:root {
  --np-black:   #0a0a0a;
  --np-surface: #111111;
  --np-border:  #1e1e1e;
  --np-white:   #f5f5f0;
  --np-muted:   #aaaaaa;
  --np-dim:     #777777;
  --np-gap:     28px;
}

/* ============================================================
   FULL BLACK PAGE MODE
   Applied automatically to any page containing #np-index-root.
   Header, footer, body background all go black.
   Navigation links go white.
   Does not affect any other page on the site.
   ============================================================ */

body.np-full-black {
  background: var(--np-black) !important;
}

/* Header background */
body.np-full-black header,
body.np-full-black .site-header,
body.np-full-black #masthead,
body.np-full-black .wp-block-template-part[class*="header"] {
  background: var(--np-black) !important;
  border-bottom: 1px solid var(--np-border) !important;
}

/* Nav links */
body.np-full-black header a,
body.np-full-black .site-header a,
body.np-full-black #masthead a,
body.np-full-black nav a {
  color: var(--np-white) !important;
}

body.np-full-black header a:hover,
body.np-full-black .site-header a:hover,
body.np-full-black #masthead a:hover,
body.np-full-black nav a:hover {
  color: var(--np-muted) !important;
  text-decoration: none !important;
}

/* Dropdown menus — override white link color with dark text */
body.np-full-black .sub-menu,
body.np-full-black .dropdown-menu,
body.np-full-black nav ul ul,
body.np-full-black header ul ul,
body.np-full-black nav .wp-block-navigation__submenu-container,
body.np-full-black header .wp-block-navigation__submenu-container {
  background: #ffffff !important;
}

body.np-full-black .sub-menu a,
body.np-full-black .sub-menu a:link,
body.np-full-black .sub-menu a:visited,
body.np-full-black .dropdown-menu a,
body.np-full-black nav ul ul a,
body.np-full-black header ul ul a,
body.np-full-black .wp-block-navigation__submenu-container a,
body.np-full-black .wp-block-navigation__submenu-container a:link,
body.np-full-black .wp-block-navigation__submenu-container a:visited {
  color: #111111 !important;
}

body.np-full-black .sub-menu a:hover,
body.np-full-black .dropdown-menu a:hover,
body.np-full-black nav ul ul a:hover,
body.np-full-black header ul ul a:hover,
body.np-full-black .wp-block-navigation__submenu-container a:hover {
  color: #000000 !important;
  text-decoration: none !important;
}

/* Footer */
body.np-full-black footer,
body.np-full-black .site-footer,
body.np-full-black #colophon,
body.np-full-black .wp-block-template-part[class*="footer"] {
  background: var(--np-black) !important;
  border-top: 1px solid var(--np-border) !important;
  color: var(--np-dim) !important;
}

body.np-full-black footer a,
body.np-full-black .site-footer a,
body.np-full-black #colophon a {
  color: var(--np-muted) !important;
}

body.np-full-black footer a:hover,
body.np-full-black .site-footer a:hover,
body.np-full-black #colophon a:hover {
  color: var(--np-white) !important;
  text-decoration: none !important;
}

/* Page content area background */
body.np-full-black main,
body.np-full-black #primary,
body.np-full-black #content,
body.np-full-black .wp-site-blocks,
body.np-full-black .entry-content,
body.np-full-black .site-content {
  background: var(--np-black) !important;
}

/* Page title — hide it, the grid is the page */
body.np-full-black .entry-title,
body.np-full-black h1.page-title,
body.np-full-black .wp-block-post-title {
  display: none !important;
}

/* ============================================================
   BLOG INDEX COMPONENT
   ============================================================ */

#np-index-root {
  background: var(--np-black);
  color: var(--np-white);
  font-family: 'DM Sans', sans-serif;
  min-height: 60vh;
  padding: 48px 0 80px;
  box-sizing: border-box;
  width: 100%;
}

/* ── Fix link underline — theme inverts this ── */
#np-index-root a {
  text-decoration: none !important;
}

#np-index-root .np-card:hover .np-card-title {
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-color: rgba(245, 245, 240, 0.4) !important;
}

/* ── Filter bar ── */
.np-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding-bottom: 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--np-border);
}

.np-filters-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #999999;
  margin-right: 24px;
  padding-bottom: 10px;
  white-space: nowrap;
}

.np-filter-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #bbbbbb;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 16px 10px 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  line-height: 1;
}

.np-filter-btn:hover {
  color: var(--np-white);
}

.np-filter-btn.np-active {
  color: var(--np-white);
  border-bottom-color: var(--np-white);
}

.np-filter-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ── Grid ── */
.np-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--np-gap);
}

/* ── Card ── */
.np-card {
  display: block;
  text-decoration: none !important;
  color: inherit;
  background: var(--np-surface);
  overflow: hidden;
  cursor: pointer;
}

.np-card-img-wrap {
  overflow: hidden;
  width: 100%;
}

.np-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--np-border);
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.np-card:hover .np-card-img {
  transform: scale(1.03);
  opacity: 0.85;
}

.np-card--portrait .np-card-img {
  aspect-ratio: 3 / 4;
}

.np-card--square .np-card-img {
  aspect-ratio: 1 / 1;
}

.np-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--np-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.np-card--portrait .np-card-img-placeholder {
  aspect-ratio: 3 / 4;
}

.np-card-img-placeholder::after {
  content: 'NP';
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: #222;
  letter-spacing: 0.06em;
}

.np-card-body {
  padding: 28px 24px 32px;
}

.np-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 12px;
}

.np-card-tag {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--np-dim);
  text-decoration: none !important;
}

.np-card-tag + .np-card-tag::before {
  content: '·';
  margin: 0 8px;
  color: var(--np-border);
}

.np-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: var(--np-white);
  margin: 0 0 16px;
  text-transform: uppercase;
  text-decoration: none !important;
}

.np-card-excerpt {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #bbbbbb;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Hero card ── */
.np-card--wide {
  grid-column: 1 / -1;
}

.np-card--wide .np-card-img {
  aspect-ratio: 21 / 9;
  max-height: 480px;
}

.np-card--wide .np-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  padding: 28px 32px 36px;
  align-items: start;
}

.np-card--wide .np-card-tags {
  grid-column: 1 / -1;
}

.np-card--wide .np-card-title {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.92;
  margin-bottom: 0;
}

.np-card--wide .np-card-excerpt {
  -webkit-line-clamp: 5;
  align-self: end;
  padding-top: 6px;
  font-size: 15px;
}

/* ── Pagination ── */
.np-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--np-border);
}

.np-pagination-info {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bbbbbb;
}

.np-pagination-btn {
  background: transparent;
  border: 1px solid #444444;
  color: #cccccc;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.np-pagination-btn:hover {
  border-color: var(--np-muted);
  color: var(--np-white);
  text-decoration: none !important;
}

.np-pagination-btn:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

/* ── Loading ── */
.np-loading {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--np-dim);
}

/* ── Empty / error ── */
.np-empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  color: var(--np-muted);
  font-size: 14px;
}

.np-empty-hed {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: var(--np-border);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 12px;
}

/* ── Responsive ── */
@media (max-width: 800px) {
  #np-index-root {
    padding: 32px 0 60px;
  }

  .np-card--wide .np-card-body {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .np-card--wide .np-card-title {
    margin-bottom: 10px;
  }

  .np-card--wide .np-card-excerpt {
    padding-top: 0;
  }
}

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

  .np-card--wide .np-card-img {
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .np-card--wide .np-card-body {
    padding: 18px 20px 24px;
  }

  .np-card-body {
    padding: 18px 20px 24px;
  }
}
/* =============================================
   DICKS IN FLICKS — PAGE HEADER v4
   ============================================= */

.dif-hero {
  width: 100%;
  background-color: #0a0a0a;
  margin-bottom: 0;
  line-height: 0;
}

.dif-hero__img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
}

.dif-header {
  background: #0a0a0a;
  padding: 32px 5vw 40px;
  border-bottom: 1px solid #1e1e1e;
}

.dif-header__series-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f5f5f0;
  margin: 0 0 10px;
  display: block;
}

.dif-header__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.92;
  color: #f5f5f0;
  margin: 0 0 10px;
}

.dif-header__deck {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(13px, 1.2vw, 16px);
  font-style: italic;
  font-weight: 300;
  color: #f5f5f0;
  margin: 0 0 36px;
  padding-top: 2px;
  border-top: 1px solid #f5f5f0;
  display: inline-block;
}

.dif-header__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  align-items: start;
}

.dif-header__copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: #f5f5f0;
  margin: 0;
}

.dif-header__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.dif-header__cta-line {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 400;
  line-height: 1.0;
  color: #f5f5f0;
  margin: 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dif-header__cta-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5f5f0 !important;
  text-decoration: none !important;
  border: 1px solid #f5f5f0;
  padding: 12px 24px;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-block;
}

.dif-header__cta-link:hover {
  background: #f5f5f0;
  color: #0a0a0a !important;
  text-decoration: none !important;
}

@media (max-width: 700px) {
  .dif-header__body {
    grid-template-columns: 1fr;
    gap: 32px 0;
  }
}
/* ============================================
   HEADER - Black Background (Edge to Edge)
   ============================================ */
.wp-block-template-part[class*="header"],
header.wp-block-template-part {
  background-color: #000000 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* ============================================
   HEADER - Navigation Text (White)
   ============================================ */
header.wp-block-template-part a,
.wp-block-template-part[class*="header"] a,
.wp-block-template-part[class*="header"] .wp-block-navigation a {
  color: #ffffff !important;
}

/* ============================================
   HEADER - Dropdown Arrows (White)
   ============================================ */
.wp-block-template-part[class*="header"] .wp-block-navigation__submenu-icon,
header.wp-block-template-part .wp-block-navigation__submenu-icon,
.wp-block-template-part[class*="header"] .wp-block-navigation__submenu-icon svg,
header.wp-block-template-part .wp-block-navigation__submenu-icon svg path {
  stroke: #ffffff !important;
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* ============================================
   HEADER - Dropdown Menu Text (Black on White)
   ============================================ */
.wp-block-navigation .wp-block-navigation__submenu-container a {
  color: #000000 !important;
}

/* ============================================
   HEADER - Cart Icon (White)
   ============================================ */
.wc-block-mini-cart__button,
.wc-block-mini-cart__button svg,
.wc-block-mini-cart__button svg path,
.wc-block-mini-cart__button svg circle,
.wc-block-mini-cart__button span {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}
/* =============================================
   NATURAL PURSUITS ONLINE — POST TYPOGRAPHY
   ============================================= */

/* Hide post title on single posts only */
body.single .wp-block-post-title {
  display: none;
}

/* Paragraph */
body.single .entry-content p {
  font-family: 'Barlow', sans-serif;
  font-size: 19px;
  line-height: 1.4;
  color: #050505;
  font-weight: 300;
  margin-bottom: 0.75em !important;
  margin-top: 0 !important;
}

/* H1 — Rarely used, display only */
body.single .entry-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 80px;
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: #050505;
  text-transform: uppercase;
  margin-bottom: 0.25em;
}

/* H2 — Main section title */
body.single .entry-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: #050505;
  text-transform: uppercase;
  margin-bottom: 0.25em;
}

/* H3 — Subsection title */
body.single .entry-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #050505;
  text-transform: uppercase;
  margin-bottom: 0.25em;
}

/* H4 — Small section label */
body.single .entry-content h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 0.5em;
}

/* H5 — Smaller label */
body.single .entry-content h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 0.5em;
}

/* H6 — Smallest label */
body.single .entry-content h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 0.5em;
}

/* Blockquote / Pull quote */
body.single .entry-content blockquote {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #050505;
  border-left: 3px solid #050505;
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* Lists */
body.single .entry-content ul,
body.single .entry-content ol {
  font-family: 'Barlow', sans-serif;
  font-size: 19px;
  line-height: 1.4;
  color: #050505;
  font-weight: 300;
  margin-bottom: 0.75em !important;
  margin-top: 0 !important;
}