/* GRID NINE Guide Library v0.3.0 */

.guide-page{
    background:#f7f7f5;
    color:#222;
}

.guide-page a{
    color:inherit;
}

.guide-header{
    position:static;
}

.guide-header-inner{
    min-height:68px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.guide-brand{
    font-weight:800;
    letter-spacing:.08em;
    text-decoration:none;
    font-size:1.05rem;
}

.guide-nav{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    font-size:.92rem;
}

.guide-nav a{
    text-decoration:none;
    border-bottom:1px solid #bbb;
}

.guide-wrap{
    max-width:860px;
    padding-top:26px;
    padding-bottom:64px;
}

.guide-breadcrumb{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
    color:#666;
    font-size:.82rem;
    margin-bottom:22px;
}

.guide-breadcrumb a{
    text-decoration:none;
}

.guide-article,
.guide-next{
    background:#fff;
    border:1px solid #deded8;
    border-radius:16px;
    padding:clamp(22px,4vw,42px);
    box-shadow:0 5px 20px rgba(0,0,0,.035);
}

.guide-article h1{
    font-size:clamp(1.75rem,5vw,2.55rem);
    line-height:1.3;
    margin:.25em 0 .55em;
}

.guide-article h2{
    font-size:1.35rem;
    margin:2.1em 0 .65em;
    border-left:4px solid #222;
    padding-left:.75em;
}

.guide-article h3{
    font-size:1.08rem;
    margin:1.6em 0 .45em;
}

.guide-article p,
.guide-article li{
    line-height:1.9;
}

.guide-lead{
    font-size:1.06rem;
    color:#4b4b46;
    margin-bottom:2em;
}

.guide-article ul,
.guide-article ol{
    padding-left:1.45em;
}

.guide-callout{
    background:#f3f3ef;
    border-radius:12px;
    padding:18px 20px;
    margin:22px 0;
}

.guide-callout strong{
    display:block;
    margin-bottom:.35em;
}

.guide-steps{
    counter-reset:step;
    list-style:none;
    padding:0!important;
    display:grid;
    gap:12px;
}

.guide-steps li{
    counter-increment:step;
    background:#fafaf8;
    border:1px solid #e3e3dc;
    border-radius:12px;
    padding:15px 16px 15px 52px;
    position:relative;
}

.guide-steps li:before{
    content:counter(step);
    position:absolute;
    left:15px;
    top:14px;
    width:26px;
    height:26px;
    border-radius:50%;
    background:#222;
    color:#fff;
    display:grid;
    place-items:center;
    font-weight:700;
    line-height:1;
}

.guide-cards,
.tech-grid{
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:14px;
    margin:20px 0;
}

.guide-cards a,
.tech-grid a{
    display:block;
    padding:18px;
    border:1px solid #deded8;
    border-radius:12px;
    text-decoration:none;
    background:#fafaf8;
}

.guide-cards strong,
.tech-grid strong{
    display:block;
    margin-bottom:5px;
}

.guide-cards span,
.tech-grid span{
    display:block;
    color:#666;
    font-size:.9rem;
    line-height:1.6;
}

.example-box{
    border:1px dashed #aaa;
    border-radius:12px;
    padding:18px;
    margin:18px 0;
    background:#fff;
}

.candidate-row{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:.7em 0;
}

.candidate-row span{
    display:inline-grid;
    place-items:center;
    min-width:42px;
    min-height:34px;
    padding:0 6px;
    border:1px solid #bbb;
    border-radius:8px;
    font-weight:700;
}

.guide-next{
    margin-top:22px;
    padding-top:24px;
    padding-bottom:24px;
}

.guide-next h2{
    font-size:1.05rem;
    margin:0 0 14px;
}

.guide-link-grid{
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:10px;
}

.guide-link-grid a{
    display:block;
    border:1px solid #e1e1dc;
    border-radius:10px;
    padding:13px 14px;
    text-decoration:none;
    background:#fff;
}

.guide-link-grid strong,
.guide-link-grid span{
    display:block;
}

.guide-link-grid span{
    font-size:.82rem;
    color:#666;
    margin-top:3px;
    line-height:1.5;
}

.guide-play{
    text-align:center;
    margin:30px 0 0;
    font-weight:700;
}

.guide-play a{
    display:inline-block;
    padding:12px 18px;
    border:1px solid #222;
    border-radius:999px;
    text-decoration:none;
    background:#fff;
}

.guide-footer{
    padding:28px 0;
    border-top:1px solid #deded8;
    color:#666;
    font-size:.84rem;
    background:#fff;
}

.guide-footer a{
    margin-left:10px;
}

@media(max-width:680px){

    .guide-header-inner{
        align-items:flex-start;
        flex-direction:column;
        padding-top:14px;
        padding-bottom:14px;
    }

    .guide-cards,
    .tech-grid,
    .guide-link-grid{
        grid-template-columns:1fr;
    }

    .guide-article,
    .guide-next{
        border-radius:12px;
        padding:20px;
    }

    .guide-wrap{
        padding-top:18px;
    }

    .guide-nav{
        gap:12px;
    }
}
