:root {
    --brand: #ff58ae;
    --brand-ink: #7a1a4f;
    --ink: #1f2937;
    --muted: #6b7280;
    --bg: #ffffff;
    --panel: #ffffff;
    --panel-alt: #fff4f9;
    --line: #eef2f7;
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
    color: var(--ink);
    background: var(--bg)
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 300px;
    background: linear-gradient(180deg, var(--panel-alt), #fff);
    border-right: 1px solid var(--line);
    box-shadow: 8px 0 24px rgba(0, 0, 0, .03);
    z-index: 100
}

.sidebar-inner {
    padding: 18px 16px 28px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 8px 14px
}

.logo {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: var(--brand);
    box-shadow: 0 6px 18px rgba(255, 88, 174, .35)
}

.brand h1 {
    font-size: 1.02rem;
    margin: 0;
    letter-spacing: .2px
}

.brand small {
    color: var(--muted)
}

.toc-title {
    font-size: .8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin: 12px 8px 8px
}

.toc {
    list-style: none;
    padding: 0;
    margin: 0
}

.toc a {
    display: block;
    padding: 8px 10px;
    margin: 2px 6px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid transparent
}

.toc a:hover {
    background: #fff;
    border-color: var(--line)
}

.toc a.active {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 88, 174, .15)
}

main {
    margin-left: 300px
}

.wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 22px
}

.page-title {
    margin: 8px 0 4px;
    font-size: 1.8rem
}

.page-sub {
    margin: 0;
    color: var(--muted)
}

section[id] {
    scroll-margin-top: 24px
}

.section {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 20px 16px;
    margin: 22px 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .03)
}

.section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--brand), transparent 100%);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px
}

.section h2 {
    margin: 6px 0 8px;
    font-size: 1.35rem
}

.section h3 {
    margin: 14px 0 6px;
    font-size: 1.05rem;
    color: var(--brand-ink)
}

.steps {
    margin: 10px 0 0 0;
    padding-left: 18px
}

.steps li {
    margin: 8px 0
}

.substeps {
    margin: 6px 0 2px 18px
}

.screenshot {
    display: block;
    width: 100%;
    max-width: 860px;
    margin: 10px 0;
    border: 2px dashed var(--brand);
    border-radius: 12px;
    padding: 10px;
    background: #fff;
}

.caption {
    color: var(--muted);
    font-size: .9rem;
    margin-top: -6px
}

.callout {
    border: 1px solid var(--line);
    background: var(--panel-alt);
    padding: 12px 12px;
    border-radius: 10px;
    margin: 10px 0
}

code.inline {
    background: #ffe5f2;
    border: 1px solid rgba(255, 88, 174, .35);
    padding: 2px 6px;
    border-radius: 6px
}

pre {
    background: #0f172a;
    color: #e5e7eb;
    padding: 14px;
    border-radius: 12px;
    overflow: auto
}

.issues {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.issue {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 6px solid var(--brand);
    border-radius: 12px;
    padding: 12px 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .03)
}

.issue b {
    display: block;
    margin-bottom: 4px;
    color: #0f172a
}

.issue small {
    color: var(--muted)
}

@media (max-width: 900px) {
    .issues {
        grid-template-columns: 1fr
    }
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.chip {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .03)
}

.chip b {
    color: #0f172a
}

footer {
    padding: 34px 0;
    color: var(--muted);
    text-align: center
}

@media (max-width: 960px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
        width: 86%;
        max-width: 320px;
        z-index: 100
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .sidebar-toggle {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 110;
        background: var(--brand);
        color: #fff;
        border: none;
        padding: 10px 12px;
        border-radius: 10px;
        font-weight: 700
    }

    main {
        margin-left: 0
    }

    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .2);
        display: none;
        z-index: 90
    }

    .overlay.show {
        display: block
    }
}

a {
    color: var(--brand)
}

a:hover {
    color: #e74e9f
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.2s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal:target {
    display: flex;
}

.enlargeable {
    cursor: zoom-in;
}
