/**
 * Article rails (1.5.0) — see inc/article-rail.php.
 * ≥1280px: three columns inside the header's 1240px frame — TOC 200 · article 760 · picks 220.
 * The reading measure stays the same; the gutters get navigation and the picks.
 */
.bv-pagenav, .bv-rail { display: none; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.single-post .entry-content h2[id] { scroll-margin-top: 24px; }

@media (min-width: 1280px) {
  body.single-post.bv-has-toc .site.grid-container,
  body.single-post.bv-has-picks .site.grid-container { max-width: 1280px; }

  body.single-post.bv-has-toc .site-content,
  body.single-post.bv-has-picks .site-content {
    display: grid;
    grid-template-columns: 200px minmax(0, 760px) 220px;
    grid-template-areas: "toc main rail";
    column-gap: 30px;
    justify-content: center;
    align-items: start;
  }
  body.single-post .site-content > .content-area { grid-area: main; max-width: 100%; }

  .bv-pagenav, .bv-rail {
    display: block; position: sticky; top: 24px;
    max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain;
    margin-top: 48px; /* lines up with the article title, below the card's top padding */
  }
  .bv-pagenav { grid-area: toc; }
  .bv-rail { grid-area: rail; }
}

.bv-rail__label {
  margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #64748b;
}

/* On this page */
.bv-pagenav ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid #e2e8f0; }
.bv-pagenav li { margin: 0; }
.bv-pagenav a {
  display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.35; color: #64748b; text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.bv-pagenav a:hover { color: #0f172a; }
.bv-pagenav a[aria-current] { color: #0f172a; font-weight: 600; border-left-color: #38bdf8; }

/* Our picks */
.bv-rail ul {
  list-style: none; margin: 0; padding: 6px 16px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff;
}
.bv-rail li { margin: 0; padding: 14px 0; border-top: 1px solid #f1f5f9; display: grid; gap: 4px; }
.bv-rail li:first-child { border-top: 0; }
.bv-rail__tag { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #0369a1; line-height: 1.3; }
.bv-rail__name { font-size: 15px; font-weight: 700; line-height: 1.3; color: #0f172a; text-decoration: none; }
a.bv-rail__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.bv-rail__cta {
  justify-self: start; margin-top: 4px; font-size: 13px; font-weight: 600; line-height: 1.35;
  color: #0369a1; text-decoration: none;
}
.bv-rail__cta::after { content: " \2192"; }
.bv-rail__cta:hover { color: #0f172a; text-decoration: underline; text-underline-offset: 3px; }
