/* ============================
   Miro AI SEO – Table of Contents
   Modern, clean, theme-proof
=============================== */

.miro-toc {
    border: 1px solid var(--toc-border);
    background: var(--toc-bg);
    border-radius: var(--toc-radius);
    padding: 16px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
    overflow: hidden;
}

.miro-toc--shadow {
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.miro-toc--sticky {
    position: sticky;
    top: 100px;
}

/* SUMMARY (TITLE) */
.miro-toc summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--toc-title);
    margin-bottom: 12px;
    list-style: none;
}

.miro-toc summary::-webkit-details-marker {
    display: none;
}

/* Arrow icon */
.miro-toc summary::after {
    content: "▾";
    float: right;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.miro-toc[open] summary::after {
    transform: rotate(180deg);
}

/* CONTENT ANIMATION */
.miro-toc__body {
    margin-top: 10px;
    overflow: hidden;
    transition: max-height .35s ease, opacity .25s ease;
    opacity: 1;
    max-height: 900px;
}

.miro-toc:not([open]) .miro-toc__body {
    opacity: 0;
    max-height: 0;
}

/* LIST */
.miro-toc ul {
    margin: 0;
    padding-left: 18px;
}

.miro-toc li {
    margin: 6px 0;
}

/* =======================================
   LINK COLORS + HOVER (Theme-Proof Override)
========================================== */

.miro-toc a,
.miro-toc a:visited,
.miro-toc a:active {
    color: var(--toc-link) !important;
    text-decoration: var(--toc-underline) !important;
    border-bottom: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Hover — keeps underline OFF or ON based on option */
.miro-toc a:hover {
    color: var(--toc-hover) !important;
    text-decoration: var(--toc-underline) !important;
    border-bottom: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* LEVELS */
.miro-toc li.lvl-h2 {
    padding-left: 0;
}

.miro-toc li.lvl-h3 {
    padding-left: 12px;
    opacity: .9;
    font-size: 14px;
}

/* FLOAT MODES */
.miro-toc--float-left {
    float: left;
    margin: 0 20px 20px 0;
}

.miro-toc--float-right {
    float: right;
    margin: 0 0 20px 20px;
}

/* THEMES */
.miro-toc--minimal {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.miro-toc--boxed {
    border-width: 2px;
}

.miro-toc--pill {
    border-radius: 999px !important;
    padding: 20px;
}

/* SMOOTH SCROLL */
html {
    scroll-behavior: smooth;
}
