/*
Theme Name:   Astra Child - TidyUp Daily
Theme URI:    https://tidyupdaily.com
Description:  Custom modern child theme for TidyUpDaily.com built on Astra. Clean, high-authority lifestyle layout inspired by The Spruce & Bob Vila. Zero CLS, pristine typography, verified responsive design.
Author:       TidyUp Daily
Author URI:   https://tidyupdaily.com
Template:     astra
Version:      1.4.1
Text Domain:  astra-child-tidyup
*/

/* ==========================================================================
   1. BRAND DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
  --tud-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tud-font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Brand Colors */
  --tud-color-primary: #0072CE;       /* Ocean Royal Blue */
  --tud-color-primary-dark: #00569B;  /* Deep Navy Royal */
  --tud-color-secondary: #00A896;     /* Emerald Teal */
  --tud-color-secondary-dark: #008475;/* Deep Teal */
  --tud-color-accent: #5BC2E7;        /* Sky Blue */
  
  /* Neutrals */
  --tud-color-slate-dark: #1E293B;    /* Slate-900 */
  --tud-color-slate-body: #334155;    /* Slate-700 */
  --tud-color-slate-muted: #64748B;   /* Slate-500 */
  --tud-color-border: #E2E8F0;        /* Slate-200 */
  --tud-color-bg-light: #F8FAFC;      /* Slate-50 */
  --tud-color-white: #FFFFFF;
}

/* ==========================================================================
   2. UNIVERSAL RESET & OVERFLOW PREVENTION
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: visible;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--tud-font-body);
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
  color: var(--tud-color-slate-body);
  -webkit-font-smoothing: antialiased;
}

/* Ultrawide Viewport Bounding (<= 1600px container) */
.site-content {
  max-width: 1600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

/* ==========================================================================
   3. HEADER ARCHITECTURE & BRAND SUPPRESSION (Feature 7 & 8)
   ========================================================================== */
/* 1. Duplicate Brand Text Suppression across all viewports */
.ast-site-title-wrap,
.ast-site-identity .site-title,
.ast-site-identity .site-description,
.site-branding .site-title,
.site-branding .site-description,
.site-branding .ast-site-title-wrap {
  display: none !important;
}

/* 2. Graphic Logo Sizing */
.site-branding .site-logo-img,
.site-branding .custom-logo-link {
  display: inline-flex !important;
  align-items: center;
  text-decoration: none !important;
}

.site-branding .custom-logo-link img.custom-logo,
.site-branding .site-logo-img img {
  max-height: 48px !important;
  width: auto !important;
  height: auto !important;
  max-width: 220px !important;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.site-branding .custom-logo-link:hover img.custom-logo {
  opacity: 0.92;
}

@media (max-width: 768px) {
  .site-branding .custom-logo-link img.custom-logo,
  .site-branding .site-logo-img img {
    max-height: 38px !important;
    max-width: 180px !important;
  }
}

/* 3. Modern Sticky Header Container */
#masthead.tud-sticky-header,
.site-header.tud-sticky-header,
.site-header {
  position: sticky !important;
  position: -webkit-sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 999 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--tud-color-border) !important;
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.25s ease,
              border-color 0.25s ease;
}

#masthead.tud-sticky-header.tud-header-scrolled,
.site-header.tud-sticky-header.tud-header-scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 4px 20px -2px rgba(30, 41, 59, 0.08),
              0 2px 6px -1px rgba(30, 41, 59, 0.04) !important;
  border-bottom-color: rgba(226, 232, 240, 0.8) !important;
}

/* WordPress Admin Bar Offsets */
.admin-bar #masthead.tud-sticky-header,
.admin-bar .site-header.tud-sticky-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar #masthead.tud-sticky-header,
  .admin-bar .site-header.tud-sticky-header {
    top: 46px !important;
  }
}

@media screen and (max-width: 600px) {
  .admin-bar #masthead.tud-sticky-header,
  .admin-bar .site-header.tud-sticky-header {
    top: 0 !important;
  }
}

/* ==========================================================================
   4. PRIMARY CATEGORY NAVIGATION BAR (Feature 9)
   ========================================================================== */
.ast-primary-header-bar .main-header-bar-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul.main-header-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation ul.main-header-menu > li.menu-item > a.menu-link {
  font-family: var(--tud-font-heading);
  font-weight: 700;
  font-size: 0.9375rem; /* 15px */
  color: var(--tud-color-slate-dark) !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}

.main-navigation ul.main-header-menu > li.menu-item:hover > a.menu-link {
  color: var(--tud-color-primary) !important;
  background: rgba(0, 114, 206, 0.05);
}

.main-navigation ul.main-header-menu > li.menu-item.current-menu-item > a.menu-link,
.main-navigation ul.main-header-menu > li.menu-item.current-category-ancestor > a.menu-link {
  color: var(--tud-color-primary) !important;
  background: rgba(0, 114, 206, 0.08);
}

/* ==========================================================================
   5. ACCESSIBLE HEADER SEARCH BAR
   ========================================================================== */
.tud-header-search-item {
  display: inline-flex !important;
  align-items: center;
  margin-left: 12px;
}

.tud-header-search-form {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--tud-color-bg-light);
  border: 1px solid var(--tud-color-border);
  border-radius: 9999px;
  padding: 3px 6px 3px 14px;
  transition: all 0.2s ease;
  width: 220px;
}

.tud-header-search-form:focus-within {
  border-color: var(--tud-color-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.12);
  width: 260px;
}

.tud-header-search-input {
  border: none !important;
  background: transparent !important;
  font-family: var(--tud-font-body) !important;
  font-size: 0.875rem !important; /* 14px */
  color: var(--tud-color-slate-dark) !important;
  padding: 4px 6px 4px 0 !important;
  outline: none !important;
  width: 100% !important;
  box-shadow: none !important;
}

.tud-header-search-input::placeholder {
  color: var(--tud-color-slate-muted);
  opacity: 0.8;
  font-size: 0.8125rem;
}

.tud-header-search-submit {
  background: transparent !important;
  border: none !important;
  color: var(--tud-color-slate-muted) !important;
  cursor: pointer;
  padding: 6px !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease;
  line-height: 1;
}

.tud-header-search-submit:hover {
  color: var(--tud-color-primary) !important;
  background: rgba(0, 114, 206, 0.08) !important;
}

.tud-header-search-submit svg {
  display: block;
}

/* Mobile Search & Drawer Navigation */
@media (max-width: 921px) {
  .main-header-menu-toggle,
  .menu-toggle,
  .ast-mobile-menu-trigger-minimal {
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
  }

  .ast-mobile-header-content {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #FFFFFF !important;
    border-bottom: 2px solid var(--tud-color-primary) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
  }

  .tud-header-search-item {
    display: block !important;
    width: 100%;
    margin: 16px 0 8px 0 !important;
    padding: 0 16px !important;
  }

  .tud-header-search-form {
    width: 100% !important;
    max-width: 100%;
    border-radius: 10px;
    background: #F1F5F9;
    padding: 8px 12px 8px 16px;
  }

  .tud-header-search-form:focus-within {
    width: 100% !important;
  }

  .tud-header-search-input {
    font-size: 1rem !important;
  }
}

/* ==========================================================================
   6. CONTAINER GRID LAYOUT & SIDEBAR REMOVAL (Feature 10)
   ========================================================================== */
/* Global Content Container */
.site-content > .ast-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  box-sizing: border-box !important;
}

/* Homepage Full-Width Bleed */
.home .site-content > .ast-container {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Single Post & Legal Page Reading Container: 840px max-width */
.single-post #primary,
.single-post .ast-article-single,
.single-post .entry-content,
.page:not(.home):not(.page-template-page-rescue-bible) #primary,
.page:not(.home):not(.page-template-page-rescue-bible) .ast-article-single,
.page:not(.home):not(.page-template-page-rescue-bible) .entry-content,
.page:not(.home):not(.page-template-page-rescue-bible) .tud-page-container,
.tud-page-container {
  max-width: 840px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Suppress duplicate left-aligned Astra title on non-home pages */
.page:not(.home) .entry-header {
  display: none !important;
}

/* Senior-Friendly Reading Typography for Legal & Article Pages */
.tud-page-container,
.page:not(.home) .entry-content {
  font-family: var(--tud-font-body) !important;
  font-size: 1.125rem !important; /* 18px */
  line-height: 1.65 !important;
  color: var(--tud-color-slate-body) !important;
}

.tud-page-container p,
.page:not(.home) .entry-content p {
  font-size: 1.125rem !important;
  line-height: 1.65 !important;
  margin-bottom: 1.25rem !important;
}

/* Suppress Sidebar DOM elements */
#secondary,
.sidebar-main,
aside.sidebar,
.widget-area {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Clean Responsive Article Grid */
.tud-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin: 2rem 0;
}

@media (max-width: 640px) {
  .tud-article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   7. HOME RESCUE BIBLE SPOTLIGHT COMPONENT (Feature 11) - LUXURY UPGRADE
   ========================================================================== */
.tud-spotlight-bible {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
  border: 1px solid rgba(217, 119, 6, 0.45) !important;
  border-radius: 20px !important;
  padding: 38px 42px !important;
  margin: 3.5rem auto !important;
  max-width: 1240px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.2) !important;
  box-sizing: border-box;
  color: #FFFFFF !important;
}

.tud-spotlight-visual {
  flex: 0 0 190px;
  text-align: center;
}

.tud-spotlight-visual img {
  max-width: 190px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5)) !important;
  transition: transform 0.3s ease;
}

.tud-spotlight-visual img:hover {
  transform: translateY(-4px) scale(1.02);
}

.tud-spotlight-content {
  flex: 1 1 340px;
}

.tud-spotlight-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tud-spotlight-pill {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #E0F2FE !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.tud-spotlight-coupon {
  background: #D97706 !important;
  border: 1px solid #B45309 !important;
  color: #FFFFFF !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  letter-spacing: 0.04em;
}

.tud-spotlight-coupon strong {
  color: #FEF08A !important;
  letter-spacing: 0.06em;
}

.tud-spotlight-title {
  font-family: var(--tud-font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem) !important;
  font-weight: 800;
  color: #FFFFFF !important;
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.tud-spotlight-desc {
  font-size: 14.5px !important;
  color: #CBD5E1 !important;
  line-height: 1.65;
  margin: 0 0 16px 0;
  max-width: 620px;
}

.tud-spotlight-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #FCD34D !important;
  font-weight: 700;
}

.tud-spotlight-action {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tud-spotlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00A896 0%, #0072CE 100%) !important;
  color: #FFFFFF !important;
  font-family: var(--tud-font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 28px !important;
  border-radius: 10px !important;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 168, 150, 0.4) !important;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.tud-spotlight-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 168, 150, 0.6) !important;
}

.tud-spotlight-guarantee {
  font-size: 12px !important;
  color: #94A3B8 !important;
  font-weight: 500 !important;
}

@media (max-width: 768px) {
  .tud-spotlight-bible {
    padding: 28px 20px;
    flex-direction: column;
    text-align: center;
  }
  .tud-spotlight-badge-row,
  .tud-spotlight-features {
    justify-content: center;
  }
  .tud-spotlight-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   8. ZERO-CLS AD WRAPPERS (Feature 13)
   ========================================================================== */
.tud-ad-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--tud-color-bg-light);
  border: 1px dashed var(--tud-color-border);
  border-radius: 8px;
  margin: 2rem auto;
  overflow: hidden;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  contain: layout;
  max-width: 100%;
}

.tud-ad-wrapper iframe {
  max-width: 100% !important;
}

.tud-ad-wrapper .tud-ad-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tud-color-slate-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1;
}

/* Top Leaderboard: 728x90 Desktop / 320x50 Mobile */
.tud-ad-top {
  min-height: 90px;
  max-width: 728px;
  width: 100%;
}

@media (max-width: 768px) {
  .tud-ad-top {
    min-height: 50px;
    max-width: 320px;
    margin: 1.25rem auto;
  }
}

/* In-Content Medium Rectangle: 300x250 */
.tud-ad-incontent {
  min-height: 250px;
  min-width: 300px;
  max-width: 336px;
  width: 100%;
}

@media (max-width: 360px) {
  .tud-ad-incontent {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Mobile Sticky Bottom Anchor: 320x50 */
.tud-mobile-sticky-ad {
  display: none;
  min-height: 50px;
}

@media (max-width: 768px) {
  .tud-mobile-sticky-ad {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 320px;
    min-height: 50px;
    height: 50px;
    z-index: 998;
    background: #FFFFFF;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--tud-color-border);
    border-bottom: none;
    margin: 0;
    padding: 0;
  }

  body {
    padding-bottom: 60px !important;
  }

  /* Elevate mobile scroll-to-top above 320x50 sticky ad */
  #ast-scroll-top,
  .ast-scroll-to-top-right,
  .ast-scroll-top-icon {
    bottom: 65px !important;
  }
}

/* ==========================================================================
   9. RICH 4-COLUMN MODERN FOOTER (Feature 14)
   ========================================================================== */
#colophon.tud-footer,
footer.tud-footer,
.tud-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 4rem 1.25rem 2rem;
  border-top: 3px solid var(--tud-color-primary);
  font-family: var(--tud-font-body);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.tud-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tud-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .tud-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .tud-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.tud-footer-logo-wrap {
  margin-bottom: 1.25rem;
}

.tud-footer-logo-img {
  max-height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}

.tud-footer-mission {
  font-size: 14px;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 1.25rem;
}

.tud-footer-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #38BDF8;
  font-weight: 600;
}

.tud-trust-badge {
  display: inline-flex;
  align-items: center;
}

.tud-footer-heading {
  font-family: var(--tud-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 6px;
  border-bottom: 2px solid;
  display: inline-block;
}

.tud-heading-categories { border-color: var(--tud-color-secondary); }
.tud-heading-legal { border-color: var(--tud-color-primary); }
.tud-heading-spotlight { border-color: #F59E0B; }

.tud-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 2;
}

.tud-footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s;
}

.tud-footer-links a:hover {
  color: #38BDF8;
}

.tud-footer-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 16px;
}

.tud-card-pill {
  font-size: 11px;
  font-weight: 800;
  color: #F59E0B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.tud-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.tud-card-desc {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.tud-card-btn {
  display: block;
  text-align: center;
  background: #F59E0B;
  color: #1E293B !important;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.tud-card-btn:hover {
  background: #D97706;
}

.tud-footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 12px;
  color: #64748B;
  line-height: 1.6;
}

.tud-footer-ftc {
  margin-bottom: 8px;
}

.tud-footer-copyright {
  margin: 0;
}

/* ==========================================================================
   10. ARTICLE EDITORIAL COMPONENTS (M2 <-> M4 Contract)
   ========================================================================== */
/* 1. Quick Answer Box */
.quick-answer-box,
[data-component="quick-answer"],
.tud-quick-answer {
  background: #F0F9FD;
  border: 1px solid #BAE6FD;
  border-left: 5px solid var(--tud-color-primary);
  border-radius: 12px;
  padding: 24px;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 114, 206, 0.05);
  box-sizing: border-box;
}

.quick-answer-box h3,
.quick-answer-title,
.tud-quick-answer-title {
  font-family: var(--tud-font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tud-color-primary-dark);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-answer-box p,
.tud-quick-answer p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--tud-color-slate-body);
  margin: 0 0 8px 0;
}

/* 2. 4-Pill Glance Cards */
.four-pill-glance,
[data-component="glance-cards"],
.tud-glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--tud-color-bg-light);
  border: 1px solid var(--tud-color-border);
  border-radius: 14px;
  padding: 16px;
  margin: 2rem 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .four-pill-glance,
  [data-component="glance-cards"],
  .tud-glance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.glance-pill,
.tud-glance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 8px;
  background: #FFFFFF;
  border: 1px solid #EEF2F6;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.glance-pill-label,
.tud-glance-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tud-color-slate-muted);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.glance-pill-value,
.tud-glance-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--tud-color-slate-dark);
}

/* 3. Interactive Checklist */
.interactive-checklist,
[data-component="checklist"],
.tud-checklist-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-left: 5px solid var(--tud-color-secondary);
  border-radius: 14px;
  padding: 24px;
  margin: 2.25rem 0;
  box-sizing: border-box;
}

.checklist-title,
.tud-checklist-title {
  font-family: var(--tud-font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tud-color-secondary-dark);
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.interactive-checklist ul,
.tud-checklist-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.interactive-checklist li,
.tud-checklist-box ul li {
  position: relative;
  padding: 8px 10px 8px 34px;
  margin-bottom: 6px;
  font-size: 1rem;
  color: #1F2937;
  border-radius: 6px;
  transition: background 0.2s;
  cursor: pointer;
}

.interactive-checklist li:hover,
.tud-checklist-box ul li:hover {
  background: rgba(0, 168, 150, 0.06);
}

.interactive-checklist li input[type="checkbox"] {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  accent-color: var(--tud-color-secondary);
  cursor: pointer;
}

.interactive-checklist li.is-completed {
  text-decoration: line-through;
  color: #9CA3AF;
  opacity: 0.75;
}

/* 4. Numbered Step Cards */
.step-card,
[data-component="step-card"],
.tud-step-card {
  background: var(--tud-color-white);
  border: 1px solid var(--tud-color-border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  box-sizing: border-box;
}

.step-card-header,
.tud-step-header {
  display: flex;
  align-items: center;
  font-family: var(--tud-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tud-color-slate-dark);
  margin-bottom: 14px;
}

.step-badge,
.tud-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--tud-color-primary);
  color: #FFFFFF;
  border-radius: 50%;
  font-weight: 800;
  font-size: 15px;
  margin-right: 12px;
  flex-shrink: 0;
}

.step-card p {
  margin-bottom: 1rem;
  line-height: 1.65;
}

/* 5. In-Content Spotlight Bridge (Articles) */
.tud-incontent-spotlight {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
  border: 1px solid rgba(217, 119, 6, 0.4) !important;
  border-radius: 16px !important;
  padding: 28px !important;
  margin: 3rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
  color: #FFFFFF !important;
}

.tud-incontent-spotlight .tud-spotlight-title {
  color: #FFFFFF !important;
}

.tud-incontent-spotlight p {
  color: #CBD5E1 !important;
}

.tud-incontent-spotlight .tud-spotlight-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.tud-incontent-spotlight .tud-spotlight-desc {
  font-size: 14px;
  margin-bottom: 12px;
}

/* ==========================================================================
   11. WPFORMS 11 BRAND STYLING & ACCESSIBILITY (Feature 10 / Milestone 3)
   ========================================================================== */
div.wpforms-container-full .wpforms-form {
  font-family: var(--tud-font-body);
}

div.wpforms-container-full .wpforms-form .wpforms-field-label {
  font-family: var(--tud-font-heading) !important;
  font-weight: 700 !important;
  font-size: 0.9375rem !important;
  color: var(--tud-color-slate-dark) !important;
  margin-bottom: 6px !important;
}

div.wpforms-container-full .wpforms-form input[type="text"],
div.wpforms-container-full .wpforms-form input[type="email"],
div.wpforms-container-full .wpforms-form textarea {
  font-family: var(--tud-font-body) !important;
  font-size: 1rem !important; /* 16px minimum prevents iOS Safari auto-zoom */
  color: var(--tud-color-slate-dark) !important;
  background: #FFFFFF !important;
  border: 1.5px solid var(--tud-color-border) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

div.wpforms-container-full .wpforms-form input:focus,
div.wpforms-container-full .wpforms-form textarea:focus {
  border-color: #0072CE !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.15) !important;
}

div.wpforms-container-full .wpforms-form .wpforms-submit {
  background-color: #0072CE !important;
  color: #FFFFFF !important;
  font-family: var(--tud-font-heading) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, transform 0.15s ease !important;
  box-shadow: 0 2px 8px rgba(0, 114, 206, 0.25) !important;
}

div.wpforms-container-full .wpforms-form .wpforms-submit:hover {
  background-color: #005FA3 !important;
  transform: translateY(-1px) !important;
}

div.wpforms-container-full .wpforms-form label.wpforms-error {
  color: #DC2626 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  margin-top: 4px !important;
}

/* ==========================================================================
   12. RESCUE BIBLE REFINEMENTS (Milestone 3)
   ========================================================================== */
.tud-rescue-bible-page h1,
.tud-rescue-bible-page h2,
.tud-rescue-bible-page h3 {
  font-family: var(--tud-font-heading) !important;
}

@media (min-width: 860px) {
  .tud-rescue-bible-page .tud-reviews-grid,
  .tud-rescue-bible-page .tud-rb-reviews-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ==========================================================================
   13. CATEGORY ARCHIVE EMPTY-STATE FALLBACK
   ========================================================================== */
.archive .no-results.not-found,
.category .no-results.not-found {
  background: #FFFFFF;
  border: 1px solid var(--tud-color-border);
  border-radius: 14px;
  padding: 40px;
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   11. SINGLE POST EDITORIAL METADATA & RELATED POSTS
   ========================================================================== */
.tud-article-lead-bar {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #E2E8F0;
}

.tud-breadcrumbs {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 12px;
  line-height: 1.5;
}

.tud-breadcrumbs a {
  color: #0072CE;
  text-decoration: none;
  font-weight: 600;
}

.tud-breadcrumbs a:hover {
  text-decoration: underline;
}

.tud-bc-sep {
  margin: 0 6px;
  color: #CBD5E1;
}

.tud-bc-current {
  color: #475569;
  font-weight: 500;
}

.tud-article-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tud-meta-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tud-pill-time {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
}

.tud-pill-verified {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.tud-pill-author {
  background: #F0F9FF;
  color: #0072CE;
  border: 1px solid #BAE6FD;
}

/* Related Guides Section */
.tud-related-guides-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 2px solid #E2E8F0;
}

.tud-related-header {
  margin-bottom: 1.75rem;
}

.tud-related-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0072CE;
  display: block;
  margin-bottom: 4px;
}

.tud-related-title {
  font-family: var(--tud-font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.tud-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.tud-related-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tud-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.tud-related-thumb-wrap {
  height: 150px;
  overflow: hidden;
  background: #F8FAFC;
}

.tud-related-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tud-related-card:hover .tud-related-thumb-wrap img {
  transform: scale(1.04);
}

.tud-placeholder-thumb {
  width: 100%;
  height: 100%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 14px;
}

.tud-related-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tud-related-cat {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0072CE;
  margin-bottom: 6px;
}

.tud-related-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 12px 0;
  line-height: 1.4;
  flex-grow: 1;
}

.tud-related-cta {
  font-size: 12px;
  font-weight: 700;
  color: #0072CE;
}
