body {
   --base-background-color: #ffffff;
   --document-background-color: var(--base-background-color);
 }

.document-wrapper {
  /* Constants used to transform theme values to CSS */
  --transform-line-height-factor: 1.17;

  /* From template */
  --base-text-color: #444444;
  --base-text-secondary-color: #888888;
  --base-text-tertiary-color: #d9d9d9;
  --base-background-color: #ffffff;
  --base-background-secondary-color: #F3F5F7;
  --base-background-tertiary-color: #E4E5E6;
  --base-stroke-color: #d9d9d9;
  --base-stroke-secondary-color: #d9d9d9;
  --base-accent-color: #DD4C4F;
  --base-highlight-color: ;

  --document-background-color: var(--base-background-color);
  --document-text-color: var(--base-text-color);
  --document-text-secondary-color: var(--base-text-secondary-color);
  --document-text-light-color: var(--base-text-secondary-color);
  --document-accent-color: var(--base-accent-color);
  --document-cursor-color: var(--base-accent-color);
  --document-link-color: var(--base-accent-color);
  --document-list-marker-color: var(--base-accent-color);
  --document-marker-color: var(--base-text-tertiary-color);
  --document-selection-color: var(--base-selection-color);
  --document-selection-inactive-color: var(--base-background-tertiary-color);
  --document-text-font: "AvenirNext-Regular";
  --document-text-size: 15px;
  --document-line-height-multiplier: calc(
    1.5 * var(--transform-line-height-factor)
  );

  --document-headers-text-color: var(--base-text-color);
  --document-headers-font: "AvenirNext-Medium";
  --document-headers-modular-scale: 1.125;
  --document-headers-line-height-multiplier: calc(
    1.3 * var(--transform-line-height-factor)
  );
  --document-headers-add-top-bottom-padding: 1;
  --document-headers-padding-top-multiplier: 0.5;
  --document-headers-padding-bottom-multiplier: 0.3;

  --document-code-text-color: var(--base-text-color);
  --document-code-border-color: var(--base-text-tertiary-color);
  --document-code-background-color: var(--base-background-secondary-color);
  --document-code-font: "Menlo-Regular";
  --document-code-text-size-multiplier: 0.91em;

  --document-code-syntax-highlight-comment: #65798c;
  --document-code-syntax-highlight-constant: #0095c9;
  --document-code-syntax-highlight-number: #0095c9;
  --document-code-syntax-highlight-string: #d12f1b;
  --document-code-syntax-highlight-entity: #4a838b;
  --document-code-syntax-highlight-keyword: #ad3da4;
  --document-code-syntax-highlight-function: #4a838b;
  --document-code-syntax-highlight-variable: #4a838b;

  --document-task-background-color: var(--base-background-color);
  --document-task-border-color: var(--base-text-secondary-color);
  --document-task-check-color: var(--base-text-color);

  --document-tag-background-color: var(--base-background-tertiary-color);
  --document-tag-text-color: var(--base-text-color);
  --document-tag-marker-color: var(--base-text-secondary-color);

  --document-highlighter-background-color: #CDF7BD;
  --document-highlighter-text-color: #102D05;

  --document-highlighter-red-background-color: #FFD5D5;
  --document-highlighter-red-text-color: #321A00;

  --document-highlighter-blue-background-color: #C9E5FF;
  --document-highlighter-blue-text-color: #001A32;

  --document-highlighter-green-background-color: #CDF7BD;
  --document-highlighter-green-text-color: #102D05;

  --document-highlighter-purple-background-color: #FEDAFF;
  --document-highlighter-purple-text-color: #310032;

  --document-highlighter-yellow-background-color: #FCF195;
  --document-highlighter-yellow-text-color: #312C01;
  
  --document-file-fold-color: var(--base-background-tertiary-color);
  --document-file-background-color: var(--base-background-secondary-color);

  --document-separator-border-color: var(--base-stroke-secondary-color);

  --document-table-border-color: var(--base-stroke-secondary-color);
  --document-table-cell-background-color: var(--base-background-color);
  --document-table-cell-alternate-background-color: var(
    --base-background-secondary-color
  );
  
  /* Callouts */
  --document-md-indentation: 32px;
  --nested-block-marker-skew: -5px;
  /* Blue */
  --document-callout-note-background-color: hsla(209, 100%, 89%, 0.15);
  --document-callout-note-border-color: hsla(209, 80%, 35%, 0.1);
  --document-callout-note-bar-color: hsla(209, 80%, 35%, 0.8);
  
  /* Green */
  --document-callout-tip-background-color: hsla(103, 78%, 85%, 0.15);
  --document-callout-tip-border-color: hsla(103, 80%, 35%, 0.1);
  --document-callout-tip-bar-color: hsla(103, 80%, 35%, 0.8);
  
  /* Purple */
  --document-callout-important-background-color: hsla(298, 100%, 93%, 0.15);
  --document-callout-important-border-color: hsla(298, 80%, 35%, 0.07);
  --document-callout-important-bar-color: hsla(298, 80%, 35%, 0.8);
  
  /* Yellow */
  --document-callout-warning-background-color: hsla(54, 94%, 79%, 0.15);
  --document-callout-warning-border-color: hsla(45, 94%, 50%, 0.15);
  --document-callout-warning-bar-color: hsla(45, 94%, 50%, 1);
  
  /* Red */
  --document-callout-caution-background-color: hsla(31, 98%, 81%, 0.15);
  --document-callout-caution-border-color: hsla(31, 98%, 50%, 0.1);
  --document-callout-caution-bar-color: hsla(31, 98%, 50%, 1);
}

.document-wrapper,body{background-color:var(--document-background-color)}.document-wrapper h1.setext,.document-wrapper h2.setext{border-bottom:calc(2 * var(--document-hairline-width)) solid var(--document-separator-border-color);padding-bottom:.6em}.document-wrapper blockquote blockquote blockquote blockquote blockquote::before,.document-wrapper blockquote blockquote blockquote::before,.document-wrapper blockquote::before{background-color:var(--document-list-marker-color)}.document-wrapper td[data-alignment="1"],.document-wrapper th{text-align:left}.document-wrapper :after,.document-wrapper a,.document-wrapper abbr,.document-wrapper acronym,.document-wrapper address,.document-wrapper applet,.document-wrapper article,.document-wrapper aside,.document-wrapper audio,.document-wrapper b,.document-wrapper big,.document-wrapper blockquote,.document-wrapper canvas,.document-wrapper caption,.document-wrapper center,.document-wrapper cite,.document-wrapper code,.document-wrapper dd,.document-wrapper del,.document-wrapper details,.document-wrapper dfn,.document-wrapper div,.document-wrapper dl,.document-wrapper dt,.document-wrapper em,.document-wrapper embed,.document-wrapper fieldset,.document-wrapper figcaption,.document-wrapper figure,.document-wrapper footer,.document-wrapper form,.document-wrapper h1,.document-wrapper h2,.document-wrapper h3,.document-wrapper h4,.document-wrapper h5,.document-wrapper h6,.document-wrapper header,.document-wrapper hgroup,.document-wrapper i,.document-wrapper iframe,.document-wrapper ins,.document-wrapper kbd,.document-wrapper label,.document-wrapper legend,.document-wrapper li,.document-wrapper mark,.document-wrapper menu,.document-wrapper nav,.document-wrapper object,.document-wrapper ol,.document-wrapper output,.document-wrapper p,.document-wrapper pre,.document-wrapper q,.document-wrapper ruby,.document-wrapper s,.document-wrapper samp,.document-wrapper section,.document-wrapper small,.document-wrapper span,.document-wrapper strike,.document-wrapper strong,.document-wrapper summary,.document-wrapper table,.document-wrapper tbody,.document-wrapper td,.document-wrapper tfoot,.document-wrapper th,.document-wrapper thead,.document-wrapper time,.document-wrapper tr,.document-wrapper tt,.document-wrapper u,.document-wrapper ul,.document-wrapper var,.document-wrapper video{all:unset}.document-wrapper{--document-inline-padding-top-bottom:0.25em;--document-inline-padding-left-right:0.25em;--header-1-font-size:2em;--header-2-font-size:1.6em;--header-3-font-size:1.27em;--document-hairline-width:calc(var(--document-text-size) / 15);box-sizing:border-box;color:var(--document-text-color);font-family:var(--document-text-font);font-size:var(--document-text-size);line-height:var(--document-line-height-multiplier);min-height:100%;max-width:48em;width:100%;tab-size:4;margin:0 auto;padding:0 2em}body{text-rendering:optimizeLegibility}.document-wrapper:focus-visible{outline:0}.document-wrapper .marker{color:var(--document-marker-color);display:none}.document-wrapper [data-direction="2"]{direction:rtl}.document-wrapper div.footnote,.document-wrapper div.link-definition,.document-wrapper p{display:block}.document-wrapper p.blank-line::before{content:" "}.document-wrapper h1,.document-wrapper h2,.document-wrapper h3,.document-wrapper h4,.document-wrapper h5,.document-wrapper h6{font-family:var(--document-headers-font);display:block;line-height:var(--document-headers-line-height-multiplier)}.document-wrapper h1{font-size:var(--header-1-font-size);padding-block-start:0.8em;padding-block-end:0.33em}.document-wrapper h2{font-size:var(--header-2-font-size);padding-block-start:0.66em;padding-block-end:0.27em}.document-wrapper h3{font-size:var(--header-3-font-size);padding-block-start:0.53em;padding-block-end:0.27em}.document-wrapper code,.document-wrapper pre{font-size:var(--document-code-text-size-multiplier);font-family:var(--document-code-font),monospace}.document-wrapper h4,.document-wrapper h5,.document-wrapper h6{padding-block-start:0.4em;padding-block-end:0.27em}.document-wrapper h1.setext{margin-bottom:.45em}.document-wrapper h2.setext{margin-bottom:.2em}.document-wrapper .fenced-code *,.document-wrapper .fenced-code-content .marker,.document-wrapper .fenced-code-content .space,.document-wrapper .hard-linebreak-marker,.document-wrapper .image .space,.document-wrapper .image-destination,.document-wrapper .image-label,.document-wrapper .image-title,.document-wrapper .indented-code .space,.document-wrapper .link .space,.document-wrapper .link-destination,.document-wrapper .link-label,.document-wrapper .link-title,.document-wrapper .replace .text,.document-wrapper .setext-heading-marker+.line-ending,.document-wrapper .yaml-marker+.line-ending,.document-wrapper li>p>.space:first-child,.document-wrapper tr.delimiter-row{display:none}.document-wrapper ol,.document-wrapper ul{display:block;padding-inline-start:2.13em}.document-wrapper li{display:list-item;color:var(--document-text-color)}.document-wrapper .color-marker,.document-wrapper .entity-marker,.document-wrapper .fenced-code-content,.document-wrapper .fenced-code-content *,.document-wrapper .footnote-separator,.document-wrapper .link-definition-separator,.document-wrapper code.code-inline,.document-wrapper li>p{display:inline}.document-wrapper ul{list-style-type:disc}.document-wrapper li li li li li li li ul,.document-wrapper li li li li li ul,.document-wrapper li li li ul,.document-wrapper li ul{list-style:circle}.document-wrapper li li li li li li ul,.document-wrapper li li li li ul,.document-wrapper li li ul{list-style:disc}.document-wrapper li::marker{color:var(--document-list-marker-color)}.document-wrapper ol{list-style-type:none;counter-reset:custom-list-item calc(var(--data-list-start,1) - 1)}.document-wrapper ol>li{counter-increment:custom-list-item;position:relative}.document-wrapper ol>li::before{content:counter(custom-list-item) ". ";color:var(--document-list-marker-color);position:absolute;transform:translate(calc(-100% - .33em),0)}.document-wrapper ol>li[data-big-number=true]{margin-inline-start:-2.05em}.document-wrapper ol>li[data-big-number=true]::before{position:static;padding-inline-end:0.25em}.document-wrapper ol>li[data-list-type="1"]:before{content:counter(custom-list-item) ") "}.document-wrapper [data-direction="2"] ol>li::before,.document-wrapper ol[data-direction="2"]>li::before{transform:translate(calc(100% + .33em),0)}.document-wrapper li[role=checkbox]{list-style:none;position:relative}.document-wrapper li[aria-checked=true]{color:var(--document-text-secondary-color)}.document-wrapper .todo-checkbox{display:inline-block;margin-left:-1.7em;margin-right:.5em}.document-wrapper .todo-checkbox svg{display:inline-block;margin-bottom:-.3em}.document-wrapper blockquote{display:block;padding-inline-start:2.13em;position:relative}.document-wrapper code,.document-wrapper mark,span.highlighted{padding:var(--document-inline-padding-top-bottom) var(--document-inline-padding-left-right)}.document-wrapper blockquote::before{content:"";position:absolute;top:.2em;left:1em;width:.13em;height:calc(100% - .4em);border:var(--document-hairline-width) solid var(--document-list-marker-color);border-radius:.33em}.document-wrapper code,.document-wrapper pre.fenced-code,.document-wrapper pre.indented-code,.document-wrapper pre.yaml{color:var(--document-code-text-color);background-color:var(--document-code-background-color);border-radius:.25em}.document-wrapper [data-direction="2"] blockquote::before,.document-wrapper blockquote[data-direction="2"]::before{left:0;right:1em}.document-wrapper blockquote blockquote blockquote blockquote blockquote blockquote::before,.document-wrapper blockquote blockquote blockquote blockquote::before,.document-wrapper blockquote blockquote::before{background-color:transparent}.document-wrapper hr{display:block;margin-block-start:calc(var(--document-line-height-multiplier) * 0.5em);margin-block-end:calc(var(--document-line-height-multiplier) * -0.5em);border-top:var(--document-hairline-width) solid var(--document-separator-border-color)}.document-wrapper pre{display:block;white-space:pre-wrap}.document-wrapper pre.indented-code{padding-inline-start:2.13em}.document-wrapper pre.fenced-code,.document-wrapper pre.yaml{padding:0 .5em}.document-wrapper .fenced-code::before{content:"\200B"}.document-wrapper code{font-weight:400;font-style:normal;display:block}.document-wrapper mark code{color:var(--document-text-color);background-color:var(--document-highlighter-background-color)}.document-wrapper em,.document-wrapper i{font-family:AvenirNext-Italic}.document-wrapper b,.document-wrapper strong,.document-wrapper th{font-family:AvenirNext-Bold}.document-wrapper mark,span.highlighted{color:var(--document-highlighter-background-text-color);background-color:var(--document-highlighter-background-color);text-decoration:inherit;unicode-bidi:embed;border-radius:.25em}.document-wrapper mark.red,span.highlighted.red{color:var(--document-highlighter-red-background-text-color);background-color:var(--document-highlighter-red-background-color)}.document-wrapper mark.blue,span.highlighted.blue{color:var(--document-highlighter-blue-background-text-color);background-color:var(--document-highlighter-blue-background-color)}.document-wrapper mark.green,span.highlighted.green{color:var(--document-highlighter-green-background-text-color);background-color:var(--document-highlighter-green-background-color)}.document-wrapper mark.yellow,span.highlighted.yellow{color:var(--document-highlighter-yellow-background-text-color);background-color:var(--document-highlighter-yellow-background-color)}.document-wrapper mark.purple,span.highlighted.purple{color:var(--document-highlighter-purple-background-text-color);background-color:var(--document-highlighter-purple-background-color)}.document-wrapper u{text-decoration:underline;text-decoration-color:var(--document-accent-color);unicode-bidi:embed}.document-wrapper s,.document-wrapper strike{text-decoration:line-through}.document-wrapper a{color:var(--document-link-color);unicode-bidi:embed;cursor:pointer}.document-wrapper a:hover{text-decoration:inherit}.document-wrapper .wiki-separator-marker{display:inline;color:inherit}.document-wrapper .link-definition-title{color:var(--document-text-light-color)}.document-wrapper .footnote-ref{font-size:.9em;vertical-align:super}.document-wrapper span.entity{direction:ltr;unicode-bidi:embed;color:var(--document-code-syntax-highlight-entity)}.document-wrapper span.escape{unicode-bidi:embed}.document-wrapper .color{font-family:var(--document-code-font),monospace;font-size:var(--document-code-text-size-multiplier);padding-inline-start:1.2em;position:relative;direction:ltr;unicode-bidi:embed}.document-wrapper .color::before{content:"";position:absolute;width:.9em;height:.9em;left:0;bottom:0;transform:translateY(-15%);border:var(--document-hairline-width) solid rgb(0,0,0,.3);border-radius:.9em;background-color:var(--data-color)}.document-wrapper .hashtag{color:var(--document-tag-text-color);background-color:var(--document-tag-background-color);border-radius:1em;padding:calc(var(--document-inline-padding-top-bottom) - 2 * var(--document-hairline-width)) calc(var(--document-inline-padding-left-right) + .3em);unicode-bidi:embed}.document-wrapper .hashtag>.marker{display:inline;color:var(--document-tag-marker-color);padding:0}.document-wrapper table{display:block;max-width:fit-content;overflow-x:auto;border-collapse:separate;border-spacing:0;border:var(--document-hairline-width) solid var(--document-table-border-color);border-radius:.33em;margin-bottom:calc(var(--document-line-height-multiplier) * 1em)}.document-wrapper table[data-direction="2"]{margin-left:auto;direction:ltr}.document-wrapper tr{display:table-row;background-color:var(--document-table-cell-background-color)}.document-wrapper tr.header-row,.document-wrapper tr:nth-child(odd){background-color:var(--document-table-cell-alternate-background-color)}.document-wrapper td,.document-wrapper th{box-sizing:border-box;display:table-cell;padding:.37em .75em;min-width:5em;border-right:var(--document-hairline-width) solid var(--document-table-border-color)}.document-wrapper td:last-of-type,.document-wrapper th:last-of-type{border:none}.document-wrapper table[data-direction="2"] td{margin-left:auto}.document-wrapper td[data-alignment="2"]{text-align:right}.document-wrapper td[data-alignment="3"]{text-align:center}.document-wrapper .code_comment{color:var(--document-code-syntax-highlight-comment)}.document-wrapper .code_constant{color:var(--document-code-syntax-highlight-constant)}.document-wrapper .code_number{color:var(--document-code-syntax-highlight-number)}.document-wrapper .code_string{color:var(--document-code-syntax-highlight-string)}.document-wrapper .code_entity{color:var(--document-code-syntax-highlight-entity)}.document-wrapper .code_keyword{color:var(--document-code-syntax-highlight-keyword)}.document-wrapper .code_function{color:var(--document-code-syntax-highlight-function)}.document-wrapper .code_variable{color:var(--document-code-syntax-highlight-variable)}.document-wrapper img{max-width:100%}.document-wrapper .pdf_preview{display:inline-block;width:100%;height:500px;background-color:#fff;overflow:hidden;padding:0;margin:0;position:relative;border-radius:4px}.document-wrapper .arrow svg #body,.document-wrapper .arrow svg #head{fill:var(--base-text-color)}.document-wrapper .todo-checkbox svg #body{stroke:var(--document-task-border-color)}.document-wrapper .todo-checkbox svg #check{fill:var(--document-task-check-color)}.document-wrapper .todo-checkbox.todo-checked svg #body{opacity:.35}.document-wrapper .todo-checkbox.todo-checked svg #check{opacity:.4}.document-wrapper blockquote.md-callout{padding-top:.8em;padding-bottom:.8em;border:1px solid;margin-inline:calc((var(--document-md-indentation) - 4px) * 0.5 + var(--nested-block-marker-skew));border-radius:3px;padding-inline-start:calc(var(--document-md-indentation) - 9px);padding-inline-end:calc(var(--document-md-indentation) - 9px);margin-left:1em}.document-wrapper blockquote.md-callout:before{top:0;left:0;width:.13em;height:calc(100%)}.document-wrapper>.md-callout{margin-inline:calc(var(--md-indentation) + (var(--md-indentation) - 4px) * 0.5 + var(--nested-block-marker-skew))}.document-wrapper .md-callout>.md-callout-head{font-family:var(--document-headers-font)}.document-wrapper .md-callout>.md-callout-head:not(:last-child){margin-bottom:.5em}.document-wrapper .md-callout-head img{vertical-align:baseline;margin-right:.1em}.document-wrapper blockquote.md-callout-note{border-color:var(--document-callout-note-border-color);background-color:var(--document-callout-note-background-color)}.document-wrapper blockquote.md-callout-note:before{border:var(--document-hairline-width) solid var(--document-callout-note-border-color);background-color:var(--document-callout-note-bar-color)}.document-wrapper .md-callout-note>.md-callout-head{color:var(--markdown-view-highlighter-blue-text-color)}.document-wrapper .md-callout-note .md-callout-head>img,.document-wrapper blockquote.md-callout-caution .md-callout-head>img,.document-wrapper blockquote.md-callout-tip .md-callout-head>img,.document-wrapper blockquote.md-callout-warning .md-callout-head>img{margin-bottom:-2px}.document-wrapper blockquote.md-callout-tip{border-color:var(--document-callout-tip-border-color);background-color:var(--document-callout-tip-background-color)}.document-wrapper blockquote.md-callout-tip:before{border:var(--document-hairline-width) solid var(--document-callout-tip-border-color);background-color:var(--document-callout-tip-bar-color)}.document-wrapper blockquote.md-callout-important::before,.document-wrapper blockquote.md-callout-important:before{background-color:var(--document-callout-important-bar-color)}.document-wrapper blockquote.md-callout-tip>.md-callout-head{color:var(--markdown-view-highlighter-green-text-color)}.document-wrapper blockquote.md-callout-important{border-color:var(--document-callout-important-border-color);background-color:var(--document-callout-important-background-color);background-color:var(--document-callout-important-background-color);border-color:var(--document-callout-important-border-color)}.document-wrapper blockquote.md-callout-important:before{border:var(--document-hairline-width) solid var(--document-callout-important-border-color)}.document-wrapper blockquote.md-callout-important>.md-callout-head{color:var(--markdown-view-highlighter-purple-text-color)}.document-wrapper blockquote.md-callout-important .md-callout-head>img{margin-bottom:-4px}.document-wrapper blockquote.md-callout-warning{background-color:var(--document-callout-warning-background-color);border-color:var(--document-callout-warning-border-color)}.document-wrapper blockquote.md-callout-warning::before{background-color:var(--document-callout-warning-bar-color);background-color:var(--document-callout-caution-bar-color)}.document-wrapper blockquote.md-callout-warning>.md-callout-head{color:var(--markdown-view-highlighter-yellow-text-color)}.document-wrapper blockquote.md-callout-caution{background-color:var(--document-callout-caution-background-color);border-color:var(--document-callout-caution-border-color)}.document-wrapper blockquote.md-callout-caution>.md-callout-head{color:var(--markdown-view-highlighter-red-text-color)}

/* TOC CUSTOM STYLES */

    body { display: flex !important; margin: 0 !important; padding: 0 !important; height: 100vh !important; width: 100vw !important; overflow: hidden !important; flex-direction: row !important; background-color: #ffffff; transition: background-color 0.3s ease; }
    #toc-sidebar { width: 350px; min-width: 350px; height: 100%; display: flex; flex-direction: column; background-color: #F3F5F7; border-right: 1px solid #d9d9d9; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 0.85em; z-index: 1000; line-height: 1.4; transition: background-color 0.3s ease, border-color 0.3s ease; }
    .toc-controls { border-bottom: 1px solid #d9d9d9; padding: 1em; display: flex; flex-direction: column; gap: 0.8em; }
    .toc-search-container { position: relative; display: flex; align-items: center; }
    #toc-search { width: 100%; padding: 8px 30px 8px 12px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 1.1em; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
    #toc-search-clear { display: none; position: absolute; right: 8px; background: none; border: none; font-size: 1.2em; color: #888; cursor: pointer; padding: 0 4px; line-height: 1; }
    #toc-search-clear:hover { color: #333; }
    .toc-buttons button { width: 100%; padding: 6px 8px; cursor: pointer; background: #fff; border: 1px solid #ccc; border-radius: 3px; font-size: 0.9em; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
    .toc-buttons button:hover { background: #f0f0f0; }
    .toc-content { flex-grow: 1; overflow-y: auto; padding: 1em 1.5em; }
    .document-wrapper h1 { scroll-margin-top: 20px; }
    .document-wrapper { flex-grow: 1; height: 100%; overflow-y: auto !important; padding: 2em 4em !important; margin: 0 !important; max-width: none !important; box-sizing: border-box; scroll-behavior: smooth; transition: background-color 0.3s ease, color 0.3s ease; position: relative; }
    .toc-list { list-style: none; padding-left: 0.8em; margin: 0.1em 0; }
    .toc-list.level-0 { padding-left: 0; }
    .toc-folder { font-weight: bold; display: list-item; margin-top: 0.8em; color: #111; cursor: pointer; outline: none; user-select: none; transition: color 0.3s ease; }
    .toc-folder::-webkit-details-marker { display: none; }
    .level-0 > .toc-item > details > .toc-folder { text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.05em; border-bottom: 1px solid #e0e0e0; margin-bottom: 0.4em; padding-bottom: 2px; }
    .toc-entries { list-style: none; padding-left: 1em; margin: 0.2em 0; }
    .toc-entry { margin: 0.3em 0; }
    .toc-entry a { text-decoration: none; color: #DD4C4F; display: block; padding: 1px 0; }
    .toc-entry a:hover { text-decoration: underline; }
    details { margin-bottom: 0.5em; }
    summary { list-style: none; position: relative; padding-left: 1.2em; }
    summary::before { content: '▶'; position: absolute; left: 0; top: 0; width: 1em; font-size: 0.8em; color: #888; transition: transform 0.2s, color 0.3s ease; }
    details[open] > summary::before { transform: rotate(90deg); }
    details.non-collapsible > summary { cursor: default; }
    details.non-collapsible > summary::before { content: ''; }
    summary::-webkit-details-marker { display: none; }
    .search-highlight { background-color: #ffeb3b; color: #000; border-radius: 2px; padding: 0 2px; }
    .search-highlight.current { background-color: #ff9800; outline: 2px solid #ef6c00; }

    /* Theme Switcher Toggle */
    #theme-switch-wrapper {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 2000;
        transition: bottom 0.3s ease, top 0.3s ease, right 0.3s ease;
    }
    .theme-switch {
        display: inline-block;
        height: 28px;
        position: relative;
        width: 50px;
    }
    .theme-switch input { display: none; }
    .slider {
        background-color: #ccc;
        bottom: 0;
        cursor: pointer;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        transition: .4s;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 6px;
    }
    .slider:before {
        background-color: #fff;
        bottom: 3px;
        content: "";
        height: 22px;
        left: 3px;
        position: absolute;
        transition: .4s;
        width: 22px;
        z-index: 2;
    }
    .slider.round { border-radius: 34px; }
    .slider.round:before { border-radius: 50%; }
    input:checked + .slider { background-color: #242424; }
    input:checked + .slider:before { transform: translateX(22px); }
    
    .sun-icon, .moon-icon { color: #777; transition: color 0.3s ease; position: relative; z-index: 3; }
    input:checked + .slider .sun-icon { color: #aaa; } /* High contrast inactive sun in dark mode */
    input:not(:checked) + .slider .moon-icon { color: #555; } /* High contrast inactive moon in light mode */
    input:checked + .slider .moon-icon { color: #222; } /* High contrast active moon on white indicator */
    input:not(:checked) + .slider .sun-icon { color: #222; } /* High contrast active sun on white indicator */

    /* Dark Mode Styles */
    body.dark-mode {
        background-color: #1a1a1a !important;
        color: #e0e0e0;
    }
    body.dark-mode #toc-sidebar {
        background-color: #242424;
        border-right-color: #333;
    }
    body.dark-mode .toc-controls { border-bottom-color: #333; }
    body.dark-mode #toc-search { background: #1a1a1a; color: #fff; border-color: #444; }
    body.dark-mode #toc-search-clear { color: #aaa; }
    body.dark-mode #toc-search-clear:hover { color: #fff; }
    body.dark-mode .toc-buttons button { background: #2a2a2a; color: #eee; border-color: #444; }
    body.dark-mode .toc-buttons button:hover { background: #333; }
    body.dark-mode .toc-folder { color: #fff; }
    body.dark-mode .level-0 > .toc-item > details > .toc-folder { border-bottom-color: #333; }
    body.dark-mode summary::before { color: #aaa; }
    
    body.dark-mode .document-wrapper {
        background-color: #1a1a1a !important;
        --base-text-color: #e0e0e0;
        --base-background-color: #1a1a1a;
        --base-background-secondary-color: #242424;
        --base-stroke-color: #333;
        --document-text-color: #e0e0e0;
        --document-headers-text-color: #fff;
        --document-background-color: #1a1a1a;
        --document-code-background-color: #242424;
        --document-code-text-color: #e0e0e0;
        --document-table-cell-background-color: #1a1a1a;
        --document-table-cell-alternate-background-color: #242424;
    }
    
    /* Dark mode hashtags */
    body.dark-mode .hashtag {
        background-color: #333 !important;
        color: #e0e0e0 !important;
        border-color: #444 !important;
    }
    body.dark-mode .hashtag-marker, 
    body.dark-mode .hashtag-separator-marker {
        color: #888 !important;
    }

    /* Mobile Toggle Button */
    #toc-toggle {
        display: none;
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        background-color: #DD4C4F;
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 2000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        align-items: center;
        justify-content: center;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
    }
    
    #toc-toggle .icon {
        width: 24px;
        height: 18px;
        position: relative;
    }
    
    #toc-toggle .icon span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: white;
        border-radius: 3px;
        transition: .25s ease-in-out;
        left: 0;
    }
    
    #toc-toggle .icon span:nth-child(1) { top: 0px; }
    #toc-toggle .icon span:nth-child(2) { top: 7px; }
    #toc-toggle .icon span:nth-child(3) { top: 14px; }
    
    #toc-toggle.open .icon span:nth-child(1) { top: 7px; transform: rotate(135deg); }
    #toc-toggle.open .icon span:nth-child(2) { opacity: 0; left: -60px; }
    #toc-toggle.open .icon span:nth-child(3) { top: 7px; transform: rotate(-135deg); }

    #toc-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    #toc-backdrop.open {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    @media (max-width: 1023px) {
        body { flex-direction: column !important; }
        #toc-sidebar {
            position: fixed;
            left: -350px;
            top: 0;
            bottom: 0;
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 4px 0 15px rgba(0,0,0,0.1);
        }
        #toc-sidebar.open {
            left: 0;
        }
        #toc-toggle {
            display: flex;
        }
        #toc-toggle.open {
            left: 280px; /* Inside the TOC, near right edge (350 - 50 - 20) */
        }
        .document-wrapper {
            padding: 1.5em 1.5em !important;
        }
        #theme-switch-wrapper {
            top: auto;
            bottom: 20px;
            right: 20px;
        }
        .theme-switch {
            height: 50px;
            width: 90px;
        }
        .slider { padding: 0 15px; }
        .slider:before {
            height: 44px;
            width: 44px;
            bottom: 3px;
            left: 3px;
        }
        input:checked + .slider:before {
            transform: translateX(40px);
        }
        .sun-icon, .moon-icon {
            width: 20px;
            height: 20px;
        }
    }
