/*
 * MarketingHub - Restored Original UI
 * OSSN 7.6 / White Theme 7.6
 * OSSN License
 */

/* General */

.mh {
    --mh-ink: #18201f;
    --mh-muted: #79827e;
    --mh-line: #e5e9e5;
    --mh-accent: #09bb8b;
    color: var(--mh-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    max-width: 1390px;
    margin: 0 auto;
    padding: 26px 22px 10px;
    letter-spacing: -.015em;
    width: 100%;
    min-width: 0;
}

.mh * {
    box-sizing: border-box;
}

.mh a {
    text-decoration: none !important;
}

.mh img {
    max-width: 100%;
}

.mh-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 2px 24px;
    border-bottom: 1px solid var(--mh-line);
    gap: 16px;
}

.mh-brand {
    font-size: 12px;
    letter-spacing: .19em;
    font-weight: 850;
    color: var(--mh-ink) !important;
}

.mh-spark {
    color: var(--mh-accent);
    font-size: 24px;
    vertical-align: -2px;
    margin-right: 8px;
}

.mh-topright,
.mh-section-note {
    font-size: 10px;
    letter-spacing: .18em;
    font-weight: 800;
    color: var(--mh-muted);
}

.mh-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mh-accent);
    margin-left: 9px;
    vertical-align: middle;
}

.mh-eyebrow,
.mh-overline {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
    color: var(--mh-accent);
}

.mh em {
    font-style: normal;
    color: var(--mh-accent);
}

/* Hero slider */

.mh-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    isolation: isolate;
}

.mh-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility .8s;
}

.mh-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.mh-slide-image {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.mh-controls {
    position: absolute;
    bottom: 14px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 8;
}

.mh-dots {
    display: flex;
    gap: 8px;
}

.mh-dots button {
    width: 38px;
    height: 4px;
    border: none;
    background: rgba(255,255,255,.45);
    border-radius: 50px;
    padding: 0;
    cursor: pointer;
}

.mh-dots button.is-active {
    background: #fff;
}

.mh-blank {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 25px;
}

.mh-blank span {
    font-size: 54px;
    color: #4be3b1;
}

.mh-blank strong {
    font-size: clamp(26px,4vw,46px);
    letter-spacing: -.05em;
}

/* Section heading */

.mh-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin: 76px 0 28px;
}

.mh-section-head h2 {
    font-size: clamp(30px,4vw,54px);
    font-weight: 800;
    line-height: 1.09;
    letter-spacing: -.065em;
    margin: 12px 0 0;
    color: var(--mh-ink);
}

.mh-section-note {
    padding-bottom: 8px;
}

/* Original story card grid */

.mh-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
}

.mh-grid > * {
    min-width: 0;
}

.mh-card {
    display: block;
    position: relative;
    color: var(--mh-ink) !important;
}

.mh-card-media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg,#132f2a,#0e7f66);
    aspect-ratio: 1.67;
    border-radius: 17px;
}

.mh-card-media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2,.6,.2,1);
}

.mh-card:hover .mh-card-media img {
    transform: scale(1.06);
}

.mh-card-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff;
    color: #172b26;
    border-radius: 100%;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    font-size: 23px;
    box-shadow: 0 5px 25px #0002;
    transition: transform .2s;
}

.mh-card:hover .mh-card-arrow {
    transform: rotate(45deg);
}

.mh-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 21px 2px 9px;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 800;
    color: var(--mh-muted);
}

.mh-card-meta span:first-child {
    color: var(--mh-accent);
}

.mh-card h3 {
    font-size: clamp(20px,2vw,26px);
    letter-spacing: -.045em;
    line-height: 1.26;
    font-weight: 800;
    margin: 0 2px 16px;
    color: var(--mh-ink);
    overflow-wrap: anywhere;
}

.mh-card:hover h3,
.mh-card:focus-visible h3 {
    color: var(--mh-accent);
}

.mh-card-link {
    color: var(--mh-ink);
    font-weight: 800;
    font-size: 12px;
    padding: 0 2px;
}

.mh-card-link span {
    margin-left: 12px;
    color: var(--mh-accent);
}

.mh-empty {
    grid-column: 1 / -1;
    text-align: center;
    background: #edf7f2;
    border-radius: 16px;
    padding: 52px 16px;
    color: #58736a;
}

/* Footer */

.mh-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--mh-line);
    margin-top: 90px;
    padding: 28px 0;
    color: var(--mh-muted);
    font-size: 10px;
    letter-spacing: .16em;
    font-weight: 750;
}

.mh-footer strong {
    color: var(--mh-ink);
}

.mh-footer strong span {
    color: var(--mh-accent);
    padding-left: 4px;
}

.mh-footer a {
    color: var(--mh-muted) !important;
    text-decoration: none !important;
}

.mh-footer a:hover {
    color: var(--mh-accent) !important;
}

/* Individual stories */

.mh-back {
    display: inline-block;
    margin: 34px 0;
    color: var(--mh-muted) !important;
    font-size: 13px;
    font-weight: 750;
}

.mh-back:hover {
    color: var(--mh-accent) !important;
}

.mh-detail-heading {
    max-width: 940px;
    margin: 40px auto 46px;
    text-align: center;
}

.mh-detail-heading h1 {
    font-size: clamp(36px,6vw,80px);
    font-weight: 800;
    line-height: 1.09;
    letter-spacing: -.065em;
    margin: 24px 0;
    color: var(--mh-ink);
    overflow-wrap: anywhere;
}

.mh-detail-heading p {
    font-size: clamp(16px,2vw,22px);
    line-height: 1.5;
    color: var(--mh-muted);
    max-width: 680px;
    margin: 15px auto;
}

.mh-story-hero {
    border-radius: 25px;
    overflow: hidden;
    max-height: 610px;
    background: #14392d;
}

.mh-story-hero img {
    width: 100%;
    height: auto;
    max-height: 610px;
    object-fit: cover;
    display: block;
}

.mh-article {
    max-width: 770px;
    margin: 64px auto 70px;
    font-size: 18px;
    line-height: 1.95;
    letter-spacing: 0;
    color: var(--mh-ink);
    overflow-wrap: break-word;
}

.mh-article p {
    margin: 0 0 26px;
}

.mh-story-end {
    text-align: center;
    padding: 45px 0 20px;
}

.mh-story-end > span {
    font-size: 40px;
    color: var(--mh-accent);
}

.mh-story-end h2 {
    font-size: clamp(30px,4vw,48px);
    letter-spacing: -.06em;
    margin: 15px;
    color: var(--mh-ink);
}

.mh-story-end a {
    color: var(--mh-accent) !important;
    font-weight: 800;
    font-size: 13px;
}

/* Archive pagination */

#marketing-archive .mh-archive-header {
    padding: 20px 0 45px;
}

#marketing-archive .mh-archive-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mh-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

#marketing-archive .mh-archive-heading {
    text-align: center;
    padding-top: 38px;
}

#marketing-archive .mh-archive-heading h1 {
    margin: 12px 0 16px;
    font-size: clamp(32px,5vw,60px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.045em;
    color: var(--mh-ink);
}

#marketing-archive .mh-archive-heading p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--mh-muted);
    font-size: 15px;
    line-height: 1.7;
}

#marketing-archive .mh-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 50px auto 35px;
}

#marketing-archive .mh-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--mh-line);
    border-radius: 12px;
    color: var(--mh-ink);
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

#marketing-archive .mh-page-button:hover,
#marketing-archive .mh-page-button.is-active {
    background: var(--mh-accent);
    border-color: var(--mh-accent);
    color: #09231a;
}

#marketing-archive .mh-page-ellipsis {
    padding: 0 3px;
    color: var(--mh-muted);
}

/* Tablet */

@media (max-width: 900px) {
    .mh {
        padding-left: 18px;
        padding-right: 18px;
    }

    .mh-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .mh-card-media {
        aspect-ratio: 16 / 10;
    }

    .mh-grid {
        gap: 22px;
    }
}

/* Mobile */

@media (max-width: 640px) {
    .mh {
        padding: 16px 12px 8px;
    }

    .mh-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mh-section-head {
        margin-top: 48px;
    }

    .mh-section-note {
        display: none;
    }

    .mh-card-media {
        aspect-ratio: 16 / 9;
        border-radius: 13px;
    }

    .mh-card-meta {
        flex-wrap: wrap;
    }

    .mh-card h3 {
        font-size: 23px;
    }

    .mh-footer {
        margin-top: 55px;
        flex-wrap: wrap;
        line-height: 1.7;
    }

    .mh-detail-heading {
        margin: 25px auto 30px;
    }

    .mh-detail-heading h1 {
        font-size: clamp(34px,9vw,55px);
    }

    .mh-detail-heading p {
        font-size: 16px;
    }

    .mh-story-hero {
        border-radius: 15px;
    }

    .mh-article {
        font-size: 16px;
        line-height: 1.8;
        margin: 34px auto 44px;
    }

    #marketing-archive .mh-pagination {
        gap: 6px;
    }
}

/* Dark mode */

.white-darkmode .mh,
.darkmode .mh,
body.dark .mh,
body[data-theme="dark"] .mh {
    --mh-ink: #f0f6f2;
    --mh-muted: #a8b8b0;
    --mh-line: #35483d;
    --mh-accent: #43dfad;
    color: var(--mh-ink);
}

.white-darkmode .mh-empty,
.darkmode .mh-empty {
    background: #1c322a;
    color: #a8c7b8;
}

.white-darkmode .mh-card-arrow,
.darkmode .mh-card-arrow {
    background: #233b31;
    color: #f2fbf6;
}

/*
 * Preserve the approved slider.
 * Exact ratio 1726 x 644.
 * No dark green background.
 * Indicators bottom-right.
 */

#marketing-hub .mh-carousel {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1726 / 644 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

#marketing-hub .mh-carousel::before,
#marketing-hub .mh-carousel::after,
#marketing-hub .mh-slide::before,
#marketing-hub .mh-slide::after {
    content: none !important;
    display: none !important;
}

#marketing-hub .mh-slide {
    background: transparent !important;
    background-image: none !important;
}

#marketing-hub .mh-slide-image {
    object-fit: cover !important;
    object-position: center !important;
    background: transparent !important;
    transform: none !important;
}

#marketing-hub .mh-controls {
    left: auto !important;
    right: 18px !important;
    bottom: 14px !important;
    width: auto !important;
    justify-content: flex-end !important;
}

#marketing-hub .mh-dots button {
    width: 38px !important;
    height: 4px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 50px !important;
}

@media (max-width: 640px) {
    #marketing-hub .mh-carousel {
        border-radius: 12px !important;
    }

    #marketing-hub .mh-controls {
        right: 10px !important;
        bottom: 8px !important;
    }

    #marketing-hub .mh-dots button {
        width: 25px !important;
        height: 3px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mh * {
        transition: none !important;
        animation: none !important;
    }
}
