/* Sepo Bridge — share buttons and contents box. Flat, and drawn from the text colour so it reads on light and dark themes. */
.sepo-share {
  --sepo-share-gap: 8px;
  --sepo-share-h: 38px;
  --sepo-share-line: color-mix(in srgb, currentColor 20%, transparent);
  --sepo-share-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 10px 14px;
  margin: 2em 0 !important; padding: 0 !important; clear: both;
  font: 400 14px/1.2 var(--sepo-share-font); text-indent: 0; text-align: left; letter-spacing: normal; text-transform: none;
}
.sepo-share__label { flex: none; display: flex; align-items: center; height: var(--sepo-share-h); margin: 0 !important; color: inherit; opacity: .72; font: 700 12px/1 var(--sepo-share-font); letter-spacing: .08em; text-transform: uppercase; }
.sepo-share__list { flex: 1; min-width: 0; display: flex !important; flex-wrap: wrap; align-items: center !important; gap: var(--sepo-share-gap); margin: 0 !important; padding: 0 !important; list-style: none !important; }
.sepo-share__list > li { display: flex !important; align-items: center; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; line-height: 1 !important; list-style: none !important; text-indent: 0 !important; }
.sepo-share__list > li::before, .sepo-share__list > li::marker { content: none !important; display: none !important; }
/* Each button is set in full so themes and reading layouts cannot stretch or restyle it. */
.sepo-share .sepo-share__btn {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: auto; height: var(--sepo-share-h); min-height: 0; max-height: none; margin: 0; padding: 0 15px;
  border: 1px solid var(--sepo-share-c, #3c434a); border-radius: 999px;
  background: var(--sepo-share-c, #3c434a); box-shadow: none; color: #fff !important;
  font: 600 13.5px/1 var(--sepo-share-font); letter-spacing: normal; text-transform: none; text-indent: 0; text-decoration: none !important; text-shadow: none;
  white-space: nowrap; vertical-align: middle; cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: background-color .15s, border-color .15s, color .15s, filter .15s;
}
.sepo-share .sepo-share__btn > span { display: inline; margin: 0; padding: 0; font: inherit; line-height: 1; }
.sepo-share .sepo-share__btn:hover { filter: brightness(1.12); }
.sepo-share .sepo-share__btn:focus-visible { outline: 3px solid var(--sd-focus, #2271b1); outline-offset: 2px; }
.sepo-share__icon { flex: none; width: 15px; height: 15px; }
/* Outline: quiet buttons in the text colour, with a dot in each network's colour. */
.sepo-share--outline .sepo-share__btn { background: transparent; border-color: var(--sepo-share-line); color: inherit !important; }
.sepo-share--outline .sepo-share__btn:not(:has(.sepo-share__icon))::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sepo-share-c, currentColor); }
.sepo-share--outline .sepo-share__btn--x::before { background: currentColor !important; }
.sepo-share--filled .sepo-share__btn--x { border-color: var(--sepo-share-line); }
.sepo-share--outline .sepo-share__btn:hover { filter: none; border-color: color-mix(in srgb, var(--sepo-share-c, currentColor) 55%, transparent); background: color-mix(in srgb, var(--sepo-share-c, currentColor) 9%, transparent); }
.sepo-share__status { font: 600 13px/1.3 var(--sepo-share-font); }
.sepo-share__status:empty { display: none; }
.sepo-share [hidden] { display: none !important; }
@media (max-width: 480px) {
  .sepo-share { flex-direction: column; gap: 8px; }
  .sepo-share__label { height: auto; }
}
@media (prefers-reduced-motion: reduce) { .sepo-share .sepo-share__btn { transition: none; } }

.sepo-toc { --sepo-toc-line: color-mix(in srgb, currentColor 18%, transparent); box-sizing: border-box; width: 100%; margin: 0 0 1.5em; padding: 14px 18px; border: 1px solid var(--sepo-toc-line); border-radius: 10px; background: color-mix(in srgb, currentColor 4%, transparent); font-size: 15px; line-height: 1.45; }
.sepo-toc__title { cursor: pointer; font-weight: 700; font-size: 1.05em; list-style-position: inside; }
.sepo-toc__title:focus-visible { outline: 3px solid var(--sd-focus, #2271b1); outline-offset: 3px; border-radius: 4px; }
.sepo-toc[open] .sepo-toc__title { margin-bottom: 8px; }
.sepo-toc__list { margin: 0 !important; padding: 0 0 0 1.25em !important; }
.sepo-toc__list .sepo-toc__list { margin-top: 4px !important; }
.sepo-toc__list li { margin: 0 0 5px !important; padding: 0 !important; }
.sepo-toc__list a { text-decoration: none; color: inherit; border-bottom: 1px solid transparent; }
.sepo-toc__list a:hover, .sepo-toc__list a:focus-visible { border-bottom-color: currentColor; }
.sepo-toc__list a.is-current { font-weight: 700; color: var(--sd-accent, inherit); }
@media (min-width: 782px) {
  .sepo-toc--left, .sepo-toc--right { width: 280px; max-width: 42%; }
  .sepo-toc--left { float: left; margin: 0.3em 2em 1.2em 0; }
  .sepo-toc--right { float: right; margin: 0.3em 0 1.2em 2em; }
}
:where(.entry-content, .wp-block-post-content, .post-content) :is(h2, h3, h4)[id] { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html:has(.sepo-toc) { scroll-behavior: smooth; } }
