/* ============================================================
   Datacenter Page (/datacenter)
   Visual system shared with /our-story: hairline sections,
   teal accents, editorial rhythm, no drop shadows.
   Scoped to .mz-dc-* — does not affect any other page.
   ============================================================ */

/* ---------- Page rhythm ---------- */
.mz-dc-page {
    display: grid;
    gap: 26px;
    padding-top: 48px;
    padding-bottom: 80px;
}

/* The shared flat theme paints alternating gradient bands on <section>.
   This page keeps one calm surface, the way /our-story reads. */
#mz-main-content .mz-dc-page > section {
    background: none !important;
}

/* ---------- Labels ---------- */
.mz-dc-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #e6f5f2;
    color: #087d72;
    font-size: 11px;
    font-weight: 850;
}

.mz-dc-kicker {
    display: block;
    margin-bottom: 9px;
    color: #087f73;
    font-size: 11px;
    font-weight: 850;
}

.mz-dc-hero h1 {
    margin: 0 0 16px;
    line-height: 1.55;
    /* the site's display font is very condensed at h1 size; keep words apart */
    word-spacing: .08em;
}

/* same condensed display font on section headings */
.mz-dc-page h2,
.mz-dc-page h3 {
    word-spacing: .15em;
}

/* ---------- Intro ---------- */
.mz-dc-intro {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
    gap: clamp(35px, 7vw, 90px);
    padding: 32px 4px;
}

.mz-dc-intro h2 {
    margin: 0;
    color: #182d29;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.55;
}

/* ---------- Body: article column + sticky sidebar ---------- */
.mz-dc-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: clamp(28px, 3.4vw, 52px);
    align-items: start;
}

.mz-dc-article {
    min-width: 0;
}

.mz-dc-prose {
    min-width: 0;
}

.mz-dc-intro p,
.mz-dc-prose p {
    margin: 0 0 14px;
    color: #5d706b;
    font-size: 13px;
    line-height: 2.25;
    text-align: justify;
}

.mz-dc-prose p:last-child {
    margin-bottom: 0;
}

/* ---------- Key facts strip ---------- */
.mz-dc-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border-block: 1px solid #dfe8e5;
}

.mz-dc-facts article {
    display: grid;
    gap: 8px;
    padding: 25px 20px;
    text-align: center;
}

.mz-dc-facts article + article {
    border-right: 1px solid #dfe8e5;
}

.mz-dc-facts strong {
    color: #087f73;
    font-size: 25px;
}

.mz-dc-facts span {
    color: #6b7c78;
    font-size: 10px;
}

/* ---------- Gallery ---------- */
.mz-dc-gallery {
    display: grid;
    gap: 24px;
    padding: 10px 0 6px;
}

.mz-dc-gallery > header {
    text-align: center;
}

.mz-dc-gallery h2 {
    margin: 0;
    color: #182d29;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.6;
}

.mz-dc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.mz-dc-figure {
    margin: 0;
}

.mz-dc-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid #dfe8e5;
    border-radius: 10px;
    background: #eef4f2;
}

.mz-dc-figure figcaption {
    margin-top: 9px;
    color: #6b7c78;
    font-size: 11px;
    line-height: 1.9;
    text-align: start;
}

/* ---------- Editorial sections ---------- */
.mz-dc-section {
    padding: 38px 0 6px;
    border-top: 1px solid #dfe8e5;
    scroll-margin-top: 176px;
}

.mz-dc-section-head {
    max-width: 940px;
    margin-bottom: 24px;
}

.mz-dc-section h2 {
    margin: 0;
    color: #182d29;
    font-size: clamp(21px, 2.2vw, 27px);
    line-height: 1.6;
    scroll-margin-top: 176px;
}

.mz-dc-section h3 {
    color: #213934;
}

/* ---------- Card grids (1px hairline technique) ---------- */
.mz-dc-grid {
    display: grid;
    gap: 1px;
    margin: 26px 0;
    overflow: hidden;
    border: 1px solid #dfe8e5;
    border-radius: 10px;
    background: #dfe8e5;
}

.mz-dc-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.mz-dc-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.mz-dc-grid article {
    display: flex;
    flex-direction: column;
    padding: 26px 28px;
    background: #fff;
    text-align: start;
}

.mz-dc-grid b {
    display: block;
    margin-bottom: 14px;
    color: #9eb1ac;
    font-size: 11px;
    font-weight: 800;
}

.mz-dc-grid h3 {
    margin: 0 0 9px;
    font-size: 15px;
    line-height: 1.75;
}

.mz-dc-grid p {
    margin: 0;
    color: #687a76;
    font-size: 12px;
    line-height: 2.1;
}

/* ---------- Lists ---------- */
.mz-dc-list {
    display: grid;
    gap: 9px;
    margin: 4px 0 20px;
    padding: 0;
    list-style: none;
}

.mz-dc-list li {
    position: relative;
    padding-inline-start: 18px;
    color: #5d706b;
    font-size: 13px;
    line-height: 2.15;
}

.mz-dc-list li::before {
    position: absolute;
    inset-inline-start: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #087f73;
    content: "";
}

.mz-dc-list strong {
    color: #213934;
}

/* ---------- Independence statement ---------- */
.mz-dc-statement {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 26px;
    align-items: center;
    margin: 6px 0 4px;
    padding: 30px 32px;
    border: 1px solid #d9e8e3;
    border-inline-start: 3px solid #087f73;
    border-radius: 12px;
    background: linear-gradient(180deg, #f7fbfa 0%, #ffffff 100%);
}

.mz-dc-statement-text p {
    margin: 0 0 13px;
    color: #4f6661;
    font-size: 13px;
    line-height: 2.25;
    text-align: justify;
}

.mz-dc-statement-text p:last-child {
    margin-bottom: 0;
}

.mz-dc-statement-text strong {
    color: #17312b;
}

.mz-dc-statement-quote {
    padding: 13px 16px;
    border-radius: 9px;
    background: #eaf5f2;
    color: #0d5a52 !important;
    font-weight: 850;
    text-align: start !important;
}

.mz-dc-statement-year {
    display: grid;
    gap: 6px;
    justify-items: center;
    padding-inline-start: 26px;
    border-inline-start: 1px solid #dcebe6;
    text-align: center;
}

.mz-dc-statement-year strong {
    color: #087f73;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.02em;
}

.mz-dc-statement-year span {
    color: #7b8d89;
    font-size: 9.5px;
    line-height: 1.8;
}

/* ---------- Closing call to action ---------- */
.mz-dc-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 35px;
    margin-top: 18px;
    padding: 42px 46px;
    border-radius: 10px;
    background: #122d2a;
    color: #fff;
}

.mz-dc-cta > div > span {
    display: block;
    margin-bottom: 9px;
    color: #8bd5ca;
    font-size: 11px;
    font-weight: 850;
}

.mz-dc-cta h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.55;
}

.mz-dc-cta p {
    max-width: 780px;
    margin: 12px 0 0;
    color: #c8d8d4;
    font-size: 12px;
    line-height: 2.1;
}

.mz-dc-cta > a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    background: #fff;
    color: #173631;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

/* ---------- Contact details ---------- */
.mz-dc-contact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid #dfe8e5;
}

.mz-dc-contact > div {
    display: grid;
    gap: 7px;
    padding: 22px 20px;
}

.mz-dc-contact > div + div {
    border-right: 1px solid #dfe8e5;
}

.mz-dc-contact span {
    color: #6b7c78;
    font-size: 10px;
}

.mz-dc-contact strong,
.mz-dc-contact a {
    color: #213934;
    font-size: 13px;
    font-weight: 800;
}

.mz-dc-contact a {
    text-decoration: none;
}

.mz-dc-contact a:hover {
    color: #087f73;
}

/* ---------- Sticky sidebar ---------- */
.mz-dc-toc {
    position: sticky;
    top: 150px;
    align-self: start;
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 168px);
    padding: 15px 16px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #dfe8e5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(20, 67, 67, .02);
    scrollbar-width: thin;
    scrollbar-color: #cfe0da transparent;
}

.mz-dc-toc::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, #087f73, #58bfae);
}

.mz-dc-toc-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 11px;
    border-bottom: 1px solid #edf3f1;
}

.mz-dc-toc-kicker {
    color: #087f73;
    font-size: 10.5px;
    font-weight: 850;
}

.mz-dc-toc-count {
    color: #9aada8;
    font-size: 9px;
    font-weight: 700;
}

/* Numbered index with a connecting rail */
.mz-dc-toc-nav {
    position: relative;
    display: grid;
    gap: 1px;
}

.mz-dc-toc-nav::before {
    content: "";
    position: absolute;
    inset-inline-start: 20px;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: #e4eeeb;
}

.mz-dc-toc-nav a {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 9px;
    color: #4d635e;
    font-size: 11.5px;
    line-height: 1.7;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.mz-dc-toc-nav i {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid #e1ece9;
    border-radius: 7px;
    background: #fff;
    color: #8b9d98;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.mz-dc-toc-nav span {
    min-width: 0;
}

.mz-dc-toc-nav a:hover,
.mz-dc-toc-nav a:focus-visible {
    background: #f1f8f6;
    color: #087f73;
    outline: none;
}

.mz-dc-toc-nav a:hover i,
.mz-dc-toc-nav a:focus-visible i {
    border-color: #087f73;
    background: #087f73;
    color: #fff;
}

.mz-dc-toc-note {
    display: grid;
    gap: 4px;
    padding: 12px 13px;
    border: 1px solid #e6f0ed;
    border-radius: 10px;
    background: #f3f9f7;
}

/* Active item: driven by the scroll-spy script */
.mz-dc-toc-nav a.is-active {
    background: #eff7f5;
    color: #087f73;
    font-weight: 800;
}

.mz-dc-toc-nav a.is-active i {
    border-color: #087f73;
    background: #087f73;
    color: #fff;
}

/* Fallback for direct links that carry a hash */
#mz-main-content:has(#dc-tier-title:target) .mz-dc-toc-nav a[href="#dc-tier-title"],
#mz-main-content:has(#dc-security-title:target) .mz-dc-toc-nav a[href="#dc-security-title"],
#mz-main-content:has(#dc-colo-title:target) .mz-dc-toc-nav a[href="#dc-colo-title"],
#mz-main-content:has(#dc-dr-title:target) .mz-dc-toc-nav a[href="#dc-dr-title"],
#mz-main-content:has(#dc-network-title:target) .mz-dc-toc-nav a[href="#dc-network-title"],
#mz-main-content:has(#dc-power-title:target) .mz-dc-toc-nav a[href="#dc-power-title"],
#mz-main-content:has(#dc-cooling-title:target) .mz-dc-toc-nav a[href="#dc-cooling-title"],
#mz-main-content:has(#dc-why-title:target) .mz-dc-toc-nav a[href="#dc-why-title"],
#mz-main-content:has(#dc-independence:target) .mz-dc-toc-nav a[href="#dc-independence"] {
    background: #eff7f5;
    color: #087f73;
    font-weight: 800;
}

#mz-main-content:has(#dc-tier-title:target) .mz-dc-toc-nav a[href="#dc-tier-title"] i,
#mz-main-content:has(#dc-security-title:target) .mz-dc-toc-nav a[href="#dc-security-title"] i,
#mz-main-content:has(#dc-colo-title:target) .mz-dc-toc-nav a[href="#dc-colo-title"] i,
#mz-main-content:has(#dc-dr-title:target) .mz-dc-toc-nav a[href="#dc-dr-title"] i,
#mz-main-content:has(#dc-network-title:target) .mz-dc-toc-nav a[href="#dc-network-title"] i,
#mz-main-content:has(#dc-power-title:target) .mz-dc-toc-nav a[href="#dc-power-title"] i,
#mz-main-content:has(#dc-cooling-title:target) .mz-dc-toc-nav a[href="#dc-cooling-title"] i,
#mz-main-content:has(#dc-why-title:target) .mz-dc-toc-nav a[href="#dc-why-title"] i,
#mz-main-content:has(#dc-independence:target) .mz-dc-toc-nav a[href="#dc-independence"] i {
    border-color: #087f73;
    background: #087f73;
    color: #fff;
}

.mz-dc-toc-note strong {
    color: #0b6d63;
    font-size: 12px;
    font-weight: 900;
}

.mz-dc-toc-note span {
    color: #748683;
    font-size: 9.5px;
    line-height: 1.75;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .mz-dc-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .mz-dc-toc {
        display: none;
    }
}

@media (max-width: 800px) {
    .mz-dc-statement {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 24px 22px;
    }

    .mz-dc-statement-year {
        justify-items: start;
        padding: 16px 0 0;
        border-inline-start: 0;
        border-top: 1px solid #dcebe6;
        text-align: start;
    }

    .mz-dc-statement-year strong {
        font-size: 26px;
    }
}

@media (max-width: 900px) {
    .mz-dc-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .mz-dc-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .mz-dc-page {
        padding-top: 28px;
    }

    .mz-dc-intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mz-dc-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .mz-dc-facts article:nth-child(3) {
        border-top: 1px solid #dfe8e5;
    }

    .mz-dc-facts article:nth-child(odd) {
        border-right: 0;
    }

    .mz-dc-contact {
        grid-template-columns: repeat(2, 1fr);
    }

    .mz-dc-contact > div:nth-child(odd) {
        border-right: 0;
    }

    .mz-dc-cta {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .mz-dc-cta > a {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .mz-dc-page {
        gap: 18px;
    }

    .mz-dc-intro {
        padding: 20px 2px;
    }

    .mz-dc-intro h2,
    .mz-dc-gallery h2,
    .mz-dc-cta h2 {
        font-size: 22px;
    }

    .mz-dc-intro p,
    .mz-dc-prose p {
        text-align: right;
    }

    .mz-dc-facts article {
        padding: 20px 10px;
    }

    .mz-dc-facts strong {
        font-size: 21px;
    }

    .mz-dc-gallery-grid {
        grid-template-columns: 1fr;
    }

    .mz-dc-grid--4,
    .mz-dc-grid--2 {
        grid-template-columns: 1fr;
    }

    .mz-dc-section {
        padding: 28px 0 4px;
    }

    .mz-dc-contact {
        grid-template-columns: 1fr;
    }

    .mz-dc-contact > div + div {
        border-right: 0;
        border-top: 1px solid #dfe8e5;
    }
}
