/*
Theme Name: MIK Nova Health Editorial
Theme URI: https://www.miknovahealth.com/insights/
Description: Luxury Clinical Editorial & Monograph Design System.
Author: MIK Nova Health
Version: 4.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;0,6..72,700;0,6..72,800;1,6..72,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    /* Canvas & Surfaces */
    --bg-canvas: #FAF7F2;          /* Warm clinical linen */
    --bg-surface: #FFFFFF;         /* Crisp pure white for cards */
    --bg-warm-pillar: #F4EFE6;     /* Rich warm biscuit for highlighted containers */
    --bg-subtle: #F0EBE1;          /* Subtle neutral grey-cream */
    --bg-dark-accent: #0B1A17;     /* Deep surgical forest */

    /* Typography Tones */
    --text-heading: #0F1D19;       /* Deep obsidian charcoal - sharp and dignified */
    --text-body: #2D3E38;          /* High-legibility editorial charcoal (never 100% black) */
    --text-muted: #5C6E67;         /* Soft secondary text */
    --text-light: #94A3B8;         /* Subdued meta text */

    /* Brand Jewel Accents */
    --primary-teal: #0D5C58;       /* Institutional surgical teal */
    --primary-teal-hover: #08403D;
    --teal-glow: #14B8A6;
    --accent-terracotta: #C26D53;  /* Clinical ochre */
    --badge-gold: #D97706;

    /* Architectural Borders & Shadows */
    --border-subtle: #E8E3DA;      /* Fine-line card boundary */
    --border-strong: #D5CEBF;      /* Structural boundary */
    --border-dark: #0F1D19;
    --card-shadow: 0 4px 20px rgba(15, 29, 25, 0.04);
    --card-shadow-hover: 0 10px 25px rgba(13, 92, 88, 0.09);

    /* Fonts */
    --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
    --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

/* ================= CSS RESET & BASE STYLING ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(at 0% 0%, #FFF9F0 0%, #FDF8F2 40%, #FAF6EE 100%) !important;
    color: #2D3E38;
    font-family: var(--font-sans);
    line-height: 1.65;
    font-size: 15px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= HEADER & TICKER ================= */
.top-ticker-bar {
    background: #FDF8F1 !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    color: #0A3D36 !important;
    height: 28px !important;
    line-height: 28px !important;
    padding: 0 16px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
}
.ticker-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-tag {
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #0A3D36;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-header {
    background: #FFFFFF;
    border-bottom: 1.5px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--primary-teal);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(13, 92, 88, 0.25);
}

.brand-text-block h1 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.brand-text-block span {
    font-size: 0.62rem;
    letter-spacing: 1.8px;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    display: block;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-navigation a {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-heading);
    position: relative;
    padding: 6px 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary-teal);
}

.btn-subscribe {
    background: #0A3D36 !important;
    color: #FFFFFF !important;
    border-radius: 999px !important;
    padding: 6px 18px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.25), 0 2px 6px rgba(10,61,54,0.2) !important;
    transition: all 0.2s ease !important;
    white-space: nowrap;
}

.btn-subscribe:hover {
    background: #062823 !important;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.35), 0 4px 12px rgba(10,61,54,0.25) !important;
}

/* ================= TYPOGRAPHY RULES ================= */
h1, h2, h3, h4, h5 {
    color: var(--text-heading);
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
}

p {
    color: var(--text-body);
    font-size: 0.94rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Clear all aggressive force-bold overrides */
b, strong {
    font-weight: 700;
    color: var(--text-heading);
}

/* ================= LUXURY CARD SYSTEM & GLASS EFFECTS ================= */
.clinical-card, 
.glass-premium-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFBF7 100%) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: inset 0 1px 0 #FFFFFF, 0 16px 36px rgba(31, 41, 55, 0.04) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.clinical-card:hover, 
.glass-premium-card:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 #FFFFFF, 0 22px 45px rgba(13, 92, 88, 0.08) !important;
}

/* Frosted Glass Circle Icon Badges */
.frosted-icon-circle {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 30% 30%, #FFFFFF, #F5EFE6) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: inset 0 1px 2px #FFFFFF, 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Hero Image Glare */
.hero-image-wrap img {
    border-radius: 16px !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12) !important;
    filter: brightness(1.08) contrast(1.02);
    display: block;
}

/* ================= BRAND LEADER 3-PILLAR CARDS ================= */
.trust-pillars-section {
    padding: 30px 0 20px;
    text-align: center;
}

.trust-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pillar-card {
    background: var(--bg-warm-pillar);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 22px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(15, 29, 25, 0.02);
}

.pillar-badge-box {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.pillar-badge-box svg {
    stroke-width: 1.8;
}

.pillar-card h3 {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-heading);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.pillar-card p {
    font-size: 0.78rem;
    color: var(--text-body);
    line-height: 1.45;
    margin: 0;
}

/* Trust statement below pillars */
.trust-meta-line {
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin-top: 18px;
}

/* ================= COMPENDIAL PILL BADGES ================= */
.compendial-badge {
    display: inline-block;
    background: #0F1D19;
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    line-height: 1.2;
}

.badge-teal {
    background: #E6F4F1;
    color: var(--primary-teal);
}

/* Category Pills */
.media-category-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}
.badge-nutrition { background: #E6F4F1 !important; color: #0D5C58 !important; }
.badge-sleep { background: #E0F2FE !important; color: #0369A1 !important; }
.badge-heart { background: #FFE4E6 !important; color: #BE123C !important; }
.badge-podcast { background: #E6FFFA !important; color: #0D5C58 !important; }
.badge-video { background: #FEF3C7 !important; color: #92400E !important; }

/* ================= INTERACTIVE CLICKABLE CARDS ================= */
.editorial-media-card,
.podcast-interactive-card,
.video-interactive-card,
.article-listing-card,
.deep-dive-card {
    cursor: pointer !important;
    text-decoration: none !important;
    display: flex;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, border-color 0.16s ease;
}

.editorial-media-card:hover,
.podcast-interactive-card:hover,
.video-interactive-card:hover,
.article-listing-card:hover,
.deep-dive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 92, 88, 0.08);
    border-color: var(--primary-teal) !important;
}

.editorial-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
}

.podcast-circle-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(13,92,88,0.18);
}

/* Product Deep Dives */
.deep-dive-card {
    padding: 14px;
    display: flex;
    flex-direction: column;
}
.deep-dive-card h5 {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.25;
    margin-bottom: 4px;
}
.deep-dive-card p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 8px;
}
.deep-dive-link {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--primary-teal);
    text-decoration: none;
    margin-top: auto;
}

/* ================= METHODOLOGY CIRCLE ICONS (SCIENCE PAGE) ================= */
.methodology-circle-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0B1A17;
    border: 2px solid #14B8A6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 4px 10px rgba(11,26,23,0.15);
}
.methodology-circle-icon svg {
    stroke: #FFFFFF;
    fill: none;
    stroke-width: 2.2;
}

/* ================= GLOBAL NEWSLETTER ================= */
.global-newsletter-bar {
    background: var(--primary-teal);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 35px;
    margin: 45px 0;
}
.newsletter-flex {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 30px;
    align-items: center;
}
.newsletter-flex h3 {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 8px;
}
.newsletter-flex p {
    font-size: 0.86rem;
    opacity: 0.9;
}
.newsletter-input-group {
    display: flex;
    gap: 10px;
}
.newsletter-input-group input {
    flex: 1;
    padding: 11px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.86rem;
    outline: none;
}
.newsletter-input-group button {
    background: #FFFFFF;
    color: var(--primary-teal);
    border: none;
    padding: 0 24px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.84rem;
    cursor: pointer;
    transition: background 0.15s ease;
}
.newsletter-input-group button:hover {
    background: #F1F5F9;
}

/* ================= FOOTER ARCHITECTURE ================= */
.site-footer {
    background: var(--bg-dark-accent);
    color: #CBD5E1;
    padding: 60px 0 30px;
    margin-top: 70px;
    border-top: 3px solid var(--primary-teal);
}

.footer-col h4 {
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 0.82rem;
}

.footer-col a {
    color: #94A3B8;
}

.footer-col a:hover {
    color: #FFFFFF;
}

.footer-seal-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    opacity: 0.85;
}

@media (max-width: 900px) {
    .trust-pillars-grid, .footer-grid, .newsletter-flex {
        grid-template-columns: 1fr;
    }
}



/* ==========================================================================
   MIK NOVA HEALTH INSIGHTS — GLOBAL RESPONSIVE & CROSS-BROWSER PATCH
   ========================================================================== */

/* 1. Chrome Desktop & Base REM Normalization */
html {
  font-size: 15px !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

@media (min-width: 1536px) {
  html {
    font-size: 16px !important;
  }
}

body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* 2. Tablet & Mobile Responsive Grids for Insights & Monographs */
@media (max-width: 767px) {
  .insights-grid,
  .archive-grid,
  .posts-grid,
  .blog-grid,
  .articles-grid,
  .monograph-grid,
  .wp-block-columns,
  .grid-cols-3,
  .grid-cols-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .insights-grid,
  .archive-grid,
  .posts-grid,
  .blog-grid,
  .articles-grid,
  .monograph-grid,
  .wp-block-columns,
  .grid-cols-3 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

/* 3. Post Hero Titles Clamped for Mobile Typography */
h1.entry-title,
.post-title,
.hero-post-title,
.entry-header h1,
article h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  line-height: 1.15 !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

/* 4. Unified Luxury Hover & Touch Preservation */
@media (hover: hover) and (pointer: fine) {
  .post-card, article.post, .article-card, .monograph-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
  }
  .post-card:hover, article.post:hover, .article-card:hover, .monograph-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 35px -10px rgba(6, 43, 69, 0.14) !important;
  }
}

@media (hover: none) or (pointer: coarse) {
  .post-card, article.post, .article-card, .monograph-card {
    transform: none !important;
  }
}

/* 5. Clean UI Icons: 2.2 stroke width, zero colored background box wrappers */
.icon, svg.lucide, svg.icon, .elementor-icon svg, .site-header svg {
  stroke-width: 2.2 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ==========================================================================
   MIK NOVA HEALTH - UNIFIED LUXURY VISUAL SYSTEM & MOBILE RESPONSIVENESS PATCH
   Parity with Corporate Main Site:
   - Base 15px Rem Normalization (Chrome Desktop Fix)
   - Radial Luminescence Background & High-Contrast Typography (#0F172A)
   - Animated Sliding Menu Underlines on Navigation
   - Luxury Card Specular Sheen (inset 0 1px 1px) & Hover Elevation (-10px)
   - Razor-Sharp Unboxed Clinical Icons (stroke-width: 2.2)
   - Card Hover Micro-Zoom (transform: scale(1.12))
   - Comprehensive Mobile Viewport (360px-428px) & Tablet Adaptations
   - Zero Horizontal Drift / Right-Side Overflow Elimination
   ========================================================================== */

/* 1. CHROME DESKTOP & REM NORMALIZATION */
html {
  font-size: 15px !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

@media (min-width: 1536px) {
  html {
    font-size: 16px !important;
  }
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

body {
  background: radial-gradient(circle at 50% 0%, rgba(8, 127, 130, 0.05) 0%, transparent 60%), #FAF7F2 !important;
  background-attachment: fixed !important;
  color: #0F172A !important;
  font-weight: 500 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* 2. HIGH-CONTRAST TYPOGRAPHY & TEXT DARKNESS */
p, li, .card-desc, .entry-content p, .product-description, .post-excerpt,
.woocommerce-product-details__short-description p, .site-main p {
  color: #0F172A !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}

h1, h2, h3, h4, .entry-title, .product-title, .site-header h1, .brand-text-block h1 {
  color: #062B45 !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
}

/* 3. ANIMATED SLIDING MENU UNDERLINE (STORE & INSIGHTS) */
header nav a,
.main-navigation ul li a,
.site-header nav a,
.nav-menu li a {
  position: relative !important;
  text-decoration: none !important;
  display: inline-block !important;
  padding-bottom: 4px !important;
  transition: color 0.3s ease !important;
}

header nav a::after,
.main-navigation ul li a::after,
.site-header nav a::after,
.nav-menu li a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background: #087F82 !important;
  transform: scaleX(0) !important;
  transform-origin: left !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

header nav a:hover::after,
header nav a.active::after,
header nav a[aria-current="page"]::after,
.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item > a::after,
.main-navigation ul li.current_page_item > a::after,
.site-header nav a:hover::after,
.site-header nav a[aria-current="page"]::after,
.nav-menu li.current-menu-item > a::after {
  transform: scaleX(1) !important;
}

/* 4. LUXURY CARD SPECULAR SHEEN & ELEVATION */
.card-glass,
.product,
.woocommerce-card,
ul.products li.product,
.clinical-card,
.glass-premium-card,
.editorial-media-card,
article.post,
.post-card,
.monograph-card,
.luxury-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 246, 240, 0.75) 100%) !important;
  border: 1px solid rgba(8, 127, 130, 0.20) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.85), 0 4px 20px -4px rgba(6, 43, 69, 0.06) !important;
  border-radius: 16px !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .card-glass:hover,
  .product:hover,
  .woocommerce-card:hover,
  ul.products li.product:hover,
  .clinical-card:hover,
  .glass-premium-card:hover,
  .editorial-media-card:hover,
  article.post:hover,
  .post-card:hover,
  .monograph-card:hover,
  .luxury-card:hover {
    transform: translateY(-10px) !important;
    border-color: rgba(8, 127, 130, 0.50) !important;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.95), 0 24px 48px -12px rgba(6, 43, 69, 0.16) !important;
  }
}

/* 5. RAZOR-SHARP UNBOXED CLINICAL ICONS & CARD MICRO-ZOOM */
svg:not(.brand-logo-mark svg),
.card-icon,
.product-icon,
.dashicons {
  stroke-width: 2.2 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease, color 0.3s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .card-glass:hover svg,
  .card-glass:hover .card-icon,
  .product:hover svg,
  .product:hover .card-icon,
  .woocommerce-card:hover svg,
  ul.products li.product:hover svg,
  .clinical-card:hover svg,
  .clinical-card:hover .card-icon,
  .glass-premium-card:hover svg,
  .glass-premium-card:hover .card-icon,
  .editorial-media-card:hover svg,
  .editorial-media-card:hover .card-icon,
  article.post:hover svg,
  .post-card:hover svg,
  .monograph-card:hover svg,
  .luxury-card:hover svg,
  .luxury-card:hover .card-icon {
    transform: scale(1.12) !important;
    stroke: #087F82 !important;
    color: #087F82 !important;
  }
}

/* 6. GLOBAL MEDIA & FLEX CONTAINER OVERFLOW DEFENSE */
img, video {
  max-width: 100% !important;
  height: auto !important;
}

.flex > *, div {
  min-width: 0;
}

/* Ticker Bars & Strips Containment */
.top-ticker-bar,
.ticker-thin,
.ticker-flex {
  overflow: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ticker-text {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: inline-block !important;
  max-width: calc(100vw - 120px) !important;
}

.site-container, main {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* 7. TARGETED MOBILE VIEWPORT COMPACTION (< 768px) */
@media (max-width: 767px) {
  /* Ticker Text Truncation on Mobile */
  .ticker-text,
  .ticker-thin {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: calc(100vw - 80px) !important;
    font-size: 9px !important;
  }

  /* Header Navigation Bar on Mobile (Store) */
  header nav,
  header .site-container nav {
    gap: 10px !important;
    font-size: 0.74rem !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    max-width: 58% !important;
    white-space: nowrap !important;
  }

  /* A. Hero Ratio & Heading Clamping */
  h1, 
  h1[style*="font-size"],
  section h1 {
    font-size: clamp(1.45rem, 5vw, 1.85rem) !important;
    line-height: 1.18 !important;
    margin-bottom: 12px !important;
  }

  /* Legacy hero styles superseded by front-page.php Prompt 2 responsive rules */
  /* C. Fix Strip & Banner Horizontal Overflows */
  div[style*="flex-wrap: nowrap"],
  section div[style*="nowrap"],
  div[style*="width: 440px"],
  div[style*="flex-shrink: 0"] {
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 16px !important;
  }

  div[style*="min-width: 270px"] {
    min-width: 100% !important;
    width: 100% !important;
  }

  form, form[style*="display: flex"] {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  form input, form button {
    width: 100% !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }

  /* D. Multicolumn Grid Stepping on Mobile */
  div[style*="repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  div[style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  ul.products, .woocommerce-products, .product-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* E. Section-to-Section Vertical Gap Compaction */
  section,
  section[style*="padding: 50px"],
  section[style*="padding: 70px"],
  section[style*="padding: 75px"] {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .clinical-card.hero-investigation-box {
    padding: 20px 16px !important;
    margin-bottom: 24px !important;
  }

  /* F. Touch Targets */
  a.btn-pill-primary,
  .btn-pill-primary,
  button,
  .btn {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* G. Table & Comparison Matrix Horizontal Swipe */
  table,
  .woocommerce-table,
  .comparison-matrix,
  .shop_table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
  }

  /* H. Header Nav Smooth Swipe */
  .main-navigation,
  .main-navigation ul {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    max-width: 100% !important;
  }
}

/* 8. TABLET VIEWPORT ADAPTATIONS (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  ul.products, .woocommerce-products, .product-grid,
  .articles-grid, .monograph-grid, .editorial-grid,
  div[style*="repeat(3, 1fr)"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  div[style*="repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}



/* ==========================================================================
   COMPLETE SUPPRESSION OF ANY LEGACY GRAPHIC / VECTOR / LOGO ICON IN HEADER
   ========================================================================== */
.site-header .custom-logo,
.site-header .site-logo,
.site-header .header-logo img,
.site-branding img,
.site-branding svg,
.custom-logo-link,
.custom-logo,
.site-logo,
.logo-icon,
.brand-logo-mark,
header img.custom-logo,
header .custom-logo-link,
header .brand-logo-mark,
header .logo-icon,
header svg.custom-logo,
header .brand-identity img,
header .brand-identity svg,
header .brand-identity .logo-icon,
.brand-identity-text-only img,
.brand-identity-text-only svg {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   PHASE 3 EDITORIAL & MONOGRAPH RESPONSIVE ENHANCEMENTS
   ========================================================================== */

/* 1. Responsive Clinical Table Wrappers */
.table-scroll-container,
div[style*="overflow-x: auto"] {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin-bottom: 24px !important;
  position: relative !important;
}

.table-scroll-container table,
div[style*="overflow-x: auto"] table {
  width: 100% !important;
  min-width: 620px !important;
  border-collapse: collapse !important;
}

/* 2. Editorial Reading Ergonomics (Thorne/Ritual Standard) */
.article-editorial-content {
  max-width: 760px !important;
  font-size: 1.02rem !important;
  line-height: 1.8 !important;
  color: var(--text-body) !important;
}

.article-editorial-content p {
  margin-bottom: 1.5rem !important;
}

.article-editorial-content h2,
.article-editorial-content h3 {
  font-family: var(--font-serif) !important;
  color: var(--text-heading) !important;
  margin-top: 2rem !important;
  margin-bottom: 0.85rem !important;
  line-height: 1.25 !important;
}

/* 3. Mobile Single-Column Fallback for 2-Column Article Grid */
@media (max-width: 768px) {
  div[style*="grid-template-columns: 2.2fr 1fr"],
  div[style*="grid-template-columns: 1fr 1.25fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .monograph-newsletter div[style*="flex-wrap: nowrap"] {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  .monograph-newsletter div[style*="width: 420px"] {
    width: 100% !important;
  }
}

