/* Scoped to the inspected Aiero single-post layout. */
body.obsium-smart-sidebar-enabled > .body-container { overflow: clip; }
.oscta-bundle { margin: 0 0 32px; }
.obsium-article-bundle > .oscta-bundle--theme { margin-bottom: 0; }
.oscta-card, .oscta-toc { box-sizing: border-box; font-family: Inter, Arial, sans-serif; }
.oscta-card { padding: 24px; border-radius: 20px; background: linear-gradient(135deg, #1f57ea 0%, #5735cc 100%); color: #fff; border: 1px solid #5735cc; border-top: 4px solid #ff0888; margin: 24px 0 0; }
.oscta-card .oscta-eyebrow { display: block; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .13em; line-height: 1.5; margin-bottom: 12px; }
body .oscta-card h2, body .content-wrapper .oscta-card h2:not(:first-child) { color: #fff; font-size: 23px; line-height: 1.25; font-weight: 600; letter-spacing: -.6px; margin: 0 0 12px; }
body .oscta-card p { color: #fff; font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
body .oscta-card a.oscta-button { box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 10px; background: #fff; color: #5735cc; font-size: 16px; font-weight: 700; line-height: 1.45; text-decoration: none; }
body .oscta-card a.oscta-button:hover { background: #fff; color: #5735cc; }
.oscta-card .oscta-button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.oscta-card .oscta-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.oscta-button span { flex: 0 0 auto; font-size: 20px; }
.oscta-toc { margin: 0; border: 1px solid #dbd8e8; border-radius: 20px; background: #fff; box-shadow: 0 8px 30px #28204b08; color: #20202e; overflow: hidden; }
.oscta-toc summary { display: block; cursor: pointer; list-style: none; padding: 18px 20px 16px; background: #f4f2fb; position: relative; }
.oscta-toc summary::-webkit-details-marker { display: none; }
.oscta-toc summary::after { content: '+'; position: absolute; right: 20px; top: 18px; font-size: 22px; line-height: 1; color: #625985; }
.oscta-toc[open] summary::after { content: '−'; }
.oscta-toc__title { display: block; padding-right: 24px; font-size: 16px; font-weight: 750; line-height: 1.5; letter-spacing: -.25px; }
.oscta-toc__current { display: block; color: #5b379c; font-size: 12px; font-weight: 500; line-height: 1.5; margin-top: 5px; padding-right: 12px; }
.oscta-toc__progress { display: block; height: 3px; background: linear-gradient(90deg,#3666eb,#8245bd,#bc3186); width: var(--oscta-progress,0%); }
.oscta-toc nav { box-sizing: border-box; max-height: min(240px,28vh); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c3b9dd transparent; padding: 12px; }
body .oscta-toc ul { list-style: none; margin: 0; padding: 0; }
body .oscta-toc li { list-style: none; margin: 0; padding: 0; }
body .oscta-toc li::before, body .oscta-toc li::after { display: none; }
body .oscta-toc a { display: flex; gap: 8px; align-items: baseline; padding: 10px 12px; margin: 2px 0; border-radius: 8px; color: #4e4d60; text-decoration: none; font-size: 13px; line-height: 1.5; position: relative; overflow-wrap: anywhere; }
body .oscta-toc a:hover { background: #f6f4fc; color: #512c91; }
body .oscta-toc a[aria-current="location"] { background: #eee8fa; color: #512c91; font-weight: 700; }
.oscta-toc a[aria-current="location"]::before { content: ''; display: block; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: #7543bd; }
body .oscta-toc ul ul { border-left: 1px solid #ded8ee; margin: 6px 0 12px 12px; padding-left: 8px; }
.oscta-toc__number { display: inline-flex; flex-shrink: 0; min-width: 22px; min-height: 24px; align-items: center; justify-content: center; border-radius: 5px; background: #f3f1f8; color: #756a89; font-size: 10px; font-variant-numeric: tabular-nums; }
.oscta-toc__count { margin-left: auto; font-size: 10px; padding: 0 5px; border: 1px solid #ded8ee; border-radius: 5px; color: #756a89; }
.oscta-toc :focus-visible, .oscta-card :focus-visible { outline: 2px solid #6c43c0; outline-offset: -2px; }
body.obsium-smart-sidebar-enabled .post-content :is(h2,h3) { scroll-margin-top: calc(var(--oscta-offset,120px) + 16px); }
@media (min-width:992px) {
  body.obsium-smart-sidebar-enabled .content-wrapper-sidebar-position-right > .sidebar { position: sticky; top: var(--oscta-offset,120px); align-self: flex-start; max-height: calc(100vh - var(--oscta-offset,120px) - 20px); max-height: calc(100dvh - var(--oscta-offset,120px) - 20px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #c3b9dd transparent; padding-bottom: 4px; }
  body.obsium-smart-sidebar-enabled .sidebar:focus-visible { outline: 2px solid #6c43c0; outline-offset: 4px; }
}
@media (max-width:991px) {
  body.obsium-smart-sidebar-enabled .content-wrapper-sidebar-position-right > .sidebar { position: static; inset: auto; opacity: 1; transform: none; transition: none; visibility: visible; width: auto; max-width: none; margin: 36px 20px 0 !important; padding: 0; max-height: none; overflow: visible; background: transparent; box-shadow: none; z-index: auto; }
  body.obsium-smart-sidebar-enabled .content-wrapper-sidebar-position-right > .simple-sidebar-trigger,
  body.obsium-smart-sidebar-enabled .content-wrapper-sidebar-position-right > .sidebar > .shop-hidden-sidebar-close { display: none !important; }
  .oscta-toc--mobile { margin: 24px 0; }
  .oscta-toc nav { max-height: 360px; }
  .oscta-card { max-width: 560px; }
}
@media print {
  body.obsium-smart-sidebar-enabled .sidebar, .oscta-toc { display: none !important; }
  body.obsium-smart-sidebar-enabled .content-wrapper > .content { width: 100%; max-width: none; }
}

/* Compact blog navigation leaves more room for the contextual service CTA. */
body.single-post .content-wrapper-sidebar-position-right > .sidebar .widget_search { display: none; }
body.single-post .sidebar .obsium-article-bundle { margin-top: 0; }
body.single-post .sidebar .oscta-card { margin-top: 18px; }
body .obsium-article-toc__count, body .oscta-toc__count { flex-shrink: 0; white-space: nowrap; }
@media (min-width: 992px) {
  body.single-post .sidebar .obsium-article-toc nav,
  body.single-post .sidebar .oscta-toc nav { max-height: min(220px, 24vh); }
}
