/**
 * Blog Sections CSS
 *
 * Tailwind-compatible styles for blog section types.
 * Uses Nocturnal brand colors: brand-red (#990001), brand-panel (#0f0f0f), brand-silver (#b3b3b3).
 * Designed for dark theme (prose-invert) blog posts.
 */

/* ==========================================================================
   1. Callout Section Styles
   ========================================================================== */

.callout {
    margin: 1.75rem 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    border-radius: 1rem;
    border: 1px solid rgba(179, 179, 179, 0.14);
    border-left: 3px solid rgba(153, 0, 1, 0.82);
    padding: 1.25rem;
    background: linear-gradient(145deg, rgba(153, 0, 1, 0.16) 0%, rgba(15, 15, 15, 0.96) 46%, rgba(5, 5, 5, 0.99) 100%);
    box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.85);
}

.callout__icon-wrap {
    display: flex;
    height: 2.75rem;
    width: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(153, 0, 1, 0.16);
    border: 1px solid rgba(153, 0, 1, 0.28);
    color: #ffffff;
}

.callout__title {
    margin: 0 0 0.35rem;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    line-height: 1.3;
}

.callout__content,
.callout__content p,
.callout__content li,
.callout__content strong,
.callout__content code {
    color: #d3d3d3 !important;
}

.callout__content a {
    color: #ffffff !important;
    text-decoration-color: rgba(153, 0, 1, 0.55);
}

.callout__content :first-child {
    margin-top: 0;
}

.callout__content :last-child {
    margin-bottom: 0;
}

.callout--info {
    border-left-color: #990001;
}

.callout--warning {
    border-left-color: rgba(214, 102, 47, 0.9);
    background: linear-gradient(145deg, rgba(153, 0, 1, 0.2) 0%, rgba(15, 15, 15, 0.96) 48%, rgba(5, 5, 5, 0.99) 100%);
}

.callout--tip {
    border-left-color: rgba(153, 0, 1, 0.65);
}

.callout--success {
    border-left-color: rgba(179, 179, 179, 0.6);
}

.callout--warning .callout__icon-wrap {
    background: rgba(153, 0, 1, 0.2);
}

.callout--success .callout__icon-wrap,
.callout--tip .callout__icon-wrap {
    background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   2. Key Takeaways Section Styles
   ========================================================================== */

.key-takeaways {
    margin: 2.25rem 0;
    border-radius: 1rem;
    border: 1px solid rgba(179, 179, 179, 0.14);
    background: linear-gradient(160deg, rgba(153, 0, 1, 0.18) 0%, rgba(15, 15, 15, 0.96) 42%, rgba(5, 5, 5, 0.98) 100%);
    padding: 1.5rem 1.5rem 1.35rem;
    box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.85);
}

.key-takeaways__header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.1rem;
}

.key-takeaways__badge {
    background: rgba(153, 0, 1, 0.16);
    border: 1px solid rgba(153, 0, 1, 0.32);
    color: #ffffff;
}

.key-takeaways__title,
.key-takeaways h3 {
    color: #c4b5fd !important;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
}

.key-takeaways__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.key-takeaways__item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.key-takeaways__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
    border-radius: 9999px;
    border: 1px solid rgba(153, 0, 1, 0.35);
    background: rgba(153, 0, 1, 0.14);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.key-takeaways__text,
.key-takeaways li {
    color: #d8d8d8;
    line-height: 1.7;
}

/* ==========================================================================
   3. FAQ Section Styles
   ========================================================================== */

.faq {
    margin: 2.25rem 0;
}

.faq__title,
.faq h3 {
    color: #e5e7eb !important;
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff !important;
}

.faq__title-badge {
    background: rgba(153, 0, 1, 0.16);
    border: 1px solid rgba(153, 0, 1, 0.32);
    color: #ffffff;
}

.faq__items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq__item {
    border-radius: 1rem;
    border: 1px solid rgba(179, 179, 179, 0.12);
    background: rgba(15, 15, 15, 0.92);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq__item:hover,
.faq__item.is-open {
    border-color: rgba(153, 0, 1, 0.4);
    box-shadow: 0 24px 50px -40px rgba(153, 0, 1, 0.45);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq__question-copy {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.faq__question-text {
    line-height: 1.5;
}

.faq__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 9999px;
    border: 1px solid rgba(153, 0, 1, 0.32);
    background: rgba(153, 0, 1, 0.16);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.faq__question:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.faq__question:focus {
    outline: 2px solid #990001;
    outline-offset: -2px;
}

.faq__icon {
    flex-shrink: 0;
    color: #b3b3b3;
    transition: transform 0.2s ease;
}

.faq__answer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq__answer-body {
    padding: 0.875rem 1.25rem 1.35rem;
}

.faq__pill--answer {
    border-color: rgba(179, 179, 179, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.faq__answer-content,
.faq__answer-content p,
.faq__answer-content li,
.faq__answer-content strong,
.faq__answer-content code {
    color: #bdbdbd !important;
}

.faq__answer-content :first-child {
    margin-top: 0;
}

.faq__answer-content :last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   4. CTA Block Section Styles
   ========================================================================== */

.cta-block {
    margin: 2.75rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(179, 179, 179, 0.14);
    padding: 2rem 2.25rem;
    text-align: center;
    isolation: isolate;
    background: linear-gradient(155deg, rgba(153, 0, 1, 0.2) 0%, rgba(15, 15, 15, 0.96) 44%, rgba(5, 5, 5, 0.99) 100%);
    box-shadow: 0 30px 80px -55px rgba(0, 0, 0, 0.9);
}

.cta-block--primary {
    background: linear-gradient(155deg, rgba(153, 0, 1, 0.2) 0%, rgba(15, 15, 15, 0.96) 44%, rgba(5, 5, 5, 0.99) 100%);
}

.cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, rgba(153, 0, 1, 0.24), transparent 58%);
    pointer-events: none;
}

.cta-block::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(153, 0, 1, 0), rgba(153, 0, 1, 0.88), rgba(153, 0, 1, 0));
    pointer-events: none;
}

.cta-block__inner {
    position: relative;
    z-index: 1;
}

.cta-block__headline,
.cta-block h3 {
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.cta-block__description,
.cta-block p {
    color: #c9c9c9 !important;
    margin: 0 auto 1.75rem;
    max-width: 34rem;
    line-height: 1.8;
}

.cta-block__button {
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #990001;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 14px 35px -18px rgba(153, 0, 1, 0.8);
}

.cta-block__button:hover {
    background: #7f0001;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -18px rgba(153, 0, 1, 0.95);
}

.cta-block--secondary {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, rgba(15, 15, 15, 0.94) 50%, rgba(5, 5, 5, 0.99) 100%);
}

.cta-block--secondary .cta-block__button {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(179, 179, 179, 0.25);
    color: #ffffff !important;
    box-shadow: none;
}

.cta-block--secondary .cta-block__button:hover {
    background: rgba(153, 0, 1, 0.14);
    border-color: rgba(153, 0, 1, 0.45);
}

/* ==========================================================================
   5. Quote Section Styles
   ========================================================================== */

.quote-section {
    margin: 2.25rem 0;
}

.quote-section__card,
.quote-section blockquote {
    position: relative;
    border-radius: 1rem;
    padding: 1.75rem 1.75rem 1.5rem 1.5rem;
    border: 1px solid rgba(179, 179, 179, 0.14);
    border-left: 3px solid rgba(153, 0, 1, 0.82);
    background: linear-gradient(145deg, rgba(153, 0, 1, 0.15) 0%, rgba(15, 15, 15, 0.96) 45%, rgba(5, 5, 5, 0.99) 100%);
    box-shadow: 0 24px 60px -42px rgba(0, 0, 0, 0.85);
}

.quote-section__mark,
.quote-section .fa-quote-left {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: rgba(153, 0, 1, 0.24);
}

.quote-section__content {
    padding-left: 2.5rem;
    color: #f1f1f1 !important;
    font-style: italic;
    line-height: 1.8;
}

.quote-section__content p,
.quote-section__content strong,
.quote-section__content em {
    color: inherit !important;
}

.quote-section__attribution,
.quote-section figcaption {
    color: #b3b3b3;
}

.quote-section__rule {
    display: inline-block;
    width: 2.25rem;
    height: 1px;
    background: rgba(153, 0, 1, 0.5);
}

.quote-section__author,
.quote-section figcaption cite {
    color: #ffffff;
    font-weight: 500;
}

.quote-section__separator,
.quote-section__source {
    color: #9b9b9b;
}

/* ==========================================================================
   6. Code Block Section Styles
   ========================================================================== */

.code-block-section {
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(153, 0, 1, 0.22);
    background:
        linear-gradient(180deg, rgba(15, 15, 15, 0.98), rgba(7, 7, 7, 0.98));
    box-shadow:
        0 28px 80px -52px rgba(0, 0, 0, 0.98),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.code-block-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background:
        linear-gradient(180deg, rgba(153, 0, 1, 0.18), rgba(15, 15, 15, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-block-section__meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.code-block-section__file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 0.85rem;
    background: rgba(153, 0, 1, 0.16);
    border: 1px solid rgba(153, 0, 1, 0.3);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.code-block-section__meta-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.code-block-section__eyebrow {
    color: #b3b3b3;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.code-block-section__filename {
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.code-block-section__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.code-block-section__language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #b3b3b3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.code-block-section__content {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(153, 0, 1, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(9, 11, 20, 0.98), rgba(6, 6, 6, 0.98));
}

.code-block-section__pre {
    margin: 0;
    padding: 1.35rem 1.5rem 1.5rem;
    overflow-x: auto;
    background: transparent;
    scrollbar-color: rgba(153, 0, 1, 0.35) transparent;
}

.code-block-section__pre::-webkit-scrollbar {
    height: 8px;
}

.code-block-section__pre::-webkit-scrollbar-track {
    background: transparent;
}

.code-block-section__pre::-webkit-scrollbar-thumb {
    background: rgba(153, 0, 1, 0.35);
    border-radius: 9999px;
}

.code-block-section__pre::-webkit-scrollbar-thumb:hover {
    background: rgba(153, 0, 1, 0.5);
}

.code-block-section__code {
    font-size: 0.875rem;
    line-height: 1.625;
    color: #ececec;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace;
}

.code-block-section__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: #990001;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.code-block-section__copy:hover {
    color: #ffffff;
    background: rgba(153, 0, 1, 0.22);
    border-color: rgba(153, 0, 1, 0.42);
    box-shadow: 0 14px 28px -18px rgba(153, 0, 1, 0.8);
}

.code-block-section__copy.copied {
    color: #ffffff;
    background: rgba(153, 0, 1, 0.26);
    border-color: rgba(153, 0, 1, 0.5);
    box-shadow: 0 0 0 1px rgba(153, 0, 1, 0.16);
}

/* Line highlighting for Prism.js */
.code-block-section pre[data-line] .line-highlight {
    background: rgba(153, 0, 1, 0.18);
    border-left: 3px solid #990001;
    margin-left: -1.5rem;
    padding-left: calc(1.5rem - 3px);
}

@media (max-width: 640px) {
    .code-block-section__header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .code-block-section__actions {
        width: 100%;
        justify-content: space-between;
    }

    .code-block-section__filename {
        white-space: normal;
    }
}

/* ==========================================================================
   7. Step-by-Step Section Styles
   ========================================================================== */

.step-by-step {
    margin: 2.25rem 0;
}

.step-by-step__title,
.step-by-step h3 {
    color: #e5e7eb !important;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif;
}

.step-by-step__title-badge {
    background: rgba(153, 0, 1, 0.16);
    border: 1px solid rgba(153, 0, 1, 0.32);
    color: #ffffff;
}

.step-by-step__container {
    display: grid;
    gap: 1rem;
}

.step-by-step__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.step-by-step__rail {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-by-step__number {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(145deg, #990001, #690001);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 12px 30px -18px rgba(153, 0, 1, 0.85);
}

.step-by-step__connector {
    width: 2px;
    flex: 1;
    min-height: 2.25rem;
    background: linear-gradient(to bottom, rgba(153, 0, 1, 0.6), rgba(153, 0, 1, 0.08));
    margin-top: 0.5rem;
}

.step-by-step__step-title,
.step-by-step__item h4 {
    color: #ffffff !important;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

.step-by-step__description,
.step-by-step__description p,
.step-by-step__item .prose {
    color: #b8b8b8 !important;
    line-height: 1.75;
}

/* ==========================================================================
   8. Stats/KPI Section Styles
   ========================================================================== */

.stats-kpi {
    margin: 2rem 0;
}

.stats-kpi__grid {
    display: grid;
    gap: 1rem;
}

.stats-kpi__card {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0f0f0f;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.stats-kpi__card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(153, 0, 1, 0.3);
}

.stats-kpi__card > div:first-child {
    /* Value */
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.025em;
}

.stats-kpi__card > div:nth-child(2) {
    /* Label */
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Change indicators - positive */
.stats-kpi__card .text-emerald-600 {
    color: #22c55e;
}

.stats-kpi__card .bg-emerald-50 {
    background-color: rgba(34, 197, 94, 0.15);
}

/* Change indicators - negative */
.stats-kpi__card .text-rose-600 {
    color: #f43f5e;
}

.stats-kpi__card .bg-rose-50 {
    background-color: rgba(244, 63, 94, 0.15);
}

/* Change indicators - neutral */
.stats-kpi__card .text-gray-500 {
    color: #6b7280;
}

.stats-kpi__card .bg-gray-50 {
    background-color: rgba(107, 114, 128, 0.15);
}

/* ==========================================================================
   9. Responsive Adjustments
   ========================================================================== */

@media (max-width: 640px) {
    .callout {
        padding: 0.75rem;
        grid-template-columns: 1fr;
    }

    .key-takeaways {
        padding: 1rem;
    }

    .cta-block {
        padding: 1.5rem 1rem;
    }

    .quote-section__card,
    .quote-section blockquote {
        padding: 1rem 1.25rem;
    }

    .quote-section__content {
        padding-left: 1.75rem;
    }

    .step-by-step__number {
        height: 2rem;
        width: 2rem;
        font-size: 0.875rem;
    }

    .stats-kpi__card > div:first-child {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   10. Table of Contents Sidebar Styles
   ========================================================================== */

.toc-sidebar {
    /* Hide on mobile by default */
    display: none;
}

/* Desktop: Show sticky ToC sidebar */
@media (min-width: 1024px) {
    .toc-sidebar {
        display: block;
        align-self: start;
        position: sticky;
        top: 8rem; /* 128px offset for header */
    }

    .toc-sidebar nav {
        max-height: calc(100vh - 10rem);
        overflow-y: auto;
    }

    /* Custom scrollbar for ToC */
    .toc-sidebar nav::-webkit-scrollbar {
        width: 4px;
    }

    .toc-sidebar nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .toc-sidebar nav::-webkit-scrollbar-thumb {
        background: rgba(153, 0, 1, 0.3);
        border-radius: 2px;
    }

    .toc-sidebar nav::-webkit-scrollbar-thumb:hover {
        background: rgba(153, 0, 1, 0.5);
    }
}

/* ToC link styles */
.toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: #b3b3b3; /* brand-silver */
    font-size: 0.875rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.toc-link:hover {
    color: #990001; /* brand-red */
    border-left-color: rgba(153, 0, 1, 0.5);
}

.toc-link.active {
    color: #990001;
    border-left-color: #990001;
    font-weight: 500;
}

/* H3 level indentation */
.toc-link--h3 {
    padding-left: 1.5rem;
    font-size: 0.8125rem;
}

/* ==========================================================================
   11. Mobile ToC Expandable Menu
   ========================================================================== */

.toc-mobile {
    display: block;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .toc-mobile {
        display: none;
    }
}

.toc-mobile__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #0f0f0f; /* brand-panel */
    border: 1px solid rgba(179, 179, 179, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toc-mobile__toggle:hover {
    border-color: rgba(153, 0, 1, 0.3);
}

.toc-mobile__toggle:focus {
    outline: 2px solid #990001;
    outline-offset: 2px;
}

.toc-mobile__toggle-icon {
    transition: transform 0.2s ease;
}

.toc-mobile__toggle[aria-expanded="true"] .toc-mobile__toggle-icon {
    transform: rotate(180deg);
}

.toc-mobile__menu {
    display: none;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #0f0f0f;
    border: 1px solid rgba(179, 179, 179, 0.1);
    border-radius: 0.5rem;
    max-height: 50vh;
    overflow-y: auto;
}

.toc-mobile__menu.open {
    display: block;
    animation: toc-slide-down 0.2s ease-out;
}

@keyframes toc-slide-down {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.toc-mobile__menu .toc-link {
    padding: 0.625rem 0.75rem;
    border-radius: 0.25rem;
    border-left: none;
}

.toc-mobile__menu .toc-link:hover {
    background-color: rgba(153, 0, 1, 0.1);
}

.toc-mobile__menu .toc-link.active {
    background-color: rgba(153, 0, 1, 0.15);
    border-left: none;
}

/* ==========================================================================
   12. Print Styles
   ========================================================================== */

@media print {
    .callout,
    .key-takeaways,
    .faq,
    .cta-block,
    .quote-section,
    .code-block-section,
    .step-by-step,
    .stats-kpi {
        break-inside: avoid;
    }

    .faq__answer {
        display: block !important;
    }

    .code-block-section__copy {
        display: none;
    }

    .toc-sidebar,
    .toc-mobile {
        display: none !important;
    }
}
