/* Detail stylesheet: industry-detail. */

.mh-detail-page {
    min-height: 100dvh;
    background-color: hsl(var(--background));
}

.mh-detail-hero {
    border-bottom-width: 1px;
    background-color: hsl(var(--muted) / 0.4);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mh-detail-hero-inner,
.mh-detail-two-column,
.mh-form-section-inner,
.mh-related-section-inner,
.mh-section-container {
    display: grid;
    width: 100%;
    max-width: 1440px;
    margin-right: auto;
    margin-left: auto;
    gap: 2.5rem;
    padding-right: 1rem;
    padding-left: 1rem;
}

.mh-detail-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.mh-detail-eyebrow {
    display: inline-flex;
    align-items: center;
    border-width: 1px;
    border-color: transparent;
    border-radius: 9999px;
    background-color: hsl(var(--secondary));
    padding: 0.125rem 0.625rem;
    color: hsl(var(--secondary-foreground));
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
}

.mh-detail-title {
    max-width: 56rem;
    margin-top: 1.25rem;
    color: hsl(var(--foreground));
    font-size: clamp(2.75rem, 5vw, 5rem);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: 0;
}

.mh-detail-lead {
    max-width: 42rem;
    margin-top: 1.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    line-height: 1.75rem;
}

.mh-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.mh-detail-primary-action,
.mh-detail-secondary-action,
.mh-industry-detail-control-a,
.mh-pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.mh-detail-primary-action,
.mh-industry-detail-control-a {
    height: 2.75rem;
    background-color: hsl(var(--primary));
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    color: hsl(var(--primary-foreground));
}

.mh-detail-primary-action:hover,
.mh-industry-detail-control-a:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.mh-detail-primary-action:focus-visible,
.mh-detail-secondary-action:focus-visible,
.mh-pill-link:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.mh-detail-secondary-action,
.mh-pill-link {
    border-width: 1px;
    border-color: hsl(var(--input));
    background-color: hsl(var(--background));
}

.mh-detail-secondary-action {
    height: 2.5rem;
    padding: 0.5rem 1rem;
}

.mh-detail-actions .mh-detail-secondary-action {
    height: 2.75rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.mh-pill-link {
    height: 2.25rem;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.mh-detail-secondary-action:hover,
.mh-pill-link:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.mh-detail-action-icon,
.mh-download-icon,
.mh-form-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.mh-detail-meta-text {
    margin-top: 0.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.mh-check-row,
.mh-download-row {
    display: flex;
    gap: 1rem;
}

.mh-check-row {
    padding: 1.5rem;
}

.mh-download-row {
    flex-direction: column;
    padding: 1.25rem;
}

.mh-card-list-body,
.mh-industry-case-content {
    display: grid;
    padding: 1.5rem;
    padding-top: 0;
}

.mh-related-grid > .mh-card-media {
    display: flex;
    flex-direction: column;
}

.mh-related-grid > .mh-card-media > .mh-card-summary,
.mh-related-grid > .mh-card-media > .mh-industry-case-content {
    flex: 1 1 auto;
}

.mh-card-list-body {
    gap: 1.25rem;
}

.mh-industry-case-content {
    gap: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.5rem;
}

.mh-industry-case-result {
    color: hsl(var(--foreground));
    font-weight: 500;
}

.mh-industry-case-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: hsl(var(--muted));
}

.mh-industry-detail-panel-b,
.mh-industry-detail-panel-c,
.mh-industry-detail-panel-e,
.mh-industry-detail-panel-h {
    display: grid;
}

.mh-industry-detail-panel-b,
.mh-industry-detail-panel-c,
.mh-industry-detail-panel-h {
    margin-top: 2rem;
}

.mh-industry-detail-panel-b {
    gap: 2rem;
}

.mh-industry-detail-panel-c,
.mh-industry-detail-panel-e,
.mh-industry-detail-panel-h {
    gap: 1.5rem;
}

.mh-form-input,
.mh-form-message {
    display: flex;
    width: 100%;
    border-width: 1px;
    border-color: hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.mh-form-input {
    height: 2.5rem;
}

.mh-form-message {
    min-height: 7rem;
}

.mh-form-row-three {
    display: grid;
    gap: 0.5rem;
}

.mh-form-file-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mh-form-hint {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    line-height: 1.25rem;
}

.mh-industry-detail-control-a {
    width: 100%;
}

@media (min-width: 640px) {
    .mh-detail-hero-inner,
    .mh-detail-two-column,
    .mh-form-section-inner,
    .mh-related-section-inner,
    .mh-section-container {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}

@media (min-width: 768px) {
    .mh-detail-hero {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .mh-download-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .mh-form-row-three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mh-industry-detail-control-a {
        width: -moz-fit-content;
        width: fit-content;
    }

    .mh-industry-detail-panel-b,
    .mh-industry-detail-panel-c,
    .mh-industry-detail-panel-h {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .mh-detail-hero-inner,
    .mh-detail-two-column,
    .mh-form-section-inner,
    .mh-related-section-inner,
    .mh-section-container {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .mh-detail-hero-inner {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: center;
    }

    .mh-detail-two-column {
        grid-template-columns: 1fr 1fr;
    }

    .mh-form-section-inner {
        grid-template-columns: 0.9fr 1.1fr;
    }

    .mh-industry-detail-panel-h {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
