/* Local overrides layered on top of the original Grailbird archive styles.
   Loaded last in index.html so these win. */

/* --- Scrollable year-histogram sidebar ---
   The original sidebar is position:fixed with overflow:hidden and was sized for
   ~9 years of tweets. With the full 2007–2022 history it now has 16 yearly
   histograms and runs off the bottom of the window with no way to reach the
   older years. Cap its height to the viewport and let it scroll internally. */
.sidebar {
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  overflow-x: hidden;
  /* room so the last histogram isn't flush against the scroll edge */
  padding-bottom: 8px;
}

/* The inner nav box clips with overflow:hidden; allow the scroll to pass through
   to .sidebar above rather than being trapped. */
.sidebar .sidebar-nav {
  overflow: visible;
}

/* Slightly slimmer, less obtrusive scrollbar (WebKit/Blink). */
.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
