.site-header:not(.scrolled) {
  background: #123d39;
}

.site-header:not(.scrolled) .site-nav:not(.open) > a,
.site-header:not(.scrolled) .site-nav:not(.open) summary,
.site-header:not(.scrolled) .header-actions .text-link {
  color: #ffffff;
}

.bi-guides {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  background: #f7f8f6;
  color: #17211c;
}

.bi-guides__layout {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.bi-guides__intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.bi-guides__intro .eyebrow {
  margin-bottom: 0.8rem;
}

.bi-guides__intro h1 {
  margin: 0;
  color: #17211c;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.bi-guides__intro p {
  margin: 1rem 0 0;
  color: #59645d;
  font-size: 1.05rem;
}

.bi-guides__tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0 auto 2rem;
  padding: 0.4rem;
  overflow-x: auto;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  background: #ffffff;
  scrollbar-width: thin;
}

.bi-guides__tabs [role="tab"] {
  flex: 1 0 auto;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #405048;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bi-guides__tabs [role="tab"]:hover,
.bi-guides__tabs [role="tab"]:focus-visible {
  outline: 2px solid #087b70;
  outline-offset: 2px;
}

.bi-guides__tabs [role="tab"][aria-selected="true"] {
  background: #123d39;
  color: #ffffff;
}

.bi-guides__panel {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(25, 39, 33, 0.045);
  font-size: 1rem;
  line-height: 1.75;
}

.bi-guides__panel[hidden] {
  display: none;
}

.bi-guides__panel header {
  margin-bottom: 1.25rem;
}

.bi-guides__panel h2,
.bi-guides__panel h3,
.bi-guides__panel h4 {
  color: #17211c;
  font-family: inherit;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.bi-guides__panel h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.bi-guides__panel h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.35rem;
}

.bi-guides__panel h4 {
  margin: 1.3rem 0 0.4rem;
  font-size: 1.05rem;
}

.bi-guides__panel header p {
  margin: 0;
  color: #66736b;
}

.bi-guides__panel p {
  margin: 0.8rem 0;
  color: #46534b;
  line-height: inherit;
}

.bi-guides__panel a {
  color: #087b70;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.bi-guides__panel a:hover {
  color: #075d55;
}

.bi-guides__panel ul,
.bi-guides__panel ol {
  margin: 0.75rem 0 1rem;
  padding-left: 1.5rem;
  list-style: revert;
}

.bi-guides__panel li {
  margin: 0.35rem 0;
  padding-left: 0.15rem;
  color: #46534b;
}

.bi-guides__answer {
  margin: 1.4rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 4px solid #087b70;
  color: #263a31 !important;
  font-size: 1.08rem;
}

.bi-guides__toc {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid #dfe7e2;
  border-radius: 6px;
  background: #f7f8f6;
}

.bi-guides__toc ol {
  margin-bottom: 0;
}

.bi-guides__panel details {
  margin: 0.65rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid #dfe7e2;
  border-radius: 6px;
  background: #ffffff;
}

.bi-guides__panel summary {
  color: #263a31;
  cursor: pointer;
  font-weight: 650;
}

.bi-guides__table-wrap {
  overflow-x: auto;
}

.bi-guides__panel table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.bi-guides__panel th,
.bi-guides__panel td {
  padding: 0.65rem 0.8rem;
  border: 1px solid #dfe7e2;
  text-align: left;
  vertical-align: top;
}

.bi-guides__panel th {
  background: #f1f5f2;
  color: #263a31;
}

.bi-guides__cta {
  margin: 2rem 0 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid #dfe7e2;
  border-radius: 6px;
  background: #f7f8f6;
}

.bi-guides__cta strong {
  color: #17211c;
}

.bi-guides__cta a {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.55rem 1rem;
  border: 1px solid #123d39;
  border-radius: 5px;
  background: #123d39;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.bi-guides__cta a:hover {
  background: #087b70;
  color: #ffffff;
}

@media (max-width: 640px) {
  .bi-guides {
    padding-inline: 1rem;
  }

  .bi-guides__tabs {
    margin-inline: -0.25rem;
  }

  .bi-guides__tabs [role="tab"] {
    min-height: 42px;
    padding-inline: 0.75rem;
    font-size: 0.82rem;
  }

  .bi-guides__panel {
    padding: 1.25rem;
  }
}
