/* Site navigation uses the same local Manrope family on current and legacy pages.
   Important prevents older page-specific font shorthands from reverting menus. */
@import url("../fonts/fonts.css");
@import url("checks.css?v=0274");
:is(.sidebar,.topbar,.guide-topbar,.chapter-nav,.desktop-nav,.menu-toggle,.menu-button),
:is(.sidebar,.topbar,.guide-topbar,.chapter-nav,.desktop-nav) * {
  font-family: Manrope, Arial, sans-serif !important;
}

/* Give sidebar links, logo and reset a more generous shared outer inset. */
.sidebar{padding-left:40px !important}
@media(max-width:980px){.sidebar{padding-left:32px !important}}
@media(max-width:760px){.sidebar{padding-left:36px !important}}

/* Unlabelled outline controls; accessible names and native tooltips remain. */
.sidebar .sticker-controls{display:flex;align-items:center;gap:4px}
.sidebar .sticker-controls .sticker-control{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:11px;border:0;border-radius:var(--radius-m);background:transparent;color:var(--muted);cursor:pointer;line-height:1}
.sidebar .sticker-controls .sticker-control:hover{color:var(--accent);background:var(--soft)}
.sidebar .sticker-controls .sticker-control:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sticker-control svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sticker-control .sticker-slash{display:none}
.stickers-hidden .sticker-control .sticker-slash{display:block}
.stickers-hidden [data-sticker]{visibility:hidden !important;opacity:0 !important;pointer-events:none !important}

/* Hover previews the inverse action; touch devices keep the current state. */
@media (hover:hover) and (pointer:fine){
  .toggle-stickers:hover .sticker-slash{display:block}
  .stickers-hidden .toggle-stickers:hover .sticker-slash{display:none}
}

/* Rotate the reset glyph around the viewBox centre, keeping its hit area still. */
.reset-stickers svg{width:25px;height:25px;flex-shrink:0;stroke-width:1.5;transform-box:view-box;transform-origin:50% 50%;transition:transform 220ms ease-out}
@media (hover:hover) and (pointer:fine){
  .reset-stickers:hover svg{transform:rotate(24deg)}
}
@media (prefers-reduced-motion:reduce){
  .reset-stickers svg{transition:none}
  .reset-stickers:hover svg{transform:none}
}

/* Back-link text shares the nav text edge; the arrow hangs in the marker gutter. */
.sidebar .back:has(.back-arrow),.sidebar .back-link:has(.back-arrow){position:relative}
.sidebar .back-arrow{position:absolute;left:-18px;top:.5lh;transform:translateY(-50%);width:14px;height:14px}
.sidebar .back-arrow svg{display:block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
