/* ==========================================
   Exzema Blog Stylesheet
   Inherits variables from styles.css
   ========================================== */

/* Top Navigation Bar (Aliases to Global Site Header) */
.site-header,
.blog-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50000;
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 58, 45, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled,
.blog-nav.scrolled {
    background: rgba(253, 251, 247, 0.98);
    box-shadow: 0 4px 24px rgba(45, 58, 45, 0.05);
    border-bottom-color: rgba(45, 58, 45, 0.1);
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.75rem;
}

.site-header-left,
.blog-nav-left {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.site-logo,
.blog-nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-logo:hover,
.blog-nav-logo:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.site-logo-img,
.blog-nav-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 9px;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
}

.site-nav-links,
.blog-nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-link,
.blog-nav-link {
    text-decoration: none;
    color: var(--brand-forest);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.78;
    position: relative;
    padding: 0.25rem 0;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.site-nav-link:hover,
.blog-nav-link:hover {
    opacity: 1;
    color: var(--brand-forest);
}

.site-nav-link.active,
.blog-nav-link.active {
    opacity: 1;
    color: var(--brand-forest);
    font-weight: 600;
}

.site-nav-link.active::after,
.blog-nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-clay);
    border-radius: 2px;
}

.site-header-right,
.blog-nav-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.btn-nav-tracker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 1.25rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    border: 1.5px solid var(--brand-forest);
    border-radius: 100px;
    color: var(--brand-forest);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-nav-tracker:hover {
    background: var(--brand-forest);
    color: var(--brand-cream);
    transform: translateY(-1px);
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 1.25rem;
    background: var(--brand-clay);
    border: 1.5px solid var(--brand-clay);
    border-radius: 100px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(193, 103, 87, 0.25);
}

.btn-nav-cta:hover {
    background: #a95647;
    border-color: #a95647;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(193, 103, 87, 0.35);
}

.btn-resume {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 1.25rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(45, 58, 45, 0.22);
    border-radius: 100px;
    color: var(--brand-forest);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-resume:hover {
    border-color: var(--brand-forest);
    background: rgba(45, 58, 45, 0.08);
    transform: translateY(-1px);
}

/* Mobile Toggle Hamburger Button */
.site-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.site-mobile-toggle:hover {
    background: rgba(45, 58, 45, 0.05);
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--brand-forest);
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.site-mobile-toggle.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-mobile-toggle.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.site-mobile-toggle.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Dropdown */
.site-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(45, 58, 45, 0.08);
    box-shadow: 0 16px 36px rgba(45, 58, 45, 0.08);
    padding: 1.25rem 1.75rem 2rem;
    transform-origin: top;
    animation: mobileMenuSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-mobile-menu.is-active {
    display: block;
}

@keyframes mobileMenuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-mobile-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--brand-forest);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-mobile-link:hover,
.site-mobile-link.active {
    color: var(--brand-clay);
    font-weight: 600;
    background: rgba(193, 103, 87, 0.06);
}

.site-mobile-divider {
    height: 1px;
    background: var(--brand-sand);
    margin: 0.75rem 0;
}

.btn-mobile-tracker {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1.5px solid var(--brand-forest);
    border-radius: 100px;
    color: var(--brand-forest);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 0.6rem;
}

.btn-mobile-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--brand-clay);
    border: 1.5px solid var(--brand-clay);
    border-radius: 100px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(193, 103, 87, 0.25);
}

/* Responsive Header Breakpoints */
@media (max-width: 820px) {
    .site-nav {
        display: none;
    }

    .btn-nav-tracker {
        display: none;
    }

    .site-mobile-toggle {
        display: flex;
    }

    .site-header-inner {
        padding: 0.85rem 1.25rem;
    }
}

@media (max-width: 600px) {
    .site-header .header-guest-actions,
    .blog-nav .header-guest-actions {
        display: none !important;
    }

    .site-header-inner {
        padding: 0.75rem 1rem;
    }

    .category-tab {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 0.55rem 1.15rem;
    }
}

@media (max-width: 360px) {
    .site-header-inner {
        padding: 0.65rem 0.75rem;
    }
    .site-header-left {
        gap: 0.5rem;
    }
    .site-header-right {
        gap: 0.4rem;
    }
    .site-logo-img {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================
   Blog Index / Listing Styles
   ========================================== */

.blog-index-hero {
    max-width: 900px;
    margin: 3rem auto 2.5rem;
    text-align: center;
    padding: 0 1.5rem;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(193, 103, 87, 0.1);
    color: var(--brand-clay);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.blog-index-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--brand-forest);
}

.blog-index-title em {
    font-style: italic;
    color: var(--brand-clay);
}

.blog-index-subtitle {
    font-size: 1.15rem;
    color: var(--brand-slate);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Category Filter Tabs */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
    padding: 0 1rem;
}

.category-tab {
    font-family: inherit;
    padding: 0.45rem 1.15rem;
    background: #ffffff;
    border: 1px solid var(--brand-sand);
    border-radius: 100px;
    color: var(--brand-forest);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.category-tab:hover {
    background: var(--brand-sand);
    border-color: rgba(45, 58, 45, 0.2);
}

.category-tab.active {
    background: var(--brand-forest);
    color: var(--brand-cream);
    border-color: var(--brand-forest);
}

.category-tab:focus-visible {
    outline: 2px solid var(--brand-clay);
    outline-offset: 2px;
}

/* Article Cards Container */
.blog-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.blog-grid article {
    display: flex;
    flex-direction: column;
    height: 100%;
    will-change: transform, opacity;
}

.blog-card {
    background: #ffffff;
    border: 1px solid var(--brand-sand);
    border-radius: 1.25rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(45, 58, 45, 0.08);
    border-color: rgba(45, 58, 45, 0.18);
}

.blog-card > div:first-child,
.blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--brand-slate);
    margin-bottom: 1rem;
}

.blog-card-category {
    padding: 0.2rem 0.6rem;
    background: var(--brand-sand);
    color: var(--brand-forest);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.blog-card-title {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 600;
    color: var(--brand-forest);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.25rem * 1.35 * 3);
    overflow-wrap: break-word;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(0.95rem * 1.6 * 3);
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(245, 235, 224, 0.6);
    font-size: 0.85rem;
    color: var(--brand-clay);
    font-weight: 600;
}

.blog-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Empty state when category filter has no matching posts */
.blog-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4.5rem 2rem;
    background: #ffffff;
    border: 1.5px dashed var(--brand-sand);
    border-radius: 1.25rem;
    max-width: 540px;
    margin: 1.5rem auto 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.blog-empty-icon {
    font-size: 2.75rem;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.blog-empty-title {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    color: var(--brand-forest);
    margin: 0 0 0.5rem;
}

.blog-empty-desc {
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto 1.75rem;
}

.blog-empty-reset {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: var(--brand-forest);
    color: var(--brand-cream);
    border: 1.5px solid var(--brand-forest);
    border-radius: 100px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(45, 58, 45, 0.15);
}

.blog-empty-reset:hover {
    background: #1b261b;
    border-color: #1b261b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 58, 45, 0.25);
}

/* ==========================================
   Article Detail Page Styles
   ========================================== */

.article-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem;
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--brand-slate);
    margin-bottom: 2rem;
}

.article-breadcrumbs a {
    color: var(--brand-slate);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
    color: var(--brand-clay);
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-tag-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(193, 103, 87, 0.1);
    color: var(--brand-clay);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-read-time {
    font-size: 0.85rem;
    color: var(--brand-slate);
}

.article-title {
    font-size: clamp(2.1rem, 4.5vw, 3.25rem);
    line-height: 1.15;
    font-weight: 500;
    color: var(--brand-forest);
    margin-bottom: 1.5rem;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--brand-sand);
}

.article-author-img {
    width: 48px;
    height: 48px;
    border-radius: 100px;
    border: 2px solid var(--brand-sand);
    object-fit: cover;
}

.article-author-name {
    font-weight: 600;
    color: var(--brand-forest);
    font-size: 0.95rem;
}

.article-author-role {
    font-size: 0.825rem;
    color: var(--brand-slate);
}

.article-date {
    font-size: 0.825rem;
    color: var(--brand-slate);
}

/* AI Engine / GEO Summary Box */
.article-key-takeaways {
    background: #ffffff;
    border: 1px solid rgba(74, 122, 89, 0.3);
    border-left: 4px solid var(--brand-success);
    border-radius: 0.85rem;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0 2.5rem;
    box-shadow: 0 4px 16px rgba(74, 122, 89, 0.05);
}

.takeaway-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brand-forest);
    margin-bottom: 0.75rem;
}

.takeaway-header-icon {
    font-size: 1.1rem;
}

.article-key-takeaways ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #2d3748;
}

.article-key-takeaways li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.article-key-takeaways li:last-child {
    margin-bottom: 0;
}

/* Article Body Typography */
.article-prose {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #232d23;
}

.article-prose p {
    margin-bottom: 1.75rem;
}

.article-prose h2 {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--brand-forest);
}

.article-prose h3 {
    font-size: 1.4rem;
    line-height: 1.35;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--brand-forest);
}

.article-prose ul,
.article-prose ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.article-prose li {
    margin-bottom: 0.5rem;
}

.article-prose strong {
    color: var(--brand-forest);
    font-weight: 600;
}

.article-prose em {
    font-style: italic;
}

.article-prose blockquote {
    border-left: 3px solid var(--brand-clay);
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #374151;
    margin: 2.5rem 0;
}

.article-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    font-size: 0.95rem;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--brand-sand);
}

.article-prose th,
.article-prose td {
    padding: 0.85rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--brand-sand);
}

.article-prose th {
    background: var(--brand-sand);
    color: var(--brand-forest);
    font-weight: 600;
    font-size: 0.9rem;
}

.article-prose tr:last-child td {
    border-bottom: none;
}

.article-prose code {
    background: var(--brand-sand);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* In-Content Action Callout (Dual-Layer Interactive Eczema Skin-Soothe Card) */
.article-cta-box {
    position: relative;
    overflow: hidden;
    background-color: #F7EFEB; /* Calm skin base */
    border: 1.5px solid rgba(214, 163, 160, 0.45);
    border-radius: 1.25rem;
    margin: 3.5rem 0;
    box-shadow: 0 12px 36px -12px rgba(214, 163, 160, 0.25);
    cursor: default;
}

.article-cta-layer {
    padding: 3rem 2rem 2.75rem;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

/* 1. Calm Healed Layer (Underneath: Revealed when soothed) */
.layer-calm {
    position: relative;
    z-index: 1;
    background-color: #F7EFEB;
}

.layer-calm .article-cta-title {
    font-family: 'Lora', serif;
    font-size: 1.75rem;
    color: var(--brand-forest); /* Dark forest */
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.layer-calm .article-cta-desc {
    color: rgba(45, 58, 45, 0.88); /* Dark forest */
    max-width: 520px;
    margin: 0 auto 1.75rem;
    font-size: 1.02rem;
    line-height: 1.6;
}

.layer-calm .btn-nav-cta {
    background: var(--brand-forest);
    border: 1.5px solid var(--brand-forest);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(45, 58, 45, 0.2);
}

.layer-calm .btn-nav-cta:hover {
    background: #1b261b;
    border-color: #1b261b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(45, 58, 45, 0.3);
}

.layer-calm .btn-nav-tracker {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: 1.5px solid var(--brand-forest);
    color: var(--brand-forest);
}

.layer-calm .btn-nav-tracker:hover {
    background: var(--brand-forest);
    color: #ffffff;
    transform: translateY(-2px);
}

/* 2. Flared-Up Layer (Top Overlay - Light Font on Red Background) */
.layer-flared {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 2;
    background-color: #D6A3A0; /* Flared-up inflamed skin */
    pointer-events: none; /* Let all clicks, focus & hover pass through to calm layer */
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    will-change: mask-image, -webkit-mask-image, opacity;
}

.layer-flared .article-cta-title {
    font-family: 'Lora', serif;
    font-size: 1.75rem;
    color: #F7EFEB; /* Light cream font on red! */
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.layer-flared .article-cta-desc {
    color: rgba(247, 239, 235, 0.95); /* Light cream font on red! */
    max-width: 520px;
    margin: 0 auto 1.75rem;
    font-size: 1.02rem;
    line-height: 1.6;
}

.layer-flared .btn-nav-cta {
    background: #F7EFEB;
    border: 1.5px solid #F7EFEB;
    color: var(--brand-forest);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.layer-flared .btn-nav-tracker {
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid #F7EFEB;
    color: #F7EFEB;
}

.article-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 3. Mobiles & Tablets: Permanently reveal calm skin since touch devices have no hover state */
@media (hover: none), (pointer: coarse), (max-width: 820px) {
    .layer-flared {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .article-cta-layer {
        padding: 2.25rem 1.25rem 2rem;
    }

    .article-cta-title {
        font-size: 1.45rem;
    }

    .article-cta-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .article-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .article-cta-buttons .btn-nav-tracker,
    .article-cta-buttons .btn-nav-cta {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-right: 0;
        box-sizing: border-box;
    }
}

/* ==========================================
   Rich Infographic & Structural Components
   ========================================== */

/* 1. 4-Pillar Infographic Component */
.pillar-diagram {
    background: #ffffff;
    border: 1.5px solid var(--brand-sand);
    border-radius: 1.25rem;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.pillar-diagram-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 1.75rem;
}

.pillar-diagram-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-clay);
    background: rgba(193, 103, 87, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.article-prose .pillar-diagram-title,
.pillar-diagram-header h3,
.pillar-diagram-title {
    font-family: 'Lora', serif;
    font-size: 1.65rem;
    color: var(--brand-forest);
    margin-top: 0 !important;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.pillar-diagram-subtitle {
    font-size: 0.95rem;
    color: var(--brand-slate);
    line-height: 1.5;
    margin: 0;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pillar-card {
    background: var(--brand-cream);
    border: 1px solid var(--brand-sand);
    border-radius: 1rem;
    padding: 1.6rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.pillar-icon {
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
    line-height: 1;
}

.pillar-name {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-forest);
    margin: 0 0 0.75rem;
    border-bottom: 1.5px solid var(--brand-sand);
    padding-bottom: 0.5rem;
}

.pillar-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pillar-list li {
    font-size: 0.88rem !important;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 0 !important;
    padding-left: 0.85rem;
    position: relative;
}

.pillar-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand-clay);
    font-weight: bold;
}

/* 2. Protocol Stepper Timeline */
.protocol-stepper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 3rem 0;
}

.protocol-step {
    background: #ffffff;
    border: 1px solid var(--brand-sand);
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.protocol-step:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border-color: rgba(199, 121, 107, 0.35);
}

.protocol-step-icon {
    width: 44px;
    height: 44px;
    background: rgba(199, 121, 107, 0.12);
    border: 1.5px solid #C7796B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #C7796B;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.protocol-step:hover .protocol-step-icon {
    transform: scale(1.06);
    background: rgba(199, 121, 107, 0.18);
    box-shadow: 0 4px 12px rgba(199, 121, 107, 0.2);
}

.protocol-step-icon svg {
    width: 22px;
    height: 22px;
    stroke: #C7796B;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.protocol-step-number {
    width: 42px;
    height: 42px;
    background: rgba(199, 121, 107, 0.12);
    border: 1.5px solid #C7796B;
    color: #C7796B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.protocol-step-content {
    flex: 1;
}

.protocol-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.protocol-step-header h4 {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    color: var(--brand-forest);
    margin: 0;
    line-height: 1.3;
}

.protocol-step-duration {
    font-size: 0.78rem;
    font-weight: 700;
    color: #C7796B;
    background: rgba(199, 121, 107, 0.12);
    border: 1px solid rgba(199, 121, 107, 0.25);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.protocol-step-content p {
    font-size: 0.98rem;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
}

.protocol-step-outcome {
    font-size: 0.88rem;
    color: var(--brand-slate);
    background: var(--brand-cream);
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--brand-forest);
}

/* 3. Comparison Cards (e.g. IgE vs Delayed Reaction) */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

.comparison-card {
    background: #ffffff;
    border: 1.5px solid var(--brand-sand);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.comparison-card.featured {
    border-color: var(--brand-clay);
    background: #fffdfb;
}

.comparison-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.comparison-badge.badge-warning {
    color: #92400e;
    background: #fef3c7;
}

.comparison-badge.badge-accent {
    color: #ffffff;
    background: var(--brand-clay);
}

.comparison-card h4 {
    font-family: 'Lora', serif;
    font-size: 1.35rem;
    color: var(--brand-forest);
    margin: 0 0 1rem;
}

.comparison-stat {
    background: var(--brand-cream);
    border-radius: 0.6rem;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--brand-slate);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-forest);
}

.stat-value.highlight {
    color: var(--brand-clay);
}

.comparison-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.comparison-list li {
    font-size: 0.92rem !important;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 0 !important;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--brand-sand);
}

.comparison-list li:last-child {
    border-bottom: none;
}

/* 4. Callout Box */
.callout-box {
    background: rgba(45, 58, 45, 0.04);
    border-left: 4px solid var(--brand-forest);
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1.25rem 1.5rem;
    margin: 2.25rem 0;
}

.callout-box.tip {
    background: rgba(193, 103, 87, 0.06);
    border-left-color: var(--brand-clay);
}

.callout-box p {
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #2d3748 !important;
}

/* Responsive adjustments */
@media (max-width: 860px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .pillar-grid {
        grid-template-columns: 1fr;
    }
    .pillar-diagram {
        padding: 1.25rem 1rem 1.5rem;
    }
    .protocol-step {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Medical Disclaimer Card */
.article-disclaimer {
    background: rgba(245, 235, 224, 0.4);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 2.5rem 0 1rem;
}

.article-disclaimer strong {
    color: #4b5563;
}

/* Bottom Pagination & Nav */
.article-nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--brand-sand);
    margin-top: 2rem;
}

.article-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--brand-forest);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.article-nav-back:hover {
    color: var(--brand-clay);
}

/* Related Clinical Research & Guides */
.blog-related-section {
    margin: 3.5rem 0 2rem 0;
    padding-top: 2.25rem;
    border-top: 1px solid var(--brand-sand);
}

.blog-related-header {
    margin-bottom: 1.25rem;
}

.blog-related-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-forest);
    opacity: 0.8;
    display: block;
    margin-bottom: 0.35rem;
}

.blog-related-title {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-forest);
    margin: 0;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

.blog-related-grid article {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-related-grid .blog-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem 4rem;
    }

    .blog-related-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        padding: 1.5rem;
    }
    
    .article-container {
        padding: 1.5rem 1rem 4rem;
    }

    .article-author-card {
        flex-direction: column;
        text-align: center;
    }
}
