.instruction {
    --bg: #0b1220;
    --surface: #0f1a2d;
    --surface-2: #12213a;
    --line: rgba(255, 255, 255, .10);
    --accent: #6ea8ff;
    --accent-2: #7cf0d4;
    --danger: #ff6e6e;
    --shadow: 0 12px 30px rgba(0, 0, 0, .15);
    --radius: 20px;
    --radius-sm: 10px;
    --max: 1120px;

    display: grid;
    grid-template: auto / 1fr 3fr;
    height: 100%;
    padding: 80px 0 100px;
    column-gap: 24px;
}


.sidebar-content {
    height: 100%;
    overflow: auto;
    scrollbar-width: thin;
}
.instruction .card.toc {
    height: 75vh;
    padding-right: 12px;
}
.instruction .card {
    /*background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .1));*/
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.instruction .search {
    width: 100%;
    max-width: 330px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #9aa3bb;
    background: rgba(255, 255, 255, .03);
    outline: none;
}

.instruction .toc {
    position: sticky;
    top: 120px;
    padding: 24px;
}

.instruction .toc .title {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.instruction .toc nav a {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 16px;
    transition-duration: .3s;
}

.instruction .toc nav a:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, .10);
    text-decoration: none;
}

.instruction .toc nav .sub {
    margin-left: 10px;
    border-left: 1px solid rgba(154, 163, 187, 0.45);
    padding-left: 10px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.instruction .toc small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
}

.instruction article {
    padding: 18px;
}

.instruction .hero {
    padding: 18px;
    border-radius: var(--radius);
    background: radial-gradient(900px 300px at 10% 10%, rgba(110, 168, 255, .22), transparent 60%),
    radial-gradient(700px 300px at 85% 0%, rgba(124, 240, 212, .15), transparent 55%),
    rgba(255, 255, 255, .03);
    /*border: 1px solid var(--line);*/
    margin-bottom: 18px;
}

.instruction .hero h2 {
    margin: 0 0 6px;
    font-size: 22px;
    letter-spacing: .2px;
    font-weight: 500;
}

.instruction .hero p {
    margin: 0;
}

.instruction .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.instruction .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #9aa3bb;
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: 12px;
}

.instruction .pill code {
    color: var(--text);
    font-size: 12px;
}

.instruction h3 {
    margin: 22px 0 10px;
    font-size: 18px;
    font-weight: 500;
}

.instruction h4 {
    margin: 18px 0 10px;
    font-size: 15px;
    font-weight: 500;
}

.instruction p {
    margin: 10px 0;
}


.instruction .section {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(179, 218, 255, 0.4);
    margin: 14px 0;
}

.instruction ul {
    margin: 10px 0 10px 18px;
    padding: 0;
}

.instruction li {
    margin: 6px 0;
}

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

@media (max-width: 720px) {
    .instruction .grid-2 {
        grid-template-columns: 1fr;
    }
}

.instruction table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, .05);
}

.instruction th, td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    vertical-align: top;
    font-size: 13px;
}

.instruction th {
    text-align: left;
    font-weight: 650;
    background: rgba(255, 255, 255, .03);
}

.instruction tr:last-child td {
    border-bottom: 0;
}

.instruction code.inline {
    font-size: 12px;
    color: #333;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(110, 168, 255, .14);
    border: 1px solid rgba(110, 168, 255, .25);
    white-space: nowrap;
}

.instruction .callout {
    border-left: 3px solid rgba(179, 218, 255, 0.61);
    background: rgba(110, 168, 255, .07);
    padding: 12px 12px;
    border-radius: 12px;
    margin: 12px 0;
}
.instruction__img {
    display: block;
    margin: 20px auto;
    cursor: pointer;
    max-width: 100%;
    height: auto;
}
.instruction .steps {
    counter-reset: step;
    margin: 10px 0 10px;
    padding: 0;
    list-style: none;
}

.instruction .steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    margin: 10px 0;
}

.instruction .steps li::before {
    content: counter(step);
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-weight: 700;
    color: #061022;
    background: linear-gradient(184.53deg, #b3daff 7.34%, #f2f5fd 92.66%);
}


@media print {
    .instruction header, .instruction .toc, .actions {
        display: none !important;
    }

    .instruction .card, .instruction .hero, .instruction .section {
        box-shadow: none;
        background: #fff;
        border-color: #ddd;
    }

    .instruction a {
        color: #000;
        text-decoration: underline;
    }

    .instruction .pill {
        border-color: #ddd;
    }

    .instruction table {
        border-color: #ccc;
    }

    .instruction th, .instruction td {
        border-bottom-color: #ddd;
    }
}

@media (max-width: 992px) {
    .instruction {
        display: block;
        padding: 0 0 40px;
    }
    .instruction .card.toc {
        display: none;
    }
}
