/* [Article] Header widget styles.
   Ports the tinted post-head-band block from prototype/src/layouts/LearnPost.astro
   and prototype/src/styles/global.css (the `.learn-post .post-head-band` rules).

   Wrapped under `.mnny-article-header` so the widget is self-contained when
   dropped into any Elementor section — no `.learn-post` ancestor required. The
   outer wrapper breaks out of a constrained Elementor section so the tinted
   band spans the full viewport width, matching the prototype. */

.mnny-article-header {
    position: relative;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    /* Clear the theme's fixed site header — matches the prototype's
       `.page-offset { padding-top: var(--nav-height) }` on <main>.
       Applied on the wrapper (not the tinted band) so the transparent-
       by-default nav shows the page background above the band, not the
       dark secondary fill — otherwise the nav reads as transparent. */
    padding-top: var(--nav-height);
}

.mnny-article-header .post-head-band {
    position: relative;
    overflow: hidden;
    background: var(--color-secondary);
    color: white;
    border-bottom: 1px solid var(--color-secondary-dark);
}

.mnny-article-header .post-head-band > .breadcrumbs,
.mnny-article-header .post-head-band > .post-header {
    position: relative;
    z-index: 1;
}

.mnny-article-header .page-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

/* ── Breadcrumbs ───────────────────────────────────────────── */
.mnny-article-header .breadcrumbs {
    padding-block: var(--space-6) 0;
}
.mnny-article-header .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: hsla(0, 0%, 100%, 0.75);
    list-style: none;
    margin: 0;
    padding: 0;
}
.mnny-article-header .breadcrumbs a {
    color: hsla(0, 0%, 100%, 0.75);
    text-decoration: none;
    transition: color var(--duration-base) var(--ease-zen);
}
.mnny-article-header .breadcrumbs a:hover { color: var(--color-accent); }
.mnny-article-header .breadcrumbs .crumb-sep { color: hsla(0, 0%, 100%, 0.4); }
.mnny-article-header .breadcrumbs [aria-current="page"] {
    color: white;
    font-weight: var(--weight-medium);
}

/* ── Header block ──────────────────────────────────────────── */
.mnny-article-header .post-header {
    padding-block: var(--space-10) var(--space-12);
    text-align: center;
}
.mnny-article-header .post-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: hsla(0, 0%, 100%, 0.8);
    margin-bottom: var(--space-5);
    text-decoration: none;
    transition: gap var(--duration-fast) var(--ease-out),
                color var(--duration-base) var(--ease-zen);
}
.mnny-article-header .post-header .back-link:hover {
    color: var(--color-accent);
    gap: var(--space-3);
}
.mnny-article-header .post-header h1 {
    font-size: clamp(2rem, 5vw, var(--text-5xl));
    margin-bottom: var(--space-5);
    color: white;
}
.mnny-article-header .post-header .post-excerpt {
    font-size: var(--text-lg);
    color: hsla(0, 0%, 100%, 0.85);
    max-width: 60ch;
    margin-inline: auto;
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

/* ── Category badges ───────────────────────────────────────── */
.mnny-article-header .program-detail-badges {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-6);
}
.mnny-article-header .badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.06em;
    text-decoration: none;
}
.mnny-article-header .badge-accent {
    background: var(--color-accent-light);
    color: var(--color-accent);
}
.mnny-article-header .badge-neutral {
    background: hsla(0, 0%, 100%, 0.12);
    color: hsla(0, 0%, 100%, 0.88);
    backdrop-filter: blur(4px);
}

/* Elementor drops its default widget container padding so the full-bleed
   breakout is flush to the viewport edge on the frontend AND in the editor. */
.elementor-widget-mnny_article_header > .elementor-widget-container {
    padding: 0 !important;
}
