/* ── Glotrave Guides Table of Contents — Styles ── */

.gg-toc {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    margin: 0 0 2rem;
    max-width: 680px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.gg-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.gg-toc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gg-dot-strip {
    display: flex;
    gap: 5px;
}

.gg-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.gg-toc-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.gg-toc-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6b7280;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.gg-toc-btn:hover {
    background: #f3f4f6;
}

.gg-chevron {
    font-size: 13px;
    line-height: 1;
    display: inline-block;
    transition: transform .2s;
}

.gg-chevron.rotated {
    transform: rotate(180deg);
}

/* TOC Items */
.gg-toc-body {
    padding: 6px 0 4px;
}

.gg-toc-item {
    display: flex;
    align-items: center;
    position: relative;
}

.gg-toc-vline {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e5e7eb;
    z-index: 0;
}

.gg-toc-item:first-child .gg-toc-vline { top: 50%; }
.gg-toc-item:last-child  .gg-toc-vline { bottom: 50%; }

.gg-toc-pin {
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px 0;
    position: relative;
    z-index: 1;
}

.gg-pin-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid;
    background: #ffffff;
    transition: background .25s;
    flex-shrink: 0;
}

.gg-toc-link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8px 18px 8px 0;
    text-decoration: none !important;
    font-size: 14px;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
    transition: color .12s;
}

.gg-toc-item:last-child .gg-toc-link {
    border-bottom: none;
}

.gg-toc-link:hover {
    color: #4285F4;
}

.gg-toc-link-text { flex: 1; }

.gg-toc-arrow {
    font-size: 13px;
    opacity: 0;
    transition: opacity .15s;
    margin-left: 6px;
}

.gg-toc-item:hover .gg-toc-arrow { opacity: 1; }

/* Footer */
.gg-toc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    border-top: 1px solid #f3f4f6;
}

.gg-toc-count {
    font-size: 11px;
    color: #9ca3af;
}

.gg-toc-brand-name {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: .04em;
}

/* Article heading styles */
.gg-article-h2 {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.gg-h2-bar {
    display: inline-block;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Responsive */
@media (max-width: 600px) {
    .gg-toc { border-radius: 8px; }
    .gg-toc-link { font-size: 13px; }
}
