/*Sidebar Page */

.bch-utility-hero-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.bch-sidebar-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 24px 70px;
}

.bch-letter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 8px 0 34px;
}

.bch-letter-nav a,
.bch-side-letters a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  background: #ffffff;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
}

.bch-letter-nav a:hover,
.bch-side-letters a:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.bch-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 42px;
  align-items: start;
  margin-top: 24px;
}

.bch-letter-section {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 30px;
}

.bch-letter-section h2 {
  font-size: 30px;
  color: var(--navy);
  margin: 0 0 12px;
}

.bch-term {
  padding: 0 0 10px;
  margin-bottom: 12px;
}

.bch-term h3 {
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 8px;
}

.bch-term p {
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  color: var(--text);
}

.bch-sidebar {
  position: sticky;
  top: 130px;
}

.bch-side-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px 10px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(7, 31, 63, 0.05);
}

.bch-side-card h3 {
  color: var(--navy);
  font-size: 18px;
  margin: 0 0 8px;
}

.bch-side-card a {
  display: block;
  color: var(--teal);
  font-weight: 400;
  text-decoration: none;
  margin: 0;
  padding: 0px 0 12px;
  line-height: 1.25;
  font-size: 14px;
}

.bch-side-card a:last-child {
  border-bottom: none;
}

.bch-side-card a:hover {
  color: var(--navy);
}

.bch-side-card p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 8px;
  color: var(--muted);
}

.bch-sidebar-search {
  display: flex;
  flex-direction: column;
  gap: 0px !important;
}

.bch-sidebar-search br {
  display: none;
}

.bch-sidebar-search input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
}

.bch-sidebar-search button {
  width: 100%;
  height: 38px;
  margin-top: 10px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bch-articles-page .bch-sidebar-search button {
  margin-top: 12px;
}

.bch-single-post-page .bch-sidebar-search button {
  margin-top: 10px;
}

.bch-help-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
  margin-left: -8px;
}

.bch-help-icon-img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

.bch-side-card.bch-side-help a.bch-help-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 6px;
  padding: 10px 0;
  background: var(--teal);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.bch-side-card.bch-side-help a.bch-help-btn:hover {
  background: var(--navy);
  color: #ffffff;
}

.bch-side-card.bch-side-help {
  padding-bottom: 20px;
}

.bch-sidebar-search button:hover {
  background: var(--navy);
}

.bch-update-link {
  display: block;
  padding: 6px 0;
  color: var(--teal);
}

.bch-update-link:hover {
  color: var(--navy);
}

.bch-update-link small {
  display: block;
  font-size: 11px;
  color: var(--navy) !important;
  margin-bottom: 2px;
}

.bch-view-all {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 700 !important;
  color: var(--navy) !important;
  text-decoration: none;
  transition: color .2s ease;
}

.bch-view-all:hover {
  color: var(--teal) !important;
}

.bch-side-highlight {
  background: var(--lightteal);
}

@media (max-width: 900px) {
  .bch-sidebar-layout {
    grid-template-columns: 1fr;
  }

  .bch-sidebar {
    position: static;
  }

}

/* ==========================================================
   CONSOLIDATED SHARED COMPONENTS
   (moved from states.css / states-overview.css / articles.css)
========================================================== */

/* ---- On This Page nav ---- */
.bch-onpage-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bch-onpage-list a {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}

.bch-onpage-list a:hover {
  color: var(--teal);
}

/* ---- Helpful Resources list ---- */
.bch-resources-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.bch-resources-list::-webkit-scrollbar {
  width: 6px;
}

.bch-resources-list::-webkit-scrollbar-thumb {
  background: var(--teal2);
  border-radius: 8px;
}

.bch-resources-list a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--teal);
}

.bch-resources-list a:hover {
  color: var(--navy);
}

/* ---- Browse by State (searchable list) ---- */
.bch-state-search {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px !important;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 10px;
  font-family: inherit;
}

.bch-state-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 190px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.bch-state-list::-webkit-scrollbar {
  width: 8px;
}

.bch-state-list::-webkit-scrollbar-track {
  background: #f2f5f8;
}

.bch-state-list::-webkit-scrollbar-thumb {
  background: var(--teal2);
  border-radius: 8px;
}

.bch-state-list::-webkit-scrollbar-thumb:hover {
  background: var(--teal);
}

.bch-state-list li {
  margin: 0;
}

.bch-state-list a {
  display: block;
  padding: 8px 4px;
  color: var(--text);
  font-size: 13.5px;
  border-bottom: 1px solid #f0f3f6;
}

.bch-state-list a:hover,
.bch-state-list a.active,
.bch-state-list .current_page_item a {
  background: linear-gradient(90deg, var(--teal2), var(--teal));
  color: #fff !important;
  border-radius: 4px;
}

/* Optional intro text above the Browse by State list (used on FCRA's "See State Laws" card) */
.bch-side-card p.bch-side-intro {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

/* ---- Sidebar search button — consolidated ----
   Base: matches the FAQ/Glossary <div> pattern AND
   the single-post <form> pattern with identical output. */
.bch-sidebar-search button {
  margin-top: 10px;
  padding: 8px 12px;
  line-height: 1;
}

/* Articles page uses a taller search box, so its button needs more top space */
.bch-articles-page .bch-sidebar-search button {
  margin-top: 12px;
}

/* ---- Jump to FCRA / cross-link callout box ---- */
.bch-jump-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 18px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
}

.bch-jump-cta:hover {
  background: var(--navy);
}

/* Keyboard-highlighted state in the Browse State Laws filter */
.bch-state-list a.bch-kb-active {
  background: var(--soft-teal);
  color: var(--teal);
}


/* ---- "Read FCRA Overview" button — shared federal (blue) sidebar button ----
   Federal law items are always blue, never teal. Moved here from employers.css
   so any page with a sidebar renders it identically. */
.bch-side-fcra-btn {
  display: block;
  text-align: center;
  background: var(--lightblue);
  color: var(--navy) !important;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 0;
  margin-bottom: 18px;
  text-decoration: none;
}

.bch-side-fcra-btn:hover {
  background: var(--navy);
  color: #fff !important;
}



