/*
   Names Numerology Pro - Blocksy News Editorial Design System
   Engineered for 100/100 Core Web Vitals, Crisp Legibility, Zero CLS, and High-Authority Search Rankings.
*/

/* Base Reset & Layout Containers */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--nn-bg-main, #f8fafc);
  color: var(--nn-text-body, #334155);
  font-family: var(--nn-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 1.05rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nn-container {
  width: 100%;
  max-width: var(--nn-max-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.nn-container-narrow {
  width: 100%;
  max-width: var(--nn-content-width, 820px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Navigation (Blocksy News Clean Nav) */
.nn-site-header {
  background: var(--nn-bg-surface, #ffffff);
  border-bottom: 1px solid var(--nn-border-color, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.nn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nn-branding-wrapper {
  display: flex;
  align-items: center;
}

.nn-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nn-custom-logo-img {
  max-height: var(--nn-logo-max-height, 50px);
  width: auto;
  display: block;
}

.nn-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nn-logo-symbol {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--nn-primary, #2563eb), #1d4ed8);
  border-radius: var(--nn-radius-md, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nn-font-display, serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nn-site-title {
  font-family: var(--nn-font-display, serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--nn-text-heading, #0f172a);
}

.nn-site-title span {
  color: var(--nn-primary, #2563eb);
}

.nn-main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nn-nav-links {
  display: flex;
  list-style: none;
  gap: 0.65rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nn-nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.nn-nav-links a,
.nn-nav-link {
  color: var(--nn-text-secondary, #475569) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--nn-radius-sm, 6px);
  transition: all 0.2s ease;
  text-decoration: none !important;
  display: inline-block;
  line-height: 1.4;
  background: transparent;
}

.nn-nav-links a:hover,
.nn-nav-links a:focus,
.nn-nav-link:hover,
.nn-nav-links li:hover > a,
.nn-nav-links li:focus-within > a {
  color: var(--nn-primary, #2563eb) !important;
  background: #eff6ff !important;
  text-decoration: none !important;
}

.nn-nav-links li.current-menu-item > a,
.nn-nav-links li.current_page_item > a,
.nn-nav-link.current-menu-item {
  color: var(--nn-primary, #2563eb) !important;
  background: #eff6ff !important;
  font-weight: 700;
  text-decoration: none !important;
}

/* Dropdown Support for WordPress Menus */
.nn-nav-links .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nn-bg-surface, #ffffff);
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-md, 10px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  min-width: 210px;
  z-index: 1001;
  list-style: none;
  margin: 0.25rem 0 0 0;
}

.nn-nav-links li:hover > .sub-menu,
.nn-nav-links li:focus-within > .sub-menu {
  display: block;
}

.nn-nav-links .sub-menu li {
  width: 100%;
}

.nn-nav-links .sub-menu a {
  display: block;
  width: 100%;
  padding: 0.55rem 1.15rem;
  border-radius: 0;
  color: var(--nn-text-secondary, #475569) !important;
}

.nn-nav-links .sub-menu a:hover,
.nn-nav-links .sub-menu a:focus {
  color: var(--nn-primary, #2563eb) !important;
  background: #eff6ff !important;
}

.nn-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--nn-primary, #2563eb);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--nn-radius-full, 9999px);
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.nn-btn-cta:hover {
  background: var(--nn-primary-hover, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* Mobile Nav Toggle & Animated Hamburger */
.nn-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-sm, 6px);
  color: var(--nn-text-heading, #0f172a);
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
}

.nn-mobile-toggle:hover,
.nn-mobile-toggle:focus-visible {
  background: #f1f5f9;
  border-color: #cbd5e1;
  outline: 2px solid var(--nn-primary, #2563eb);
  outline-offset: 2px;
}

.nn-hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  transition: transform 0.25s ease;
}

.nn-hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--nn-text-heading, #0f172a);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nn-mobile-toggle[aria-expanded="true"] .nn-hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nn-mobile-toggle[aria-expanded="true"] .nn-hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nn-mobile-toggle[aria-expanded="true"] .nn-hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   ZERO-CLS ADVERTISEMENT CONTAINERS
   Completely omitted when no ad codes are configured
========================================================= */
.nn-ad-wrapper {
  margin: 1.75rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  clear: both;
}

.nn-ad-wrapper:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nn-ad-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nn-text-muted, #64748b);
  margin-bottom: 5px;
  user-select: none;
}

.nn-ad-slot-leaderboard {
  min-height: 90px;
  max-width: 728px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nn-ad-slot-native {
  min-height: 120px;
  width: 100%;
  max-width: 760px;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nn-ad-slot-300x250 {
  min-height: 250px;
  width: 300px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nn-ad-slot-468x60 {
  min-height: 60px;
  width: 468px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nn-ad-slot-320x50 {
  min-height: 50px;
  width: 320px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nn-ad-slot-160x600 {
  min-height: 600px;
  width: 160px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nn-ad-slot-160x300 {
  min-height: 300px;
  width: 160px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nn-ad-slot-sidebar-sticky {
  min-height: 600px;
  width: 300px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nn-ad-slot-preresult {
  min-height: 100px;
  max-width: 728px;
  width: 100%;
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nn-ad-slot-incontent {
  min-height: 250px;
  max-width: 336px;
  width: 100%;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive Adaptive Ad Containers (728x90 -> 468x60 -> 320x50) */
.nn-ad-desktop-only {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.nn-ad-tablet-only {
  display: none !important;
}
.nn-ad-mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .nn-ad-desktop-only {
    display: none !important;
  }
  .nn-ad-tablet-only {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nn-ad-desktop-only,
  .nn-ad-tablet-only {
    display: none !important;
  }
  .nn-ad-mobile-only {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
}

/* Mobile Sticky Bottom Anchor Ad (320x50) */
.nn-mobile-anchor-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: var(--nn-bg-surface, #ffffff);
  border-top: 1px solid var(--nn-border-color, #e2e8f0);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0 6px 0;
  text-align: center;
  animation: slideUpAnchor 0.3s ease;
}

@keyframes slideUpAnchor {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.nn-anchor-close-btn {
  position: absolute;
  right: 12px;
  top: -14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.nn-anchor-close-btn:hover {
  background: var(--nn-primary, #2563eb);
  transform: scale(1.1);
}

@media (min-width: 769px) {
  .nn-mobile-anchor-ad {
    display: none !important;
  }
}

/* =========================================================
   RECOMMENDED VISUAL ASSET & IMAGE PROMPT COMPONENT
   (Used across pages to provide rich AI prompts instead of broken images)
========================================================= */
.nn-image-prompt-card {
  background:var(--nn-bg-alt, #f8fafc);
  border: 1px dashed #cbd5e1;
  border-left: 4px solid var(--nn-primary, #2563eb);
  border-radius: var(--nn-radius-md, 10px);
  padding: 1.5rem 1.75rem;
  margin: 2.25rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nn-prompt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eff6ff;
  color: var(--nn-primary, #2563eb);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--nn-radius-full, 9999px);
  margin-bottom: 0.75rem;
}

.nn-prompt-title {
  font-family: var(--nn-font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nn-text-heading, #0f172a);
  margin-bottom: 0.5rem;
}

.nn-prompt-box {
  background: var(--nn-bg-surface, #ffffff);
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-sm, 6px);
  padding: 0.85rem 1.15rem;
  font-family: var(--nn-font-mono, monospace);
  font-size: 0.88rem;
  color: #1e293b;
  margin: 0.65rem 0;
  word-break: break-word;
  line-height: 1.55;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nn-prompt-meta {
  font-size: 0.82rem;
  color: var(--nn-text-muted, #64748b);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.65rem;
}

.nn-prompt-meta strong {
  color: var(--nn-text-secondary, #475569);
}

/* =========================================================
   INTERACTIVE CALCULATOR CARD ENGINE
========================================================= */
.nn-calc-card {
  background: var(--nn-bg-surface, #ffffff);
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-lg, 16px);
  padding: 2.25rem;
  box-shadow: var(--nn-shadow-md);
  margin-bottom: 2.5rem;
  position: relative;
}

.nn-calc-header {
  text-align: center;
  margin-bottom: 2rem;
}

.nn-calc-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--nn-primary, #2563eb);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: var(--nn-radius-full, 9999px);
  margin-bottom: 0.75rem;
}

.nn-calc-title {
  font-family: var(--nn-font-display, serif);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--nn-text-heading, #0f172a);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.nn-calc-subtitle {
  color: var(--nn-text-secondary, #475569);
  font-size: 1.05rem;
}

.nn-form-group {
  margin-bottom: 1.5rem;
}

.nn-form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--nn-text-heading, #0f172a);
  margin-bottom: 0.5rem;
}

.nn-input-text {
  width: 100%;
  background: var(--nn-bg-surface, #ffffff);
  border: 1.5px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-sm, 6px);
  color: var(--nn-text-heading, #0f172a);
  padding: 0.9rem 1.15rem;
  font-size: 1.05rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nn-input-text:focus {
  outline: none;
  border-color: var(--nn-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.nn-system-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nn-system-option input[type="radio"] {
  display: none;
}

.nn-system-label {
  display: block;
  background:var(--nn-bg-alt, #f8fafc);
  border: 1.5px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-md, 10px);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--nn-text-heading, #0f172a);
}

.nn-system-option input[type="radio"]:checked + .nn-system-label {
  border-color: var(--nn-primary, #2563eb);
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.nn-btn-calculate {
  width: 100%;
  background: var(--nn-primary, #2563eb);
  color: #ffffff;
  font-family: var(--nn-font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem;
  border: none;
  border-radius: var(--nn-radius-md, 10px);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  margin-top: 0.5rem;
}

.nn-btn-calculate:hover {
  background: var(--nn-primary-hover, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Results Display Box */
.nn-calc-results {
  display: none;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1.5px dashed var(--nn-border-color, #e2e8f0);
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nn-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.nn-result-metric {
  background:var(--nn-bg-alt, #f8fafc);
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-md, 10px);
  padding: 1.5rem;
  text-align: center;
}

.nn-metric-num {
  font-family: var(--nn-font-display, serif);
  font-size: 3rem;
  font-weight: 800;
  color: var(--nn-primary, #2563eb);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.nn-metric-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nn-text-secondary, #475569);
}

.nn-result-commentary {
  background: var(--nn-bg-surface, #ffffff);
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-md, 10px);
  padding: 1.75rem;
  box-shadow: var(--nn-shadow-sm);
}

.nn-result-commentary h4 {
  font-family: var(--nn-font-display, serif);
  font-size: 1.35rem;
  color: var(--nn-text-heading, #0f172a);
  margin-bottom: 0.75rem;
}

/* =========================================================
   BLOG POST CARDS & PROMO BANNERS (Blocksy News Editorial)
========================================================= */
.nn-promo-banner {
  background: var(--nn-bg-surface, #ffffff);
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-left: 4px solid var(--nn-primary, #2563eb);
  border-radius: var(--nn-radius-md, 10px);
  padding: 1.5rem 2rem;
  box-shadow: var(--nn-shadow-sm);
  transition: all 0.2s ease;
}

.nn-promo-banner h3 {
  color: var(--nn-text-heading, #0f172a) !important;
  font-family: var(--nn-font-display, serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.nn-promo-banner p {
  color: var(--nn-text-secondary, #475569) !important;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.nn-post-card {
  background: var(--nn-bg-surface, #ffffff) !important;
  border: 1px solid var(--nn-border-color, #e2e8f0) !important;
  border-radius: var(--nn-radius-md, 10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--nn-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nn-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--nn-shadow-md);
  border-color: var(--nn-border-accent, rgba(37, 99, 235, 0.35)) !important;
}

.nn-post-card h2,
.nn-post-card h3 {
  font-family: var(--nn-font-display, serif);
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.nn-post-card h2 a,
.nn-post-card h3 a {
  color: var(--nn-text-heading, #0f172a) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.nn-post-card:hover h2 a,
.nn-post-card:hover h3 a,
.nn-post-card h2 a:hover,
.nn-post-card h3 a:hover {
  color: var(--nn-primary, #2563eb) !important;
}

.nn-post-card p {
  color: var(--nn-text-secondary, #475569) !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================================
   ARTICLE CONTENT & GUTENBERG BLOCKS (Blocksy News Editorial)
========================================================= */
/* =========================================================
   PAGE HEADERS & BREADCRUMBS (Standardized Blocksy Editorial)
========================================================= */
.nn-site-main {
  min-height: calc(100vh - 220px);
  padding-top: 2.25rem;
  padding-bottom: 4.5rem;
}

body.home .nn-site-main {
  padding-top: 0;
  padding-bottom: 0;
}

.nn-page-header,
.nn-article-header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--nn-border-color, #e2e8f0);
  text-align: left;
}

.nn-page-header.is-centered,
.nn-article-header.is-centered {
  text-align: center;
}

.nn-breadcrumbs {
  font-size: 0.88rem;
  color: var(--nn-text-muted, #64748b);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  padding: 0.25rem 0;
}

.nn-page-header.is-centered .nn-breadcrumb-list,
.nn-article-header.is-centered .nn-breadcrumb-list {
  justify-content: center;
}

.nn-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nn-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: var(--nn-text-muted, #64748b);
}

.nn-breadcrumb-link,
.nn-breadcrumbs a {
  color: var(--nn-primary, #2563eb) !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.nn-breadcrumb-link:hover,
.nn-breadcrumbs a:hover {
  color: var(--nn-primary-hover, #1d4ed8) !important;
  text-decoration: underline !important;
}

.nn-breadcrumb-sep,
.nn-breadcrumbs span {
  color: #94a3b8;
  font-size: 1.05rem;
  margin: 0 0.35rem;
  user-select: none;
}

.nn-breadcrumb-current,
.nn-breadcrumb-item.current,
.nn-breadcrumbs span:last-child {
  color: var(--nn-text-heading, #0f172a) !important;
  font-weight: 600;
}

.nn-page-title,
.nn-article-title {
  font-family: var(--nn-font-display, serif);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--nn-text-heading, #0f172a);
  line-height: 1.25;
  margin: 0.5rem 0 0 0;
  letter-spacing: -0.015em;
}

.nn-article-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--nn-text-body, #334155);
}

.nn-article-content p {
  margin-bottom: 1.5rem;
}

.nn-article-content h2, .wp-block-heading:is(h2) {
  font-family: var(--nn-font-display, serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--nn-text-heading, #0f172a);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--nn-border-color, #e2e8f0);
}

.nn-article-content h3, .wp-block-heading:is(h3) {
  font-family: var(--nn-font-display, serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--nn-text-heading, #0f172a);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.nn-article-content h4, .wp-block-heading:is(h4) {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--nn-text-heading, #0f172a);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.nn-article-content ul, .nn-article-content ol, .wp-block-list {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.nn-article-content li {
  margin-bottom: 0.5rem;
}

/* WordPress Block Table (Crisp White News Table) */
.wp-block-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--nn-bg-surface, #ffffff);
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-md, 10px);
  overflow: hidden;
  box-shadow: var(--nn-shadow-sm);
}

.wp-block-table th, .wp-block-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--nn-border-color, #e2e8f0);
  text-align: left;
}

.wp-block-table th {
  background:var(--nn-bg-alt, #f8fafc);
  color: var(--nn-text-heading, #0f172a);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--nn-border-color, #e2e8f0);
}

.wp-block-table tr:hover td {
  background:var(--nn-bg-alt, #f8fafc);
}

/* WordPress Block Columns (Cards Layout) */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2.25rem 0;
}

.wp-block-column {
  flex: 1 1 280px;
  background: var(--nn-bg-surface, #ffffff);
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-md, 10px);
  padding: 1.75rem;
  box-shadow: var(--nn-shadow-sm);
}

.wp-block-column h3 {
  margin-top: 0;
  color: var(--nn-text-heading, #0f172a);
}

/* Forms (Contact Form) */
input[type="text"], input[type="email"], input[type="number"], input[type="tel"], textarea, select {
  width: 100%;
  background: var(--nn-bg-surface, #ffffff);
  border: 1.5px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-sm, 6px);
  color: var(--nn-text-heading, #0f172a);
  padding: 0.85rem 1.15rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

input[type="text"]:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="tel"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--nn-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* E-E-A-T Author Box */
.nn-author-box {
  background: var(--nn-bg-surface, #ffffff);
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-md, 10px);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 3rem 0;
  box-shadow: var(--nn-shadow-sm);
}

.nn-author-avatar-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nn-primary, #2563eb), #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--nn-font-display, serif);
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.nn-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--nn-primary, #2563eb);
  flex-shrink: 0;
}

.nn-author-info h4 {
  font-size: 1.25rem;
  color: var(--nn-text-heading, #0f172a);
  margin-bottom: 0.25rem;
}

.nn-author-role {
  font-size: 0.88rem;
  color: var(--nn-primary, #2563eb);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.nn-author-bio {
  font-size: 0.98rem;
  color: var(--nn-text-body, #334155);
  line-height: 1.6;
}

/* Footer Section (Blocksy Style Grounded Deep Slate Navy) */
.nn-site-footer {
  background: #0f172a;
  color: #e2e8f0;
  border-top: 1px solid #1e293b;
  padding: 4rem 0 2rem 0;
  margin-top: 5rem;
}

.nn-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.nn-footer-brand .nn-site-title {
  color: #ffffff;
}

.nn-footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-top: 0.85rem;
  line-height: 1.65;
}

.nn-footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.nn-footer-links {
  list-style: none;
  padding: 0;
}

.nn-footer-links li {
  margin-bottom: 0.65rem;
}

.nn-footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nn-footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.nn-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--nn-radius-sm, 6px);
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.nn-footer-bottom {
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================================
   SIDEBAR & WIDGET DESIGN SYSTEM (Blocksy News Editorial)
========================================================= */
.nn-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Base Widget Card */
.nn-sidebar-widget,
.nn-single-sidebar .widget,
.nn-single-sidebar .wp-block-group,
.nn-single-sidebar .wp-block-search,
.nn-single-sidebar > div:not(.nn-sidebar-sticky-ad) {
  background: var(--nn-bg-surface, #ffffff);
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-md, 8px);
  padding: 1.15rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  margin-bottom: 0;
}

.nn-sidebar-widget:hover,
.nn-single-sidebar .widget:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* Widget Section Headers */
.nn-widget-title,
.nn-single-sidebar .widget-title,
.nn-single-sidebar .widgettitle,
.nn-single-sidebar h2.wp-block-heading,
.nn-single-sidebar h3.wp-block-heading,
.nn-single-sidebar .wp-block-group h2,
.nn-single-sidebar .wp-block-group h3 {
  font-family: var(--nn-font-display, serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nn-text-heading, #0f172a);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.nn-widget-title::after,
.nn-single-sidebar .widget-title::after,
.nn-single-sidebar h2.wp-block-heading::after,
.nn-single-sidebar h3.wp-block-heading::after,
.nn-single-sidebar .wp-block-group h2::after,
.nn-single-sidebar .wp-block-group h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--nn-primary, #2563eb);
  border-radius: 2px;
}

/* 1. SEARCH WIDGET & BLOCKS (Live Search & Blocksy Search) */
.wp-block-search,
.widget_search,
.ct-search-box,
.blocksy-search {
  margin: 0;
}

.wp-block-search__label,
.widget_search label.screen-reader-text,
.ct-search-box .ct-label {
  font-family: var(--nn-font-display, serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nn-text-heading, #0f172a);
  margin-bottom: 0.65rem;
  display: block;
}

.wp-block-search__inside-wrapper,
.widget_search form,
.ct-search-form {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  position: relative;
}

.wp-block-search__input,
.widget_search input[type="search"],
.widget_search input[type="text"],
.ct-search-form input[type="search"],
.ct-search-input {
  flex-grow: 1;
  background:var(--nn-bg-alt, #f8fafc);
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-sm, 6px);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--nn-text-heading, #0f172a);
  transition: all 0.2s ease;
  outline: none;
  min-width: 0;
  width: 100%;
}

.wp-block-search__input:focus,
.widget_search input[type="search"]:focus,
.ct-search-form input[type="search"]:focus,
.ct-search-input:focus {
  background: var(--nn-bg-surface, #ffffff);
  border-color: var(--nn-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wp-block-search__button,
.widget_search button,
.widget_search input[type="submit"],
.ct-search-form button,
.ct-search-submit {
  background: var(--nn-primary, #2563eb);
  color: #ffffff !important;
  border: none;
  border-radius: var(--nn-radius-sm, 6px);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.wp-block-search__button:hover,
.widget_search button:hover,
.ct-search-form button:hover,
.ct-search-submit:hover {
  background: var(--nn-primary-hover, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* 2. CATEGORIES WIDGET */
.wp-block-categories,
.wp-block-categories-list,
.widget_categories ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wp-block-categories li,
.wp-block-categories-list li,
.widget_categories li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.wp-block-categories li:last-child,
.wp-block-categories-list li:last-child,
.widget_categories li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wp-block-categories a,
.wp-block-categories-list a,
.widget_categories a {
  color: var(--nn-text-body, #334155);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.wp-block-categories a::before,
.wp-block-categories-list a::before,
.widget_categories a::before {
  content: '›';
  color: var(--nn-primary, #2563eb);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.wp-block-categories a:hover,
.wp-block-categories-list a:hover,
.widget_categories a:hover {
  color: var(--nn-primary, #2563eb);
  transform: translateX(3px);
}

.wp-block-categories span,
.wp-block-categories-list span,
.widget_categories span {
  background: #f1f5f9;
  color: var(--nn-text-secondary, #475569);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.15rem 0.6rem;
  line-height: 1.4;
}

/* 3. POSTS / LATEST POSTS WIDGET */
.wp-block-latest-posts,
.wp-block-latest-posts__list,
.widget_recent_entries ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wp-block-latest-posts li,
.widget_recent_entries li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wp-block-latest-posts li:last-child,
.widget_recent_entries li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wp-block-latest-posts a,
.widget_recent_entries a {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--nn-text-heading, #0f172a);
  text-decoration: none;
  transition: color 0.15s ease;
}

.wp-block-latest-posts a:hover,
.widget_recent_entries a:hover {
  color: var(--nn-primary, #2563eb);
}

.wp-block-latest-posts__post-date,
.widget_recent_entries .post-date {
  font-size: 0.8rem;
  color: var(--nn-text-muted, #64748b);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Custom Rich Sidebar Posts List */
.nn-sidebar-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.nn-sidebar-post-item {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  padding: 0.45rem;
  border-radius: var(--nn-radius-sm, 6px);
  background:var(--nn-bg-alt, #f8fafc);
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.nn-sidebar-post-item:hover {
  background: var(--nn-bg-surface, #ffffff);
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.nn-sidebar-post-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.nn-sidebar-post-placeholder {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.nn-sidebar-post-info {
  flex-grow: 1;
  min-width: 0;
}

.nn-sidebar-post-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--nn-primary, #2563eb);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 2px;
}

.nn-sidebar-post-title {
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--nn-text-heading, #0f172a);
  margin: 0;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.nn-sidebar-post-item:hover .nn-sidebar-post-title {
  color: var(--nn-primary, #2563eb);
}

.nn-sidebar-post-date {
  font-size: 0.74rem;
  color: var(--nn-text-muted, #64748b);
  margin-top: 2px;
  display: block;
}

/* Live Search Container & Instant Results Dropdown */
.nn-live-search-container {
  position: relative;
  margin-top: 0.75rem;
}

.nn-live-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--nn-bg-surface, #ffffff);
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-md, 8px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
  z-index: 9999;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.4rem 0;
}

.nn-live-search-item {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  text-decoration: none !important;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.nn-live-search-item:last-child {
  border-bottom: none;
}

.nn-live-search-item:hover {
  background:var(--nn-bg-alt, #f8fafc);
}

.nn-live-search-item-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #eff6ff;
  color: var(--nn-primary, #2563eb);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.nn-live-search-item-title {
  font-size: 0.85rem;
  color: var(--nn-text-heading, #0f172a);
  font-weight: 500;
  line-height: 1.3;
  flex-grow: 1;
}

.nn-live-search-no-results {
  padding: 0.85rem;
  font-size: 0.85rem;
  color: var(--nn-text-muted, #64748b);
  text-align: center;
}

/* 4. AUTHOR SPOTLIGHT CARD (E-E-A-T) */
.nn-sidebar-author-card {
  text-align: center;
  padding: 0.25rem 0;
}

.nn-sidebar-author-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nn-primary, #2563eb), #1d4ed8);
  color: #ffffff;
  font-family: var(--nn-font-display, serif);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem auto;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.nn-sidebar-author-name {
  font-family: var(--nn-font-display, serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--nn-text-heading, #0f172a);
  margin: 0 0 0.25rem 0;
}

.nn-sidebar-author-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nn-primary, #2563eb);
  display: block;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nn-sidebar-author-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--nn-text-secondary, #475569);
  margin: 0 0 1rem 0;
}

.nn-sidebar-author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nn-primary, #2563eb);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.nn-sidebar-author-link:hover {
  gap: 0.55rem;
  color: var(--nn-primary-hover, #1d4ed8);
  text-decoration: underline;
}

/* 5. CALCULATORS QUICK LAUNCH BOX */
.nn-sidebar-calc-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--nn-radius-md, 10px);
  padding: 1.35rem;
  text-align: center;
}

.nn-sidebar-calc-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.nn-sidebar-calc-title {
  font-family: var(--nn-font-display, serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--nn-text-heading, #0f172a);
  margin: 0 0 0.35rem 0;
}

.nn-sidebar-calc-desc {
  font-size: 0.88rem;
  color: var(--nn-text-secondary, #475569);
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

/* Sticky Half-Page Sidebar Ad */
.nn-sidebar-sticky-ad {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

/* =========================================================
   FAQ SECTION & CARDS (Blocksy News Editorial)
========================================================= */
.nn-faq-section {
  margin: 3.5rem auto 2.5rem auto;
  max-width: 860px;
}

.nn-faq-heading {
  text-align: center;
  margin-bottom: 0.75rem;
  font-family: var(--nn-font-display, serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--nn-text-heading, #0f172a);
  font-weight: 700;
}

.nn-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.nn-faq-item,
.wp-block-group.nn-faq-item {
  background: var(--nn-bg-surface, #ffffff) !important;
  border: 1px solid var(--nn-border-color, #e2e8f0) !important;
  border-radius: var(--nn-radius-md, 10px) !important;
  padding: 1.75rem 2rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  margin-bottom: 0 !important;
}

.nn-faq-item:hover,
.wp-block-group.nn-faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
}

.nn-faq-question {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.nn-faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--nn-primary, #2563eb);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid rgba(37, 99, 235, 0.15);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.nn-faq-question h3,
.nn-faq-question h4,
.nn-faq-item h3,
.nn-faq-item h4 {
  font-family: var(--nn-font-display, serif) !important;
  font-size: 1.18rem !important;
  line-height: 1.45 !important;
  color: var(--nn-text-heading, #0f172a) !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding-right: 2rem !important;
}

.nn-faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--nn-text-muted, #64748b);
  transition: transform 0.3s ease, color 0.3s ease;
  font-weight: 400;
  font-family: var(--nn-font-mono, monospace);
}

.nn-faq-item.is-open .nn-faq-question::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
  color: var(--nn-primary, #2563eb);
}

.nn-faq-answer {
  padding-left: 3.25rem;
  padding-top: 1rem;
  display: none;
  animation: faqFadeIn 0.35s ease;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.nn-faq-answer p,
.nn-faq-item p {
  color: var(--nn-text-body, #334155) !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}

/* Single Post Layout Grid */
.nn-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

/* Base Mobile Safety & Fluidity */
html, body {
  overflow-x: clip; /* 'hidden' turned body into a scroll container and broke position:sticky */
  max-width: 100%;
}

/* Prevent iOS Safari input auto-zoom */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
select,
textarea,
.nn-calc-input {
  font-size: 16px !important;
}

/* =========================================================
   RESPONSIVE UTILITY GRIDS & CONTAINERS
========================================================= */
.nn-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin: 2rem 0;
}

.nn-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}

.nn-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.nn-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 0.75rem;
}

/* Base Matrix Tables */
.nn-letter-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border: 1px solid var(--nn-border-color, #e2e8f0);
  border-radius: var(--nn-radius-md, 10px);
  background: var(--nn-bg-surface, #ffffff);
}

.nn-letter-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.nn-letter-table th,
.nn-letter-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--nn-border-color, #e2e8f0);
}

.nn-letter-table th {
  background:var(--nn-bg-alt, #f8fafc);
  color: var(--nn-text-heading, #0f172a);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nn-letter-table tr:last-child td {
  border-bottom: none;
}

/* Size-Aware Container Query Setup */
.nn-calc-card,
.nn-post-card,
.nn-author-box {
  container-type: inline-size;
}

/* Smooth Slide-Down Animation for Mobile Menu */
@keyframes nnSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE DESIGN (Tiered Multi-Screen Breakpoints)
========================================================= */

/* --- TIER 1: Tablets & Small Laptops (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .nn-header-inner {
    height: 64px;
    position: relative;
  }

  .nn-mobile-toggle {
    display: flex !important;
  }

  .nn-main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nn-bg-surface, #ffffff);
    border-top: 1px solid var(--nn-border-color, #e2e8f0);
    border-bottom: 2px solid var(--nn-border-color, #e2e8f0);
    box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.15);
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    z-index: 999;
    border-radius: 0 0 12px 12px;
  }

  .nn-main-nav.is-open {
    display: flex !important;
    animation: nnSlideDown 0.25s ease-out forwards;
  }

  .nn-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nn-nav-links a,
  .nn-nav-link {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 1rem;
  }

  .nn-nav-links .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    border-left: 2px solid var(--nn-border-color, #e2e8f0);
    margin: 0.25rem 0 0.5rem 0.5rem;
    background:var(--nn-bg-alt, #f8fafc);
    border-radius: 4px;
    min-width: 100%;
  }

  .nn-btn-cta {
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 0.5rem;
  }

  /* Single Post Layout with Sidebar */
  .nn-single-grid {
    grid-template-columns: 1fr !important;
    gap: 2.25rem;
  }

  .nn-single-sidebar {
    margin-top: 1.5rem;
  }

  .nn-sticky-sidebar {
    position: static !important;
  }

  /* Footer 2x2 Grid */
  .nn-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* --- TIER 2: Phablets & Landscape Phones (max-width: 768px) --- */
@media (max-width: 768px) {
  .nn-site-main {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
  }

  body.home .nn-site-main {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Reusable Grid Collapses */
  .nn-grid-2col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0;
  }

  .nn-grid-3col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Gutenberg layout on mobile */
  .wp-block-columns {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  .wp-block-spacer {
    height: auto !important;
    max-height: 1.5rem !important;
  }

  /* Tables horizontal scroll */
  .wp-block-table,
  .nn-letter-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  /* FAQ mobile layout */
  .nn-faq-item,
  .wp-block-group.nn-faq-item {
    padding: 1.25rem 1.25rem !important;
  }

  .nn-faq-answer {
    padding-left: 0 !important;
    margin-top: 0.65rem;
  }

  .nn-faq-question {
    gap: 0.75rem;
  }

  .nn-faq-question h3,
  .nn-faq-item h3 {
    font-size: 1.05rem !important;
  }

  /* Calculators on mobile */
  .nn-calc-card {
    padding: 1.35rem !important;
  }

  .nn-system-switcher {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .nn-btn-calculate {
    min-height: 48px;
    width: 100%;
    font-size: 1.05rem;
  }

  /* Promo Banner */
  .nn-promo-banner {
    padding: 1.25rem !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nn-promo-banner .nn-btn-cta {
    width: 100%;
    justify-content: center;
  }

  /* Author Box */
  .nn-author-box {
    padding: 1.5rem;
    gap: 1.25rem;
  }
}

/* --- TIER 3: Standard Mobile Phones (max-width: 640px) --- */
@media (max-width: 640px) {
  .nn-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nn-author-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  .nn-result-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .nn-result-metric {
    padding: 1.25rem;
  }

  .nn-metric-num {
    font-size: 2.5rem;
  }

  .nn-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- TIER 4: Compact Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  .nn-container,
  .nn-container-narrow {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .nn-logo-link img,
  .nn-custom-logo-img {
    max-height: 36px !important;
  }

  .nn-site-title {
    font-size: 1.15rem;
  }

  .nn-logo-symbol {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .nn-hero-section {
    padding: 2.25rem 0 1.5rem 0 !important;
  }

  .nn-hero-section h1 {
    font-size: clamp(1.75rem, 7vw, 2.3rem) !important;
  }

  .nn-calc-badge {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
  }

  .nn-page-title,
  .nn-article-title {
    font-size: clamp(1.55rem, 6.5vw, 2.1rem) !important;
  }

  .nn-article-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .nn-page-header,
  .nn-article-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .nn-breadcrumbs {
    font-size: 0.8rem;
    margin-bottom: 0.65rem;
  }

  .nn-breadcrumb-sep,
  .nn-breadcrumbs span {
    margin: 0 0.2rem;
  }

  .nn-breadcrumb-current,
  .nn-breadcrumb-item.current {
    word-break: break-word;
  }

  .nn-calc-card {
    padding: 1.15rem !important;
    border-radius: 8px;
  }

  .nn-input-text {
    padding: 0.65rem 0.85rem;
  }

  .nn-result-commentary {
    padding: 1.25rem;
  }

  .nn-letter-table th,
  .nn-letter-table td {
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
  }

  /* Ads safe containment */
  .nn-ad-wrapper {
    margin: 1.25rem auto;
    max-width: 100%;
    overflow: hidden;
  }

  .nn-ad-wrapper iframe,
  .nn-ad-wrapper ins,
  .nn-ad-wrapper img {
    max-width: 100% !important;
  }
}

/* --- TIER 5: Ultra-Compact & Foldables (max-width: 360px) --- */
@media (max-width: 360px) {
  .nn-date-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .nn-container,
  .nn-container-narrow {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .nn-site-title {
    font-size: 1.05rem;
  }
}
