/*
Theme Name: FPA Blog
Theme URI: https://fpa2023.pl
Author: FPA2023
Author URI: https://fpa2023.pl
Description: Lekki, nowoczesny i szybki szablon WordPress dla bloga dla młodych mam i kobiet w ciąży. Zoptymalizowany pod SEO i mobile.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: suplementovo
Tags: blog, parenting, pregnancy, moms, seo-friendly, responsive-layout, custom-colors
*/

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
  /* Brand colours – travel / adventure palette */
  --color-primary:         #B5546E;
  --color-primary-hover:   #CC6080;
  --color-primary-light:   #E09AB0;
  --color-primary-dark:    #8F3F56;
  --color-primary-subtle:  #FFF0F4;
  --color-primary-muted:   #F5C5D2;

  /* Neutral colours */
  --color-bg:              #FFFFFF;
  --color-bg-alt:          #FFF8FA;
  --color-border:          #EDD8DF;
  --color-border-strong:   #F5C5D2;
  --color-text:            #1A1A2E;
  --color-text-muted:      #546E7A;
  --color-text-light:      #90A4AE;

  /* Semantic */
  --color-success:         #2E7D32;
  --color-warning:         #E65100;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --leading-tight:  1.25;
  --leading-snug:   1.375;
  --leading-normal: 1.5;
  --leading-relaxed:1.625;
  --leading-loose:  1.75;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max:    1200px;
  --container-prose:  72ch;
  --container-narrow: 56ch;
  --gutter:           1.5rem;

  /* Borders */
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(21, 101, 192, .04);
  --shadow-sm: 0 2px 8px rgba(21, 101, 192, .08);
  --shadow:    0 4px 16px rgba(21, 101, 192, .10);
  --shadow-md: 0 8px 24px rgba(21, 101, 192, .12);
  --shadow-lg: 0 16px 40px rgba(21, 101, 192, .14);

  /* Transitions */
  --transition-fast: 120ms ease;
  --transition:      200ms ease;
  --transition-slow: 320ms ease;
}

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover { color: var(--color-primary-hover); }
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

p { margin: 0; }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 860px;
}

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

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary);
  color: #fff;
  font-weight: var(--font-semibold);
  border-radius: var(--radius);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-4); color: #fff; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 64px;
}

/* Logo */
.site-branding {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.site-branding__logo {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-branding__logo svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.site-branding__name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.site-branding__name span {
  color: var(--color-primary);
}

/* Primary Navigation */
.primary-nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.primary-nav > ul > li {
  position: relative;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  border-radius: var(--radius);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

/* Chevron indicator for items with children */
.primary-nav .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  position: relative;
  top: -1px;
}

.primary-nav .menu-item-has-children:hover > a::after,
.primary-nav .menu-item-has-children:focus-within > a::after {
  transform: rotate(-135deg);
  top: 2px;
}

/* Desktop dropdown submenu */
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 220px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: var(--space-2) 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility 0s var(--transition);
  z-index: 1000;
}

/* Small arrow pointing to parent */
.primary-nav .sub-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  margin-left: -5px;
  width: 10px;
  height: 10px;
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  transform: rotate(45deg);
}

/* Invisible bridge between the nav item and dropdown: fills the gap so
   the mouse doesn't lose :hover when crossing from the link to the menu */
.primary-nav .menu-item-has-children:hover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 12px; /* slightly more than the 8px gap */
  z-index: 999;
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity var(--transition), transform var(--transition), visibility 0s;
}

.primary-nav .sub-menu li {
  display: block;
}

.primary-nav .sub-menu li + li {
  border-top: 1px solid var(--color-border);
}

.primary-nav .sub-menu a {
  display: block;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
  white-space: nowrap;
  border-radius: 0;
  background: none;
}

.primary-nav .sub-menu a:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}


/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  border-radius: var(--radius);
  color: var(--color-text);
  transition: background var(--transition-fast);
}

.menu-toggle:hover { background: var(--color-bg-alt); }

.menu-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Desktop: show primary nav, hide hamburger (matches critical CSS breakpoint) */
@media (min-width: 900px) {
  .primary-nav { display: flex; }
  .menu-toggle  { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: var(--space-4) 0;
}

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

.mobile-nav ul { list-style: none; }

.mobile-nav a {
  display: block;
  padding: var(--space-3) var(--gutter);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}

.mobile-nav a:hover { background: var(--color-primary-subtle); }

/* Mobile nav – parent items with children (flex layout for toggle button) */
.mobile-nav .menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav .menu-item-has-children > a {
  flex: 1 1 auto;
  font-weight: var(--font-semibold);
  color: var(--color-text);
  border-bottom: none;
}

/* Remove static ::after chevron – replaced by real toggle button */
.mobile-nav .menu-item-has-children > a::after {
  display: none;
}

/* Mobile submenu toggle button */
.mobile-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  background: none;
  border: none;
  border-left: 1px solid var(--color-border);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-submenu-toggle:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.mobile-submenu-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.mobile-submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Mobile nav – child submenu hidden by default */
.mobile-nav .sub-menu {
  display: none;
  width: 100%;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-primary);
  margin-left: var(--gutter);
}

.mobile-nav .sub-menu.is-open {
  display: block;
}

.mobile-nav .sub-menu a {
  padding-left: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  color: var(--color-text-muted);
  border-bottom-color: transparent;
}

.mobile-nav .sub-menu a:hover {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

/* Mobile nav – nested third level */
.mobile-nav .sub-menu .sub-menu {
  margin-left: var(--space-4);
  border-left-color: var(--color-border);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.site-main {
  min-height: calc(100vh - 64px - 320px);
  padding-block: var(--space-10);
}

/* ============================================
   HERO / PAGE HEADER
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-hover) 100%);
  color: #fff;
  padding-block: var(--space-16) var(--space-12);
  margin-bottom: var(--space-12);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header .container { position: relative; }

.page-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-muted);
  margin-bottom: var(--space-4);
}

.page-header__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-bold);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  max-width: 18ch;
}

.page-header__description {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: rgba(255,255,255,.78);
  max-width: 54ch;
  line-height: var(--leading-relaxed);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--color-primary); }

.breadcrumb__sep {
  color: var(--color-border-strong);
}

.breadcrumb__current {
  color: var(--color-text);
  font-weight: var(--font-medium);
}

/* ============================================
   POST CARD
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.post-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

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

.post-card__thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-primary-subtle);
}

.post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card__thumbnail img {
  transform: scale(1.04);
}

.post-card__thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-subtle), var(--color-primary-muted));
}

.post-card__thumbnail-placeholder svg {
  width: 48px;
  height: 48px;
  fill: var(--color-primary);
  opacity: .4;
}

.post-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.post-card__category {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary-muted);
  text-decoration: none;
  width: fit-content;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.post-card__category:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.post-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-card__title a:hover { color: var(--color-primary); }

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.post-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.post-card__meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
}

.post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.post-card__read-more:hover {
  gap: var(--space-3);
  color: var(--color-primary-dark);
}

.post-card__read-more svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================
   FEATURED POST (first post on homepage)
   ============================================ */
.post-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.post-card--featured .post-card__thumbnail-link {
  width: 50%;
  flex-shrink: 0;
  display: block;
}

.post-card--featured .post-card__thumbnail {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
}

.post-card--featured .post-card__body {
  padding: var(--space-8);
  gap: var(--space-4);
}

.post-card--featured .post-card__title {
  font-size: var(--text-2xl);
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.post-card--featured .post-card__excerpt {
  -webkit-line-clamp: 4;
}

/* When the last regular card sits alone in a 3-column row, let it keep its
   normal single-column width so the grid stays uniform. */

/* ============================================
   HOMEPAGE LAYOUT
   ============================================ */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-10);
  align-items: start;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: calc(64px + var(--space-6));
}

.widget {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.widget__title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.widget__title::before {
  content: '';
  display: block;
  width: 3px;
  height: 1em;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* Category widget */
.widget-categories ul { list-style: none; }

.widget-categories li {
  border-bottom: 1px solid var(--color-border);
}

.widget-categories li:last-child { border-bottom: none; }

.widget-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.widget-categories a:hover { color: var(--color-primary); }

.widget-categories .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding-inline: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-radius: var(--radius-full);
}

/* Recent posts widget */
.widget-recent-posts ul { list-style: none; }

.widget-recent-posts li {
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.widget-recent-posts li:last-child { border-bottom: none; }

.widget-recent-posts a {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.widget-recent-posts a:hover { color: var(--color-primary); }

.widget-recent-posts .post-date {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-top: var(--space-1);
}

/* About widget */
.widget-about {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-color: transparent;
  color: #fff;
}

.widget-about .widget__title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.15);
}

.widget-about .widget__title::before {
  background: rgba(255,255,255,.6);
}

.widget-about p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.85);
  line-height: var(--leading-relaxed);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-12);
  align-items: start;
}

.post-header {
  margin-bottom: var(--space-8);
}

.post-header__categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.post-category-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary-muted);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.post-category-tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.post-header__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--font-bold);
  letter-spacing: -0.025em;
  line-height: var(--leading-tight);
  color: var(--color-text);
}

.post-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.post-header__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.post-header__meta svg {
  width: 16px;
  height: 16px;
  fill: var(--color-text-light);
  flex-shrink: 0;
}

.post-header__meta a {
  color: var(--color-text-muted);
  font-weight: var(--font-medium);
}

.post-header__meta a:hover { color: var(--color-primary); }

/* Featured image */
.post-featured-image {
  margin-bottom: var(--space-8);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--color-primary-subtle);
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post content */
.entry-content {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--color-text);
  max-width: var(--container-prose);
}

.entry-content > * + * { margin-top: 1.5em; }

.entry-content h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-top: 2em;
  margin-bottom: 0.75em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--color-primary-subtle);
  scroll-margin-top: 80px;
}

.entry-content h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  scroll-margin-top: 80px;
}

.entry-content h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  scroll-margin-top: 80px;
}

.entry-content p {
  margin-top: 1.25em;
}

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-primary-muted);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.entry-content a:hover {
  text-decoration-color: var(--color-primary);
}

.entry-content strong { font-weight: var(--font-bold); }
.entry-content em { font-style: italic; }

.entry-content ul,
.entry-content ol {
  margin-top: 1.25em;
  padding-left: 1.75em;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li { margin-top: 0.5em; }

.entry-content ul li::marker,
.entry-content ol li::marker {
  color: var(--color-primary);
  font-weight: var(--font-bold);
}

.entry-content blockquote {
  margin-block: 2em;
  padding: var(--space-5) var(--space-6);
  background: var(--color-primary-subtle);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.entry-content blockquote p { margin: 0; }

.entry-content code {
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.9em;
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-primary-muted);
}

.entry-content pre {
  background: var(--color-text);
  color: #e8eaf6;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  overflow-x: auto;
  display: block;
}

.entry-content th {
  background: var(--color-primary);
  color: #fff;
  font-weight: var(--font-semibold);
  padding: var(--space-3) var(--space-4);
  text-align: left;
}

.entry-content td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.entry-content tr:nth-child(even) td {
  background: var(--color-bg-alt);
}

.entry-content img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

.entry-content figure { margin-block: 2em; }

.entry-content figcaption {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  font-style: italic;
}

/* ============================================
   POST TAGS
   ============================================ */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.post-tags__label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
}

.tag-link {
  display: inline-flex;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.tag-link:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-color: var(--color-primary-muted);
}

/* ============================================
   AUTHOR BOX
   ============================================ */
.author-box {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.author-box__avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--color-primary-subtle);
}

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

.author-box__name {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.author-box__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ============================================
   RELATED POSTS
   ============================================ */
.related-posts {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--color-border), transparent);
  border-radius: var(--radius-full);
}

/* ============================================
   ARCHIVE HEADER
   ============================================ */
.archive-header {
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--color-primary-subtle), var(--color-bg));
  border: 1px solid var(--color-primary-muted);
  border-radius: var(--radius-xl);
}

.archive-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.archive-description {
  margin-top: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.page-numbers:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-color: var(--color-primary-muted);
}

.page-numbers.current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.page-numbers.dots {
  border: none;
  background: none;
  pointer-events: none;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-section {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.comment-list { list-style: none; }

.comment {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-body {
  display: flex;
  gap: var(--space-4);
}

.comment-author img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.comment-author-name {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.comment-date {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-top: var(--space-1);
}

.comment-text {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Comment form */
.comment-respond {
  margin-top: var(--space-8);
}

.comment-reply-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.comment-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, .12);
}

.comment-form textarea { min-height: 140px; resize: vertical; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary-muted);
}

.btn--outline:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ============================================
   404 / NO CONTENT
   ============================================ */
.not-found {
  text-align: center;
  padding-block: var(--space-24);
  max-width: 480px;
  margin-inline: auto;
}

.not-found__code {
  font-size: 6rem;
  font-weight: var(--font-bold);
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
}

.not-found__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-top: var(--space-4);
}

.not-found__description {
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  line-height: var(--leading-relaxed);
}

.not-found__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-8);
}

/* ============================================
   SEARCH FORM (standalone)
   ============================================ */
.search-form {
  display: flex;
  gap: var(--space-3);
}

.search-form__input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-form__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, .12);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,.75);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand__name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: #fff;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.footer-brand__name span { color: var(--color-primary-light); }

.footer-brand__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  line-height: var(--leading-relaxed);
  max-width: 26ch;
}

.footer-col__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.footer-col ul { list-style: none; }

.footer-col li + li { margin-top: var(--space-3); }

.footer-col a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.4);
}

.footer-bottom a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover { color: #fff; }

/* ============================================
   TOC (Table of Contents)
   ============================================ */
.toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-8);
}

.toc__title {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toc__list a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  display: flex;
  gap: var(--space-2);
  transition: color var(--transition-fast);
}

.toc__list a:hover { color: var(--color-primary); }

.toc__list a::before {
  content: '\2192';
  color: var(--color-primary-light);
  flex-shrink: 0;
}

/* ============================================
   HOMEPAGE CATEGORY SECTIONS
   ============================================ */
.home-category-section {
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

.home-category-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.home-category-section__header {
  margin-bottom: var(--space-8);
}

.home-category-section__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.home-category-section__title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary-muted), transparent);
  border-radius: var(--radius-full);
}

.home-category-section__title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.home-category-section__title a:hover {
  color: var(--color-primary);
}

.home-category-section__description {
  margin-top: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 60ch;
}

.home-category-section__footer {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  text-align: center;
}

.btn--more {
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  margin-top: 20px;
}

.btn--more svg {
  transition: transform var(--transition-fast);
}

.btn--more:hover svg {
  transform: translateX(4px);
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary-dark), var(--color-primary-light));
  width: 0%;
  transition: width 100ms linear;
}

/* ============================================
   RESPONSIVE - TABLET (<= 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .home-layout {
    grid-template-columns: 1fr 260px;
    gap: var(--space-8);
  }

  .single-layout {
    grid-template-columns: 1fr 240px;
    gap: var(--space-8);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-category-section {
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .home-category-section__title {
    font-size: var(--text-2xl);
  }

  .post-card--featured {
    max-height: none;
    flex-direction: column;
  }

  .post-card--featured .post-card__thumbnail-link {
    width: 100%;
  }

  .post-card--featured .post-card__thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* ============================================
   RESPONSIVE - MOBILE (<= 768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --gutter: 1rem;
  }

  .site-main { padding-block: var(--space-6); }

  .home-layout,
  .single-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .post-card--featured {
    flex-direction: column;
    max-height: none;
  }

  .post-card--featured .post-card__thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .post-card--featured .post-card__body {
    padding: var(--space-5);
  }

  .post-card--featured .post-card__title {
    font-size: var(--text-xl);
  }

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

  .page-header {
    padding-block: var(--space-10) var(--space-8);
    margin-bottom: var(--space-6);
  }

  .home-category-section {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .home-category-section__header {
    margin-bottom: var(--space-5);
  }

  .home-category-section__title {
    font-size: var(--text-xl);
  }

  .home-category-section__footer {
    margin-top: var(--space-6);
  }

  .author-box {
    flex-direction: column;
  }

  .comment-form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .not-found__actions {
    flex-direction: column;
    align-items: center;
  }

  .search-form { flex-direction: column; }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (<= 480px)
   ============================================ */
@media (max-width: 480px) {
  .post-header__meta {
    gap: var(--space-3);
  }

  .page-header__title {
    font-size: var(--text-2xl);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .related-posts,
  .comments-section,
  .reading-progress {
    display: none !important;
  }

  .single-layout,
  .home-layout {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* ============================================
   WORDPRESS CORE CLASSES
   ============================================ */
.alignnone  { margin: 1em 0; }
.aligncenter { margin: 1em auto; display: block; }
.alignleft  { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.wp-caption  { max-width: 100%; }
.wp-caption-text { font-size: var(--text-sm); color: var(--color-text-muted); font-style: italic; }

/* Gutenberg block styles */
.wp-block-image img { border-radius: var(--radius-lg); }
.wp-block-quote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-6);
  background: var(--color-primary-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-block: 1.5em;
}
.wp-block-quote p { font-style: italic; color: var(--color-text-muted); }
.wp-block-separator { border-color: var(--color-border); margin-block: 2em; }

/* Prevent wide/full-aligned blocks from overflowing on mobile */
.alignwide,
.alignfull {
  max-width: 100%;
  width: 100%;
}

/* Prevent iframes and embedded media from overflowing */
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
  max-width: 100%;
}

/* Wrap wide iframes/embeds so they scroll internally rather than push the page */
.wp-block-embed__wrapper {
  overflow-x: auto;
  max-width: 100%;
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.4s ease both;
}

/* ============================================
   SUPPLEMENT DISCLAIMER
   ============================================ */
.supplement-disclaimer {
  margin-top: 30px;
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-primary-muted);
  border-radius: var(--radius);
}

.supplement-disclaimer p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}
