/* =============================================================================
   Content Hub – Editorial Intelligence Landing Page
   Paradox Intelligence | /content

   Design language: Bloomberg Terminal precision meets FT editorial authority.
   Dark canvas, gold/amber accents, typographic hierarchy, generous whitespace.
   ============================================================================= */

/* ── Custom Properties ── */
.content-hub-page {
    --ch-paper: #000;
    --ch-ink: rgba(255, 252, 248, 0.92);
    --ch-ink-subtle: rgba(255, 250, 245, 0.58);
    --ch-ink-muted: rgba(255, 250, 245, 0.38);
    --ch-accent: #b8a369;
    --ch-accent-dim: rgba(184, 163, 105, 0.35);
    --ch-rule: rgba(255, 255, 255, 0.1);
    --ch-rule-strong: rgba(255, 255, 255, 0.18);
    --ch-surface: rgba(255, 255, 255, 0.03);
    --ch-surface-hover: rgba(255, 255, 255, 0.06);
    --ch-signal: #4fc3a1;
    --ch-research: #b8a369;
    --ch-theme: #7ea8d4;
    --ch-news: #c9936e;
    --ch-blog: rgba(255, 255, 255, 0.45);
    --ch-radius: 2px;
    --ch-max-w: 1080px;
    --ch-gutter: clamp(1.25rem, 4vw, 2rem);
}


/* ── Hero Section Wrapper ── */
.fiscal-hero-section.content-hub-hero {
    min-height: auto;
    display: block;
    padding-top: 0;
    padding-bottom: 0;
    background: var(--ch-paper);
}


/* ── Main Container ── */
.ch {
    max-width: var(--ch-max-w);
    margin: 0 auto;
    padding: 4rem var(--ch-gutter) 4rem;
    color: var(--ch-ink);
}


/* =============================================================================
   Masthead — compact, authoritative, single rule
   ============================================================================= */
.ch-masthead {
    padding: 0 0 0;
    border-bottom: 1px solid var(--ch-rule);
}

/* Both inline rules removed — border-bottom on masthead is the single separator */
.ch-masthead-rule {
    display: none;
}

.ch-masthead-inner {
    text-align: center;
    padding: 1.25rem 0 1rem;
}

/* Edition label — small gold eyebrow, deliberately subordinate */
.ch-masthead-edition {
    display: block;
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.9375rem;
    font-weight: 400;
    font-variant: small-caps;
    letter-spacing: 0.22em;
    text-transform: lowercase;
    color: var(--ch-accent);
    opacity: 0.85;
    margin-bottom: 0.6rem;
}

.ch-masthead-title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fffef9;
    margin: 0 0 0.5rem;
}

.ch-masthead-deck {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    line-height: 1.5;
    color: var(--ch-ink-muted);
    margin: 0;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Section navigation pills ── */
.ch-masthead-nav {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0 1rem;
    flex-wrap: wrap;
}

.ch-nav-pill {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--ch-rule);
    border-radius: 100px;
    color: var(--ch-ink-subtle);
    transition: all 0.2s ease;
}

.ch-nav-pill:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: var(--ch-surface-hover);
}

.ch-nav-pill--signal:hover { border-color: var(--ch-signal); color: var(--ch-signal); }
.ch-nav-pill--research:hover { border-color: var(--ch-research); color: var(--ch-research); }
.ch-nav-pill--theme:hover { border-color: var(--ch-theme); color: var(--ch-theme); }
.ch-nav-pill--news:hover { border-color: var(--ch-news); color: var(--ch-news); }
.ch-nav-pill--blog:hover { border-color: var(--ch-blog); color: rgba(255, 255, 255, 0.7); }


/* =============================================================================
   Featured Hero
   ============================================================================= */
.ch-hero-feature {
    margin: 0;
    padding: 1.75rem 0 1.5rem;
    border: none;
}

.ch-hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    transition: opacity 0.2s ease;
}

.ch-hero-link:hover {
    opacity: 0.85;
}

.ch-hero-badge-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ch-hero-date {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
    font-variant-numeric: lining-nums;
}

/* Separator dot between badge and date */
.ch-hero-badge-row .ch-type-badge + .ch-hero-date::before {
    content: "·";
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.2);
}

.ch-hero-title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: #fffef9;
    margin: 0 0 0.75rem;
    text-wrap: balance;
}

.ch-hero-desc {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--ch-ink-subtle);
    margin: 0;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}


/* =============================================================================
   Type Badges
   ============================================================================= */
.ch-type-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: var(--ch-radius);
    border: 1px solid;
    line-height: 1.3;
}

.ch-type-badge--signals {
    color: var(--ch-signal);
    border-color: rgba(79, 195, 161, 0.35);
    background: rgba(79, 195, 161, 0.08);
}

.ch-type-badge--research {
    color: var(--ch-research);
    border-color: var(--ch-accent-dim);
    background: rgba(184, 163, 105, 0.08);
}

.ch-type-badge--themes {
    color: var(--ch-theme);
    border-color: rgba(126, 168, 212, 0.35);
    background: rgba(126, 168, 212, 0.08);
}

.ch-type-badge--news {
    color: var(--ch-news);
    border-color: rgba(201, 147, 110, 0.35);
    background: rgba(201, 147, 110, 0.08);
}

.ch-type-badge--blog {
    color: var(--ch-blog);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}


/* ── Ticker badges ── */
.ch-ticker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
    letter-spacing: 0.06em;
    color: var(--ch-accent);
    background: rgba(184, 163, 105, 0.1);
    border: 1px solid var(--ch-accent-dim);
    border-radius: var(--ch-radius);
    padding: 0.15rem 0.45rem;
}

.ch-ticker--sm { font-size: 0.6875rem; padding: 0.1rem 0.35rem; }
.ch-ticker--lg { font-size: 0.8125rem; padding: 0.2rem 0.55rem; }


/* ── Horizon badge ── */
.ch-horizon {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ch-theme);
    border: 1px solid rgba(126, 168, 212, 0.3);
    border-radius: var(--ch-radius);
    padding: 0.15rem 0.5rem;
}


/* ── Keyword tags ── */
.ch-kw {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ch-ink-muted);
    background: var(--ch-surface);
    border: 1px solid var(--ch-rule);
    border-radius: var(--ch-radius);
    padding: 0.12rem 0.45rem;
    letter-spacing: 0.02em;
}


/* =============================================================================
   Section Headers
   ============================================================================= */
.ch-section {
    margin: 3rem 0 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--ch-rule);
}

.ch-section-header {
    margin-bottom: 1.75rem;
}

.ch-section-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ch-section-icon {
    font-size: 0.875rem;
    line-height: 1;
}

.ch-section-icon--signal { color: var(--ch-signal); }
.ch-section-icon--research { color: var(--ch-research); }
.ch-section-icon--theme { color: var(--ch-theme); }
.ch-section-icon--news { color: var(--ch-news); }
.ch-section-icon--blog { color: var(--ch-blog); }

.ch-section-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fffef9;
    margin: 0;
}

.ch-section-subtitle {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.9375rem;
    color: var(--ch-ink-muted);
    margin: 0.35rem 0 0;
    line-height: 1.5;
}

.ch-section-count {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--ch-ink-muted);
    margin-left: auto;
}


/* =============================================================================
   Latest Grid (top section, 2-col on desktop)
   ============================================================================= */
.ch-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--ch-rule);
    border: 1px solid var(--ch-rule);
    border-radius: var(--ch-radius);
    overflow: hidden;
}

@media (min-width: 640px) {
    .ch-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
    .ch-grid { grid-template-columns: 1fr 1fr 1fr; }
    .ch-grid--research { grid-template-columns: 1fr; }
    .ch-grid--themes { grid-template-columns: 1fr; }
    .ch-grid--blog { grid-template-columns: 1fr 1fr 1fr; }
}


/* ── Card ── */
.ch-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--ch-paper);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
    gap: 0.65rem;
}

.ch-card:hover {
    background: var(--ch-surface-hover);
}

.ch-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ch-card-meta time {
    font-size: 0.75rem;
    color: var(--ch-ink-muted);
    letter-spacing: 0.04em;
}

.ch-card-title {
    font-family: Inter, -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ch-ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.ch-card-title--lg {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.ch-card-desc {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ch-ink-subtle);
    margin: 0;
}

.ch-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Feature cards: full width, more generous layout */
.ch-card--feature {
    padding: 2rem;
}

.ch-card--feature .ch-card-desc {
    font-size: 1.0625rem;
    line-height: 1.6;
}


/* =============================================================================
   List Layout (Signals, News)
   ============================================================================= */
.ch-list {
    display: flex;
    flex-direction: column;
}

.ch-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--ch-rule);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
}

.ch-list-item:first-child {
    border-top: 1px solid var(--ch-rule);
}

.ch-list-item:hover {
    opacity: 0.8;
}

.ch-list-left {
    flex-shrink: 0;
}

.ch-list-tickers {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 52px;
}

.ch-list-body {
    flex: 1;
    min-width: 0;
}

.ch-list-body-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.ch-list-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--ch-ink);
    margin-bottom: 0.25rem;
}

.ch-list-desc {
    display: block;
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--ch-ink-subtle);
}

.ch-list-date {
    flex-shrink: 0;
    font-size: 0.8125rem;
    color: var(--ch-ink-muted);
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding-top: 0.15rem;
}

.ch-list-keywords-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
    align-items: flex-end;
}

/* Signal list: left accent stripe */
.ch-list-item--signal {
    border-left: 2px solid var(--ch-signal);
    padding-left: 1rem;
    margin-left: -1px;
}


/* =============================================================================
   Show All Link
   ============================================================================= */
.ch-show-all {
    padding: 1.5rem 0 0;
    text-align: center;
}

.ch-show-all-link {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ch-accent);
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--ch-accent-dim);
    border-radius: 100px;
    transition: all 0.2s ease;
}

.ch-show-all-link:hover {
    background: rgba(184, 163, 105, 0.1);
    border-color: var(--ch-accent);
    color: #fffef9;
}


/* =============================================================================
   Subscribe Section
   ============================================================================= */
.ch-subscribe {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 3px double var(--ch-rule-strong);
}

.ch-subscribe-inner {
    text-align: center;
    max-width: 440px;
    margin: 0 auto;
}

.ch-subscribe-headline {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fffef9;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.ch-subscribe-desc {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--ch-ink-muted);
    margin: 0 0 1.5rem;
}

.ch-subscribe-form {
    display: flex;
    align-items: stretch;
    max-width: 380px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--ch-radius);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.ch-subscribe-form:focus-within {
    border-color: var(--ch-accent);
}

.ch-subscribe-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.7rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
}

.ch-subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.ch-subscribe-btn {
    background: #fff;
    color: #000;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.7rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.ch-subscribe-btn:hover {
    background: rgba(255, 255, 255, 0.88);
}


/* =============================================================================
   Responsive: Mobile Adjustments
   ============================================================================= */
@media (max-width: 640px) {
    .ch-masthead-nav {
        gap: 0.35rem;
    }

    .ch-nav-pill {
        font-size: 0.6875rem;
        padding: 0.3rem 0.7rem;
    }

    .ch-hero-feature {
        padding: 2rem 0;
        margin: 2rem 0;
    }

    .ch-hero-title {
        font-size: 1.375rem;
    }

    .ch-card {
        padding: 1.25rem;
    }

    .ch-card--feature {
        padding: 1.5rem;
    }

    .ch-list-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ch-list-item--signal {
        flex-direction: row;
    }

    .ch-list-keywords-col {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ch-list-date {
        order: -1;
    }

    .ch-subscribe-form {
        flex-direction: column;
    }

    .ch-subscribe-btn {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }
}


/* =============================================================================
   Print Styles (professional output)
   ============================================================================= */
@media print {
    .ch {
        color: #000;
        background: #fff;
    }
    .ch-masthead-title,
    .ch-hero-title,
    .ch-section-title,
    .ch-card-title {
        color: #000;
    }
    .ch-type-badge,
    .ch-ticker,
    .ch-kw {
        border-color: #999;
        color: #333;
        background: #f5f5f5;
    }
    .ch-subscribe { display: none; }
    .ch-masthead-nav { display: none; }
}


/* =============================================================================
   Content Post – Editorial Single-Article Layout
   Shared across ALL content types: blog, news, research, signals, themes.
   Uses cp- prefix. Inherits ch- custom properties from .content-hub-page.

   Typography: Playfair Display (headlines) + EB Garamond (body/deck/byline).
   ============================================================================= */

/* ── Page-level scope ── */
.cp-page {
    --cp-paper: #000;
    --cp-ink: rgba(255, 252, 248, 0.92);
    --cp-ink-subtle: rgba(255, 250, 245, 0.58);
    --cp-ink-muted: rgba(255, 250, 245, 0.38);
    --cp-accent: #b8a369;
    --cp-accent-dim: rgba(184, 163, 105, 0.35);
    --cp-rule: rgba(255, 255, 255, 0.1);
    --cp-rule-strong: rgba(255, 255, 255, 0.18);
    --cp-surface: rgba(255, 255, 255, 0.03);
}

.cp-page .fiscal-hero-section.content-hub-hero {
    background: var(--cp-paper);
}


/* ── Article Container ── */
.cp {
    max-width: min(42rem, 92vw);
    margin: 0 auto;
    padding: 4rem clamp(1rem, 4vw, 1.75rem) 4rem;
    color: var(--cp-ink);
}


/* ── Sticky Navigation Bar ── */
.cp-sticky {
    position: sticky;
    top: max(68px, calc(env(safe-area-inset-top) + 56px));
    z-index: 100;
    background: linear-gradient(to bottom, var(--cp-paper), var(--cp-paper));
    padding: 0.75rem 0 1rem;
    margin: 0 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-sticky-controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    gap: 0.5rem 1rem;
}

.cp-back {
    justify-self: start;
    grid-column: 1;
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: none;
    font-weight: 400;
    transition: color 0.15s ease;
}

.cp-back:hover {
    color: #fff;
}

.cp-sticky-center {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-sticky-logo-link {
    display: block;
    flex-shrink: 0;
}

.cp-sticky-logo {
    height: auto;
    width: 190px;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.cp-sticky-logo:hover {
    opacity: 1;
}

.cp-sticky-end {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    min-width: 0;
    text-align: right;
}

.cp-sticky-subscribe {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cp-sticky-subscribe:hover {
    color: var(--cp-accent);
    border-color: var(--cp-accent);
}


/* ── Article Header ── */
/*
   Hierarchy: eyebrow → headline → standfirst → rule → byline + date → tags
   Follows FT / Bloomberg / WSJ convention for maximum professionalism.
*/
.cp-header {
    margin-bottom: 2.75rem;
}

/* 0. Breadcrumb — visible trail above eyebrow */
.cp-breadcrumb {
    margin-bottom: 1.5rem;
}

.cp-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

.cp-breadcrumb li {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.cp-breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

.cp-breadcrumb a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.cp-breadcrumb li[aria-current="page"] {
    color: rgba(255, 255, 255, 0.55);
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 28ch;
}

/* 1. Eyebrow — section label, stands alone above headline */
.cp-eyebrow {
    display: inline-block;
    margin-bottom: 1.25rem;
    border: none;
    border-bottom: 2px solid var(--cp-accent);
    border-radius: 0;
    padding: 0 0 0.25rem;
    color: var(--cp-accent);
    font-weight: 600;
    letter-spacing: 0.2em;
    font-size: 0.6875rem;
    text-transform: uppercase;
}

/* 2. Headline — dominant, largest element */
.cp-title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-size: clamp(1.9rem, 4.5vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem;
    color: #fffcf8;
    /* Even out multi-line headlines (avoids one long line + one orphan word). */
    text-wrap: balance;
}

/* 3. Deck / standfirst — clearly subordinate to headline */
.cp-deck {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 1.1875rem;
    line-height: 1.58;
    font-weight: 400;
    color: rgba(255, 248, 240, 0.68);
    margin: 0 0 1.75rem;
}

/* 4. Rule separator between deck and byline */
.cp-header-rule {
    height: 1px;
    background: var(--cp-rule);
    margin-bottom: 1rem;
}

/* 5. Byline + date row — smallest text, muted, on one line */
.cp-byline-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.cp-byline-text {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    font-variant: small-caps;
    color: rgba(255, 250, 245, 0.68);
}

.cp-byline-sep {
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.8125rem;
    user-select: none;
}

.cp-date {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.02em;
}

.cp-updated {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.28);
    font-style: italic;
    letter-spacing: 0.01em;
}

/* 6. Keywords / topic tags */
.cp-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.25rem;
}

/* Keyword tags — refined EB Garamond serif with gold underline */
.cp-keywords .ch-kw {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--cp-ink-subtle);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--cp-accent-dim);
    border-radius: 0;
    padding: 0 0 0.1rem;
}


/* =============================================================================
   Social Share Bar
   ============================================================================= */
.cp-share {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.cp-share--bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cp-rule);
    margin-bottom: 0.5rem;
}

.cp-share-label {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-variant: small-caps;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.32);
    margin-right: 0.25rem;
}

.cp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    font-size: 0;
    line-height: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.cp-share-btn svg {
    display: block;
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.cp-share-btn:hover {
    color: var(--cp-accent);
    border-color: var(--cp-accent);
    background: rgba(207, 181, 59, 0.06);
}

.cp-share-btn:active {
    transform: scale(0.92);
}

/* "Copied!" feedback state */
.cp-share-copy.cp-share-copied {
    color: #4ade80;
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
}

@media (max-width: 600px) {
    .cp-share {
        gap: 0.5rem;
    }
    .cp-share-btn {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        min-height: 2rem;
    }
    .cp-share-btn svg {
        width: 0.75rem;
        height: 0.75rem;
    }
}


/* ── Article Body ── */
.cp-body {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.1875rem);   /* 17px → 19px fluid */
    line-height: 1.6;                                             /* Apple News / FT range */
    letter-spacing: 0.005em;                                      /* micro-tracking for dark bg */
    color: var(--cp-ink);
    max-width: 65ch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    hanging-punctuation: first allow-end last;                     /* editorial polish */
}

/* Drop cap */
.cp-body > p:first-of-type::first-letter {
    float: left;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 3.25rem;
    line-height: 0.82;
    padding: 0.08rem 0.5rem 0 0;
    font-weight: 600;
    color: #fffef9;
}

.cp-body h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 250, 245, 0.55);
    margin: 2.75rem 0 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cp-rule);
}

.cp-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.cp-body h3 {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    font-style: italic;
    color: rgba(255, 248, 240, 0.88);
    margin: 1.75rem 0 0.5rem;
}

.cp-body p {
    margin: 0 0 1.35em;       /* em-based — scales with font size, ~25px at 19px body */
}

.cp-body a {
    color: #e8dcc8;
    text-decoration: underline;
    text-decoration-color: var(--cp-accent-dim);
    text-underline-offset: 3px;
}

.cp-body a:hover {
    color: #fff;
    text-decoration-color: var(--cp-accent);
}

.cp-body strong {
    font-weight: 700;
    color: #fff;
}

.cp-body ul,
.cp-body ol {
    margin: 0 0 1.35em;
    padding-left: 1.5em;
}

.cp-body li {
    margin-bottom: 0.45em;
}

.cp-body blockquote {
    border-left: 2px solid var(--cp-accent);
    margin: 1.5rem 0;
    padding: 0.5rem 0 0.5rem 1.35rem;
    font-size: 1.0625rem;
    color: rgba(255, 245, 235, 0.78);
    font-style: italic;
}

.cp-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.14) 15%,
        rgba(255, 255, 255, 0.14) 85%,
        transparent
    );
    margin: 2.5rem 0;
}

.cp-body code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.cp-body pre {
    overflow-x: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    margin: 0 0 1rem;
}

.cp-body pre code {
    background: none;
    padding: 0;
}

/* Tables in article body */
.cp-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.cp-body th,
.cp-body td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--cp-rule);
    text-align: left;
}

.cp-body th {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cp-ink-subtle);
}

/* Images in article body */
.cp-body img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    margin: 1.5rem 0;
}


/* ── Disclaimer (research / signals / themes only) ── */
.cp-disclaimer {
    margin-top: 2.5rem;
    padding: 1.1rem 1.25rem;
    border-left: 2px solid var(--cp-accent-dim);
    background: var(--cp-surface);
    border-radius: 0 4px 4px 0;
}

.cp-disclaimer-text {
    margin: 0;
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}


/* ── Article Footer ── */
.cp-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cp-rule);
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.6);
}

.cp-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.cp-footer-sep {
    margin: 0 0.35rem;
    color: rgba(255, 255, 255, 0.25);
}


/* ── Subscribe Wrapper (below article) ── */
.cp-subscribe-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem 1.5rem 4rem;
    background: var(--cp-paper, #000);
}

.cp-subscribe-logo-link {
    display: block;
}

.cp-subscribe-logo {
    width: 340px;
    max-width: 90vw;
    height: auto;
    display: block;
    opacity: 0.92;
    transition: opacity 0.2s ease;
}

.cp-subscribe-logo:hover {
    opacity: 1;
}

.cp-subscribe-headline {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 0.75rem;
    text-align: center;
}

.cp-subscribe-box {
    width: 100%;
    max-width: 280px;
}

/* Subscribe form reuses ch- classes from content-index */
.cp-subscribe-box .ch-subscribe-form {
    flex-direction: column;
    border: none;
    border-radius: 0;
    gap: 0;
}

.cp-subscribe-box .ch-subscribe-input {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.cp-subscribe-box .ch-subscribe-btn {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    display: block;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.cp-subscribe-box .ch-subscribe-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-1px);
}


/* ── Inline Subscribe Block (injected mid-article) ── */
.cp-inline-subscribe {
    margin: 2rem 0;
    padding: 2rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.cp-inline-subscribe-label {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.cp-inline-subscribe-form {
    display: flex;
    align-items: stretch;
    max-width: 360px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.cp-inline-subscribe-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.6rem 0.9rem;
    color: #fff;
    font-size: 0.9rem;
}

.cp-inline-subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cp-inline-subscribe-btn {
    background: #fff;
    color: #000;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.cp-inline-subscribe-btn:hover {
    background: rgba(255, 255, 255, 0.88);
}


/* =============================================================================
   Related Articles
   ============================================================================= */
.cp-related {
    max-width: min(64rem, 92vw);
    margin: 0 auto;
    padding: 3rem clamp(1rem, 4vw, 1.75rem) 2rem;
}

.cp-related-heading {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cp-rule, rgba(255, 255, 255, 0.08));
}

.cp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cp-related-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.015);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cp-related-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.cp-related-type {
    align-self: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.5625rem;
}

.cp-related-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 252, 248, 0.9);
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cp-related-card:hover .cp-related-title {
    color: #fff;
}

.cp-related-desc {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 250, 245, 0.45);
    margin: 0 0 auto;
    padding-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cp-related-date {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.28);
    margin-top: auto;
}

@media (max-width: 820px) {
    .cp-related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* =============================================================================
   Content Post – Responsive
   ============================================================================= */

@media (max-width: 640px) {
    .cp-body > p:first-of-type::first-letter {
        font-size: 2.75rem;
    }

    .cp-title {
        font-size: 1.65rem;
        line-height: 1.12;
    }

    .cp-deck {
        font-size: 1.0625rem;
    }

    .cp-sticky-controls {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .cp-sticky-center {
        display: none;
    }

    .cp-sticky-end {
        grid-column: 2;
    }

    .cp-body {
        font-size: 1.0625rem;    /* 17px — Apple News baseline */
        line-height: 1.55;        /* slightly tighter for mobile viewports */
        letter-spacing: 0.01em;   /* fractionally wider for small screens */
    }
}


/* =============================================================================
   Content Post – Print Styles
   ============================================================================= */
@media print {
    .cp {
        color: #000;
        background: #fff;
        max-width: 100%;
    }

    .cp-sticky {
        display: none;
    }

    .cp-title,
    .cp-body h2,
    .cp-body h3 {
        color: #000;
    }

    .cp-body {
        color: #222;
        font-size: 11pt;
        line-height: 1.6;
    }

    .cp-body a {
        color: #000;
        text-decoration: underline;
    }

    .cp-subscribe-wrapper,
    .cp-inline-subscribe {
        display: none;
    }

    .cp-disclaimer {
        border-left-color: #999;
        background: #f5f5f5;
    }

    .cp-disclaimer-text {
        color: #555;
    }

    .cp-footer {
        border-top-color: #ccc;
    }
}
