/*
 * Convergence Point — Modal Path Ethics archive celebration skin.
 * Design language: black field, gold + mint path-shards, warm paper-white,
 * MPE diamonds, aperiodic fragments, XIBALBA wheel / archive folder icon set.
 * Intentionally contains NO generated copy and does NOT restyle the nav panel.
 */

:root {
    --cvg-gold: #eec643;
    --cvg-mint: #98fb98;
    --cvg-white: #f3f0e7;
    --cvg-bg: #0f1115;
    --cvg-ink: #e1e4ea;
    --cvg-muted: #a4abb6;
    --cvg-rule: rgba(238, 198, 67, .28);
    --cvg-mint-rule: rgba(152, 251, 152, .22);
    --cvg-glass: rgba(15, 17, 21, .68);
    --cvg-wheel: url("convergence-xibalba-wheel.svg");
    --cvg-folder: url("convergence-folder.svg");
    --cvg-folder-open: url("convergence-folder-open.svg");
    --cvg-field: url("convergence-field.svg");
    --cvg-rule-art: url("convergence-rule.svg");
}

html[data-color-scheme="light"].mpe-convergence-point-page {
    --cvg-bg: #f2eee2;
    --cvg-ink: #1b1d20;
    --cvg-muted: #666c73;
    --cvg-rule: rgba(149, 105, 12, .34);
    --cvg-mint-rule: rgba(37, 121, 74, .24);
    --cvg-glass: rgba(247, 243, 232, .76);
}

/* --------------------------------------------------------------------------
   Persistent icon unlock. The header/navigation markup and menu presentation
   remain the base theme's. Only the two glyphs change.
   -------------------------------------------------------------------------- */

html[data-convergence-icons-unlocked="true"] .mpe-badge-rack {
    display: flex !important;
}

.mpe-badge--convergence {
    overflow: hidden;
    border-color: rgba(238, 198, 67, .34) !important;
    background: rgba(127, 127, 127, .05) !important;
    box-shadow: inset 0 0 0 1px rgba(152, 251, 152, .055);
}

.mpe-badge--convergence::before {
    content: "";
    position: absolute;
    width: 2.75rem;
    height: 2.75rem;
    left: .45rem;
    top: .38rem;
    background: var(--cvg-wheel) center / contain no-repeat;
    opacity: .92;
}

.mpe-badge--convergence::after {
    content: "";
    position: absolute;
    width: 1.72rem;
    height: 1.72rem;
    right: .28rem;
    bottom: .2rem;
    background: var(--cvg-folder) center / contain no-repeat;
    opacity: .95;
}

html[data-convergence-icons-active="true"] .mpe-badge--convergence {
    border-color: rgba(238, 198, 67, .72) !important;
    box-shadow:
        inset 0 0 0 1px rgba(152, 251, 152, .12),
        0 0 22px rgba(238, 198, 67, .10);
}

.mpe-badge--convergence:hover::before,
.mpe-badge--convergence:focus-visible::before {
    transform: rotate(7deg);
}

/* XIBALBA wheel: intentionally oversized without changing the header button's layout box. */
html[data-convergence-icons-active="true"] .gh-search {
    overflow: visible !important;
    position: relative;
}

html[data-convergence-icons-active="true"] .gh-search > svg {
    opacity: 0 !important;
}

html[data-convergence-icons-active="true"] .gh-search::before {
    background: var(--cvg-wheel) center / 100% 100% no-repeat;
    content: "";
    display: block;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .42));
    height: 7.4rem;
    left: 50%;
    opacity: .98;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    transition: transform .16s ease, opacity .16s ease;
    width: 7.4rem;
}

html[data-convergence-icons-active="true"] .gh-search:hover::before,
html[data-convergence-icons-active="true"] .gh-search:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(8deg) scale(1.035);
}

/* White-line archive folder. The button dimensions and the opened nav itself
   are completely untouched. */
@media (max-width: 767px) {
    html[data-convergence-icons-active="true"] .gh-burger::before {
        content: "" !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        width: 3.25rem !important;
        height: 3.25rem !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background-color: transparent !important;
        background-image: var(--cvg-folder) !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-size: 100% 100% !important;
        box-shadow: none !important;
        transform: translate(-50%, -50%) !important;
        transform-origin: center !important;
    }

    html[data-convergence-icons-active="true"] .gh-burger::after {
        display: none !important;
        content: none !important;
    }

    html[data-convergence-icons-active="true"] body.is-head-open #gh-head .gh-burger,
    html[data-convergence-icons-active="true"] body.is-head-open #gh-head .gh-head-brand .gh-burger {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    html[data-convergence-icons-active="true"] body.is-head-open #gh-head .gh-burger::before,
    html[data-convergence-icons-active="true"] body.is-head-open #gh-head .gh-head-brand .gh-burger::before {
        background-color: transparent !important;
        background-image: var(--cvg-folder-open) !important;
        border: 0 !important;
        box-shadow: none !important;
        opacity: 1 !important;
        transform: translate(-50%, -50%) !important;
    }

    html[data-convergence-icons-active="true"] body.is-head-open #gh-head .gh-burger::after,
    html[data-convergence-icons-active="true"] body.is-head-open #gh-head .gh-head-brand .gh-burger::after {
        content: none !important;
        display: none !important;
        background: transparent !important;
    }
}

/* --------------------------------------------------------------------------
   Convergence Point field. No text boxes around the article and no technical
   grid. The art is a field of MPE path-shards, diamonds, and folded fragments.
   -------------------------------------------------------------------------- */

html.mpe-convergence-point-page,
html.mpe-convergence-point-page body {
    max-width: 100%;
    overflow-x: clip;
}

html.mpe-convergence-point-page body {
    background-color: var(--cvg-bg) !important;
    background-image:
        radial-gradient(circle at 50% -12rem, rgba(238, 198, 67, .105), transparent 46rem),
        radial-gradient(circle at 82% 42rem, rgba(152, 251, 152, .035), transparent 34rem),
        var(--cvg-field) !important;
    background-position: center top, center top, center top !important;
    background-repeat: no-repeat, no-repeat, repeat-y !important;
    background-size: auto, auto, 1600px 2400px !important;
    color: var(--cvg-ink);
}

html[data-color-scheme="light"].mpe-convergence-point-page body {
    background-image:
        radial-gradient(circle at 50% -12rem, rgba(238, 198, 67, .18), transparent 46rem),
        radial-gradient(circle at 82% 42rem, rgba(70, 160, 102, .055), transparent 34rem),
        var(--cvg-field) !important;
}

html.mpe-convergence-point-page .gh-site,
html.mpe-convergence-point-page .gh-main,
html.mpe-convergence-point-page article,
html.mpe-convergence-point-page .gh-content,
html.mpe-convergence-point-page .gh-article-header {
    background: transparent !important;
}

html.mpe-convergence-point-page .gh-main {
    position: relative;
}

html.mpe-convergence-point-page .gh-article {
    isolation: isolate;
}

/* header */
html.mpe-convergence-point-page .gh-article-header {
    padding-top: clamp(5.5rem, 9vw, 10rem);
    padding-bottom: clamp(4rem, 7vw, 7rem);
    position: relative;
}

html.mpe-convergence-point-page .gh-article-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: min(4vw, 5rem);
    top: clamp(1rem, 4vw, 4rem);
    width: clamp(15rem, 28vw, 31rem);
    aspect-ratio: 1;
    background:
        var(--cvg-wheel) center / 56% 56% no-repeat,
        radial-gradient(circle, rgba(238, 198, 67, .08), transparent 62%);
    opacity: .11;
    transform: rotate(-11deg);
    pointer-events: none;
}

html.mpe-convergence-point-page .gh-article-tag {
    color: var(--cvg-gold) !important;
    font-family: var(--gh-font-heading, var(--font-sans));
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

html.mpe-convergence-point-page .gh-article-title {
    color: var(--cvg-white) !important;
    font-family: var(--gh-font-heading, var(--font-sans));
    font-size: clamp(4.4rem, 7vw, 7.6rem);
    font-weight: 760;
    letter-spacing: -.052em;
    line-height: .98;
    margin-top: 1.3rem;
    max-width: 15ch;
    text-wrap: balance;
}

html[data-color-scheme="light"].mpe-convergence-point-page .gh-article-title {
    color: #161719 !important;
}

html.mpe-convergence-point-page .gh-article-excerpt {
    color: var(--cvg-muted) !important;
    font-size: clamp(1.8rem, 2.3vw, 2.25rem);
    line-height: 1.48;
    margin-top: 2rem;
    max-width: 64rem;
}

html.mpe-convergence-point-page .gh-article-meta {
    color: var(--cvg-muted) !important;
}

/* feature image: artifact mounting without a surrounding text panel */
html.mpe-convergence-point-page .gh-article-image {
    box-sizing: border-box;
    margin-top: clamp(2.8rem, 5vw, 5rem);
    max-width: 100%;
    padding: .6rem;
    position: relative;
    border: 1px solid rgba(238, 198, 67, .22);
    background: rgba(15, 17, 21, .54);
    box-shadow: 0 2.2rem 5.5rem rgba(0, 0, 0, .22);
}

html.mpe-convergence-point-page .gh-article-image::before,
html.mpe-convergence-point-page .gh-article-image::after {
    content: "";
    position: absolute;
    width: 3.1rem;
    height: 3.1rem;
    pointer-events: none;
}

html.mpe-convergence-point-page .gh-article-image::before {
    left: -.48rem;
    top: -.48rem;
    border-left: 2px solid var(--cvg-gold);
    border-top: 2px solid var(--cvg-gold);
}

html.mpe-convergence-point-page .gh-article-image::after {
    right: -.48rem;
    bottom: -.48rem;
    border-right: 2px solid var(--cvg-mint);
    border-bottom: 2px solid var(--cvg-mint);
}

html[data-color-scheme="light"].mpe-convergence-point-page .gh-article-image {
    background: rgba(247, 243, 232, .60);
}

html.mpe-convergence-point-page .gh-article-image img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* body typography and section grammar */
html.mpe-convergence-point-page .gh-content {
    color: var(--cvg-ink) !important;
    position: relative;
}

html.mpe-convergence-point-page .gh-content > p:first-child::before {
    content: "";
    display: inline-block;
    width: .75em;
    height: .75em;
    margin: 0 .55em .05em 0;
    border: 1.5px solid var(--cvg-gold);
    transform: rotate(45deg);
    vertical-align: baseline;
}

html.mpe-convergence-point-page .gh-content :where(p, li) {
    color: var(--cvg-ink) !important;
}

html.mpe-convergence-point-page .gh-content h2 {
    align-items: center;
    color: var(--cvg-white) !important;
    display: flex;
    gap: 1.2rem;
    font-family: var(--gh-font-heading, var(--font-sans));
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    letter-spacing: -.035em;
    line-height: 1.04;
    margin-top: 1.8em;
    text-wrap: balance;
}

html[data-color-scheme="light"].mpe-convergence-point-page .gh-content h2,
html[data-color-scheme="light"].mpe-convergence-point-page .gh-content h3,
html[data-color-scheme="light"].mpe-convergence-point-page .gh-content h4 {
    color: #161719 !important;
}

html.mpe-convergence-point-page .gh-content h2::before {
    content: "";
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid var(--cvg-gold);
    transform: rotate(45deg);
    box-shadow: .72rem .72rem 0 -.38rem rgba(152, 251, 152, .72);
}

html.mpe-convergence-point-page .gh-content h2::after {
    content: "";
    flex: 1 1 5rem;
    min-width: 3rem;
    height: 1px;
    margin-left: .25rem;
    background: linear-gradient(90deg, rgba(238,198,67,.62), rgba(152,251,152,.26), transparent);
}

html.mpe-convergence-point-page .gh-content h3 {
    color: var(--cvg-white) !important;
    font-family: var(--gh-font-heading, var(--font-sans));
    letter-spacing: -.018em;
    position: relative;
}

html.mpe-convergence-point-page .gh-content h3::before {
    content: "";
    display: inline-block;
    width: .62rem;
    height: .62rem;
    margin: 0 .7rem .12rem 0;
    background: var(--cvg-mint);
    transform: rotate(45deg);
}

html.mpe-convergence-point-page .gh-content a {
    color: var(--cvg-gold);
    text-decoration-color: rgba(238, 198, 67, .48);
    text-decoration-thickness: .08em;
    text-underline-offset: .16em;
}

html.mpe-convergence-point-page .gh-content a:hover {
    color: #f6d96e;
    opacity: 1;
}









html.mpe-convergence-point-page .gh-content hr {
    border: 0;
    height: 3rem;
    margin: 4.2rem auto;
    max-width: 22rem;
    background: var(--cvg-rule-art) center / contain no-repeat;
    opacity: .8;
}

html.mpe-convergence-point-page .gh-content :where(pre, code, .kg-callout-card, .kg-bookmark-card, .kg-toggle-card, table) {
    max-width: 100%;
}

html.mpe-convergence-point-page .gh-content pre {
    overflow-x: auto;
}

html.mpe-convergence-point-page .gh-content .kg-card {
    max-width: 100%;
}

html.mpe-convergence-point-page .gh-content :where(.kg-image-card, .kg-gallery-card) img {
    max-width: 100%;
}

html.mpe-convergence-point-page .gh-content figcaption {
    color: var(--cvg-muted);
}

/* Cards beneath the article and the Convergence Point tag index carry the same
   field language without becoming a second page frame. */
html.mpe-convergence-point-page .gh-read-next,
html.mpe-convergence-point-page .mpe-article-tags-panel,
html.mpe-convergence-point-page .gh-comments {
    background: transparent !important;
}

html.mpe-convergence-point-page .gh-read-next .gh-card,
html.mpe-convergence-point-page .gh-topic-grid .gh-card {
    position: relative;
}

html.mpe-convergence-point-page .gh-read-next .gh-card::before,
html.mpe-convergence-point-page .gh-topic-grid .gh-card::before {
    content: "";
    position: absolute;
    inset: -.5rem auto auto -.5rem;
    width: 2.2rem;
    height: 2.2rem;
    border-left: 1px solid var(--cvg-gold);
    border-top: 1px solid var(--cvg-gold);
    opacity: .65;
    pointer-events: none;
}

html.mpe-convergence-point-page .gh-read-next .gh-card:nth-child(even)::before,
html.mpe-convergence-point-page .gh-topic-grid .gh-card:nth-child(even)::before {
    border-color: var(--cvg-mint);
}

html.mpe-convergence-point-page .gh-pagehead {
    margin-bottom: clamp(4rem, 7vw, 7rem);
    max-width: 72rem;
    padding-top: clamp(5rem, 8vw, 9rem);
    position: relative;
}

html.mpe-convergence-point-page .gh-pagehead-title {
    color: var(--cvg-white) !important;
    font-family: var(--gh-font-heading, var(--font-sans));
    font-size: clamp(4rem, 7vw, 7rem);
    letter-spacing: -.045em;
    line-height: .98;
    text-transform: none;
}

html[data-color-scheme="light"].mpe-convergence-point-page .gh-pagehead-title {
    color: #161719 !important;
}

html.mpe-convergence-point-page .gh-pagehead-description {
    color: var(--cvg-muted);
    font-size: 1.85rem;
    line-height: 1.5;
}

/* Footer remains legible over the field. */
html.mpe-convergence-point-page .gh-foot {
    border-top: 1px solid rgba(238, 198, 67, .11);
}

/* --------------------------------------------------------------------------
   Mobile stability. No off-canvas decorations, no forced minimum widths, and
   every media/code/table surface is bounded to the viewport.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    html.mpe-convergence-point-page body {
        background-size: auto, auto, 1100px 1650px !important;
        background-position: center top, center top, 46% top !important;
    }

    html.mpe-convergence-point-page .gh-article-header {
        padding-top: 4.8rem;
        padding-bottom: 3.6rem;
    }

    html.mpe-convergence-point-page .gh-article-header::before {
        right: -2rem;
        top: 1.2rem;
        width: 16rem;
        opacity: .07;
    }

    html.mpe-convergence-point-page .gh-article-title {
        font-size: clamp(3.25rem, 10.5vw, 4.7rem);
        letter-spacing: -.04em;
        max-width: 100%;
    }

    html.mpe-convergence-point-page .gh-article-excerpt {
        font-size: 1.8rem;
    }

    html.mpe-convergence-point-page .gh-article-image {
        margin-left: 0;
        margin-right: 0;
        padding: .38rem;
        width: 100%;
    }

    html.mpe-convergence-point-page .gh-article-image::before,
    html.mpe-convergence-point-page .gh-article-image::after {
        width: 2rem;
        height: 2rem;
    }

    html.mpe-convergence-point-page .gh-content h2 {
        align-items: flex-start;
        font-size: clamp(2.55rem, 8.5vw, 3.35rem);
        gap: .9rem;
    }

    html.mpe-convergence-point-page .gh-content h2::after {
        display: none;
    }

    html.mpe-convergence-point-page .gh-content h2::before {
        margin-top: .62rem;
        width: .82rem;
        height: .82rem;
    }

    

    html.mpe-convergence-point-page .gh-content :where(img, video, iframe, canvas, svg) {
        max-width: 100%;
    }

    html.mpe-convergence-point-page .gh-content table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-convergence-icons-active="true"] .gh-search::before,
    .mpe-badge--convergence::before {
        transition: none;
    }
}
