/*
Theme Name: NewMonthMessage Modern
Theme URI: https://newmonthmessage.com
Author: NewMonthMessage Team
Author URI: https://newmonthmessage.com
Description: Mobile-first, accessible, performance-optimized WordPress theme with JSON-LD SEO enhancements
Version: 2.7.4
License: GPL v2 or later
Text Domain: newmonthmessage
*/

/* ==========================================================================
   Table of Contents
   ========================================================================== */
/*
   1. CSS Variables & Custom Properties
   2. Reset & Base Styles
   3. Typography
   4. Mobile-First Layout
   5. Components
   6. Accessibility
   7. Performance Optimizations
   8. Responsive Breakpoints
   9. Print Styles
*/

/* ==========================================================================
   1. CSS Variables & Custom Properties
   ========================================================================== */
:root {
  /* Colors — authoritative deep-navy system, WCAG AA compliant */
  --color-ink: #14161c;            /* near-black, headings */
  --color-primary: #1b2440;        /* deep navy — brand authority */
  --color-primary-dark: #10182e;
  --color-secondary: #2f5fe0;      /* confident royal-blue accent */
  --color-secondary-dark: #234bc4;
  --color-accent: #b4763a;         /* restrained warm gold, sparing use */
  --color-accent-soft: #c98f52;    /* lighter gold for dark grounds */
  --color-success: #1f9d57;
  --color-warning: #d08700;
  --color-error: #c0392b;

  /* v2.6.0 editorial ground: warm paper page, white cards on top */
  --color-text: #1f2530;
  --color-text-light: #5a6472;
  --color-bg: #faf7f2;
  --color-bg-alt: #f3eee6;
  --color-surface: #ffffff;
  --color-border: #e5ddd0;
  --color-border-strong: #d3c9b8;

  /* Typography - Fluid Responsive */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Helvetica Neue', sans-serif;
  --font-heading: 'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Georgia', 'Times New Roman', serif;
  --font-mono: 'SF Mono', 'Monaco', 'Courier New', monospace;

  /* Fluid font sizes using clamp() */
  --fs-base: clamp(1rem, 2vw, 1.125rem);
  --fs-small: clamp(0.875rem, 1.5vw, 0.9375rem);
  --fs-h1: clamp(2rem, 5vw, 3rem);
  --fs-h2: clamp(1.6rem, 4vw, 2.25rem);
  --fs-h3: clamp(1.4rem, 3vw, 1.85rem);
  --fs-h4: clamp(1.2rem, 2.5vw, 1.45rem);

  /* Spacing */
  --space-xs: clamp(0.25rem, 1vw, 0.5rem);
  --space-sm: clamp(0.5rem, 2vw, 0.75rem);
  --space-md: clamp(1rem, 3vw, 1.5rem);
  --space-lg: clamp(1.5rem, 4vw, 2rem);
  --space-xl: clamp(2rem, 5vw, 3rem);
  --space-xxl: clamp(3rem, 7vw, 4rem);

  /* Layout */
  --container-max: 1160px;
  --container-padding: var(--space-md);

  /* Radii — app-like rounded surfaces */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows — soft, layered, low-noise */
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.06), 0 1px 3px rgba(16,24,40,0.05);
  --shadow-md: 0 4px 14px rgba(16,24,40,0.08);
  --shadow-lg: 0 16px 40px rgba(16,24,40,0.14);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 220ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 350ms ease;

  /* Touch targets */
  --touch-target-min: 44px;

  /* App chrome heights */
  --header-h: 60px;
  --tabbar-h: 62px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-ink: #f0f2f5;
    --color-primary: #a9c0ff;
    --color-primary-dark: #8aa8ff;
    --color-secondary: #7aa2ff;
    --color-secondary-dark: #5f8bff;
    --color-accent: #d29a5c;
    --color-accent-soft: #b4763a;
    --color-text: #e3e6eb;
    --color-text-light: #9aa3b2;
    --color-bg: #12141b;
    --color-bg-alt: #20242f;
    --color-surface: #1a1d27;
    --color-border: #2b303d;
    --color-border-strong: #3a4050;
  }
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin-top: 0;
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--color-primary);
  text-decoration: none;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ==========================================================================
   4. Mobile-First Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Mobile-first grid system */
.grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

/* ==========================================================================
   5. Components
   ========================================================================== */

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-sm);
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Mobile navigation */
.mobile-nav-toggle {
  display: block;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  padding: var(--space-sm);
  background: transparent;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
  background: var(--color-primary);
  color: white;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: all var(--transition-base);
}

/* Hamburger animation */
.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: var(--fs-base);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn:hover,
.btn:focus {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

/* Header Styles — app-like slim sticky bar with blur */
.site-header {
  background: var(--color-bg);
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  min-height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: var(--container-max);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding .site-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-branding .site-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
}

.site-branding .site-logo-placeholder {
  font-size: 1.4rem;
  line-height: 1;
}

/* Slim, authoritative uppercase wordmark */
.site-branding .site-title {
  font-family: var(--font-primary);
  font-size: clamp(0.9rem, 2.6vw, 1.02rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.site-branding .site-brand-link:hover .site-title {
  color: var(--color-secondary);
}

@media (max-width: 380px) {
  .site-branding .site-title { letter-spacing: 0.08em; font-size: 0.82rem; }
}

.main-navigation {
  display: none;
}

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.main-navigation a:hover {
  background: var(--color-bg-alt);
  color: var(--color-ink);
}

.main-navigation .current-menu-item > a,
.main-navigation .aria-current-page > a {
  background: color-mix(in srgb, var(--color-secondary) 12%, transparent);
  color: var(--color-secondary);
}

/* Submenu */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: 100;
  padding: var(--space-xs) 0;
}

.main-navigation li:hover > .sub-menu {
  display: block;
}

.main-navigation .sub-menu a {
  padding: var(--space-sm) var(--space-md);
  border-radius: 0;
}

/* Hamburger removed on mobile — primary nav lives in the bottom tab bar.
   (navigation.js targeted a non-existent selector, so it never opened.) */
.menu-toggle {
  display: none;
}

.menu-toggle .hamburger {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  left: 0;
}

.menu-toggle .hamburger::before { top: -6px; }
.menu-toggle .hamburger::after { bottom: -6px; }

/* Live Search */
.search-section {
  margin-bottom: var(--space-lg);
}

.search-section h2 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-md);
}

.live-search-wrapper {
  position: relative;
  max-width: 560px;
}

.live-search-input {
  width: 100%;
  padding: 0.95rem 1.1rem 0.95rem 3rem;
  font-size: 16px;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  -webkit-appearance: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.live-search-input::placeholder { color: var(--color-text-light); }

.live-search-input:focus {
  outline: none;
  background: var(--color-bg);
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-secondary) 18%, transparent);
}

.search-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}

.no-results {
  text-align: center;
  color: var(--color-text-light);
  padding: var(--space-lg);
}

/* Front Page Category Grid */
.site-main.container-fluid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-lg) var(--container-padding);
}

.message-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
}

.recipient-group + .recipient-group {
  margin-top: var(--space-lg);
}

.recipient-group-heading {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-light);
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}

.recipient-group .message-categories {
  margin: 0;
}

.message-categories li {
  margin: 0;
}

.message-categories a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 116px;
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.message-categories a:hover {
  border-color: color-mix(in srgb, var(--color-secondary) 55%, var(--color-border));
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.message-categories a:active {
  transform: translateY(0) scale(0.98);
}

.message-categories a:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

.message-categories .card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin-bottom: 0.35rem;
}

.message-categories .card-excerpt {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.4;
}

/* Single Post Message List */
.site-main ol {
  list-style: none;
  counter-reset: message-counter;
  padding: 0;
  margin: var(--space-lg) 0;
}

.site-main ol li {
  counter-increment: message-counter;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + 0.6rem);
  margin-bottom: var(--space-md);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.site-main ol li::before {
  content: counter(message-counter);
  position: absolute;
  left: var(--space-md);
  top: -0.7rem;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .site-main ol li {
    padding-top: var(--space-md);
  }
  .site-main ol li::before {
    left: calc(-1 * var(--space-lg) - 4px);
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
  }
}

.site-main ol li p {
  margin: 0;
  line-height: 1.7;
}

/* Utility classes */
.w100 { width: 100%; }

.heading-6 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  line-height: 1.15;
}

.page-title {
  letter-spacing: -0.02em;
}

/* Card styling for articles */
article.card {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-lg);
}

@media (max-width: 600px) {
  article.card {
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }
}

article.card .lead,
.lead {
  font-size: 1.15rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

/* Featured image in single posts */
article.card .post-thumbnail,
article.card > a:has(img) {
  display: block;
  max-width: 400px;
  margin: var(--space-md) auto;
}

article.card .post-thumbnail img,
article.card > a img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  flex-wrap: wrap;
}

.share-label {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  font-weight: 500;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.share-whatsapp {
  background: #25D366;
  color: white;
}

.share-facebook {
  background: #1877F2;
  color: white;
}

.share-twitter {
  background: #000;
  color: white;
}

.share-copy {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.share-btn:hover {
  transform: scale(1.1);
}

.share-copy.copied {
  background: var(--color-success, #28a745);
  color: white;
  border-color: var(--color-success, #28a745);
}

/* Featured Image Figure */
.featured-image {
  max-width: 400px;
  margin: var(--space-md) auto;
}

.featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Wide hero variant (monthly hub pages) */
.featured-image--hero {
  max-width: 100%;
  margin: var(--space-md) 0 var(--space-lg);
}

.featured-image--hero img {
  border-radius: var(--radius-lg);
}

/* Related Posts */
.related-posts {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.related-posts h2 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.related-grid li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-grid li::before,
.related-grid li::marker {
  content: none;
  display: none;
}

.related-more {
  margin: var(--space-md) 0 0;
  text-align: center;
}

.related-more a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.related-more a:hover,
.related-more a:focus {
  text-decoration: underline;
}

.related-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.related-card:hover {
  border-color: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.related-title {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 2px;
  font-size: var(--fs-small);
  line-height: 1.3;
}

.related-desc {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.35;
}

/* 1 per row on mobile, 2 per row on tablet + desktop (max 2 columns) */
@media (min-width: 600px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

/* Footer */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xxl);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
}

.footer-navigation .footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
}

.footer-navigation .footer-menu a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 500;
}

.footer-navigation .footer-menu a:hover { color: var(--color-secondary); }

.site-info p {
  margin: 0;
  color: var(--color-text-light);
  font-size: var(--fs-small);
}

/* ==========================================================================
   6. Accessibility
   ========================================================================== */

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Reduced motion for users with vestibular disorders */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000000;
    --color-secondary: #0066cc;
    --color-text: #000000;
    --color-bg: #ffffff;
    --color-border: #000000;
  }
}

/* ==========================================================================
   7. Performance Optimizations
   ========================================================================== */

/* Lazy loading images */
img[loading="lazy"] {
  background: var(--color-bg-alt);
}

/* Content visibility for better rendering performance */
.content-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* GPU acceleration for animations */
.animate {
  will-change: transform;
  transform: translateZ(0);
}

/* ==========================================================================
   8. Responsive Breakpoints
   ========================================================================== */

/* Small tablets and large phones */
@media (min-width: 576px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-toggle {
    display: none;
  }

  .main-navigation {
    display: block !important;
  }

  .message-categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-main ol {
    padding-left: var(--space-xl);
  }
}

/* Desktops */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .message-categories {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large desktops */
@media (min-width: 1440px) {
  :root {
    --container-max: 1400px;
  }
}

/* ==========================================================================
   9. Print Styles
   ========================================================================== */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
  }

  img {
    max-width: 100% !important;
  }

  @page {
    margin: 0.5cm;
  }
}
/* ==========================================================================
   v2.1.0 — SEO/CTR additions
   ========================================================================== */

/* Breadcrumbs */
.nmm-breadcrumbs {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
}
.nmm-breadcrumbs a {
  color: var(--color-secondary);
  text-decoration: none;
}
.nmm-breadcrumbs a:hover { text-decoration: underline; }
.nmm-breadcrumbs .breadcrumb_last { color: var(--color-ink); font-weight: 600; }

/* Per-message action buttons (copy + WhatsApp) */
.msg-actions {
  display: inline-flex;
  gap: 0.4rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.msg-action {
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.msg-action:hover { background: var(--color-bg-alt); border-color: var(--color-text-light); }
.msg-action:active { transform: scale(0.95); }
.msg-action.copied {
  background: color-mix(in srgb, var(--color-success) 16%, var(--color-bg));
  border-color: var(--color-success);
  color: var(--color-success);
}
.msg-action svg { width: 14px; height: 14px; }
.msg-action--wa { color: #128c7e; }
.msg-action--wa:hover { background: color-mix(in srgb, #128c7e 12%, var(--color-bg)); }
@media (prefers-color-scheme: dark) {
  .msg-action--wa { color: #4fd1a5; }
}

/* Section headings within message lists */
.nmm-msg-section { margin-top: 2.25rem; }
.nmm-msg-section h2 {
  font-size: var(--fs-h3);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

/* FAQ block */
.nmm-faq { margin-top: 2.5rem; }
.nmm-faq h2 { font-size: var(--fs-h3); margin-bottom: 1rem; }
.nmm-faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
  background: var(--color-surface);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.nmm-faq details[open] { border-color: var(--color-border-strong); background: var(--color-bg-alt); }
.nmm-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-ink);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.nmm-faq summary::-webkit-details-marker { display: none; }
.nmm-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-light);
}
.nmm-faq details[open] summary::after { content: "−"; }
.nmm-faq summary:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; }
.nmm-faq details p { margin: 0.5rem 0 0; color: var(--color-text-light); }

/* ==========================================================================
   Accessibility (moved from inline in v2.2.6)
   ========================================================================== */
.skip-links { position: absolute; left: -9999px; top: 0; z-index: 999999; }
.skip-links a {
  position: absolute; left: 6px; top: 7px; z-index: 999999;
  padding: 8px 16px; background-color: var(--color-primary); color: #fff;
  text-decoration: none; border-radius: 6px;
  box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
}
.skip-links a:focus {
  position: absolute; left: 6px; top: 7px;
  clip: auto; width: auto; height: auto;
  outline: 3px solid var(--color-secondary); outline-offset: 2px;
}
.screen-reader-text, .sr-only {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #f8f9fa; border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
  clip: auto !important; clip-path: none; color: #2c3e50;
  display: block; font-size: 0.875rem; font-weight: 700;
  height: auto; left: 5px; line-height: normal;
  padding: 15px 23px 14px; text-decoration: none;
  top: 5px; width: auto; z-index: 100000;
}
*:focus { outline: 3px solid var(--color-secondary); outline-offset: 2px; }
*:focus:not(:focus-visible) { outline: none; }
*:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; }
@media (prefers-contrast: high) {
  a:not(.button):not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px; }
  .button, .btn, input[type="submit"], input[type="button"] { border: 2px solid currentColor !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.low-contrast-text { color: var(--color-text) !important; }
.keyboard-navigation *:focus { outline: 3px solid var(--color-secondary) !important; outline-offset: 2px !important; }
/* NEVER blanket-hide [aria-live] — visible UI (chat log, toasts) uses it too.
   SR-only announcers hide themselves via .screen-reader-text / inline styles. */
.error, [aria-invalid="true"] { border-color: #c0392b !important; outline-color: #c0392b !important; }
.error-message { color: #c0392b; font-weight: 600; }
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--color-secondary); outline-offset: 2px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-secondary) 25%, transparent);
}

/* ==========================================================================
   Shareable card gallery (v2.3.0)
   ========================================================================== */
.nmm-cards-section { margin-top: 2.5rem; }
.nmm-cards-section > p { margin: 0 0 1.25rem; }
.nmm-cards-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 720px) {
  .nmm-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.nmm-cards-grid > li { margin: 0; }
.nmm-card { margin: 0; }
.nmm-card-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.nmm-card figcaption {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}
.nmm-card-img {
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   10. Mobile App Chrome — bottom tab bar (v2.4.0)
   ========================================================================== */
.nmm-tabbar {
  position: fixed;
  /* --nmm-anchor-h set by navigation.js when a Google anchor ad is displayed */
  bottom: var(--nmm-anchor-h, 0px);
  transition: bottom 0.25s ease;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: var(--color-bg);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 16px rgba(16,24,40,0.06);
}

.nmm-tabbar__link {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--tabbar-h);
  padding: 8px 2px;
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition-fast);
}

.nmm-tabbar__link svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nmm-tabbar__link:hover { color: var(--color-text); }
.nmm-tabbar__link:active { transform: scale(0.9); }
.nmm-tabbar__link.is-active { color: var(--color-secondary); }
.nmm-tabbar__link.is-active svg { stroke-width: 2.2; }

/* Reserve space so the fixed bar never covers footer/content on mobile */
@media (max-width: 767px) {
  body { padding-bottom: calc(var(--tabbar-h) + var(--nmm-anchor-h, 0px) + env(safe-area-inset-bottom)); }
}

/* Tab bar is mobile-only */
@media (min-width: 768px) {
  .nmm-tabbar { display: none; }
}

/* ==========================================================================
   AI generator chat widget (v2.5.0) — replaces the HuggingFace iframe
   ========================================================================== */
.nmm-chat {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-top: 1rem;
}
.nmm-chat__log {
  max-height: 380px;
  min-height: 180px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.nmm-chat__msg {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.nmm-chat__msg--ai {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.nmm-chat__msg--user {
  background: var(--color-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.nmm-chat__msg--typing { opacity: 0.6; letter-spacing: 0.2em; }
.nmm-chat__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.nmm-chat__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.nmm-chat__input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  font-size: 0.95rem;
}
.nmm-chat__input:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}
.nmm-chat__send {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.nmm-chat__send:hover { opacity: 0.9; }
.nmm-chat__send:disabled { opacity: 0.5; cursor: default; }

/* ==========================================================================
   v2.6.0 — Editorial redesign: single post + homepage
   Warm paper ground, content sits directly on the page; messages and link
   tiles are white cards. Gold reserved for kickers/numbering, navy for the
   generator panel and actions.
   ========================================================================== */

/* Content articles sit directly on the paper ground (cards-within-card looked heavy) */
article.card,
article.card:hover {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* --- Kicker (gold eyebrow with leading rule) --- */
.nmm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.nmm-kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--color-accent);
}

/* --- Hero --- */
.nmm-hero {
  padding: 0.5rem 0 1.4rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}
.nmm-hero__title {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0.55rem 0 0.9rem;
  text-wrap: balance;
}
.nmm-hero__title em {
  font-style: italic;
  color: var(--color-accent);
}
.nmm-hero .lead {
  margin-bottom: 1.1rem;
}
.nmm-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.nmm-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.85rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.nmm-stat b {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.nmm-hero__meta .share-buttons {
  margin: 0 0 0 auto;
}

/* Share buttons: quiet monochrome outline (replaces brand-colored circles) */
.share-btn,
.share-whatsapp,
.share-facebook,
.share-twitter,
.share-copy {
  width: 36px;
  height: 36px;
  background: var(--color-surface);
  color: var(--color-text-light);
  border: 1px solid var(--color-border-strong);
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover {
  transform: none;
  color: var(--color-ink);
  border-color: var(--color-text-light);
}
.share-copy.copied {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}

/* --- Sticky tone rail --- */
.nmm-rail-wrap {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top));
  z-index: 900;
  background: var(--color-bg);
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin: 0 calc(-1 * var(--container-padding));
  padding: 0.55rem var(--container-padding);
  border-bottom: 1px solid var(--color-border);
}
.nmm-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nmm-rail::-webkit-scrollbar { display: none; }
.nmm-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.nmm-chip small {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--color-text-light);
  font-variant-numeric: tabular-nums;
}
.nmm-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-ink);
}
.nmm-chip--gen {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #f5efe6;
}
.nmm-chip--gen:hover { color: #fff; border-color: var(--color-primary); }
@media (prefers-color-scheme: dark) {
  .nmm-chip--gen { background: #232e50; border-color: #232e50; color: #f0ece4; }
}

/* Anchored sections land below the sticky header + rail */
.nmm-msg-section,
.nmm-faq,
.nmm-cards-section {
  scroll-margin-top: calc(var(--header-h) + 64px);
}

/* Section headings: serif, hairline rule */
.nmm-msg-section h2 {
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

/* --- Message cards --- */
.site-main ol.nmm-msgs {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: var(--space-md) 0 var(--space-lg);
}
.site-main ol.nmm-msgs li {
  margin-bottom: 0;
  border-left: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.15rem 0.7rem;
  box-shadow: 0 1px 2px rgba(20,22,28,0.05), 0 6px 18px -8px rgba(27,36,64,0.12);
}
.site-main ol.nmm-msgs li::before { content: none; }
.nmm-msg__body {
  display: flex;
  gap: 0.9rem;
}
.nmm-msg__n {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-accent);
  flex: none;
  min-width: 1.4rem;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}
.site-main ol.nmm-msgs li .nmm-msg__body p {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color-ink);
}
.nmm-msg .msg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0.55rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--color-border);
}
.nmm-msg .msg-action {
  border: none;
  background: none;
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
}
.nmm-msg .msg-action:hover {
  background: var(--color-bg-alt);
  color: var(--color-ink);
  border: none;
}
.nmm-msg .msg-action.copied {
  background: none;
  border: none;
  color: var(--color-accent);
}
.nmm-msg .msg-action--wa { color: #128c7e; }
.nmm-msg .msg-action--wa:hover { background: color-mix(in srgb, #128c7e 10%, var(--color-bg)); color: #128c7e; }
@media (prefers-color-scheme: dark) {
  .nmm-msg .msg-action--wa,
  .nmm-msg .msg-action--wa:hover { color: #4fd1a5; }
}

/* --- AI generator panel (navy, single bold moment) --- */
.nmm-gen {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  color: #f0ece4;
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
}
@media (prefers-color-scheme: dark) {
  .nmm-gen { background: #232e50; }
}
.nmm-gen::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,143,82,0.28), transparent 70%);
  pointer-events: none;
}
.nmm-gen .nmm-kicker { color: var(--color-accent-soft); }
.nmm-gen .nmm-kicker::before { background: var(--color-accent-soft); }
@media (prefers-color-scheme: dark) {
  .nmm-gen .nmm-kicker { color: #d29a5c; }
  .nmm-gen .nmm-kicker::before { background: #d29a5c; }
}
.nmm-gen h2 {
  color: #f5efe6;
  font-weight: 600;
  font-size: var(--fs-h4);
  margin: 0.5rem 0 0.4rem;
  border-bottom: none;
  padding-bottom: 0;
}
.nmm-gen > p {
  color: #c3c9dc;
  font-size: 0.95rem;
  max-width: 52ch;
  margin-bottom: 1rem;
}
.nmm-gen .nmm-chat {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}
.nmm-gen .nmm-chat__msg--ai {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: #f0ece4;
}
.nmm-gen .nmm-chat__msg--user {
  background: rgba(255,255,255,0.92);
  color: #1b2440;
}
.nmm-gen .nmm-chat__form {
  background: transparent;
  border-top-color: rgba(255,255,255,0.14);
}
.nmm-gen .nmm-chat__input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
  color: #f0ece4;
}
.nmm-gen .nmm-chat__input::placeholder { color: #8f97b3; }
.nmm-gen .nmm-chat__send {
  background: var(--color-accent-soft);
  color: #1b1408;
}
.nmm-gen .nmm-chat__send:hover { opacity: 1; background: #d8a468; }
.nmm-gen .msg-action {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: #e8e3d8;
}
.nmm-gen .msg-action:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
}
.nmm-gen .msg-action--wa { color: #7fe0c0; }
.nmm-gen .msg-action.copied {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-accent-soft);
  color: #f0d5b4;
}

/* --- FAQ: hairline dividers, gold markers --- */
.nmm-faq details {
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  padding: 0.85rem 0.15rem;
  margin-bottom: 0;
}
.nmm-faq details[open] {
  border-color: var(--color-border);
  background: transparent;
}
.nmm-faq summary::after { color: var(--color-accent); }

/* --- Related / hub link tiles: serif titles on white cards --- */
.related-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.05rem;
  box-shadow: 0 1px 2px rgba(20,22,28,0.05), 0 6px 18px -8px rgba(27,36,64,0.12);
}
.related-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.related-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin-bottom: 3px;
}

/* --- Homepage --- */
.nmm-hero--home { padding-top: 1rem; }
.nmm-hero--home .search-section {
  margin: 1.1rem 0 0;
  max-width: 560px;
}
.recipient-group-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}
.recipient-group-heading::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--color-accent);
}
.message-categories a:hover {
  border-color: color-mix(in srgb, var(--color-accent) 55%, var(--color-border));
}
.message-categories .card-title { font-weight: 600; }

/* --- v2.6.1: featured-month banner + hero CTA --- */
.nmm-hero__cta {
  margin-top: 1rem;
  font-size: 0.9rem;
  padding: 0.55rem 1.2rem;
}
.nmm-month-banner {
  display: block;
  position: relative;
  margin: 2rem 0 0;
  padding: 1.15rem 3rem 1.15rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.nmm-month-banner:hover {
  border-color: color-mix(in srgb, var(--color-accent) 55%, var(--color-border));
  box-shadow: var(--shadow-md);
}
.nmm-month-banner__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nmm-month-banner__kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--color-accent);
}
.nmm-month-banner__title {
  display: block;
  margin-top: 0.3rem;
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}
.nmm-month-banner__arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 1.2rem;
}

/* =====================================================
   AdSense units (v2.7.0)
   ===================================================== */
.nmm-ad {
  margin: var(--space-md) 0;
  text-align: center;
}

/* Top banner: above-fold — reserve height, never collapse.
   Mobile reserves 100px (responsive horizontal serves 320x50/320x100). */
.nmm-ad--top {
  max-width: 1200px;
  margin: var(--space-sm) auto 0;
  padding: 0 var(--container-padding);
  min-height: 100px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .nmm-ad--top {
    min-height: 90px;
  }
}

/* Below-fold units (in-article, multiplex) — collapse cleanly when unfilled */
.nmm-ad--collapse ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}
.nmm-ad--collapse:has(ins[data-ad-status="unfilled"]) {
  display: none;
  margin: 0;
}
