/* mw-sidebar 1.0.0 (article sidebar fix, 2026-11-27, agent opus-5.5|claude-code|hr5b7; record site-2027/QA/sidebar/).
   One article sidebar for blog posts, lessons, SEO News items, Google update details and case studies.
   Blog posts at 1100 px and up: one sticky column holding the contents panel, then Share, in normal flow; the Ask card
   sits in the article column after the article. The contents list scrolls inside its panel; the column never exceeds
   the viewport and never overlaps another block. Below 1100 px: contents as a closed "On this page" disclosure above
   the article, Share and Ask after it. Entries wrap (no truncation). Radii follow inner = outer minus inset.
   Glass hook for the glass system: .mw-post-toc-details, .mw-post-share, .mw-lesson-aside .mw-post-toc-details. */
:root{--sb-top:7.5rem;--sb-r:2.25rem;--sb-inset:1.125rem}
/* Entries wrap instead of truncating; hover underline only on the text. */
.mw-post-toc-list a{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;text-wrap:pretty}
.mw-post-toc-list a[aria-current="location"]{font-weight:600}
/* Sub entries never expand inside the list (no layout shift while reading); the active section's h3s show in a fixed slot. */
.mw-post-toc-list .mw-post-toc-sub{display:none!important}
.mw-sb-slot{box-sizing:border-box;height:9.5rem;overflow:hidden;margin-top:.75rem;padding-top:.625rem;border-top:1px solid var(--rd-rule,rgba(31,32,27,.12))}
.mw-sb-slot[hidden]{display:block!important;visibility:hidden}
.mw-sb-slot-label{margin:0 0 .25rem;font-size:.75rem;font-weight:600;letter-spacing:.02em;color:var(--rd-ink-2,#5c5d55)}
.mw-sb-slot ul{margin:0;padding:0;list-style:none}
.mw-sb-slot a{display:block;padding:.1875rem 0 .1875rem .625rem;font-size:.78125rem;line-height:1.35;color:var(--rd-ink-2,#5c5d55);text-decoration:none;white-space:normal;text-wrap:pretty}
.mw-sb-slot a[aria-current]{color:var(--rd-ink,#1f201b);font-weight:600}
.mw-sb-slot a:hover{color:var(--rd-ink,#1f201b)}
/* Share: the copy-link status stays for screen readers but takes no visible space. */
.mw-post-share-status{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0}
.mw-post-share{position:relative}
/* Space for the slot is reserved by CSS before the script runs, so inserting it moves nothing. */
.mw-post-toc:has(.mw-post-toc-sub li):not(.mw-sb-has-slot) .mw-post-toc-details{padding-bottom:calc(9.5rem + .75rem)}
@media (min-width:1100px){
  .mw-post-article .mw-post-grid{grid-template-rows:auto auto auto auto;grid-template-areas:"rail article" "rail ask" "rail author" "rail pn"}
  .mw-post-article .mw-post-grid [data-momentic-ask-invite]{grid-area:ask;margin-top:2rem}
  .mw-post-article .mw-post-rail{top:var(--sb-top);max-height:calc(100dvh - var(--sb-top) - 1rem);overflow:visible!important;display:flex;flex-direction:column;gap:1rem;padding-right:0}
  .mw-post-article .mw-post-rail .mw-post-toc{flex:0 1 auto;min-height:0;display:flex;flex-direction:column}
  .mw-post-article .mw-post-rail .mw-post-toc{overflow:hidden}
  .mw-post-article .mw-post-rail .mw-post-toc-details{min-height:0;padding:0;background:none;border:0;border-radius:0}
  .mw-post-article .mw-post-rail .mw-post-toc-summary{flex:none}
  .mw-post-article .mw-post-rail .mw-post-toc-list{max-height:calc(100dvh - 24rem);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .mw-post-article .mw-post-rail .mw-post-toc-list.mw-sb-fade-b{-webkit-mask-image:linear-gradient(#000 calc(100% - 2rem),transparent);mask-image:linear-gradient(#000 calc(100% - 2rem),transparent)}
  .mw-post-article .mw-post-rail .mw-post-toc-list.mw-sb-fade-t{-webkit-mask-image:linear-gradient(transparent,#000 2rem);mask-image:linear-gradient(transparent,#000 2rem)}
  .mw-post-article .mw-post-rail .mw-post-toc-list.mw-sb-fade-t.mw-sb-fade-b{-webkit-mask-image:linear-gradient(transparent,#000 2rem,#000 calc(100% - 2rem),transparent);mask-image:linear-gradient(transparent,#000 2rem,#000 calc(100% - 2rem),transparent)}
  .mw-post-article .mw-post-rail .mw-post-share{flex:none;margin-top:0;padding:1.125rem;border:0;border-radius:2.25rem;background:rgba(255,255,255,.84);-webkit-backdrop-filter:blur(18px) saturate(1.8) brightness(1.08);backdrop-filter:blur(18px) saturate(1.8) brightness(1.08);box-shadow:inset 1px 1px 0 rgba(255,255,255,.9)}
  .mw-post-article .mw-post-rail .mw-post-toc-top{display:none}
  /* Lessons: the aside holds the contents only; same panel rules. */
  .mw-lesson-aside{max-height:calc(100dvh - var(--sb-top) - 1rem)!important;overflow:visible!important;display:flex;flex-direction:column}
  .mw-lesson-aside .mw-post-toc,.mw-lesson-aside .mw-post-toc-details{min-height:0;display:flex;flex-direction:column}
  .mw-lesson-aside .mw-post-toc-list{max-height:calc(100dvh - 16rem);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
}
/* Below 1100 px: one column; contents become a closed disclosure above the article; Share and Ask follow the article. */
@media (max-width:1099px){
  .mw-post-article .mw-post-grid{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"toc" "article" "share" "ask" "author" "pn"!important;column-gap:0!important;row-gap:1.25rem}
  .mw-post-article .mw-post-rail{display:contents!important}
  .mw-post-article .mw-post-rail .mw-post-toc{grid-area:toc;position:static}
  .mw-post-article .mw-post-rail .mw-post-share{grid-area:share;margin:2rem 0 0;padding-top:1.25rem;border-top:1px solid var(--_website---border-subtle,rgba(31,32,27,.12))}
  .mw-post-article .mw-post-grid [data-momentic-ask-invite]{grid-area:ask}
  .mw-post-article .mw-post-toc-details{background:rgba(255,255,255,.84);-webkit-backdrop-filter:blur(18px) saturate(1.8) brightness(1.08);backdrop-filter:blur(18px) saturate(1.8) brightness(1.08);border:0;box-shadow:inset 1px 1px 0 rgba(255,255,255,.9),0 0 0 1px rgba(31,32,27,.08);border-radius:1.5rem;padding:0 var(--sb-inset)}
  .mw-post-article .mw-post-rail .mw-post-toc{background:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
  .mw-post-article .mw-post-toc-summary{display:flex!important;align-items:center;justify-content:space-between;min-height:3rem;cursor:pointer;pointer-events:auto!important}
  .mw-post-article .mw-post-toc-top{display:none}
  .mw-post-toc:has(.mw-post-toc-sub li):not(.mw-sb-has-slot) .mw-post-toc-details{padding-bottom:0}
  .mw-post-toc .mw-sb-slot,.mw-post-toc .mw-sb-slot[hidden]{display:none!important}
}
/* Google update details: the sticky side column never runs past the viewport; it scrolls inside itself. */
@media (min-width:992px){
  .mw-gud-columns>aside{max-height:calc(100dvh - 6.5rem - 1rem);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.mw-post-article .mw-post-rail .mw-post-share,.mw-post-article .mw-post-toc-details{background:#fff}}
