/* --- Sticky Sidebar Fixes (Robust) --- */
/* Sticky requires ancestors to have overflow: visible */
/* Only applying to single guide pages to avoid regression elsewhere */
body.single-guide,
html.guide-overflow-fix,
body.single-guide .maincontainer,
body.single-guide #content,
body.single-guide .wrapper {
    overflow: visible !important;
}

/* Flex Container */
.guide-flex-layout {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    gap: 40px;
    position: relative;
    overflow: visible !important;
    /* Critical for sticky children */
    align-items: flex-start;
    /* Ensures sidebar doesn't stretch */
}

/* Sidebar Wrapper */
.aside_guide {
    flex: 0 0 300px;
    max-width: 300px;
    /* Sticky Logic */
    position: -webkit-sticky;
    position: sticky;
    top: 130px;
    /* Offset from top (adjusted for header height) */
    height: fit-content;
    /* Important: sticky needs a height limit to float within */
    z-index: 10;
}

/* Main Content */
.guide-main-content {
    flex: 1;
    min-width: 0;
    /* Prevention flex overflow */
}

/* --- Summary Box --- */
.guide-auto-summary {
    border: 3px solid #197de7;
    border-radius: 10px;
    padding: 25px;
    margin: 2.5em 0;
    width: 100%;
    /* Full width of content column */
    box-sizing: border-box;
    background-color: #fff;
}

.guide-auto-summary h3 {
    margin-top: 0;
    color: #197de7;
    /* Matches border */
    font-size: 1.4em;
    margin-bottom: 1em;
    font-weight: 700;
}

.guide-auto-summary ul {
    margin: 0;
    padding-left: 20px;
}

.guide-auto-summary li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

/* --- Table of Contents --- */
.guide-toc {
    margin-bottom: 30px;
    margin-top: 10vh;
    /* As requested */
}

.guide-toc h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.guide-toc li {
    margin-bottom: 10px;
}

.guide-toc a {
    text-decoration: none;
    color: #555;
    font-size: 0.95em;
    transition: color 0.3s;
}

.guide-toc a:hover {
    color: #197de7;
}

/* --- Sidebar Buttons (Contact & Social) --- */
.guide-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Contact Button */
.btn-main-contact {
    display: block;
    background: #197de7;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-main-contact:hover {
    background: #1062b8;
    color: #fff;
}

/* Social Sharing Section */
.guide-share-tools {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.share-label {
    display: block;
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Container for Agency-Style Social Buttons */
/* We want them in a row */
.social-buttons-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Agency Style LinkedIn/FB Buttons */
/* Replicating .director_linkedin */
.btn-share-social {
    background-color: #222843;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
}

.btn-share-social:hover {
    background-color: #040e31;
}

.btn-share-social .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #fff;
}

/* LLM / AI Buttons Row */
/* Eskimoz Style: White pills, shadow, logo + text */
.llm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.btn-share-llm {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    /* Fully rounded pill */
    padding: 6px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: normal;
}

.btn-share-llm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
    background-color: #fafafa;
    color: #000;
}

.btn-share-llm svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .guide-flex-layout {
        flex-direction: column;
    }

    .aside_guide {
        max-width: 100%;
        position: static;
        /* No sticky on mobile */
        margin-bottom: 40px;
        order: 2;
        /* Sidebar below content */
    }

    .guide-main-content {
        order: 1;
    }
}