/* "Your place in this guide" bar (post.html, js/read-progress.v1.js).
   Same palette as the "In this guide" box in custom.css.
   Immutable one-year cache on /css: ship any edit under a new file name. */
.read-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: #ffffff;
  border-top: 1px solid #dbe3ee;
  box-shadow: 0 -4px 16px rgba(37, 37, 37, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.read-progress[hidden] { display: none; }
.read-progress__track { height: 3px; background: #e6ecf5; }
.read-progress__fill {
  display: block;
  height: 100%;
  background: #2b6cb0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.15s linear;
}
.read-progress__menu { position: relative; max-width: 760px; margin: 0 auto; }
.read-progress__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  box-sizing: border-box;
  cursor: pointer;
  list-style: none;
  color: #252525;
  font-size: 15px;
  line-height: 1.3;
}
.read-progress__summary::-webkit-details-marker { display: none; }
.read-progress__summary:focus-visible { outline: 2px solid #2b6cb0; outline-offset: -2px; }
.read-progress__step { flex: none; font-weight: 600; color: #2b6cb0; white-space: nowrap; }
.read-progress__current { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.read-progress__toggle {
  flex: none;
  padding: 4px 10px;
  border: 1px solid #dbe3ee;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #2b6cb0;
}
.read-progress__toggle::after { content: " \25B4"; }
.read-progress__menu[open] .read-progress__toggle::after { content: " \25BE"; }
.read-progress__list {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  max-height: 60vh;
  overflow: auto;
  margin: 0;
  padding: 14px 18px 14px 2.4em;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-bottom: 0;
  border-left: 4px solid #2b6cb0;
  box-shadow: 0 -8px 24px rgba(37, 37, 37, 0.1);
}
.read-progress__list li { margin: 4px 0; }
.read-progress__list a[aria-current] { font-weight: 700; color: #252525; }
.read-progress__list a:focus-visible { outline: 2px solid #2b6cb0; outline-offset: 2px; }
@media (max-width: 600px) {
  .read-progress__summary { font-size: 14px; gap: 8px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .read-progress__fill { transition: none; }
}
