/* ==========================================================================
   CEPHA INSIGHTS DESK — SCOPED ANTI-COLLISION ENGINE (STANDALONE NO-HEADER)
   ========================================================================== */

/* Core UI & Token Definitions Fallbacks */
:root {
    --primary: #007a87;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius-full: 9999px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

/* System Typography Base Setup */
.ceph-editorial-wrapper,
.ceph-article-canvas-container {
    background-color: var(--white);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Standard Layout Container Matrix */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
    box-sizing: border-box;
}

/* Scoped Editorial Hub Header (Fallback index UI) */
.ceph-editorial-hub-header {
    margin-top: 40px; /* Natural spacing since fixed header is removed */
    padding: 60px 0 40px;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.ceph-blog-hub-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #eff6ff;
    border: 1px solid rgba(0, 122, 135, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.ceph-editorial-hub-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.ceph-editorial-hub-header p {
    max-width: 680px;
    margin: 0 auto 32px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Category Filters */
.ceph-blog-category-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ceph-blog-category-pill {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ceph-blog-category-pill:hover, .ceph-blog-category-pill.active {
    background: var(--text-main);
    color: var(--white);
    border-color: var(--text-main);
}

/* Isolated Grid and Card Scopes */
.ceph-editorial-grid-section {
    padding: 60px 0 100px;
}

.ceph-editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 40px;
}

.ceph-blog-editorial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.ceph-blog-editorial-card:hover {
    border-color: rgba(0, 122, 135, 0.25);
    box-shadow: var(--shadow-premium);
    transform: translateY(-4px);
}

.ceph-blog-thumb-frame {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.ceph-blog-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ceph-blog-editorial-card:hover .ceph-blog-thumb-img {
    transform: scale(1.03);
}

.ceph-blog-tag-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ceph-blog-card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ceph-blog-metrics-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.ceph-blog-editorial-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.ceph-blog-brief-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Uniquely Named Article Canvas Engine */
.ceph-article-canvas-container {
    padding: 60px 0 100px; /* Shifted down cleanly for a standard non-overlapping header layout */
    background: var(--white);
    box-sizing: border-box;
}

.ceph-article-breadcrumbs {
    margin-bottom: 32px;
}

/* Back Button Restyling & High Contrast Alignment */
.ceph-article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 8px 16px;
    margin-left: -16px; /* Offsets padding padding frames for alignment */
    border-radius: var(--radius-full);
}

.ceph-article-back-link:hover {
    color: var(--primary);
    background-color: var(--bg-light);
}

.ceph-article-back-link svg {
    transition: transform 0.2s ease;
}

.ceph-article-back-link:hover svg {
    transform: translateX(-3px);
}

.ceph-article-editorial-hero {
    max-width: 740px !important;
    margin: 0 auto 40px;
    text-align: left;
}

.ceph-article-classification-tag {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.ceph-article-main-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    display: block;
}

.ceph-article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.ceph-article-author-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ceph-article-author-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-badge-circle {
    width: 44px;
    height: 44px;
    background: #eff6ff;
    border: 1px solid rgba(0, 122, 135, 0.15);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ceph-article-author-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.ceph-article-author-role {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.ceph-article-chronology-metrics {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.ceph-article-graphic-frame {
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 60px;
}

.ceph-article-canvas-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Prose Isolation Matrix */
.ceph-article-prose-body {
    max-width: 740px !important;
    margin: 0 auto;
}

.ceph-article-prose-body p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 28px;
}

.ceph-article-prose-body .ceph-prose-lead {
    font-size: 1.2rem !important;
    line-height: 1.65 !important;
    color: var(--text-main) !important;
    font-weight: 500;
}

.ceph-article-prose-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 48px 0 20px;
    letter-spacing: -0.02em;
}

.ceph-article-callout-quote {
    margin: 40px 0;
    padding: 8px 0 8px 28px;
    border-left: 4px solid var(--primary);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Signoff Card Scopes */
.ceph-article-signoff-footer {
    max-width: 740px !important;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.ceph-article-signoff-inner {
    display: flex;
    gap: 20px;
    background: var(--bg-light);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.ceph-article-signoff-biography h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.ceph-article-signoff-biography p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Responsive Fluid Layout System Override Rules */
@media (max-width: 768px) {
    .ceph-editorial-hub-header { margin-top: 20px; padding: 40px 0; }
    .ceph-article-canvas-container { padding: 40px 0 60px; }
    .ceph-article-breadcrumbs { margin-bottom: 24px; }
    .ceph-article-back-link { margin-left: 0; padding: 6px 12px; background-color: var(--bg-light); }
    .ceph-editorial-grid { grid-template-columns: 1fr; }
    .ceph-article-meta-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    .ceph-article-chronology-metrics { text-align: left; }
    .ceph-article-graphic-frame { height: 260px; margin-bottom: 32px; border-radius: 12px; }
    .ceph-article-signoff-inner { flex-direction: column; gap: 16px; padding: 20px; }
}

/* Restrict Health System Figures to a readable, compact max-width */
.ceph-article-graphic-frame {
    max-width: 540px; 
    margin: 32px auto !important; /* Centers the image frame horizontally */
    padding: 0 16px;
}

.ceph-article-graphic-frame .ceph-article-canvas-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--border); /* Adds a clean border to match the cards */
}