/* ============================================
   LAYOUT - three columns: nav | content | TOC
============================================ */
#wedocs-wrapper {
    display: flex !important;
    gap: 40px;
    max-width: 1600px;
    width: 100%;
    margin: 40px auto !important;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 0 20px;
}

.fc-sidebar-left {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    flex: 0 0 260px;
    box-sizing: border-box;
}

.wedocs-main {
    flex: 1 1 0%;
    min-width: 0;
}

.fc-sidebar-right {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    flex: 0 0 260px;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    #wedocs-wrapper {
        flex-direction: column;
    }
    .fc-sidebar-left,
    .fc-sidebar-right,
    .wedocs-main {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
    }
}

/* ============================================
   BREADCRUMBS
============================================ */
.wedocs-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: #818186;
    margin-bottom: 1.5em;
}
.wedocs-breadcrumbs a {
    color: #818186;
    text-decoration: none;
}
.wedocs-breadcrumbs a:hover {
    color: #1a73e8;
}
.wedocs-breadcrumb-sep {
    color: #c2c2c4;
}
.wedocs-breadcrumb-current {
    color: #3c3c43;
    font-weight: 500;
}

/* ============================================
   CONTENT TYPOGRAPHY
============================================ */
.wedocs-entry-content {
    max-width: 740px;
    font-size: 16px;
    line-height: 1.7;
    color: #3c3c43;
}

.wedocs-entry-title {
    max-width: 740px;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.6em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e2e2e3;
}

.wedocs-entry-content h2 {
    font-size: 1.55rem;
    font-weight: 600;
    margin: 2em 0 1em;
    padding-top: 1em;
    border-top: 1px solid #e2e2e3;
    scroll-margin-top: 100px;
    position: relative;
}

.wedocs-entry-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.6em 0 0.8em;
    scroll-margin-top: 100px;
    position: relative;
}

.wedocs-entry-content p {
    margin: 1em 0;
}

/* Heading anchor "#" links, shown on hover (added via JS) */
.wedocs-entry-content h2 .header-anchor,
.wedocs-entry-content h3 .header-anchor {
    position: absolute;
    left: -1.1em;
    font-weight: 500;
    color: #c2c2c4;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}
.wedocs-entry-content h2:hover .header-anchor,
.wedocs-entry-content h3:hover .header-anchor {
    opacity: 1;
}
.wedocs-entry-content h2 .header-anchor:hover,
.wedocs-entry-content h3 .header-anchor:hover {
    color: #1a73e8;
}

/* Lists */
.wedocs-entry-content ol,
.wedocs-entry-content ul {
    padding-left: 1.4em;
    margin: 1em 0;
}
.wedocs-entry-content li {
    margin: 0.4em 0;
}
.wedocs-entry-content li > p {
    margin: 0.4em 0;
}

/* Links inside content */
.wedocs-entry-content a {
    color: #1a73e8;
    text-decoration: underline;
    text-decoration-color: rgba(26,115,232,0.35);
    text-decoration-thickness: 1px;
}
.wedocs-entry-content a:hover {
    text-decoration-color: #1a73e8;
}

/* Images / screenshots */
.wedocs-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e2e3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 1.5em 0;
    display: block;
}

/* Code */
.wedocs-entry-content code {
    background: #f6f6f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}
.wedocs-entry-content pre {
    background: #f6f6f7;
    border-radius: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    font-size: 0.88em;
    line-height: 1.6;
}
.wedocs-entry-content pre code {
    background: none;
    padding: 0;
}

.wedocs-entry-content strong {
    font-weight: 600;
}

/* ============================================
   PREV / NEXT PAGER
============================================ */
.wedocs-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 3em;
    padding-top: 1.5em;
    border-top: 1px solid #e2e2e3;
}
.wedocs-nav-prev,
.wedocs-nav-next {
    flex: 1;
    max-width: 48%;
}
.wedocs-nav-next {
    margin-left: auto;
    text-align: right;
}
.wedocs-navigation a {
    display: block;
    border: 1px solid #e2e2e3;
    border-radius: 8px;
    padding: 10px 16px;
    text-decoration: none;
    transition: border-color 0.2s;
}
.wedocs-navigation a:hover {
    border-color: #1a73e8;
}
.wedocs-nav-label {
    display: block;
    font-size: 0.8rem;
    color: #818186;
    margin-bottom: 4px;
}
.wedocs-nav-title {
    display: block;
    font-weight: 600;
    color: #1a73e8;
}

/* ============================================
   LEFT NAV
============================================ */
.fc-docs-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fc-parent {
    margin-bottom: 2px;
}
.fc-parent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fc-parent-link {
    flex: 1;
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    color: #3c3c43;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}
.fc-parent-link:hover {
    background: #f6f6f7;
}
.fc-parent-link.is-active {
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 600;
}
.fc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fc-toggle-icon {
    width: 8px;
    height: 8px;
    border-right: 2px solid #818186;
    border-bottom: 2px solid #818186;
    transform: rotate(-45deg);
    transition: transform 0.2s;
}
.fc-parent.is-open .fc-toggle-icon {
    transform: rotate(45deg);
}
.fc-children {
    list-style: none;
    margin: 0;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.fc-children.is-open {
    max-height: 1000px;
}
.fc-child-item a {
    display: block;
    padding: 5px 10px;
    border-radius: 6px;
    color: #818186;
    text-decoration: none;
    font-size: 0.9rem;
    word-wrap: break-word;
}
.fc-child-item a:hover {
    background: #f6f6f7;
    color: #3c3c43;
}
.fc-child-item.is-active a {
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 600;
}

/* ============================================
   RIGHT TOC
============================================ */
.fc-sidebar-right {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}
.fc-toc {
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 8px;
    background: #fafafa;
}
.fc-toc-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #818186;
    margin: 0 0 10px;
}
.fc-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid #e5e7eb;
}
.fc-toc-item.level-3 {
    padding-left: 12px;
}
.fc-toc-link {
    display: block;
    padding: 4px 12px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: #818186;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
}
.fc-toc-link:hover {
    color: #3c3c43;
}
.fc-toc-link.is-active {
    border-left-color: #1a73e8;
    color: #1a73e8;
    font-weight: 600;
}

.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_row_inner {
    overflow: visible !important;
}

.wedocs-entry-content,
.wedocs-entry-title {
    max-width: 100% !important;
}