/* Alternate domain homepages intentionally keep the main homepage visual system. */
html,
body {
    min-height: 100%;
}

body.alt-home {
    overflow-x: hidden;
    overflow-y: auto;
}

.alt-home .navbar {
    z-index: 100;
}

.alt-home .navbar-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.alt-home .navbar-brand img {
    position: static;
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.alt-home #home {
    min-height: 650px;
    display: flex;
    align-items: center;
    padding-top: 7em;
    padding-bottom: 7em;
    color: #fff;
}

.alt-home .hero-row {
    display: flex;
    align-items: center;
}

.alt-home .hero-logo {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .28));
    animation: boing 3s alternate;
}

.alt-home .hero-copy {
    text-align: center;
}

.alt-home .hero-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1.05;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .55);
}

.alt-home .hero-copy .lead {
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: clamp(19px, 2.2vw, 25px);
    line-height: 1.45;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .65);
}

.alt-home .hero-copy .m-button {
    display: inline-flex;
    text-decoration: none;
}

.alt-home .about-copy {
    font-size: 18px;
    line-height: 1.65;
}

.alt-home .about-copy h2 {
    margin-top: 0;
    font-size: 40px;
}

.alt-home .about-copy h3 {
    margin-top: 25px;
}

.alt-home .about-image {
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.alt-home #portfolio .tagline {
    max-width: 820px;
    margin: 0 auto 25px;
    font-size: 18px;
    line-height: 1.6;
}

.alt-home .m-button-container {
    align-items: stretch;
}

.alt-home .m-button-container .m-button {
    display: block;
    width: 100%;
    min-height: 210px;
    border-radius: 42px;
    padding: 28px;
    cursor: default;
}

.alt-home .m-button-container .m-button h3 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 700;
}

.alt-home .m-button-container .m-button p {
    color: #25303a;
    font-size: 15px;
    line-height: 1.55;
}

.alt-home .course-meta {
    margin-top: 18px;
    color: #53636f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.alt-home .detail-section {
    padding: 4em 0;
}

.alt-home .detail-panel {
    max-width: 940px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
}

.alt-home .detail-panel h2 {
    margin-top: 0;
    font-size: 38px;
}

.alt-home .detail-list {
    padding-left: 24px;
}

.alt-home .detail-list li + li {
    margin-top: 12px;
}

.alt-home .local-tool {
    margin: 25px 0;
    padding: 25px;
    border-radius: 34px;
    color: #25303a;
    background: #f0f7fa;
    box-shadow: inset 0 -4px 8px #87bfd8, 0 4px 6px rgba(0, 0, 0, .2);
}

.alt-home .tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.alt-home .tool-result {
    padding: 14px;
    border: 1px solid #cad8e0;
    border-radius: 18px;
    background: #fff;
}

.alt-home .tool-result strong {
    display: block;
}

.alt-home .status-pass {
    color: #137333;
}

.alt-home .status-warn {
    color: #a14f00;
}

.alt-home .check-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid #cad8e0;
}

.alt-home .check-row input {
    margin-top: 5px;
    transform: scale(1.2);
}

.alt-home .calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.alt-home .calculator-grid .local-tool {
    margin: 0;
}

.alt-home .local-tool label,
.alt-home .local-tool input {
    display: block;
    width: 100%;
}

.alt-home .local-tool input {
    margin: 6px 0 12px;
    padding: 10px 12px;
    border: 1px solid #9fb4c1;
    border-radius: 12px;
}

.alt-home .local-tool button {
    border: 0;
}

.alt-home .calculation-output {
    min-height: 70px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
}

.alt-home #contact a,
.alt-home footer a {
    display: inline-block;
    margin: 5px 10px;
}

@media (max-width: 900px) {
    .alt-home .hero-row {
        display: block;
    }

    .alt-home .hero-logo {
        width: min(240px, 55vw);
        margin-bottom: 25px;
    }

    .alt-home .calculator-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .alt-home #home {
        min-height: 620px;
    }

    .alt-home .navbar-right {
        display: none;
    }

    .alt-home .tool-grid {
        grid-template-columns: 1fr;
    }
}

/* The pages share SME styling, but each variant has its own composition. */
.rounded-panel {
    border-radius: 42px;
    color: #25303a;
    background: #f0f7fa;
    box-shadow: inset 0 -4px 8px #87bfd8, 0 6px 16px rgba(0, 0, 0, .22);
}

.variant-guide #home .hero-row {
    display: block;
    max-width: 930px;
    margin: 0 auto;
}

.variant-guide .hero-logo {
    width: 190px;
    margin-bottom: 18px;
}

.guide-path {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: -45px auto 60px;
    position: relative;
    z-index: 2;
}

.guide-step {
    padding: 24px;
    text-align: center;
}

.guide-step .step-number,
.pipeline-step .step-number {
    display: inline-grid;
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #0470e3;
    font-weight: 700;
}

.variant-project #home {
    min-height: 570px;
}

.project-story {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 45px;
    align-items: start;
}

.project-timeline {
    position: relative;
    padding-left: 34px;
}

.project-timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 10px;
    width: 4px;
    border-radius: 3px;
    background: #87bfd8;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding: 20px 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 25px;
    left: -32px;
    width: 16px;
    height: 16px;
    border: 3px solid #f0f7fa;
    border-radius: 50%;
    background: #0470e3;
}

.variant-lessons #home {
    min-height: 520px;
}

.variant-lessons .hero-copy {
    text-align: left;
}

.lesson-board {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
}

.lesson-menu {
    padding: 25px;
    align-self: start;
    position: sticky;
    top: 80px;
}

.lesson-menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #cad8e0;
    color: #0470e3;
}

.lesson-stack {
    display: grid;
    gap: 20px;
}

.lesson-card {
    padding: 30px;
}

.lesson-card h3 {
    color: #0470e3;
}

.lesson-card .lesson-action {
    display: inline-block;
    margin-top: 10px;
    color: #53636f;
    font-weight: 700;
}

.variant-ready #home {
    min-height: 650px;
    padding: 7em 20px;
}

.variant-ready .hero-logo {
    max-width: 240px;
}

.variant-ready #check {
    padding-top: 60px;
    padding-bottom: 60px;
    padding-right: 15px;
    padding-left: 15px;
}

.diagnostic-shell {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 32px;
    overflow: hidden;
}

.diagnostic-shell .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diagnostic-shell .row {
    display: flex;
    align-items: center;
}

.diagnostic-shell .m-button {
    display: inline-flex;
}

.diagnostic-shell .tool-result,
.troubleshooting-map > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

.troubleshooting-map {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.trouble-card {
    padding: 25px;
}

.variant-setup #home {
    min-height: 480px;
}

.variant-setup #home .hero-row {
    flex-direction: row-reverse;
}

.setup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 28px;
    align-items: start;
}

.setup-sidebar {
    padding: 28px;
}

.setup-sidebar .profile-pill {
    margin: 12px 0;
    padding: 15px;
    border-radius: 22px;
    background: #fff;
}

.variant-catalog #home .hero-row {
    flex-direction: row-reverse;
}

.variant-catalog .hero-copy {
    text-align: left;
}

.catalog-pipeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 35px;
}

.pipeline-step {
    min-height: 230px;
    padding: 22px;
    text-align: center;
}

.report-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.report-type {
    padding: 25px;
}

.variant-work #home {
    min-height: 520px;
    background-position: center 35%;
}

.variant-work .hero-copy {
    text-align: left;
}

.dev-dashboard {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 25px;
}

.dev-log,
.dev-sidebar {
    padding: 30px;
}

.dev-entry {
    padding: 18px 0;
    border-bottom: 1px solid #cad8e0;
}

.dev-entry code {
    color: #0470e3;
    background: #fff;
}

.dev-stat {
    margin-bottom: 14px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
}

.variant-geo #home {
    min-height: 460px;
    background-image: linear-gradient(rgba(0, 35, 70, .35), rgba(0, 0, 0, .55)), url('/img/04.jpg');
}

.variant-geo .hero-copy {
    text-align: left;
}

.variant-geo #portfolio {
    padding-top: 5em;
}

.geometry-principles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.formula-panel {
    padding: 30px;
}

.formula-panel .formula {
    margin: 18px 0;
    color: #0470e3;
    font-size: 26px;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .guide-path,
    .catalog-pipeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-story,
    .lesson-board,
    .setup-layout,
    .dev-dashboard,
    .geometry-principles {
        grid-template-columns: 1fr;
    }

    .lesson-menu {
        position: static;
    }

    .diagnostic-shell .tool-grid,
    .troubleshooting-map {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .guide-path,
    .catalog-pipeline,
    .report-types,
    .diagnostic-shell .tool-grid,
    .troubleshooting-map {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .variant-ready #home {
        min-height: 620px;
        padding: 90px 12px 115px;
    }

    .variant-ready .hero-copy h1 {
        font-size: clamp(40px, 13vw, 54px);
        overflow-wrap: anywhere;
    }

    .variant-ready .hero-copy .lead {
        width: 100%;
        max-width: 320px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .variant-ready #check {
        padding-top: 35px;
        padding-bottom: 45px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .variant-ready #check > .container,
    .variant-ready #about > .container,
    .variant-ready #portfolio > .container {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .diagnostic-shell {
        margin: 0 auto;
        padding: 24px 18px;
        border-radius: 28px;
    }

    .diagnostic-shell .row {
        display: block;
    }

    .diagnostic-shell .text-right {
        margin: 18px 0 5px;
        text-align: left;
    }

    .diagnostic-shell .tool-grid,
    .variant-ready .troubleshooting-map {
        grid-template-columns: minmax(0, 1fr);
    }

    .variant-ready .detail-section {
        padding-top: 3em;
        padding-bottom: 3em;
    }

    .variant-ready .trouble-card {
        padding: 22px;
    }
}
