.inxcl-auto-toc {
    margin: 0 0 28px;
    border: 1px solid #d4e3dd;
    border-radius: 14px;
    background: #fff;
    color: #10231c;
    font-family: inherit;
    overflow: hidden;
    box-shadow: 0 9px 24px rgba(14, 85, 54, .06);
}

.inxcl-auto-toc > summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto auto;
    gap: 11px;
    align-items: center;
    padding: 15px 17px;
    background: #f4f9f7;
    cursor: pointer;
    list-style: none;
}

.inxcl-auto-toc > summary::-webkit-details-marker {
    display: none;
}

.inxcl-toc-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: #0e5536;
    color: #fff;
}

.inxcl-toc-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.inxcl-toc-heading {
    display: grid;
}

.inxcl-toc-heading small {
    color: #1c674f;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
}

.inxcl-toc-heading strong {
    font-size: 17px;
    line-height: 1.3;
}

.inxcl-toc-count {
    color: #60756f;
    font-size: 12px;
    font-weight: 700;
}

.inxcl-toc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid #bfd5cd;
    border-radius: 999px;
    color: #0e5536;
    font-size: 11px;
    font-weight: 800;
}

.inxcl-toc-toggle i {
    font-style: normal;
}

.inxcl-toc-toggle .show {
    display: inline;
}

.inxcl-auto-toc[open] .inxcl-toc-toggle .show {
    display: none;
}

.inxcl-auto-toc:not([open]) .inxcl-toc-toggle .hide {
    display: none;
}

.inxcl-auto-toc[open] .inxcl-toc-toggle b {
    transform: rotate(180deg);
}

.inxcl-auto-toc > nav {
    padding: 14px 17px 17px;
    border-top: 1px solid #dce9e4;
}

/* TOC will always appear in one column */
body .inxcl-auto-toc > nav > ol {
    display: block !important;
    grid-template-columns: none !important;
    columns: 1 !important;
    column-count: 1 !important;
    column-width: auto !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body .inxcl-auto-toc > nav > ol > li {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 0 6px !important;
    break-inside: avoid !important;
    font-size: 14px;
    line-height: 1.42;
}

.inxcl-auto-toc li.level-3 {
    padding-left: 17px;
    font-size: 13.5px;
}

.inxcl-auto-toc li.level-4 {
    padding-left: 34px;
    font-size: 13px;
}

/* Remove underline and theme link effects */
body .inxcl-auto-toc > nav > ol > li > a,
body .inxcl-auto-toc > nav > ol > li > a:link,
body .inxcl-auto-toc > nav > ol > li > a:visited,
body .inxcl-auto-toc > nav > ol > li > a:hover,
body .inxcl-auto-toc > nav > ol > li > a:focus,
body .inxcl-auto-toc > nav > ol > li > a:focus-visible,
body .inxcl-auto-toc > nav > ol > li > a:active {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 5px 7px;
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 7px;
    color: #153b2e;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    box-shadow: none !important;
    background-image: none !important;
    outline: 0;
}

body .inxcl-auto-toc > nav > ol > li > a span,
body .inxcl-auto-toc > nav > ol > li > a:hover span,
body .inxcl-auto-toc > nav > ol > li > a:focus span {
    border-bottom: 0 !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

body .inxcl-auto-toc > nav > ol > li > a:hover,
body .inxcl-auto-toc > nav > ol > li > a:focus-visible {
    background-color: #edf7f3;
}

.inxcl-toc-number {
    display: grid;
    flex: 0 0 27px;
    min-height: 25px;
    place-items: center;
    border: 0 !important;
    border-radius: 7px;
    background: #e7f4ef;
    color: #0e5536;
    font-size: 10px;
    font-weight: 850;
    text-decoration: none !important;
    box-shadow: none !important;
}

.inxcl-auto-toc li.level-2 > a > span:last-child {
    font-weight: 750;
}

.inxcl-auto-toc li.level-3 > a > span:last-child,
.inxcl-auto-toc li.level-4 > a > span:last-child {
    color: #536961;
}

.entry-content h2[id],
.entry-content h3[id],
.entry-content h4[id] {
    scroll-margin-top: 110px;
}

/* Accordion frontend */
.inxcl-accordion {
    margin: 24px 0;
    border: 1px solid #d4e3dd;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(14, 85, 54, .055);
}

.inxcl-accordion-item {
    margin: 0;
    border: 0;
    border-bottom: 1px solid #d4e3dd;
}

.inxcl-accordion-item:last-child {
    border-bottom: 0;
}

.inxcl-accordion-item > summary {
    position: relative;
    display: block;
    padding: 17px 54px 17px 18px;
    color: #10231c;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.42;
    cursor: pointer;
    list-style: none;
    transition: background-color .16s ease, color .16s ease;
}

.inxcl-accordion-item > summary::-webkit-details-marker {
    display: none;
}

.inxcl-accordion-item > summary::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    display: grid;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    place-items: center;
    border: 1px solid #b8d0c7;
    border-radius: 50%;
    background: #fff;
    color: #0e5536;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.inxcl-accordion-item[open] > summary::after {
    content: '−';
}

.inxcl-accordion-item > summary:hover {
    background: #f4f9f7;
}

.inxcl-accordion-item > summary:focus-visible {
    outline: 3px solid rgba(28, 154, 200, .28);
    outline-offset: -3px;
    background: #f4f9f7;
}

.inxcl-accordion-item[open] > summary {
    color: #075b43;
}

.inxcl-accordion-answer {
    padding: 0 18px 18px;
    color: #4d635b;
    font-size: 15px;
    line-height: 1.72;
}

.inxcl-accordion-answer > :first-child {
    margin-top: 0;
}

.inxcl-accordion-answer > :last-child {
    margin-bottom: 0;
}

/* Accordion editor */
.editor-styles-wrapper .inxcl-accordion.is-editor {
    margin: 18px 0;
    padding: 14px;
    border: 1px solid #c9ded6;
    border-radius: 16px;
    background: #f7fbf9;
    box-shadow: none;
    overflow: visible;
}

.editor-styles-wrapper .inxcl-accordion-editor-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 12px;
    padding: 3px 4px 11px;
    border-bottom: 1px solid #d8e7e1;
    color: #17362b;
}

.editor-styles-wrapper .inxcl-accordion-editor-heading > span:last-child {
    display: grid;
    gap: 1px;
}

.editor-styles-wrapper .inxcl-accordion-editor-heading strong {
    font-size: 14px;
    line-height: 1.35;
}

.editor-styles-wrapper .inxcl-accordion-editor-heading small {
    color: #61746d;
    font-size: 11px;
    line-height: 1.45;
}

.editor-styles-wrapper .inxcl-accordion-editor-mark {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: #0e5536;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.editor-styles-wrapper .inxcl-accordion-editor-item {
    position: relative;
    margin: 10px 0 !important;
    border: 1px solid #c9ded6;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(14, 85, 54, .04);
    overflow: hidden;
}

.editor-styles-wrapper .inxcl-accordion-editor-item.is-selected {
    border-color: #0e7858;
    box-shadow: 0 0 0 1px #0e7858;
}

.editor-styles-wrapper .inxcl-accordion-editor-question-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 62px;
    padding: 10px 11px;
    background: #f5faf8;
}

.editor-styles-wrapper .inxcl-accordion-editor-grip {
    color: #8aa399;
    font-size: 15px;
    letter-spacing: -3px;
    cursor: grab;
    user-select: none;
}

.editor-styles-wrapper .inxcl-accordion-editor-question {
    min-width: 0;
    padding: 7px 8px;
    border-radius: 7px;
    color: #10231c;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.42;
    white-space: normal;
}

.editor-styles-wrapper .inxcl-accordion-editor-question:focus {
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(14, 120, 88, .18);
}

.editor-styles-wrapper
.inxcl-accordion-editor-question[data-rich-text-placeholder]::after {
    color: #71837d;
    opacity: 1;
}

.editor-styles-wrapper .inxcl-accordion-editor-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-styles-wrapper .inxcl-accordion-editor-actions .components-button,
.editor-styles-wrapper .inxcl-accordion-editor-actions button {
    display: inline-grid;
    min-width: 34px;
    min-height: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #bfd5cd;
    border-radius: 8px;
    background: #fff;
    color: #0e5536;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    font-family: inherit;
    box-shadow: none;
}

.editor-styles-wrapper
.inxcl-accordion-editor-actions
.inxcl-accordion-editor-toggle {
    width: 34px;
    padding: 0;
    font-size: 20px;
}

.editor-styles-wrapper
.inxcl-accordion-editor-actions
.inxcl-accordion-editor-remove {
    padding: 0 10px;
    border-color: #e7c8c8;
    color: #9e2626;
}

.editor-styles-wrapper .inxcl-accordion-editor-actions button:hover,
.editor-styles-wrapper .inxcl-accordion-editor-actions button:focus-visible {
    border-color: #0e7858;
    background: #edf7f3;
    color: #075b43;
    outline: 0;
}

.editor-styles-wrapper
.inxcl-accordion-editor-actions
.inxcl-accordion-editor-remove:hover,
.editor-styles-wrapper
.inxcl-accordion-editor-actions
.inxcl-accordion-editor-remove:focus-visible {
    border-color: #bd3434;
    background: #fff2f2;
    color: #8b1717;
}

.editor-styles-wrapper .inxcl-accordion-editor-answer {
    padding: 13px 15px 15px;
    border-top: 1px solid #dbe8e3;
    background: #fff;
}

.editor-styles-wrapper .inxcl-accordion-editor-answer-label {
    display: block;
    margin: 0 0 8px;
    color: #527066;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.editor-styles-wrapper
.inxcl-accordion-editor-answer
.block-editor-inner-blocks,
.editor-styles-wrapper
.inxcl-accordion-editor-answer
.block-editor-block-list__layout {
    min-height: 48px;
}

.editor-styles-wrapper
.inxcl-accordion-editor-answer
.block-editor-default-block-appender {
    min-height: 36px;
    border: 1px dashed #bfd5cd;
    border-radius: 8px;
}

.editor-styles-wrapper
.inxcl-accordion.is-editor
> .block-editor-inner-blocks
> .block-editor-block-list__layout
> .block-list-appender {
    position: relative;
    margin: 10px 0 0;
}

.editor-styles-wrapper
.inxcl-accordion.is-editor
> .block-editor-inner-blocks
> .block-editor-block-list__layout
> .block-list-appender
.block-editor-button-block-appender {
    min-height: 38px;
    border: 1px dashed #9fc3b5;
    border-radius: 9px;
    background: #fff;
    color: #0e5536;
}

/* Tablet and mobile */
@media (max-width: 700px) {
    .inxcl-auto-toc > summary {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        padding: 13px;
    }

    .inxcl-toc-icon {
        width: 34px;
        height: 34px;
    }

    .inxcl-toc-count {
        display: none;
    }

    .inxcl-toc-heading strong {
        font-size: 16px;
    }

    .inxcl-auto-toc > nav {
        padding: 10px 11px 13px;
    }

    body .inxcl-auto-toc > nav > ol {
        display: block !important;
        grid-template-columns: none !important;
        columns: 1 !important;
        column-count: 1 !important;
        gap: 0 !important;
    }

    body .inxcl-auto-toc > nav > ol > li {
        margin-bottom: 3px !important;
    }

    .inxcl-auto-toc li.level-3 {
        padding-left: 12px;
        font-size: 14px;
    }

    .inxcl-auto-toc li.level-4 {
        padding-left: 24px;
        font-size: 13.5px;
    }

    .inxcl-auto-toc li {
        font-size: 14.5px;
    }

    .inxcl-accordion-item > summary {
        padding: 15px 50px 15px 15px;
        font-size: 16px;
    }

    .inxcl-accordion-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    .editor-styles-wrapper .inxcl-accordion-editor-question-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .editor-styles-wrapper .inxcl-accordion-editor-grip {
        display: none;
    }

    .editor-styles-wrapper .inxcl-accordion-editor-question {
        font-size: 16px;
    }

    .editor-styles-wrapper
    .inxcl-accordion-editor-actions
    .inxcl-accordion-editor-remove {
        width: 34px;
        padding: 0;
        font-size: 0;
    }

    .editor-styles-wrapper
    .inxcl-accordion-editor-actions
    .inxcl-accordion-editor-remove::after {
        content: '×';
        font-size: 18px;
    }
}

@media (max-width: 390px) {
    .inxcl-toc-toggle {
        padding: 5px 7px;
    }

    .inxcl-toc-toggle i {
        display: none !important;
    }

    .inxcl-auto-toc > summary {
        gap: 8px;
    }

    .editor-styles-wrapper .inxcl-accordion.is-editor {
        padding: 10px;
    }

    .editor-styles-wrapper .inxcl-accordion-editor-heading small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inxcl-accordion-item > summary {
        transition: none;
    }
}