/* Shared layout refinements that sit after site.css via the shared header include. */

/*
 * Compact standard heroes based on the approved Dilophosaurus draft preview.
 * The media-kit hero intentionally keeps its existing custom spacing/layout.
 */
.mh-hero:not(.mh-media-kit-hero) {
    padding: calc(clamp(32px, 5.25vw, 58px) - 10px) calc(clamp(22px, 4.4vw, 51px) - 5px);
}

/*
 * Keep the top-of-page rhythm compact and consistent.
 * The theme's decorative line below the persistent header added extra visual
 * separation above breadcrumbs, so remove it rather than reserving more space.
 */
.mh-site-header .mh-site-header__inner::after {
    content: none;
}

/*
 * Breadcrumb shell
 * ----------------
 * Keep a fixed 34px breadcrumb region for layout stability, but make the shell
 * visually almost disappear into the page background. Its job is spacing first,
 * decoration second.
 */
.mh-site-main {
    padding-top: 4px;
}

.mh-site-main > nav[aria-label="Breadcrumb"] {
    display: flex;
    align-items: center;
    width: 100%;
    height: 34px;
    margin: 0 0 4px;
    padding: 0 10px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--mh-border) 18%, transparent);
    border-radius: var(--mh-radius-sm);
    background: color-mix(in srgb, var(--mh-surface) 10%, transparent);
    box-shadow: none;
}

.mh-site-main > nav[aria-label="Breadcrumb"] .mh-breadcrumbs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.mh-site-main > nav[aria-label="Breadcrumb"] .mh-breadcrumbs::-webkit-scrollbar {
    display: none;
}

.mh-site-main > nav[aria-label="Breadcrumb"] .mh-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    height: 100%;
    flex: 0 0 auto;
    font: inherit;
    line-height: 1;
}

.mh-site-main > nav[aria-label="Breadcrumb"] .mh-breadcrumbs a,
.mh-site-main > nav[aria-label="Breadcrumb"] .mh-breadcrumbs [aria-current="page"] {
    display: inline-flex;
    align-items: center;
    min-height: 100%;
    flex: 0 0 auto;
    font: inherit;
    line-height: 1;
    color: var(--mh-link);
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.mh-site-main > nav[aria-label="Breadcrumb"] .mh-breadcrumbs a:hover,
.mh-site-main > nav[aria-label="Breadcrumb"] .mh-breadcrumbs a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}
