/*
Theme Name: DailyDrew Magazine & Product Reviews
Theme URI: https://dailydrew.com
Author: DailyDrew Editorial Team
Author URI: https://dailydrew.com
Description: Custom multi-author health publication, wellness blog, nutritional education platform, and health product review WordPress block theme for DailyDrew (https://dailydrew.com) — "Your Daily Guide to Healthier Living". Features multi-author contributor profiles, 9 core health category hubs, Buying Guides, Trending Health Guides, transparent Product Review templates, Gutenberg block patterns, and 1-Click Sample Content Setup.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dailydrew
Tags: health, wellness, magazine, multi-author, nutrition, product-reviews, block-patterns, accessibility-ready, custom-colors, custom-menu, featured-images
*/

:root {
  --dd-primary: #148A83;
  --dd-primary-dark: #0F6E68;
  --dd-secondary: #173C51;
  --dd-secondary-light: #24526D;
  --dd-accent: #F1B69A;
  --dd-accent-soft: #FDF3EE;
  --dd-accent-border: #E89D7A;
  --dd-mint: #EAF6F3;
  --dd-mint-border: #CBE5DF;
  --dd-bg: #FAFBF9;
  --dd-white: #FFFFFF;
  --dd-text: #173C51;
  --dd-text-body: #29465B;
  --dd-text-muted: #546E82;
  --dd-border: #E3ECE9;
  --dd-danger: #B91C1C;
  --dd-danger-bg: #FEF2F2;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(23, 60, 81, 0.05);
  --shadow-md: 0 12px 30px rgba(23, 60, 81, 0.07);
  --shadow-lg: 0 20px 44px rgba(23, 60, 81, 0.11);
  --container-max: 1260px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--dd-text-body);
  background-color: var(--dd-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dd-secondary);
  font-weight: 700;
  line-height: 1.24;
  margin-top: 0;
  letter-spacing: -0.02em;
}

a {
  color: var(--dd-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--dd-secondary);
}

:focus-visible {
  outline: 3px solid var(--dd-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--dd-secondary);
  color: var(--dd-white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
  color: var(--dd-white);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 72px 0;
}

.section-mint {
  background-color: var(--dd-mint);
  border-top: 1px solid var(--dd-mint-border);
  border-bottom: 1px solid var(--dd-mint-border);
}

.section-white {
  background-color: var(--dd-white);
  border-top: 1px solid var(--dd-border);
  border-bottom: 1px solid var(--dd-border);
}

/* Editorial Eyebrow & Section Headers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dd-primary);
  background: var(--dd-mint);
  border: 1px solid var(--dd-mint-border);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.eyebrow-peach {
  background: var(--dd-accent-soft);
  border-color: var(--dd-accent);
  color: var(--dd-secondary);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 38px;
}

.section-header-center {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 46px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--dd-text-muted);
  margin: 0;
  max-width: 660px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--dd-primary);
  color: var(--dd-white);
}

.btn-primary:hover {
  background-color: var(--dd-secondary);
  color: var(--dd-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--dd-white);
  color: var(--dd-secondary);
  border-color: var(--dd-secondary);
}

.btn-secondary:hover {
  background-color: var(--dd-mint);
  color: var(--dd-primary);
  border-color: var(--dd-primary);
}

.btn-peach {
  background-color: var(--dd-accent);
  color: var(--dd-secondary);
  font-weight: 700;
}

.btn-peach:hover {
  background-color: #E8A17F;
  color: var(--dd-secondary);
}

/* ==========================================================================
   HEADER & DISTINCTIVE TEXT-BASED DAILYDREW LOGO
   ========================================================================== */
.editorial-topbar {
  background-color: var(--dd-secondary);
  color: #D9E6EE;
  font-size: 0.8rem;
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-links a {
  color: #D9E6EE;
}

.topbar-links a:hover {
  color: var(--dd-accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dd-border);
  box-shadow: 0 2px 12px rgba(23, 60, 81, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 20px;
}

/* Text-Based DailyDrew Logo with Distinctive Brand Treatment */
.dailydrew-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.dd-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--dd-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.dd-logo-badge::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dd-accent);
  position: absolute;
  top: 6px;
  right: 6px;
}

.dd-logo-letter {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dd-white);
  line-height: 1;
}

.dd-logo-text-group {
  display: flex;
  flex-direction: column;
}

.dd-wordmark {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--dd-secondary);
}

.dd-wordmark-highlight {
  color: var(--dd-primary);
}

.dd-wordmark-dot {
  color: var(--dd-accent);
}

.dd-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dd-text-muted);
  margin-top: 3px;
}

/* Navigation & Dropdown */
.primary-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dd-secondary);
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
  background: var(--dd-mint);
  color: var(--dd-primary);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: none;
  z-index: 1100;
}

.dropdown-menu.mega-dropdown {
  min-width: 540px;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  padding: 18px;
}

.nav-item:hover > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu,
.dropdown-menu.is-open {
  display: block;
}

.nav-item:hover > .dropdown-menu.mega-dropdown,
.nav-item:focus-within > .dropdown-menu.mega-dropdown,
.dropdown-menu.mega-dropdown.is-open {
  display: grid;
}

.dropdown-heading {
  grid-column: 1 / -1;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dd-text-muted);
  padding: 4px 10px 8px;
  border-bottom: 1px solid var(--dd-border);
  margin-bottom: 4px;
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dd-secondary);
}

.dropdown-link:hover {
  background: var(--dd-mint);
  color: var(--dd-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.newsletter-nav-pill {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--dd-accent-soft);
  border: 1px solid var(--dd-accent);
  color: var(--dd-secondary);
}

.newsletter-nav-pill:hover {
  background: var(--dd-accent);
  color: var(--dd-secondary);
}

.search-toggle-btn,
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--dd-border);
  background: var(--dd-bg);
  color: var(--dd-secondary);
  cursor: pointer;
}

.search-toggle-btn:hover,
.mobile-menu-toggle:hover {
  background: var(--dd-mint);
  color: var(--dd-primary);
  border-color: var(--dd-primary);
}

.mobile-menu-toggle {
  display: none;
}

.search-overlay {
  display: none;
  background: var(--dd-white);
  border-bottom: 1px solid var(--dd-border);
  padding: 20px 0;
  box-shadow: var(--shadow-md);
}

.search-overlay.is-active {
  display: block;
}

.search-form-bar {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: 13px 18px;
  font-size: 1rem;
  border: 1.5px solid var(--dd-border);
  border-radius: 10px;
  color: var(--dd-secondary);
  background: var(--dd-bg);
}

/* ==========================================================================
   HERO SECTION (MULTI-AUTHOR MAGAZINE LAYOUT)
   ========================================================================== */
.hero-magazine {
  padding: 60px 0 72px;
  background: linear-gradient(180deg, var(--dd-white) 0%, var(--dd-bg) 100%);
  border-bottom: 1px solid var(--dd-border);
}

.hero-magazine-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}

.hero-headline {
  font-size: clamp(2.25rem, 4.3vw, 3.4rem);
  line-height: 1.14;
  color: var(--dd-secondary);
  margin-bottom: 20px;
}

.hero-supporting {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--dd-text-muted);
  margin-bottom: 32px;
  max-width: 590px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-editorial-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--dd-border);
}

.hero-metric-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  color: var(--dd-secondary);
  margin-bottom: 3px;
}

.hero-metric-item span {
  font-size: 0.83rem;
  color: var(--dd-text-muted);
  line-height: 1.4;
  display: block;
}

.hero-visual-showcase {
  background: var(--dd-mint);
  border: 1px solid var(--dd-mint-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.hero-visual-showcase img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

/* ==========================================================================
   FEATURED STORIES (1 LARGE + 4 SUPPORTING)
   ========================================================================== */
.featured-stories-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.featured-lead-card {
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.featured-lead-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.featured-lead-thumb {
  aspect-ratio: 16 / 10;
  background: var(--dd-mint);
  overflow: hidden;
}

.featured-lead-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-lead-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cat-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dd-primary);
  background: var(--dd-mint);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.featured-lead-title {
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  margin-bottom: 12px;
}

.featured-lead-title a {
  color: var(--dd-secondary);
}

.featured-lead-title a:hover {
  color: var(--dd-primary);
}

.featured-lead-excerpt {
  color: var(--dd-text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.meta-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--dd-text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--dd-border);
}

.meta-byline strong {
  color: var(--dd-secondary);
}

.supporting-stories-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.supporting-story-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-md);
  padding: 15px;
  align-items: center;
  transition: all var(--transition);
}

.supporting-story-card:hover {
  border-color: var(--dd-primary);
  box-shadow: var(--shadow-sm);
}

.supporting-story-thumb {
  width: 140px;
  height: 112px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--dd-mint);
}

.supporting-story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supporting-story-title {
  font-size: 1.03rem;
  margin: 4px 0 6px;
  line-height: 1.35;
}

.supporting-story-title a {
  color: var(--dd-secondary);
}

.supporting-story-title a:hover {
  color: var(--dd-primary);
}

.supporting-story-excerpt {
  font-size: 0.84rem;
  color: var(--dd-text-muted);
  margin: 0 0 6px;
  line-height: 1.45;
}

/* ==========================================================================
   EXPLORE HEALTH TOPICS (9 CATEGORIES)
   ========================================================================== */
.topics-grid-9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-hub-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.topic-hub-card:hover {
  border-color: var(--dd-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.topic-hub-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--dd-mint);
  color: var(--dd-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.topic-hub-card:hover .topic-hub-icon {
  background: var(--dd-primary);
  color: var(--dd-white);
}

.topic-hub-body h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: var(--dd-secondary);
}

.topic-hub-body p {
  font-size: 0.875rem;
  color: var(--dd-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   LATEST ARTICLES & CATEGORY FILTER TABS
   ========================================================================== */
.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-tab {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--dd-border);
  background: var(--dd-white);
  color: var(--dd-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover,
.filter-tab.is-active {
  background: var(--dd-primary);
  color: var(--dd-white);
  border-color: var(--dd-primary);
}

.articles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--dd-mint);
  overflow: hidden;
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-title {
  font-size: 1.18rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.article-card-title a {
  color: var(--dd-secondary);
}

.article-card-title a:hover {
  color: var(--dd-primary);
}

.article-card-excerpt {
  font-size: 0.9375rem;
  color: var(--dd-text-muted);
  margin-bottom: 18px;
  flex: 1;
}

/* ==========================================================================
   TRENDING HEALTH GUIDES (EDITOR-SELECTED GUIDES)
   ========================================================================== */
.trending-guides-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.trending-guide-card {
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-top: 4px solid var(--dd-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.trending-guide-card:hover {
  border-color: var(--dd-primary);
  border-top-color: var(--dd-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.editor-pick-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dd-secondary);
  background: var(--dd-accent-soft);
  border: 1px solid var(--dd-accent);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 12px;
}

/* ==========================================================================
   FEATURED PRODUCT REVIEWS
   ========================================================================== */
.reviews-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-card {
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.review-card:hover {
  border-color: var(--dd-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.verified-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--dd-accent-soft);
  border: 1px solid var(--dd-accent);
  color: var(--dd-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 11px;
  border-radius: 999px;
}

.review-card-thumb {
  aspect-ratio: 16 / 11;
  background: var(--dd-bg);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
}

.review-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   MEET OUR AUTHORS (MULTI-AUTHOR CONTRIBUTOR GRID)
   ========================================================================== */
.authors-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.author-contributor-card {
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.author-contributor-card:hover {
  border-color: var(--dd-primary);
  box-shadow: var(--shadow-md);
}

.author-avatar-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--dd-mint-border);
  background: var(--dd-mint);
  margin-bottom: 14px;
}

.author-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-role-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dd-primary);
  margin-bottom: 10px;
}

.author-bio-short {
  font-size: 0.88rem;
  color: var(--dd-text-muted);
  margin-bottom: 18px;
  flex: 1;
  line-height: 1.55;
}

/* ==========================================================================
   EDITORIAL STANDARDS (5-PILLAR TRUST SECTION)
   ========================================================================== */
.standards-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.standard-pillar-card {
  background: var(--dd-white);
  border: 1px solid var(--dd-mint-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.standard-pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--dd-secondary);
  color: var(--dd-accent);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.standard-pillar-card h3 {
  font-size: 1.04rem;
  margin-bottom: 8px;
}

.standard-pillar-card p {
  font-size: 0.88rem;
  color: var(--dd-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   SINGLE ARTICLE, PRODUCT REVIEW & AUTHOR ARCHIVE TEMPLATES
   ========================================================================== */
.breadcrumbs-nav {
  font-size: 0.85rem;
  color: var(--dd-text-muted);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.article-layout-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}

.article-main-column {
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--dd-border);
  border-bottom: 1px solid var(--dd-border);
  margin: 20px 0 28px;
  font-size: 0.88rem;
  color: var(--dd-text-muted);
}

.medical-review-badge {
  background: var(--dd-mint);
  border: 1px solid var(--dd-mint-border);
  color: var(--dd-primary-dark);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
}

.article-summary-lead {
  background: var(--dd-bg);
  border-left: 4px solid var(--dd-primary);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.08rem;
  color: var(--dd-secondary);
  margin-bottom: 28px;
}

.toc-box {
  background: var(--dd-mint);
  border: 1px solid var(--dd-mint-border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 32px;
}

.toc-box h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.toc-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.94rem;
}

.entry-content h2 {
  font-size: 1.65rem;
  margin-top: 38px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dd-border);
}

.entry-content h3 {
  font-size: 1.28rem;
  margin-top: 26px;
  margin-bottom: 10px;
}

.affiliate-disclosure-banner {
  background: var(--dd-accent-soft);
  border: 1px solid var(--dd-accent);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--dd-secondary);
  margin-bottom: 24px;
}

.product-verdict-box {
  background: var(--dd-bg);
  border: 2px solid var(--dd-primary);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 28px 0;
}

.pros-cons-grid,
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.pros-box {
  background: var(--dd-mint);
  border: 1px solid var(--dd-mint-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.cons-box {
  background: var(--dd-danger-bg);
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  padding: 22px;
}

.specs-table,
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.94rem;
}

.specs-table th,
.specs-table td,
.comparison-table th,
.comparison-table td {
  padding: 13px 16px;
  border: 1px solid var(--dd-border);
  text-align: left;
}

.comparison-table thead th {
  background: var(--dd-secondary);
  color: var(--dd-white);
}

.specs-table th {
  background: var(--dd-mint);
  color: var(--dd-secondary);
  width: 34%;
}

.references-box {
  background: var(--dd-bg);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 36px;
}

.medical-disclaimer-box {
  background: var(--dd-mint);
  border: 1px solid var(--dd-mint-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.85rem;
  margin-top: 28px;
}

.editorial-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 104px;
}

.sidebar-widget {
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* Newsletter & Footer */
.newsletter-banner {
  background: var(--dd-secondary);
  color: var(--dd-white);
  border-radius: var(--radius-lg);
  padding: 46px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 38px;
  align-items: center;
}

.newsletter-banner h2 {
  color: var(--dd-white);
  margin-bottom: 10px;
}

.newsletter-banner p {
  color: #D2E2EC;
  margin: 0;
}

.site-footer {
  background: var(--dd-secondary);
  color: #D2E2EC;
  padding: 68px 0 36px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 38px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h4 {
  color: var(--dd-accent);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #D2E2EC;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--dd-accent);
}

.pagination-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.pagination-wrap .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  color: var(--dd-secondary);
  font-weight: 600;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--dd-primary);
  color: var(--dd-white);
  border-color: var(--dd-primary);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1080px) {
  .standards-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .trending-guides-grid,
  .authors-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-magazine-grid,
  .featured-stories-grid,
  .newsletter-banner,
  .article-layout-wrapper {
    grid-template-columns: 1fr;
  }

  .topics-grid-9,
  .articles-grid-3,
  .reviews-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .editorial-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .newsletter-nav-pill {
    display: none;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dd-white);
    border-bottom: 2px solid var(--dd-border);
    padding: 18px 24px;
    box-shadow: var(--shadow-lg);
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown-menu,
  .dropdown-menu.mega-dropdown {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border: none;
    background: var(--dd-bg);
    grid-template-columns: 1fr;
  }

  .topics-grid-9,
  .articles-grid-3,
  .reviews-grid-3,
  .trending-guides-grid,
  .authors-grid-4,
  .standards-grid-5,
  .pros-cons-grid,
  .who-grid,
  .footer-grid,
  .hero-editorial-metrics {
    grid-template-columns: 1fr;
  }

  .supporting-story-card {
    grid-template-columns: 1fr;
  }

  .supporting-story-thumb {
    width: 100%;
    height: 180px;
  }

  .article-main-column,
  .newsletter-banner {
    padding: 24px;
  }
}
