/* ───────────────────────────────────────────────
    TABLE OF CONTENTS
    1. Site Header (logo + version tag)
    2. Hero Banner (title card + decoration)
    3. Hero Preview Cards
    4. Table of Contents (sticky + scrollspy)
    5. Chapter Header
    6. Text Blocks / Paragraphs
    7. Code Blocks (copy-paste-code)
    8. Image Guidelines List
    9. Icon Chips
    10. Responsive Settings
───────────────────────────────────────────────*/

/* ───────────────────────────────────────────────
1. Site Header
───────────────────────────────────────────────*/
.site-header {
    position: relative;
    z-index:  2;
    padding:  20px 6%;
}

.header-bar {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
}

.logo img {
    height: 48px;
    width:  auto;
}

.version-tag {
    font-family: var(--font-body);
    font-weight: var(--font-weight-semibold);
    font-size:   var(--text-base);
    color:       var(--mspbots-blue);
}

/* ───────────────────────────────────────────────
2. Hero Banner
───────────────────────────────────────────────*/
.hero-banner {
    position:   relative;
    isolation:  isolate;
}

.hero-bg {position: absolute; width: 100%; z-index: 0; top: 0;}

.hero-card {
    background:      var(--color-card-bg);
    border-radius:   var(--radius-sm);
    border:          1px solid rgba(255, 255, 255, 0.5);
    padding:         52px 60px;
    backdrop-filter: blur(3px);
    z-index:         1;
}

.hero-banner-stars {
    display: flex;
    justify-content: start;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.sparkle-row {
    display:       flex;
    align-items:   center;
    gap:           11px;
    margin-bottom: 20px;
}

.sparkle-row svg {
    display: block;
}

/* ───────────────────────────────────────────────
3. Page Layout Wrapper
───────────────────────────────────────────────*/
.content {
    display:        flex;
    flex-direction: column;
    gap:            96px;
    min-width:      0;
}

/* ───────────────────────────────────────────────
4. Table of Contents
───────────────────────────────────────────────*/
.toc {
    position:       sticky;
    top:            32px;
    display:        flex;
    flex-direction: column;
    gap:            28px;
    align-self:     start;
    max-height:     calc(100vh - 64px);
    overflow-y:     auto;
}

.toc-chapter {
    display:        flex;
    flex-direction: column;
    gap:            6px;
}

/* ───────────────────────────────────────────────
5. Chapter Header
───────────────────────────────────────────────*/
.chapter {
    display:           flex;
    flex-direction:    column;
    gap:               44px;
    scroll-margin-top: 32px;
}

.chapter-header {
    display:        flex;
    flex-direction: column;
    gap:            0px;
    align-items: start;
}

.sec-star {
    height: 32px;
    width: auto;
}

/* ───────────────────────────────────────────────
6. Text Blocks / Paragraphs
───────────────────────────────────────────────*/
.text-block {
    display:           flex;
    flex-direction:    column;
    gap:               20px;
    scroll-margin-top: 32px;
}

/* ───────────────────────────────────────────────
7. Code Blocks
───────────────────────────────────────────────*/
.code-block {
    display:         flex;
    flex-direction:  column;
    justify-content: start;
    gap:             0px;
    margin-bottom:   var(--space-5);
}

.copy-paste-code {
    position:      relative;
    background:    var(--code-bg);
    border:        1px solid var(--code-border-subtle);
    border-radius: var(--radius-sm);
    padding:       16px;
}

.clipboard-btn {
    position:        absolute;
    top:             15px;
    right:           16px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           34px;
    height:          34px;
    padding:         7px;
    background:      var(--color-clipboard-bg);
    border:          1px solid var(--color-clipboard-border);
    border-radius:   5px;
    cursor:          pointer;
    color:           var(--color-msp-blue);
    transition:      background 0.15s ease;
}

.clipboard-btn:hover {
    background: var(--color-clipboard-border);
}

.clipboard-btn svg {
    width:  20px;
    height: 20px;
}

.clipboard-btn.is-copied::after {
    content:       'Copied!';
    position:      absolute;
    top:           -30px;
    right:         0;
    background:    var(--color-dark-blue);
    color:         #fff;
    font-family:   var(--font-main);
    font-size:     0.75rem;
    font-weight:   600;
    padding:       4px 8px;
    border-radius: 4px;
    white-space:   nowrap;
}

/* ───────────────────────────────────────────────
8. Image Guidelines List
───────────────────────────────────────────────*/
.guideline-list {
    display:        flex;
    flex-direction: column;
    gap:            20px;
}

.guideline-item {
    display:     flex;
    gap:         8px;
    align-items: flex-start;
}

.guideline-badge {
    display:         flex;
    align-items:     center;
    justify-content: center;
    flex-shrink:     0;
    width:           41px;
    height:          41px;
    border:          1.5px solid var(--color-msp-blue);
    border-radius:   var(--radius-full);
    font-family:     var(--font-main);
    font-weight:     700;
    font-size:       var(--fs-badge);
    letter-spacing:  -0.16px;
    color:           var(--color-msp-blue);
}

.guideline-body {
    flex:           1 1 0;
    min-width:      0;
    display:        flex;
    flex-direction: column;
    gap:            8px;
}

.guideline-body p {
    font-family: var(--font-main);
    font-weight: 500;
    font-size:   var(--fs-body);
    line-height: var(--lh-body);
}

.guideline-body ol {
    list-style:   decimal;
    padding-left: 24px;
}

/* ───────────────────────────────────────────────
9. Icon Chips
───────────────────────────────────────────────*/
.icon-row {
    display:     flex;
    gap:         33px;
    align-items: center;
    flex-wrap:   wrap;
}

.icon-chip {
    position:        relative;
    width:           58px;
    height:          58px;
    border-radius:   var(--radius-xs);
    background:      linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), var(--gradient-icon-chip);
    box-shadow:      inset 3px 4px 2px 0 rgba(255, 255, 255, 0.25), inset 0 -3px 4px 0 rgba(0, 0, 0, 0.11);
    display:         flex;
    align-items:     center;
    justify-content: center;
}

.icon-chip img {
    width:  32px;
    height: 32px;
}

/* ───────────────────────────────────────────────
10. Responsive Settings
───────────────────────────────────────────────*/
@media screen and (max-width: 992px) {
    .hero-cards-row {
        flex-wrap: wrap;
        margin:    32px 0 0;
        padding:   0;
    }

    .hero-card-placeholder {
        flex-basis: calc(50% - 17px);
    }

    .toc {
        position:   static;
        max-height: none;
    }
}

@media screen and (max-width: 768px) {
    .hero-card {
        padding: 32px;
    }

    .hero-cards-row {
        gap: 16px;
    }

    .hero-card-placeholder {
        flex-basis: 100%;
        height:     180px;
    }

    .header-bar {
        flex-wrap: wrap;
        gap:       12px;
    }
}

@media screen and (max-width: 567px) {
    .icon-row {
        gap: 16px;
    }

    .guideline-item {
        flex-direction: column;
    }
}
