/* Change these values to match your site. Increase the offset for a sticky header. */
.etoc-layout{--etoc-purple:var(--epd-toc-active);--etoc-light:var(--epd-toc-bg);--etoc-border:var(--epd-toc-border);--etoc-text:var(--epd-toc-link);--etoc-offset:var(--epd-offset);display:block;min-width:0;max-width:100%}
.etoc-layout>.entry-content{min-width:0;max-width:100%;margin-top:0}
.etoc-sidebar{min-width:0;margin-bottom:28px}
.etoc-toc{background:var(--etoc-light);border:1px solid var(--etoc-border);border-radius:12px;padding:0 20px;color:var(--etoc-text);font-family:inherit}
.etoc-toc summary{display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;list-style:none;padding:18px 0;font-size:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--etoc-purple)}
.etoc-toc summary::-webkit-details-marker{display:none}
.etoc-toggle{font-size:20px;line-height:1;font-weight:400}
.etoc-toc[open] .etoc-toggle{transform:rotate(45deg)}
.etoc-toc nav{padding-bottom:15px}
.etoc-toc .etoc-list,.etoc-toc .etoc-sublist{list-style:none!important;margin:0!important;padding:0!important}
.etoc-toc .etoc-list li{list-style:none!important;margin:0!important;padding:0!important}
.etoc-toc a{display:flex;gap:10px;text-decoration:none!important;border:0;border-bottom:1px solid var(--etoc-border);padding:10px 0;color:var(--etoc-text);font-size:13px;line-height:1.55;overflow-wrap:anywhere;box-shadow:none!important}
.etoc-number{color:var(--epd-muted);font-size:10px;padding-top:3px;flex-shrink:0;min-width:17px}
.etoc-toc .etoc-sublist{padding-left:27px!important}
.etoc-sublist a{font-size:12px;padding:8px 0;border-bottom:0}
.etoc-toc a:hover,.etoc-toc a[aria-current=location]{color:var(--etoc-purple);font-weight:700}
.etoc-toc a:focus-visible,.etoc-toc summary:focus-visible{outline:2px solid var(--etoc-purple);outline-offset:4px}
.etoc-layout .etoc-heading{scroll-margin-top:var(--etoc-offset)}
.etoc-layout.etoc-wide{display:grid;grid-template-columns:var(--epd-toc-width) minmax(0,1fr);gap:40px;align-items:start}
.etoc-wide>.etoc-sidebar{position:sticky;top:var(--etoc-offset);margin:0;align-self:start}
.etoc-wide .etoc-toc{background:var(--etoc-light);border:0;border-radius:0;padding:0}
.etoc-wide .etoc-toc nav{max-height:calc(100vh - var(--etoc-offset) - 70px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:8px}
.etoc-wide .etoc-toc summary{padding-top:0}
@media(max-width:600px){.etoc-toc{padding:0 16px}.etoc-toc a{font-size:13px}}

/* H2 stays visible; only its H3 subsection list folds. */
.etoc-parent-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--etoc-border)}
.etoc-parent-row>a{flex:1;min-width:0;border-bottom:0}
.etoc-toc .etoc-group-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;margin:0;border:1px solid var(--etoc-border);border-radius:7px;background:var(--epd-background);color:var(--etoc-purple);font:400 20px/1 Arial,sans-serif;cursor:pointer;box-shadow:none}
.etoc-toc .etoc-group-toggle:hover{background:var(--epd-background)}
.etoc-toc .etoc-group-toggle:focus-visible{outline:2px solid var(--etoc-purple);outline-offset:3px}
.etoc-toc .etoc-sublist[hidden]{display:none!important}
