﻿﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background-light);
    color: var(--text-dark);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Arial;
    line-height: 1.6;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 16px 56px;
}


.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px auto 24px;
}

.tab-btn {
    padding: 10px 18px;
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

    .tab-btn:hover,
    .tab-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.25);
    }

    .tab-btn.active {
        background: var(--primary);
        color: #fff;
    }

.panel {
    display: none;
}

    .panel.active {
        display: block;
    }

.slide {
    display: none;
}

    .slide.active {
        display: block;
    }

.ipanel {
    display: none;
}

    .ipanel.active {
        display: block;
    }

.slide {
    display: none;
    background: #fff;
    border: 1px solid var(--background-light);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
    min-height: 320px;
    position: relative;
    animation: fade .25s ease;
}

    .slide.active {
        display: block;
    }

@keyframes fade {
    from {
        opacity: .6;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide h2 {
    margin: 0 0 12px;
    color: var(--primary);
}

.content {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 900px) {
    .content {
        grid-template-columns: minmax(0,1fr) 320px;
        align-items: start;
    }
}

.prose {
    max-width: 75ch;
}

    .prose h3 {
        margin: 18px 0 6px;
        color: var(--text-dark);
        font-size: 1.1rem;
    }

    .prose p {
        margin: 0 0 10px;
        color: var(--text-dark);
        white-space: pre-wrap;
    }

    .prose ul {
        margin: 0 0 10px 1.25rem;
        padding: 0;
    }

    .prose li {
        margin: 6px 0;
    }

    .prose .muted {
        color: var(--muted);
    }

.callout {
    border-left: 4px solid var(--primary);
    background: #fff5f7;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text-dark);
}

.media {
    border: 1px solid var(--background-light);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}

    .media img {
        display: block;
        width: 100%;
        height: auto;
    }

    .media figcaption {
        padding: 10px 12px;
        font-size: .9rem;
        color: var(--muted);
    }

.nav-arrows {
    position: sticky;
    bottom: -1px;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%);
    border-radius: 12px;
    padding-top: 16px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.arrow-btn {
    border: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .08s ease;
}

    .arrow-btn:hover {
        background: var(--primary-light);
    }

    .arrow-btn:active {
        transform: translateY(1px);
    }

    .arrow-btn:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    border: 1px solid var(--background-light);
}

    .dot.active {
        background: var(--primary);
        border-color: var(--primary);
    }

:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb),0.25);
    outline-offset: 2px;
}
