/* Shared public-site foundations. Loaded after component and page styles. */
:root {
    --slf-shell-width: min(92%, var(--slf-layout-container));
    --slf-title-size: 3.5rem;
    --slf-section-title-size: 2rem;
    --slf-primary-background: linear-gradient(145deg, var(--slf-teal-dark), var(--slf-teal));
    --slf-border: #dce3e5;
    --slf-copy-size: 1rem;
    --slf-card-title-size: 1.125rem;
    --slf-copy-line-height: 1.6;
    --slf-static-card-shadow: 0 4px 16px rgba(0, 0, 0, .05);
    --slf-topic-spacing: 48px;
}

/* Keep page content aligned with the shared navigation and footer. */
.slf-header-body :is(
    .slf-header-inner, .footer-desktop-inner, .about-shell,
    .slf-services-hero-inner, .slf-services-main .slf-services-section, .slf-services-cta-inner,
    .slf-why-hero-inner, .slf-why-section,
    .slf-it-hero-inner, .slf-it-section,
    .slf-contact-hero-inner, .slf-contact-wrap,
    .slf-service-hero-inner, .slf-service-main,
    .slf-network-page .slf-shell, .mnc-container
) {
    width: var(--slf-shell-width);
    margin-inline: auto;
}

.slf-home-page :is(.slf-hero-content, .slf-section, .slf-bottom-cta) {
    width: var(--slf-shell-width);
    margin-inline: auto;
}

.slf-home-page .slf-hero-content {
    padding-inline: 0;
}

/* One marketing type scale; compact form/document headings retain their size. */
.slf-header-body :is(
    .slf-hero-content, .about-hero-copy, .slf-services-hero,
    .slf-why-hero, .slf-it-hero, .slf-service-hero,
    .slf-network-page .slf-hero-copy, .mnc-hero, .slf-contact-hero
) h1 {
    font-size: var(--slf-title-size);
    line-height: 1.08;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.slf-header-body :is(
    h2.slf-section-title, .slf-services-section-heading h2,
    .slf-services-cta-inner h2, .about-section-heading h2,
    .about-story-copy h2, .about-cta-copy h2,
    .slf-why-section-title, .slf-why-feature-copy h2,
    .slf-why-bottom-cta h2, .slf-it-section-title,
    .slf-service-card h2, .slf-service-section-title h2,
    .slf-service-cta h2, .slf-bottom-cta h2,
    .slf-network-page .slf-section-title h2,
    .slf-network-page .slf-split-copy h2,
    .slf-network-page .slf-final-copy h2
) {
    font-size: var(--slf-section-title-size);
    line-height: 1.16;
    letter-spacing: -.025em;
    text-wrap: balance;
}

/* Shared button geometry, with outline/white variants for dark sections. */
.slf-header-body :is(
    .slf-primary-btn, .slf-secondary-btn, .slf-services-btn,
    .about-btn, .slf-submit-btn, .slf-service-btn-primary,
    .slf-service-btn-secondary, .slf-network-page .slf-btn,
    .mnc-button, .slf-why-bottom-cta > a,
    .slf-it-cta > a, .slf-service-cta > a, .slf-bottom-cta > a
) {
    min-height: var(--slf-button-height);
    border-radius: var(--slf-button-radius);
    padding: 12px 24px;
    font-size: .94rem;
    font-weight: var(--slf-weight-button);
    line-height: 1.45;
    text-align: center;
}

.slf-header-body :is(
    .slf-network-page .slf-btn-primary, .slf-service-btn-primary,
    .mnc-button-primary
) {
    background: var(--slf-primary-background);
    color: #ffffff;
    border: 1px solid transparent;
}

.slf-header-body :is(
    .slf-network-page .slf-btn-primary, .slf-service-btn-primary,
    .mnc-button-primary
):hover {
    background: linear-gradient(145deg, #005858, var(--slf-teal-dark));
}

/* Closing bands use a light action to stand apart from the dark surface. */
.slf-header-body .mnc-final-section .mnc-button-primary {
    background: #ffffff;
    color: var(--slf-teal-dark);
    border-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.slf-header-body .mnc-final-section .mnc-button-primary:hover {
    background: #e6f7f8;
    color: var(--slf-teal-dark);
    border-color: #e6f7f8;
}

.slf-header-body :is(.slf-service-btn-secondary, .slf-network-page .slf-btn-dark) {
    border: 2px solid rgba(255, 255, 255, .72);
    background: rgba(0, 0, 0, .22);
    color: #ffffff;
}

.slf-header-body :is(.slf-why-bottom-cta, .slf-it-cta) {
    padding-inline: calc((100% - var(--slf-shell-width)) / 2);
}

.slf-header-body .mnc-plan .mnc-button {
    padding-inline: 12px;
}

/* Reuse the brand colors inside the Wi-Fi page's local variable scope. */
.slf-header-body .slf-network-page {
    --slf-teal: #008080;
    --slf-text: #20252b;
    --slf-muted: #4d555b;
    --slf-light: var(--slf-bg);
}

.slf-header-body .slf-benefit-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.slf-header-body :is(.about-hero-content, .slf-services-hero-inner, .slf-why-hero-inner, .slf-it-hero-inner, .slf-service-hero-inner) {
    padding-block: var(--slf-section-spacing);
}

.slf-header-body .mnc-hero-layout {
    min-height: 560px;
}

.slf-home-page > .slf-section,
.slf-header-body :is(.slf-services-main .slf-services-section, .slf-why-section, .slf-it-section, .slf-service-main) {
    margin-block: var(--slf-section-spacing);
}

.slf-header-body .slf-network-page .slf-section {
    padding-block: var(--slf-section-spacing);
}

.slf-header-body .site-footer-mobile {
    background: #102a2c;
    color: #d5e7e4;
}

/* Compact page endings: separate the contact strip from the shared dark footer. */
.slf-header-body :is(.slf-home-page .slf-bottom-cta, .about-cta-section, .slf-why-bottom-cta) {
    width: 100%; margin: 0; padding-block: 28px; border-top: 1px solid var(--slf-border);
    border-radius: 0; background: #edf5f5; color: var(--slf-text); box-shadow: none; text-align: left;
}
.slf-header-body .slf-home-page .slf-bottom-cta {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    grid-template-areas: 'title action' 'copy action'; align-items: center; gap: 8px 40px;
    padding-inline: calc((100% - var(--slf-shell-width)) / 2);
}
.slf-header-body .slf-bottom-cta h2 { grid-area: title; }
.slf-header-body .slf-bottom-cta p { grid-area: copy; }
.slf-header-body .slf-bottom-cta > a { grid-area: action; }
.slf-header-body :is(.slf-home-page .slf-bottom-cta, .about-page-main .about-cta-section, .slf-why-page .slf-why-bottom-cta) h2 {
    margin: 0; color: var(--slf-text); font-size: 1.5rem; line-height: 1.25;
}
.slf-header-body :is(.slf-bottom-cta, .about-cta-section, .slf-why-bottom-cta) p {
    max-width: 66ch; margin: 0; color: var(--slf-muted); font-size: .9375rem; line-height: 1.6; font-weight: 400;
}
.slf-header-body :is(.slf-bottom-cta > a, .slf-why-bottom-cta > a) {
    width: 100%; min-width: 0; max-width: 360px; background: var(--slf-primary-background);
    color: #fff; box-shadow: none; transform: none;
}
.slf-header-body :is(.slf-bottom-cta > a, .slf-why-bottom-cta > a):hover { background: var(--slf-teal-dark); box-shadow: none; transform: none; }
.slf-header-body .about-cta-card { padding-block: 0; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 24px 40px; }
.slf-header-body .about-cta-copy { display: block; text-align: left; }
.slf-header-body .about-cta-copy p { margin-top: 8px; }
.slf-header-body :is(.about-icon-wrap-cta, .slf-why-cta-icon) { display: none; }
.slf-header-body .about-cta-actions { align-items: stretch; gap: 8px; }
.slf-header-body .about-cta-actions .about-btn { box-shadow: none; }
.slf-header-body .about-call-link { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; font-size: .875rem; }
.slf-header-body .slf-why-bottom-cta { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 24px 40px; }
.slf-header-body .slf-why-bottom-cta p { margin-top: 8px; }

.slf-header-body .slf-compact-footer .footer-desktop-inner { grid-template-columns: 1fr 1.2fr 1.1fr; padding-block: 28px; gap: 32px; }
.slf-header-body .slf-compact-footer .footer-brand-col { display: block; grid-column: auto; }
.slf-header-body .slf-compact-footer .footer-logo-link { margin-bottom: 12px; }
.slf-header-body .slf-compact-footer .footer-logo { width: 160px; }
.slf-header-body .slf-compact-footer .footer-brand-col p { max-width: 30ch; font-size: .8125rem; line-height: 1.6; }
.slf-header-body .slf-compact-footer .footer-col h3 { margin-bottom: 8px; }
.slf-header-body .slf-compact-footer .footer-quick-links { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.slf-header-body .slf-compact-footer .footer-col a { min-height: 28px; align-items: center; margin-bottom: 4px; font-size: .8125rem; }
.slf-header-body .slf-compact-footer .footer-quick-links a { margin: 0; }
.slf-header-body .slf-compact-footer .footer-services-disclosure { margin-top: 8px; border-top: 1px solid #ffffff38; }
.slf-header-body .slf-compact-footer .footer-services-disclosure summary { display: list-item; min-height: 44px; padding: 12px 0; color: #caddd7; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.slf-header-body .slf-compact-footer .footer-service-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; padding-bottom: 8px; }
.slf-header-body .slf-compact-footer .footer-desktop-bottom { padding-block: 12px; font-size: .75rem; }
.slf-header-body .slf-compact-footer :is(a, summary):focus-visible { outline: 3px solid #8edace; outline-offset: 3px; }
@media (max-width: 900px) {
    .slf-header-body .slf-compact-footer.site-footer-mobile { padding-top: 20px; }
    .slf-header-body .slf-compact-footer > .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; margin-top: 8px; }
    .slf-header-body .slf-compact-footer > .footer-links a { display: inline-flex; align-items: center; min-height: 44px; margin: 0; color: #caddd7; }
    .slf-header-body .slf-compact-footer .footer-service-area { margin: 0; color: #caddd7; font-size: .8125rem; }
    .slf-header-body .slf-compact-footer .footer-services-disclosure { margin-top: 8px; }
    .slf-header-body .slf-compact-footer .footer-services-disclosure .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .slf-header-body .slf-compact-footer .footer-services-disclosure a { min-height: 44px; margin: 0; color: #caddd7; }
    .slf-header-body .slf-compact-footer .footer-copyright { margin-top: 14px; color: #b6ccc6; font-size: .75rem; line-height: 1.6; }
}
@media (max-width: 850px) {
    .slf-header-body :is(.slf-home-page .slf-bottom-cta, .about-cta-section, .slf-why-bottom-cta) { padding-block: 24px; }
    .slf-header-body .slf-home-page .slf-bottom-cta { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'title' 'copy' 'action'; gap: 8px; }
    .slf-header-body .slf-bottom-cta > a { margin-top: 10px; }
    .slf-header-body :is(.about-cta-card, .slf-why-bottom-cta) { grid-template-columns: minmax(0, 1fr); gap: 18px; text-align: left; justify-items: stretch; }
    .slf-header-body .about-cta-actions { align-items: start; }
}
@media (max-width: 600px) {
    .slf-header-body :is(.slf-bottom-cta > a, .slf-why-bottom-cta > a) { max-width: none; }
    .slf-header-body .about-cta-actions { align-items: stretch; }
    .slf-header-body .slf-compact-footer .footer-services-disclosure .footer-links { grid-template-columns: minmax(0, 1fr); }
}

/* Prose remains readable inside wide homepage panels. */
.slf-home-page :is(.slf-intro-card p, .slf-why-card > p) {
    max-width: 68ch;
    margin-inline: auto;
    font-size: var(--slf-copy-size);
    line-height: var(--slf-copy-line-height);
}

.slf-home-page :is(.slf-intro-card h2, .slf-why-card > h2) {
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.slf-home-page .slf-service-card h3 {
    font-size: var(--slf-card-title-size);
}

.slf-home-page .slf-service-card p {
    font-size: .95rem;
    line-height: var(--slf-copy-line-height);
}

.slf-services-main :is(.slf-service-tile, .slf-benefit-item, .slf-process-step) h3 {
    font-size: var(--slf-card-title-size);
    line-height: 1.3;
}

.slf-services-main :is(.slf-service-tile, .slf-benefit-item, .slf-process-step) p {
    font-size: .95rem;
    line-height: var(--slf-copy-line-height);
}

/* Complete topics have more separation than the grids within them. */
.slf-header-body .slf-service-main > .slf-service-section {
    margin-top: var(--slf-topic-spacing);
}

.slf-header-body .slf-service-main > .slf-service-cta {
    margin-top: var(--slf-topic-spacing);
}

.slf-header-body .slf-service-step h3 {
    font-size: var(--slf-card-title-size);
}

.slf-header-body .slf-service-step p {
    font-size: .95rem;
    line-height: var(--slf-copy-line-height);
}

/* Keep the desktop copy over the left side of the photograph. The shell
   spans the page; its text retains a comfortable reading width. */
@media (min-width: 900px) {
    .slf-home-page .slf-hero-content {
        max-width: none;
    }

    .slf-home-page .slf-hero-content :is(h1, p) {
        max-width: 620px;
    }

    .slf-home-page .slf-intro-card p {
        margin-inline: 0;
    }
}

@media (max-width: 1100px) {
    :root {
        --slf-title-size: 3rem;
    }
}

@media (max-width: 850px) {
    .slf-header-body .mnc-hero-layout {
        min-height: 0;
    }

    .slf-home-page > .slf-section,
    .slf-header-body :is(.slf-services-main .slf-services-section, .slf-why-section, .slf-it-section, .slf-service-main) {
        margin-block: var(--slf-section-spacing-mobile);
    }

    .slf-header-body .slf-network-page .slf-section {
        padding-block: var(--slf-section-spacing-mobile);
    }
}

@media (max-width: 600px) {
    :root {
        --slf-shell-width: calc(100% - 40px);
        --slf-title-size: 2.2rem;
        --slf-section-title-size: 1.75rem;
        --slf-topic-spacing: 36px;
    }

    .slf-header-body :is(.about-hero-content, .slf-services-hero-inner, .slf-why-hero-inner, .slf-it-hero-inner, .slf-service-hero-inner) {
        padding-block: var(--slf-section-spacing-mobile);
    }

    .slf-header-body :is(
        .slf-home-page .slf-hero-actions, .slf-services-hero-actions,
        .slf-service-hero-actions, .slf-network-page .slf-hero-actions,
        .mnc-hero .mnc-actions
    ) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: none;
        gap: 12px;
    }

    .slf-header-body :is(
        .slf-home-page .slf-hero-actions > a,
        .slf-services-hero-actions > a,
        .slf-service-hero-actions > a,
        .slf-network-page .slf-hero-actions > a,
        .mnc-hero .mnc-actions > a,
        .about-hero-copy > .about-btn,
        .mnc-final-layout .mnc-button
    ) {
        width: 100%;
        min-width: 0;
    }

    .mnc-hero .mnc-text-link {
        padding: 10px 0;
        text-align: center;
    }

    .surveillance-service-page .slf-service-hero {
        --service-hero-position: 76% top;
    }

    .router-service-page .slf-service-hero {
        --service-hero-position: 75% center;
    }

    .home-theater-service-page .slf-service-hero {
        --service-hero-position: 70% top;
    }
}
