/* Shared, editorial detail layout for all Medibyx Insights content. */
.mbx-insight-detail {
    color: #0f172a;
    background: #ffffff;
    padding: clamp(7rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.mbx-insight-detail__shell,
.mbx-insight-detail__content-shell {
    width: min(100% - 2rem, 58rem);
    margin: 0 auto;
}

.mbx-insight-detail__heading-shell {
    width: min(100% - 2rem, 58rem);
    margin-right: auto;
    margin-left: auto;
}

.mbx-insight-detail__header {
    padding-bottom: clamp(2.5rem, 4vw, 3.75rem);
    border-bottom: 1px solid #e2e8f0;
}

.mbx-insight-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.mbx-insight-detail__back:hover,
.mbx-insight-detail__back:focus-visible {
    color: #a86000;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.mbx-insight-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.875rem;
    margin-bottom: 1.125rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.5;
    text-transform: uppercase;
}

.mbx-insight-detail__meta > * + *::before {
    content: '\00b7';
    margin-right: 0.875rem;
    color: #cbd5e1;
}

.mbx-insight-detail__title {
    max-width: 16ch;
    margin: 0;
    color: #0f172a;
    font-size: clamp(2.35rem, 5.4vw, 4.75rem);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.mbx-insight-detail__excerpt {
    max-width: 42rem;
    margin: 1.5rem 0 0;
    color: #64748b;
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.7;
}

.mbx-insight-detail__visual {
    display: grid;
    place-items: center;
    min-height: clamp(14rem, 28vw, 30rem);
    max-width: 58rem;
    margin: clamp(2rem, 4vw, 3.5rem) auto 0;
    padding: clamp(0.75rem, 1.75vw, 1.25rem);
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    background: #f8fafc;
}

.mbx-insight-detail__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(56vh, 34rem);
    object-fit: contain;
}

.mbx-insight-detail__visual-empty {
    padding: 3rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mbx-insight-detail__content-shell {
    width: min(100% - 2rem, 45.5rem);
}

.mbx-insight-detail__content {
    padding-top: clamp(2.5rem, 5vw, 4.25rem);
    color: #334155;
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    line-height: 1.8;
}

.mbx-insight-detail__content > *:first-child { margin-top: 0; }
.mbx-insight-detail__content > *:last-child { margin-bottom: 0; }

.mbx-insight-detail__content p,
.mbx-insight-detail__content ul,
.mbx-insight-detail__content ol,
.mbx-insight-detail__content blockquote,
.mbx-insight-detail__content pre,
.mbx-insight-detail__content figure,
.mbx-insight-detail__content .wp-block-image {
    margin: 0 0 1.6em;
}

.mbx-insight-detail__content h2,
.mbx-insight-detail__content h3,
.mbx-insight-detail__content h4 {
    margin: 2.2em 0 0.7em;
    color: #0f172a;
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.16;
}

.mbx-insight-detail__content h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
.mbx-insight-detail__content h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.mbx-insight-detail__content h4 { font-size: 1.15rem; }

.mbx-insight-detail__content ul,
.mbx-insight-detail__content ol { padding-left: 1.3em; }
.mbx-insight-detail__content li + li { margin-top: 0.5em; }

.mbx-insight-detail__content a {
    color: #a86000;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.mbx-insight-detail__content blockquote {
    padding-left: 1.25rem;
    border-left: 2px solid #f09005;
    color: #475569;
    font-size: 1.08em;
}

.mbx-insight-detail__content img,
.mbx-insight-detail__content figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.mbx-insight-detail__content pre {
    overflow-x: auto;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.875em;
    line-height: 1.65;
}

.mbx-insight-detail__footer {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.mbx-insight-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.mbx-insight-detail__tags > span {
    color: #475569;
    font-weight: 600;
}

.mbx-insight-detail__tags a {
    color: #475569;
    text-decoration: none;
}

.mbx-insight-detail__tags a:hover,
.mbx-insight-detail__tags a:focus-visible {
    color: #a86000;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (max-width: 640px) {
    .mbx-insight-detail { padding-top: 6.75rem; }

    .mbx-insight-detail__heading-shell {
        width: min(100% - 2rem, 55rem);
        margin-right: auto;
        margin-left: auto;
    }

    .mbx-insight-detail__meta {
        gap: 0.25rem 0.65rem;
        font-size: 0.6875rem;
    }

    .mbx-insight-detail__meta > * + *::before { margin-right: 0.65rem; }

    .mbx-insight-detail__title {
        max-width: none;
        font-size: clamp(2.35rem, 13vw, 3.25rem);
        letter-spacing: -0.06em;
    }

    .mbx-insight-detail__visual {
        min-height: 13rem;
        padding: 0.625rem;
    }
}
