/* SALUGIA Original TOC 1.0.6 — scoped to posts and custom post types. */
body.single #ez-toc-container {
  --sg-toc-accent: #d5d5d5;
  --sg-toc-ink: #303030;
  --sg-toc-muted: #686868;
  --sg-toc-line: #e2e2e2;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  margin: 36px 0;
  padding: 24px 28px 18px;
  float: none;
  clear: both;
  display: block;
  border: 1px solid var(--sg-toc-line);
  border-top: 4px solid var(--sg-toc-accent);
  border-radius: 0;
  background: #fafafa;
  box-shadow: 0 8px 28px rgb(0 0 0 / 3%);
  color: var(--sg-toc-ink);
  font-family: inherit;
  font-size: 16px;
  text-align: left;
}
body.single #ez-toc-container *,
body.single #ez-toc-container *::before,
body.single #ez-toc-container *::after { box-sizing: border-box; }
body.single #ez-toc-container .ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--sg-toc-line);
}
body.single #ez-toc-container .ez-toc-title {
  display: block;
  color: var(--sg-toc-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
}
body.single #ez-toc-container .ez-toc-title::before {
  content: "CONTENTS";
  display: block;
  margin-bottom: 3px;
  color: var(--sg-toc-muted);
  font: 600 11px/1.5 system-ui, sans-serif;
  letter-spacing: .18em;
}
body.single #ez-toc-container .ez-toc-title-toggle { flex-shrink: 0; }
body.single #ez-toc-container a.ez-toc-toggle,
body.single #ez-toc-container button.sg-toc-control {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--sg-toc-line);
  border-radius: 0;
  background: #f2f2f2;
  box-shadow: none;
  color: var(--sg-toc-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}
body.single #ez-toc-container ul,
body.single #ez-toc-container li {
  list-style: none;
  padding: 0;
  margin: 0;
  background: none;
  overflow: visible;
  line-height: 1.7;
}
body.single #ez-toc-container nav > ul { counter-reset: sg-toc; columns: auto; }
body.single #ez-toc-container nav > ul > li {
  position: relative;
  counter-increment: sg-toc;
  border-bottom: 1px solid #e9e9e9;
}
body.single #ez-toc-container nav > ul > li:last-child { border-bottom: 0; }
body.single #ez-toc-container a.ez-toc-link {
  position: relative;
  display: block;
  min-height: 48px;
  padding: 12px 10px 12px 42px;
  color: var(--sg-toc-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  border: 0;
  border-radius: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
}
body.single #ez-toc-container nav > ul > li > a.ez-toc-link::before {
  content: counter(sg-toc, decimal-leading-zero);
  position: absolute;
  inset: 13px auto auto 4px;
  width: 28px;
  margin: 0;
  color: var(--sg-toc-muted);
  font: 600 13px/1.9 system-ui, sans-serif;
  letter-spacing: .03em;
}
body.single #ez-toc-container li.sg-toc-group > a { padding-right: 56px; }
body.single #ez-toc-container button.sg-toc-branch {
  position: absolute;
  right: 0;
  top: 4px;
  width: 44px;
  padding: 8px 6px;
  font-size: 20px;
}
body.single #ez-toc-container ul ul {
  margin: 0 0 12px 17px;
  padding: 4px 0 4px 14px;
  border-left: 2px solid #dedede;
  counter-reset: sg-toc-child;
}
body.single #ez-toc-container ul ul > li { counter-increment: sg-toc-child; }
body.single #ez-toc-container ul ul a.ez-toc-link {
  padding: 9px 10px 9px 32px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 400;
  color: #4b4b4b;
}
body.single #ez-toc-container ul ul a.ez-toc-link::before {
  content: counter(sg-toc-child) ".";
  position: absolute;
  top: 9px;
  left: 2px;
  width: 24px;
  margin: 0;
  color: var(--sg-toc-muted);
  font: 500 13px/1.96 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
body.single #ez-toc-container a.ez-toc-link:visited { color: var(--sg-toc-ink); }
body.single #ez-toc-container a.ez-toc-link:hover,
body.single #ez-toc-container button.sg-toc-control:hover,
body.single #ez-toc-container a.ez-toc-toggle:hover { background: #eaeaea; color: #303030; }
body.single #ez-toc-container a:focus-visible,
body.single #ez-toc-container button:focus-visible {
  outline: 2px solid var(--sg-toc-muted);
  outline-offset: 2px;
  background: #eaeaea;
}
body.single #ez-toc-container [hidden] { display: none !important; }
body.single .ez-toc-section { scroll-margin-top: 110px; }
@media (max-width: 600px) {
  body.single #ez-toc-container { padding: 18px 16px 12px; margin: 28px 0; border-radius: 0; }
  body.single #ez-toc-container .ez-toc-title { font-size: 18px; }
  body.single #ez-toc-container a.ez-toc-link { padding-left: 28px; font-size: 15px; }
  body.single #ez-toc-container li.sg-toc-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    column-gap: 4px;
  }
  body.single #ez-toc-container li.sg-toc-group > a { grid-column: 1; grid-row: 1; padding-right: 4px; min-width: 0; }
  body.single #ez-toc-container button.sg-toc-branch {
    position: static;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    width: 44px;
    height: 44px;
    margin: 4px 0 0;
    padding: 6px;
    font-size: 18px;
  }
  body.single #ez-toc-container li.sg-toc-group > ul { grid-column: 1 / -1; }
  body.single #ez-toc-container nav > ul > li > a.ez-toc-link::before { width: 22px; left: 0; }

  body.single #ez-toc-container ul ul { margin-left: 12px; padding-left: 10px; }
  body.single #ez-toc-container ul ul a.ez-toc-link { padding-left: 32px; }
}
@media (max-width: 360px) {
  body.single #ez-toc-container { padding-inline: 12px; }
  body.single #ez-toc-container nav > ul > li > a.ez-toc-link { font-size: 14px; padding-left: 25px; }
}
@media print {
  body.single #ez-toc-container { box-shadow: none; }
  body.single #ez-toc-container .sg-toc-control,
  body.single #ez-toc-container .ez-toc-title-toggle { display: none !important; }
  body.single #ez-toc-container nav > ul,
  body.single #ez-toc-container ul[hidden] { display: block !important; }
}
