.article-scrollbar { display: none; }
@media (max-width: 776px) {
  .article-header-slot:not([hidden]) {
    position: fixed;
    z-index: 99;
    top: 0;
    overflow: hidden;
  }
  .article-header-slot[data-state="main"] { overflow: visible; }
  .article-header-slot[data-state="compact"] { visibility: hidden; pointer-events: none; }
  .article-scrollbar-ready .article-header-slot .site-header.site-header--stable {
    position: relative;
    top: 0;
    margin: 0;
    width: 100%;
    transition: none;
    will-change: transform;
  }
  .article-header-slot .site-header[aria-hidden="true"] { pointer-events: none; }
  .article-scrollbar:not([hidden]) {
    position: fixed;
    z-index: 100;
    top: 8px;
    top: calc(8px + env(safe-area-inset-top, 0px));
    left: 12px;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: 12px;
    right: max(12px, env(safe-area-inset-right, 0px));
    display: flex;
    align-items: center;
    min-width: 0;
    height: 48px;
    color: #111;
    visibility: hidden;
    opacity: 1;
    transform: translate3d(0,-76px,0);
    will-change: transform;
    pointer-events: none;
    transition: none;
  }
  .article-scrollbar__back,
  .article-scrollbar__title,
  .article-scrollbar__comments {
    display: flex;
    align-items: center;
    height: 48px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.09);
  }
  .article-scrollbar > * + * { margin-left: 8px; }
  .article-scrollbar__back {
    flex: 0 0 48px;
    justify-content: center;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
  }
  .article-scrollbar a:focus-visible { outline: 2px solid #ff6700; outline-offset: 2px; }
  .article-scrollbar__back:active { background: #f1f3f5; }
  .article-scrollbar__title {
    position: relative;
    display: block;
    flex: 1 1 0%;
    min-width: 0;
    padding: 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 48px;
  }
  .article-scrollbar__comments {
    flex: 0 0 auto;
    justify-content: center;
    min-width: 48px;
    max-width: 100px;
    padding: 0 10px;
    background: #fff1e7;
    color: #ff6700;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
  }
  .article-scrollbar__comments svg { flex: 0 0 20px; }
  .article-scrollbar__comments span { margin-left: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .article-scrollbar__comments:active { background: #ffe4d1; }
  .article-scrollbar[data-state="moving"],
  .article-scrollbar[data-state="compact"] { visibility: visible; }
  .article-scrollbar[aria-hidden="false"] { pointer-events: auto; }

}
@media (min-width: 601px) and (max-width: 776px) {
  .admin-bar .article-header-slot:not([hidden]) { top: 46px; }
  .admin-bar .article-scrollbar:not([hidden]) { top: 54px; top: calc(54px + env(safe-area-inset-top, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .article-scrollbar-ready .site-header.site-header--stable,
  .article-scrollbar:not([hidden]) { transition: none; }
}
@media (max-width: 776px) {
  .article-scrollbar__title {
    border: 0;
    color: #111;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
  }
  .article-scrollbar__title:disabled { opacity: 1; cursor: default; }
  .article-scrollbar__title:focus-visible { outline: 2px solid #ff6700; outline-offset: 2px; }
  .article-scrollbar__title-text {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .article-scrollbar__title[data-pan="true"] .article-scrollbar__title-text {
    display: inline-block;
    max-width: none;
    overflow: visible;
    will-change: transform;
    animation: article-title-pan var(--article-title-duration, 20s) linear infinite paused;
  }
  .article-scrollbar__title[data-pan="true"]::before,
  .article-scrollbar__title[data-pan="true"]::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 16px;
    pointer-events: none;
  }
  .article-scrollbar__title[data-pan="true"]::before {
    left: 0;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0));
  }
  .article-scrollbar__title[data-pan="true"]::after {
    right: 0;
    background: linear-gradient(to left, #fff, rgba(255,255,255,0));
  }
}
@keyframes article-title-pan {
  0%, 10%, 100% { transform: translate3d(0,0,0); }
  45%, 65% { transform: translate3d(var(--article-title-distance, 0px),0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .article-scrollbar__title[data-pan="true"] .article-scrollbar__title-text { animation: none; max-width: 100%; overflow: hidden; }
}
