/*
 * Show Me The Sky
 * Astronomy Lab article design system
 * -----------------------------------
 * Canonical visual language established by the modern
 * Astronomy Lab articles (Blogs 9–19).
 */

.smts-lab-page{
    --lab-bg:#06111c;
    --lab-panel:#0c1c2a;
    --lab-line:rgba(255,255,255,.11);
    --lab-text:#eef8ff;
    --lab-muted:#adc2d1;
    --lab-cyan:#55c9ff;
    --lab-gold:#ffd18a;

    min-height:100vh;
    padding-top:92px;
    color:var(--lab-text);

    background:
        radial-gradient(circle at 83% 7%,rgba(85,201,255,.08),transparent 25%),
        radial-gradient(circle at 10% 29%,rgba(255,174,115,.06),transparent 28%),
        linear-gradient(180deg,#06111c,#091725);
}


/* =========================================================
   MAIN CONTENT WIDTH
   ========================================================= */

.smts-lab-wrap{
    width:min(1180px,calc(100% - 40px));
    margin:auto;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.smts-lab-breadcrumb{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:24px 0 12px;
    color:var(--lab-muted);
    font-size:.9rem;
}

.smts-lab-breadcrumb a{
    color:var(--lab-muted);
    text-decoration:none;
}

.smts-lab-breadcrumb a:hover{
    color:#fff;
}


/* =========================================================
   HERO
   ========================================================= */

.smts-lab-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(380px,.8fr);
    gap:50px;
    align-items:center;

    padding:38px 0 60px;
    border-bottom:1px solid var(--lab-line);
}

.smts-lab-kicker{
    color:var(--lab-cyan);
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:.78rem;
    font-weight:700;
    margin-bottom:16px;
}

.smts-lab-hero h1{
    margin:0 0 20px;
    color:#fff;

    font-size:clamp(2.7rem,5vw,4.8rem);
    line-height:.98;
    letter-spacing:-.045em;
}

.smts-lab-lead{
    color:#bfd0dd;
    font-size:1.12rem;
    line-height:1.75;
}

.smts-lab-answer{
    margin-top:25px;
    padding:18px 20px;

    border-left:3px solid var(--lab-cyan);
    border-radius:0 12px 12px 0;

    background:rgba(85,201,255,.065);
    color:#dceaf3;
    line-height:1.68;
}


/* =========================================================
   ARTICLE SECTIONS
   ========================================================= */

.smts-lab-section{
    padding:58px 0;
    border-bottom:1px solid var(--lab-line);
}

.smts-lab-section-head{
    max-width:850px;
    margin-bottom:30px;
}

.smts-lab-eyebrow{
    color:var(--lab-cyan);
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:.76rem;
    font-weight:700;
}

.smts-lab-section h2{
    margin:8px 0 12px;
    color:#fff;
    font-size:clamp(1.8rem,3vw,2.6rem);
}

.smts-lab-section h3{
    color:#fff;
}

.smts-lab-section p{
    color:#b6cad8;
    line-height:1.76;
}


/* =========================================================
   COMMON CARDS
   ========================================================= */

.smts-lab-card{
    padding:24px;
    border:1px solid var(--lab-line);
    border-radius:18px;
    background:rgba(255,255,255,.04);
}

.smts-lab-card h3{
    color:#fff;
    margin-top:0;
}

.smts-lab-card p{
    margin-bottom:0;
    color:#b6cad8;
    line-height:1.65;
}


/* =========================================================
   CANVAS / INTERACTIVE PANELS
   ========================================================= */

.smts-lab-canvas-card{
    padding:14px;
    border:1px solid var(--lab-line);
    border-radius:22px;
    background:#02070c;
}

.smts-lab-canvas-card canvas{
    display:block;
    width:100%;
    height:auto;
}

.smts-lab-controls{
    padding:26px;
    border:1px solid var(--lab-line);
    border-radius:20px;
    background:var(--lab-panel);
}

.smts-lab-controls h3{
    color:#fff;
    margin-top:0;
}

.smts-lab-controls label{
    display:block;
    margin:18px 0 8px;
    color:#dceaf3;
    font-weight:600;
}

.smts-lab-controls input[type="range"]{
    width:100%;
}


/* =========================================================
   HIGHLIGHT / SCIENCE NOTE
   ========================================================= */

.smts-lab-highlight{
    padding:29px;

    border:1px solid rgba(255,209,138,.22);
    border-radius:20px;

    background:
        linear-gradient(
            135deg,
            rgba(255,209,138,.07),
            rgba(255,255,255,.025)
        );
}

.smts-lab-highlight h3{
    margin-top:0;
    color:#fff;
}

.smts-lab-highlight p:last-child{
    margin-bottom:0;
}


/* =========================================================
   RELATED ASTRONOMY LAB
   Canonical modern style
   ========================================================= */

.smts-lab-related{
    padding:48px 0 32px;
}

.smts-lab-related h2{
    color:#fff;
    font-size:1.45rem;
    margin:0 0 18px;
}

.smts-lab-related-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.smts-lab-related-grid a{
    display:block;

    padding:17px 19px;

    border-radius:14px;
    border:1px solid #23455f;

    background:#0d2235;
    color:#fff;

    text-decoration:none;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.smts-lab-related-grid a:hover{
    background:#12314a;
    border-color:#55c9ff;
    color:#fff;
    transform:translateY(-1px);
}


/* =========================================================
   BACK TO ASTRONOMY LAB
   ========================================================= */

.smts-lab-return{
    padding:0 0 55px;
}

.smts-lab-return a{
    color:#8edcff;
    text-decoration:none;
}

.smts-lab-return a:hover{
    color:#b9ecff;
    text-decoration:underline;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:950px){

    .smts-lab-hero{
        grid-template-columns:1fr;
    }

}

@media(max-width:700px){

    .smts-lab-related-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:540px){

    .smts-lab-page{
        padding-top:82px;
    }

    .smts-lab-wrap{
        width:min(100% - 24px,1180px);
    }

}


/* =========================================================
   HERO MODIFIERS
   ========================================================= */

/*
 * For articles that provide their own inner hero grid.
 * Keeps the shared hero styling while disabling its
 * default two-column outer grid.
 */

/* Stacked hero articles with their own inner grid.
   Higher specificity ensures this modifier wins over
   page/global hero grid rules without !important. */
.smts-lab-page .smts-lab-hero.smts-lab-hero--stacked{
    display:block;
    grid-template-columns:none;
    width:100%;
    max-width:none;
}
